:root {
  color-scheme: dark;
  --bg: #090d14;
  --panel: #111823;
  --panel-2: #162232;
  --text: #f6f8fb;
  --muted: #a8b3c4;
  --line: rgba(255,255,255,.12);
  --accent: #d83f4d;
  --accent-2: #f0b24b;
  --ok: #2fbf88;
  --shadow: 0 18px 48px rgba(0,0,0,.32);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  letter-spacing: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

.theme-jade {
  --accent: #1db992;
  --accent-2: #e6c65e;
}

.theme-amber {
  --accent: #e09f35;
  --accent-2: #46b0d9;
}

.portal {
  min-height: 100vh;
  background: var(--portal-bg);
  color: var(--portal-text);
  --portal-bg: #070a10;
  --portal-surface: #0d121b;
  --portal-surface-2: #141c29;
  --portal-card: rgba(15,21,32,.92);
  --portal-elevated: #121a27;
  --portal-text: #f7f9fc;
  --portal-strong: #ffffff;
  --portal-muted: #a5afbf;
  --portal-line: rgba(255,255,255,.11);
  --portal-input: #121a27;
  --portal-pill: #151f2e;
  --portal-shadow: 0 24px 70px rgba(0,0,0,.36);
  --portal-soft-shadow: 0 12px 36px rgba(0,0,0,.24);
  --bg: var(--portal-bg);
  --panel: var(--portal-surface);
  --panel-2: var(--portal-surface-2);
  --text: var(--portal-text);
  --muted: var(--portal-muted);
  --line: var(--portal-line);
  --shadow: var(--portal-shadow);
}

.front.portal {
  background-image:
    linear-gradient(180deg, rgba(216,63,77,.10), rgba(7,10,16,0) 220px),
    linear-gradient(90deg, rgba(240,178,75,.06), rgba(70,176,217,.06));
  background-attachment: fixed;
}

:root[data-portal-theme="light"] .portal {
  --portal-bg: #f6f7fa;
  --portal-surface: #ffffff;
  --portal-surface-2: #eef2f7;
  --portal-card: rgba(255,255,255,.94);
  --portal-elevated: #ffffff;
  --portal-text: #141821;
  --portal-strong: #141821;
  --portal-muted: #657181;
  --portal-line: rgba(20,24,33,.12);
  --portal-input: #f0f2f6;
  --portal-pill: #ffffff;
  --portal-shadow: 0 18px 52px rgba(22,30,45,.12);
  --portal-soft-shadow: 0 10px 28px rgba(22,30,45,.10);
  --bg: var(--portal-bg);
  --panel: var(--portal-surface);
  --panel-2: var(--portal-surface-2);
  --text: var(--portal-text);
  --muted: var(--portal-muted);
  --line: var(--portal-line);
  --shadow: var(--portal-shadow);
}

:root[data-portal-theme="light"] .front.portal {
  background-image:
    linear-gradient(180deg, rgba(216,63,77,.07), rgba(246,247,250,0) 220px),
    linear-gradient(90deg, rgba(240,178,75,.08), rgba(70,176,217,.08));
}

.portal-top {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(7,10,16,.88);
  border-bottom: 1px solid var(--portal-line);
  box-shadow: 0 10px 34px rgba(0,0,0,.18);
  backdrop-filter: blur(16px);
}

:root[data-portal-theme="light"] .portal-top {
  background: rgba(255,255,255,.88);
  box-shadow: 0 10px 30px rgba(18,24,36,.08);
}

.portal-bar {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(280px, 560px) minmax(160px, 1fr);
  gap: 18px;
  align-items: center;
  width: min(1360px, calc(100vw - 40px));
  min-height: 72px;
  margin: 0 auto;
}

.portal-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.portal-brand .brand-mark {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 26px rgba(216,63,77,.30);
}

.portal-brand strong,
.portal-brand small {
  display: block;
}

.portal-brand strong {
  color: var(--portal-strong);
  font-size: 17px;
  letter-spacing: 0;
}

.portal-brand small {
  margin-top: 2px;
  color: var(--portal-muted);
  font-size: 12px;
}

.portal-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 78px;
  min-height: 46px;
  border: 1px solid var(--portal-line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--portal-input);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

.portal-search input {
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0 14px;
  color: var(--portal-text);
}

.portal-search input::placeholder {
  color: var(--portal-muted);
}

.portal-search button {
  border: 0;
  background: linear-gradient(135deg, var(--accent), #ed6a5f);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  transition: filter .18s ease;
}

.portal-search button:hover {
  filter: brightness(1.06);
}

.portal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.portal-actions a,
.portal-actions .user-chip,
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--portal-muted);
  font-size: 13px;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

.portal-actions a:hover,
.portal-actions .user-chip.logged-in,
.theme-toggle:hover {
  background: var(--portal-surface-2);
  border-color: var(--portal-line);
  color: var(--portal-strong);
  transform: translateY(-1px);
}

.portal-actions .user-chip {
  max-width: 116px;
  border-color: var(--portal-line);
  background: rgba(255,255,255,.035);
  cursor: default;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-actions .user-chip.logged-in {
  border-color: rgba(47,191,136,.34);
  color: #9ee7c9;
  transform: none;
}

.theme-toggle {
  border: 1px solid var(--portal-line);
  background: var(--portal-pill);
  color: var(--portal-text);
  cursor: pointer;
  font-weight: 800;
}

.portal-nav {
  display: flex;
  gap: 8px;
  width: min(1360px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 0 0 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.portal-nav::-webkit-scrollbar {
  display: none;
}

.portal-nav a {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--portal-muted);
  font-weight: 700;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.portal-nav a.active,
.portal-nav a:hover {
  background: var(--portal-strong);
  color: var(--portal-bg);
  transform: translateY(-1px);
}

.portal-notice {
  padding: 12px max(20px, calc((100vw - 1360px) / 2));
  background: rgba(224,159,53,.12);
  color: #ffd58a;
  border-bottom: 1px solid rgba(224,159,53,.28);
}

:root[data-portal-theme="light"] .portal-notice {
  background: #fff7e6;
  color: #7b4b00;
  border-bottom-color: #f1d8a5;
}

.portal-shell {
  width: min(1360px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 22px 0 64px;
}

.hot-searches {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 6px 0 18px;
  color: var(--portal-muted);
}

.hot-searches strong {
  color: var(--portal-strong);
}

.hot-searches a {
  padding: 7px 10px;
  border-radius: 8px;
  background: var(--portal-pill);
  border: 1px solid var(--portal-line);
  font-size: 13px;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.hot-searches a:hover {
  background: var(--portal-strong);
  color: var(--portal-bg);
  transform: translateY(-1px);
}

.portal-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  margin-bottom: 24px;
}

.hero-feature {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  padding: 34px;
  border: 1px solid var(--portal-line);
  border-radius: 8px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  color: #fff;
  box-shadow: var(--portal-shadow);
}

.hero-feature::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(0,0,0,0) 34%);
  pointer-events: none;
}

.hero-feature > * {
  position: relative;
  z-index: 1;
}

.hero-feature h1 {
  margin-bottom: 14px;
  max-width: 760px;
  font-size: 42px;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.hero-feature p {
  max-width: 720px;
  color: #e8edf5;
  line-height: 1.8;
}

.focus-panel,
.rank-box,
.section-block,
.channel-cloud {
  border: 1px solid var(--portal-line);
  border-radius: 8px;
  background: var(--portal-card);
  box-shadow: var(--portal-soft-shadow);
  backdrop-filter: blur(10px);
}

.focus-panel {
  padding: 20px;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.section-title h2 {
  margin: 0;
  color: var(--portal-strong);
  font-size: 24px;
  line-height: 1.2;
}

.section-title a,
.section-title span {
  color: var(--portal-muted);
  font-size: 14px;
}

.compact-title {
  align-items: center;
}

.compact-title h2 {
  font-size: 20px;
}

.focus-list,
.rank-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.focus-list li {
  padding: 0 0 12px;
  border-bottom: 1px solid var(--portal-line);
}

.focus-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.focus-list a,
.rank-list a {
  display: block;
  color: var(--portal-strong);
  font-weight: 800;
  line-height: 1.4;
}

.focus-list span {
  display: block;
  margin-top: 5px;
  color: var(--portal-muted);
  font-size: 13px;
}

.focus-title-row {
  align-items: center;
  margin-bottom: 12px;
}

.focus-title-row > div:first-child {
  min-width: 0;
}

.focus-tabs {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--portal-line);
  border-radius: 999px;
  background: rgba(255,255,255,.045);
}

.focus-tabs button {
  min-height: 28px;
  padding: 0 11px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--portal-muted);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.focus-tabs button.active,
.focus-tabs button:hover {
  background: var(--portal-strong);
  color: var(--portal-bg);
}

.focus-list-panel[hidden] {
  display: none;
}

.focus-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.focus-panel-heading strong {
  color: var(--portal-strong);
  font-size: 15px;
}

.focus-panel-heading span {
  color: var(--portal-muted);
  font-size: 12px;
}

.channel-cloud {
  padding: 20px;
  margin-bottom: 24px;
}

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

.channel-grid a {
  min-height: 92px;
  padding: 14px;
  border: 1px solid var(--portal-line);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--portal-surface-2), rgba(255,255,255,.03));
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.channel-grid a:hover {
  border-color: rgba(240,178,75,.42);
  box-shadow: 0 12px 30px rgba(0,0,0,.16);
  transform: translateY(-2px);
}

.channel-grid strong,
.channel-grid span {
  display: block;
}

.channel-grid span {
  margin-top: 8px;
  color: var(--portal-muted);
  font-size: 13px;
  line-height: 1.45;
}

.portal-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
}

.portal-main-flow {
  display: grid;
  gap: 18px;
}

.section-block {
  padding: 20px;
}

.poster-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.portal-card {
  min-width: 0;
}

.portal-card a {
  transition: color .18s ease;
}

.portal-card h2,
.portal-card h3 {
  margin: 10px 0 4px;
  font-size: 15px;
  line-height: 1.35;
}

.portal-card p {
  margin: 0;
  color: var(--portal-muted);
  font-size: 13px;
  line-height: 1.45;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 20px;
}

.news-grid article {
  min-width: 0;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--portal-line);
}

.news-grid a {
  display: block;
  color: var(--portal-strong);
  font-weight: 800;
}

.news-grid span {
  display: block;
  margin-top: 4px;
  color: var(--portal-muted);
  font-size: 13px;
}

.portal-sidebar {
  position: sticky;
  top: 118px;
  display: grid;
  gap: 18px;
  align-self: start;
}

.rank-box {
  padding: 20px;
}

.rank-list {
  counter-reset: rank;
}

.rank-list li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) 42px;
  gap: 8px;
  align-items: center;
}

.rank-list li::before {
  counter-increment: rank;
  content: counter(rank);
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--portal-surface-2);
  color: var(--portal-muted);
  font-weight: 900;
}

.rank-list li:nth-child(-n+3)::before {
  background: var(--accent);
  color: #fff;
}

.rank-list span {
  color: var(--accent-2);
  font-weight: 900;
  text-align: right;
}

.portal-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px max(20px, calc((100vw - 1360px) / 2));
  border-top: 1px solid var(--portal-line);
  background: var(--portal-surface);
  color: var(--portal-muted);
}

.site-footer {
  align-items: flex-start;
  flex-wrap: wrap;
  background: rgba(8,11,18,.96);
}

.theme-light .site-footer {
  background: rgba(255,255,255,.94);
}

.footer-copy {
  display: grid;
  gap: 6px;
  flex: 1 1 520px;
  min-width: 0;
  line-height: 1.7;
}

.footer-copy strong {
  color: var(--text);
  font-size: 14px;
}

.footer-copy span,
.footer-copy small {
  color: var(--muted);
}

.footer-copy small {
  max-width: 860px;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: 0 1 360px;
  flex-wrap: wrap;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,.03);
}

.footer-links a:hover {
  color: var(--text);
  border-color: rgba(229,61,78,.45);
}

.portal-footer nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.search-results {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.topbar,
.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 0 32px;
  background: rgba(9,13,20,.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.main-nav a {
  min-height: 36px;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
}

.main-nav a.active,
.main-nav a:hover {
  background: rgba(255,255,255,.09);
  color: var(--text);
}

.notice {
  padding: 10px 32px;
  background: rgba(216,63,77,.16);
  color: #ffd8dd;
  border-bottom: 1px solid rgba(216,63,77,.28);
}

.hero {
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  padding: 80px 32px 64px;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero h1,
.detail-copy h1,
.list-hero h1 {
  margin-bottom: 16px;
  color: var(--text);
  font-size: 44px;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.detail-copy h1 {
  color: #fff;
}

.hero p,
.detail-copy p {
  max-width: 720px;
  color: #d8dfeb;
  line-height: 1.8;
}

.detail-copy p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

.detail-hero .ghost-btn,
.detail-hero .disabled-action {
  color: #fff;
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.20);
}

.list-hero p {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.8;
}

.hero-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 24px;
}

.detail-actions {
  grid-column: 2;
  flex-wrap: nowrap;
  gap: 10px;
  margin-top: 6px;
}

.detail-actions .primary-btn,
.detail-actions .ghost-btn,
.detail-actions .disabled-action,
.detail-actions .like-button {
  min-height: 38px;
  padding: 0 15px;
}

.detail-actions .like-button {
  min-width: 96px;
  justify-content: center;
}

.like-form {
  margin: 0;
}

.like-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  color: #f8fafc;
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
  backdrop-filter: blur(12px);
}

.like-button span {
  color: #ff6b81;
  font-size: 18px;
  line-height: 1;
}

.like-button strong {
  font-size: 15px;
}

.like-button em {
  color: rgba(248,250,252,.72);
  font-style: normal;
  font-size: 12px;
}

.like-button:hover,
.like-button.liked {
  border-color: rgba(255,107,129,.4);
  background: rgba(255,107,129,.16);
}

.like-button:disabled {
  opacity: .72;
  cursor: wait;
}

.primary-btn,
.ghost-btn,
.disabled-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

.primary-btn {
  background: linear-gradient(135deg, var(--accent), #ed6a5f);
  color: white;
  box-shadow: 0 12px 28px rgba(216,63,77,.28);
}

.ghost-btn {
  background: rgba(255,255,255,.08);
  border-color: var(--line);
  color: var(--text);
}

.primary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-1px);
}

.disabled-action {
  background: rgba(255,255,255,.06);
  border-color: var(--line);
  color: var(--muted);
  cursor: default;
}

.small {
  min-height: 34px;
  padding: 7px 11px;
  font-size: 13px;
}

.page-shell {
  width: min(1280px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 32px 0 64px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin: 20px 0 18px;
}

.section-head h2 {
  margin: 0;
  font-size: 26px;
}

.section-head span {
  color: var(--muted);
  font-size: 14px;
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
  gap: 20px;
}

.filter-panel {
  display: grid;
  gap: 12px;
  margin: -8px 0 26px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--portal-soft-shadow, var(--shadow));
}

.filter-row {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.filter-more,
.filter-more-body {
  display: contents;
}

.filter-more summary {
  display: none;
}

.filter-row strong {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  color: var(--text);
}

.filter-values {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-values a {
  min-height: 34px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.filter-values a.active,
.filter-values a:hover {
  background: var(--accent);
  border-color: transparent;
  color: #fff;
}

.featured-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.movie-card {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--portal-soft-shadow, var(--shadow));
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.movie-card:hover {
  border-color: rgba(240,178,75,.38);
  transform: translateY(-3px);
  box-shadow: var(--portal-shadow, var(--shadow));
}

.movie-card.compact {
  padding: 10px;
}

.poster {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  box-shadow: 0 12px 32px rgba(0,0,0,.24);
  isolation: isolate;
}

.poster::after {
  content: "";
  position: absolute;
  inset: 48% 0 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.42));
  pointer-events: none;
}

.poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .2s ease;
}

.poster:hover img {
  transform: scale(1.04);
}

.poster span {
  position: absolute;
  right: 8px;
  top: 8px;
  z-index: 2;
  min-width: 42px;
  padding: 4px 7px;
  border-radius: 7px;
  background: rgba(0,0,0,.72);
  color: #fff1c6;
  text-align: center;
  font-weight: 800;
}

.movie-title {
  display: block;
  margin-top: 10px;
  color: var(--text);
  font-weight: 800;
  line-height: 1.35;
}

.movie-title:hover,
.portal-card a:hover,
.news-grid a:hover,
.focus-list a:hover,
.rank-list a:hover {
  color: var(--accent-2);
}

.movie-card p,
.movie-card small {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: var(--muted);
  line-height: 1.55;
}

.movie-card p {
  margin: 5px 0 0;
  font-size: 14px;
}

.movie-card small {
  margin-top: 6px;
  font-size: 13px;
}

.pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  color: var(--muted);
}

.pager a,
.pager span,
.pager strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--portal-soft-shadow, none);
}

.pager a {
  color: var(--text);
  font-weight: 800;
}

.pager a:hover {
  background: var(--accent);
  border-color: transparent;
  color: #fff;
}

.pager span {
  opacity: .58;
}

.pager strong {
  color: var(--text);
}

.category-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 34px 0;
}

.category-strip a {
  min-height: 96px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.category-strip strong,
.category-strip span {
  display: block;
}

.category-strip span {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.55;
}

.focus-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 34px;
}

.focus-strip a {
  min-height: 156px;
  padding: 18px;
  border: 1px solid rgba(240,178,75,.32);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(240,178,75,.12), rgba(70,176,217,.05)),
    var(--panel);
  box-shadow: 0 12px 30px rgba(0,0,0,.14);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.focus-strip a:hover {
  border-color: rgba(240,178,75,.54);
  box-shadow: var(--portal-soft-shadow, var(--shadow));
  transform: translateY(-2px);
}

.focus-strip em,
.focus-strip strong,
.focus-strip span,
.focus-strip small {
  display: block;
}

.focus-strip em {
  width: fit-content;
  margin-bottom: 12px;
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(240,178,75,.18);
  color: #f6c56c;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.focus-strip strong {
  font-size: 18px;
}

.focus-strip span {
  margin-top: 7px;
  color: var(--text);
  font-weight: 700;
}

.focus-strip small {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.55;
}

.list-hero {
  position: relative;
  overflow: hidden;
  padding: 36px;
  margin-bottom: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(216,63,77,.16), rgba(70,176,217,.08)),
    var(--panel);
  box-shadow: var(--portal-soft-shadow, var(--shadow));
}

.detail-hero {
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  background-image:
    linear-gradient(90deg, rgba(9,13,20,.96), rgba(9,13,20,.70), rgba(9,13,20,.22)),
    var(--detail-backdrop);
  background-size: cover;
  background-position: center;
  padding: 92px 32px 48px;
  border-bottom: 1px solid var(--line);
  box-shadow: inset 0 -80px 90px rgba(0,0,0,.44);
}

.detail-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 760px);
  align-items: end;
  gap: 30px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.detail-poster {
  width: 220px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: var(--shadow);
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.facts span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0,0,0,.28);
  color: #e8edf5;
  font-size: 13px;
  backdrop-filter: blur(8px);
}

.detail-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.info-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--portal-soft-shadow, var(--shadow));
}

.info-panel h2 {
  margin-bottom: 16px;
}

.synopsis-panel p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.85;
}

.info-panel dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.info-panel dl div {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 14px;
}

.info-panel dt {
  color: var(--muted);
}

.info-panel dd {
  margin: 0;
  line-height: 1.65;
}

.meta-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.meta-links a,
.meta-links span,
.meta-link {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 2px 9px;
  border: 0 !important;
  border-radius: 999px;
  color: var(--portal-strong);
  background: rgba(148, 163, 184, .1);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, .14);
  text-decoration: none !important;
  text-underline-offset: 0;
  text-decoration-thickness: 0;
}

.info-panel a,
.info-panel a:visited,
.info-panel a:focus,
.info-panel a:active {
  text-decoration: none;
}

.meta-links a:hover,
.meta-link:hover {
  color: var(--accent);
  background: rgba(224, 159, 53, .12);
  box-shadow: inset 0 0 0 1px rgba(224, 159, 53, .24);
  text-decoration: none !important;
}

.meta-links span {
  color: var(--portal-strong);
}

.meta-links a:visited,
.meta-link:visited,
.meta-links a:focus,
.meta-link:focus,
.meta-links a:active,
.meta-link:active {
  text-decoration: none !important;
}

.line-block {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.line-block:first-of-type {
  border-top: 0;
}

.episode-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.episode-list a {
  min-height: 36px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--text);
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.episode-list a:hover {
  background: var(--accent);
  border-color: transparent;
  color: white;
  transform: translateY(-1px);
}

.episode-list.vertical {
  display: grid;
}

.player-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 22px;
  width: min(1320px, calc(100vw - 40px));
  margin: 32px auto 56px;
}

.player-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background: #05070b;
  border: 1px solid var(--line);
  box-shadow: var(--portal-shadow, var(--shadow));
}

.player-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.cms-video-player {
  width: 100%;
  height: 100%;
  background: #05070b;
  object-fit: contain;
}

.player-error {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(216,63,77,.92);
  color: white;
  font-weight: 700;
}

.player-toolbar {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
}

.player-toolbar button {
  min-width: 42px;
  min-height: 28px;
  padding: 5px 8px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(5,7,11,.72);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  backdrop-filter: blur(10px);
}

.player-toolbar button[data-fullscreen-toggle] {
  border-color: rgba(255,255,255,.28);
  background: linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,.08));
  color: #fff;
}

.player-message {
  top: auto;
  bottom: 18px;
  background: rgba(17,24,39,.92);
}

.player-side {
  min-width: 0;
  overflow: hidden;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--portal-soft-shadow, var(--shadow));
}

.player-side h1 {
  font-size: 24px;
}

.player-current {
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-meta-panel {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin: 12px 0 4px;
}

.player-meta-panel span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
}

.player-side-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.player-note {
  margin-top: 18px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 13px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px max(20px, calc((100vw - 1280px) / 2));
  border-top: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
}

.empty-state {
  padding: 22px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.03);
  color: var(--muted);
}

.sitemap-page {
  display: grid;
  gap: 20px;
}

.compact-map-hero {
  min-height: auto;
}

.map-action-links {
  gap: 10px;
}

.sitemap-panel {
  display: grid;
  gap: 18px;
}

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

.sitemap-link-grid a,
.sitemap-movie-list a {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.025);
}

.sitemap-link-grid a:hover,
.sitemap-movie-list a:hover {
  border-color: rgba(229,61,78,.38);
  background: rgba(229,61,78,.06);
}

.sitemap-link-grid strong,
.sitemap-movie-list strong {
  color: var(--text);
}

.sitemap-link-grid span,
.sitemap-movie-list span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.sitemap-movie-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.admin-body {
  background: #f5f7fb;
  color: #18202d;
  --bg: #f5f7fb;
  --panel: #ffffff;
  --panel-2: #edf2f8;
  --text: #18202d;
  --muted: #687385;
  --line: rgba(24,32,45,.12);
  --shadow: 0 12px 30px rgba(24,32,45,.08);
}

.admin-topbar {
  background: rgba(255,255,255,.94);
}

.admin-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
  width: min(1420px, calc(100vw - 36px));
  margin: 22px auto 56px;
}

.cms-admin-layout {
  grid-template-columns: 250px minmax(0, 1fr);
}

.admin-nav {
  position: sticky;
  top: 92px;
  align-self: start;
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.cms-side {
  max-height: calc(100vh - 116px);
  overflow: auto;
  align-content: start;
}

.nav-section {
  display: grid;
  gap: 6px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.nav-section:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.nav-section strong {
  padding: 7px 10px 2px;
  color: #8b95a7;
  font-size: 12px;
}

.admin-nav a {
  padding: 11px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 700;
}

.admin-nav a.active,
.admin-nav a:hover {
  color: var(--text);
  background: var(--panel-2);
}

.admin-panel {
  display: none;
}

.admin-panel.active {
  display: block;
}

.admin-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.admin-head h1 {
  margin: 0;
  font-size: 28px;
}

.admin-flash {
  width: min(1420px, calc(100vw - 36px));
  margin: 18px auto 0;
  padding: 12px 14px;
  border-radius: 8px;
  background: #e9f8f2;
  color: #136b50;
  border: 1px solid rgba(47,191,136,.25);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.cms-stat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-grid div,
.cache-box,
.admin-form,
.site-row,
.content-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.stat-grid div {
  padding: 20px;
}

.stat-grid strong {
  display: block;
  font-size: 30px;
}

.stat-grid span {
  color: var(--muted);
}

.ops-grid,
.content-table,
.site-edit-list {
  display: grid;
  gap: 12px;
}

.module-grid,
.info-grid,
.template-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.module-grid article,
.info-grid article,
.template-grid article {
  min-height: 142px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.module-grid small {
  display: block;
  margin-top: 10px;
  color: #7a8495;
  line-height: 1.55;
}

.module-grid b,
.info-grid strong,
.template-grid b {
  display: block;
  margin-bottom: 10px;
  font-size: 18px;
}

.module-grid span,
.info-grid p,
.template-grid span,
.admin-note {
  color: var(--muted);
  line-height: 1.65;
}

.traffic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.traffic-grid.compact {
  align-items: start;
}

.traffic-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.traffic-card-wide {
  margin-bottom: 16px;
  overflow: hidden;
}

.traffic-retention-note {
  margin: -4px 0 16px;
}

.admin-subtitle {
  margin-top: 22px;
}

.admin-list-table {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin-bottom: 18px;
}

.admin-list-table .table-head,
.admin-list-table article {
  display: grid;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-list-table .table-head {
  background: #eef2f7;
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
}

.admin-list-table article {
  background: #fff;
  color: var(--text);
  font-size: 12px;
}

.admin-list-table strong,
.admin-list-table span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-list-table a {
  color: var(--accent);
  font-weight: 900;
}

.copy-cell {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.copy-cell .copy-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-cell button {
  flex: 0 0 auto;
  min-height: 24px;
  padding: 3px 7px;
  border: 1px solid #d7dee9;
  border-radius: 999px;
  background: #f8fafc;
  color: #64748b;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.copy-cell button:hover {
  border-color: #cbd5e1;
  color: var(--accent);
}

.admin-help-strip {
  display: grid;
  gap: 7px;
  padding: 14px 16px;
  margin-bottom: 14px;
  border: 1px solid #dce5f0;
  border-radius: 8px;
  background: #f8fafc;
  color: #64748b;
  font-size: 13px;
  line-height: 1.65;
}

.admin-help-strip strong {
  color: var(--text);
  font-size: 15px;
}

.domain-list-table .table-head,
.domain-list-table article {
  grid-template-columns: minmax(170px, 1.25fr) minmax(120px, .8fr) minmax(210px, 1.35fr) minmax(88px, .55fr) minmax(70px, .42fr) minmax(210px, 1.25fr) minmax(66px, .38fr) minmax(110px, .65fr);
}

.domain-list-table .domain-copy strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.domain-pager {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin: 10px 0 18px;
  color: var(--muted);
  font-size: 13px;
}

.batch-site-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, .8fr);
  gap: 16px;
  align-items: start;
}

.batch-site-form {
  margin: 0;
}

.batch-site-form small {
  display: block;
  margin-top: 6px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.6;
}

.batch-site-guide {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.batch-site-guide strong {
  color: var(--text);
  font-size: 18px;
}

.batch-site-guide p,
.batch-site-guide li {
  color: #64748b;
  font-size: 13px;
  line-height: 1.65;
}

.batch-site-guide ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

.crawler-control-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, .8fr);
  gap: 16px;
  align-items: start;
  margin-bottom: 18px;
}

.crawler-control-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.crawler-control-form textarea {
  min-height: 112px;
}

.crawler-guide {
  margin: 0;
}

.crawler-live-blocks {
  display: grid;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.crawler-live-blocks b {
  color: var(--text);
  font-size: 13px;
}

.crawler-live-blocks form,
.inline-admin-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.inline-admin-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.crawler-live-blocks span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #64748b;
  font-size: 12px;
}

.crawler-live-blocks button,
.inline-admin-action button {
  flex: 0 0 auto;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid rgba(220, 38, 38, .22);
  border-radius: 999px;
  background: rgba(254, 226, 226, .78);
  color: #b91c1c;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.crawler-live-blocks button {
  border-color: rgba(22, 163, 74, .22);
  background: rgba(220, 252, 231, .8);
  color: #15803d;
}

.inline-admin-action.allow button {
  border-color: rgba(22, 163, 74, .22);
  background: rgba(220, 252, 231, .8);
  color: #15803d;
}

.crawler-record-card {
  margin-bottom: 16px;
}

.traffic-list-table .table-head,
.traffic-list-table article {
  grid-template-columns: 108px 82px 150px minmax(160px, 1fr) minmax(180px, 1.1fr) minmax(180px, 1.4fr) 92px 116px 82px;
}

.crawler-traffic-table .table-head,
.crawler-traffic-table article {
  grid-template-columns: 112px 90px 140px minmax(170px, .95fr) minmax(220px, 1.25fr) minmax(180px, 1.1fr) 92px 116px 122px;
}

.user-traffic-table .table-head,
.user-traffic-table article {
  grid-template-columns: 150px minmax(160px, 1fr) 68px 120px minmax(180px, 1.1fr) 86px minmax(180px, 1.4fr) minmax(120px, 1fr) 116px;
}

.like-admin-card {
  margin-bottom: 18px;
}

.like-list-table .table-head,
.like-list-table article {
  grid-template-columns: minmax(180px, 1.8fr) minmax(120px, .9fr) minmax(110px, .8fr) 116px;
}

.speed-list-table .table-head,
.speed-list-table article {
  grid-template-columns: 120px 96px 78px 86px 86px minmax(220px, 1fr) 116px;
}

.speed-check-form {
  margin: 18px 0;
}

.traffic-filter {
  margin-bottom: 18px;
}

.verify-pill {
  display: inline-flex;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef2f7;
  color: #64748b;
  font-weight: 900;
}

.verify-pill.verified {
  background: #dcfce7;
  color: #047857;
}

.verify-pill.suspect {
  background: #fee2e2;
  color: #b91c1c;
}

.verify-pill.blocked {
  background: #111827;
  color: #f8fafc;
}

.traffic-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.traffic-list li,
.traffic-table article {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.traffic-list li strong,
.traffic-table article strong {
  display: block;
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.traffic-list li span,
.traffic-table article span,
.traffic-table article small {
  display: block;
  overflow: hidden;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.traffic-list li.muted {
  color: var(--muted);
  font-size: 13px;
}

.path-list li strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

.traffic-table {
  display: grid;
  gap: 10px;
}

.not-found-page {
  padding-top: 28px;
}

.not-found-hero,
.public-good-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(225, 65, 82, 0.16), transparent 44%),
    var(--panel);
  box-shadow: var(--shadow);
}

.not-found-hero {
  display: grid;
  gap: 18px;
  min-height: 330px;
  align-content: center;
  margin-bottom: 18px;
  padding: clamp(28px, 5vw, 64px);
}

.not-found-hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.08;
}

.not-found-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.not-found-recommend {
  padding: 18px;
}

.not-found-card-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 150px));
  gap: 16px;
  align-items: start;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.not-found-card-row .movie-card {
  width: 100%;
  min-width: 120px;
}

.not-found-card-row .poster {
  aspect-ratio: 2 / 3;
  background: #05070b;
}

.not-found-card-row .poster img {
  object-fit: cover;
}

.public-good-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 24px;
  align-items: center;
  margin-bottom: 18px;
  padding: 24px;
}

.public-good-panel h2 {
  margin: 0;
  font-size: 24px;
}

.public-good-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.module-grid em,
.status-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  margin-top: 16px;
  padding: 5px 9px;
  border-radius: 8px;
  background: #eef1f6;
  color: #667085;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.module-grid em.ok,
.status-pill.ok {
  background: #e9f8f2;
  color: #136b50;
}

.module-grid em.warn,
.status-pill.warn {
  background: #fff5df;
  color: #946200;
}

.module-grid em.danger,
.status-pill.danger {
  background: #fee2e2;
  color: #b42318;
}

.info-grid article span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.api-list {
  display: grid;
  gap: 10px;
  max-width: 720px;
}

.api-list a {
  display: block;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  color: #1f5fbf;
  font-weight: 800;
  word-break: break-all;
}

.seo-principle {
  padding: 18px;
  margin-bottom: 16px;
  border: 1px solid rgba(224,159,53,.28);
  border-radius: 8px;
  background: #fff8ea;
  color: #4d3a18;
}

.seo-principle strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.seo-principle p {
  margin: 0;
  color: #6d551f;
  line-height: 1.7;
}

.site-row,
.content-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
}

.site-row span,
.content-row span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.admin-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
  margin-bottom: 18px;
}

.site-form {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.form-title,
.wide-field,
.checkbox,
.form-actions {
  grid-column: 1 / -1;
}

.form-title {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.form-title span {
  color: var(--muted);
}

.admin-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.admin-form input,
.admin-form textarea,
.admin-form select {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #18202d;
  padding: 9px 10px;
}

.admin-form textarea {
  resize: vertical;
}

.checkbox {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 10px !important;
}

.checkbox input {
  width: 18px;
  min-height: 18px;
}

.content-row img {
  width: 54px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 6px;
  flex: 0 0 auto;
}

.content-row.no-image {
  justify-content: space-between;
}

.content-row small {
  color: var(--muted);
}

.cache-box {
  padding: 20px;
  line-height: 1.7;
}

@media (max-width: 1100px) {
  .movie-grid,
  .featured-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .portal-bar {
    grid-template-columns: 1fr;
    padding: 14px 0;
  }

  .portal-actions {
    justify-content: flex-start;
  }

  .portal-hero,
  .portal-content-grid {
    grid-template-columns: 1fr;
  }

  .portal-sidebar {
    position: static;
  }

  .channel-grid,
  .poster-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .admin-form,
  .site-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .player-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .topbar,
  .admin-topbar {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    padding: 16px;
  }

  .brand {
    min-width: 0;
  }

  .portal-bar,
  .portal-nav,
  .portal-shell {
    width: min(100vw - 28px, 1360px);
  }

  .portal-top {
    position: static;
  }

  .portal-search {
    grid-template-columns: minmax(0, 1fr) 68px;
  }

  .filter-row {
    grid-template-columns: 1fr;
  }

  .filter-values {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .filter-values::-webkit-scrollbar {
    display: none;
  }

  .filter-values a {
    flex: 0 0 auto;
  }

  .hero-feature {
    min-height: 390px;
    padding: 24px;
  }

  .hero-feature h1 {
    font-size: 32px;
  }

  .channel-grid,
  .poster-row,
  .search-results,
  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero,
  .detail-hero {
    min-height: 460px;
    padding: 56px 20px 34px;
  }

  .hero h1,
  .detail-copy h1,
  .list-hero h1 {
    font-size: 34px;
  }

  .page-shell,
  .player-shell {
    width: min(100vw - 28px, 1180px);
  }

  .movie-grid,
  .featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-strip {
    grid-template-columns: 1fr;
  }

  .focus-strip {
    grid-template-columns: 1fr;
  }

  .detail-layout {
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 18px;
  }

  .detail-poster {
    width: 120px;
  }

  .info-panel dl div {
    grid-template-columns: 1fr;
  }

  .footer {
    flex-direction: column;
    padding: 20px;
  }

  .portal-footer {
    flex-direction: column;
    padding: 20px;
  }

  .footer-copy {
    flex-basis: auto;
    gap: 5px;
  }

  .footer-links {
    justify-content: flex-start;
    flex-basis: auto;
    width: 100%;
  }

  .footer-links a {
    min-height: 32px;
    padding: 0 10px;
    font-size: 12px;
  }

  .sitemap-link-grid,
  .sitemap-movie-list {
    grid-template-columns: 1fr;
  }

  .sitemap-link-grid a,
  .sitemap-movie-list a {
    padding: 13px;
  }

  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-nav {
    position: static;
    grid-template-columns: 1fr;
  }

  .cms-side {
    max-height: none;
  }

  .nav-section {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .nav-section strong {
    grid-column: 1 / -1;
  }

  .stat-grid,
  .module-grid,
  .info-grid,
  .template-grid,
  .admin-form,
  .site-form {
    grid-template-columns: 1fr;
  }
}

/* Professional front-end visual pass */
body.front.portal {
  font-size: 14px;
  line-height: 1.55;
  --portal-bg: #080a0f;
  --portal-surface: #10131a;
  --portal-surface-2: #171b24;
  --portal-card: rgba(16,19,26,.82);
  --portal-elevated: #151923;
  --portal-text: #eef2f7;
  --portal-strong: #ffffff;
  --portal-muted: #8f9aaa;
  --portal-line: rgba(255,255,255,.08);
  --portal-input: #11151d;
  --portal-pill: #171b24;
  --portal-shadow: 0 18px 52px rgba(0,0,0,.28);
  --portal-soft-shadow: 0 8px 24px rgba(0,0,0,.16);
  --bg: var(--portal-bg);
  --panel: var(--portal-surface);
  --panel-2: var(--portal-surface-2);
  --text: var(--portal-text);
  --muted: var(--portal-muted);
  --line: var(--portal-line);
  --shadow: var(--portal-shadow);
}

:root[data-portal-theme="light"] body.front.portal {
  --portal-bg: #f7f8fb;
  --portal-surface: #ffffff;
  --portal-surface-2: #f0f2f6;
  --portal-card: rgba(255,255,255,.92);
  --portal-elevated: #ffffff;
  --portal-text: #171b23;
  --portal-strong: #11151c;
  --portal-muted: #66707f;
  --portal-line: rgba(20,26,36,.10);
  --portal-input: #f2f4f7;
  --portal-pill: #ffffff;
  --portal-shadow: 0 16px 44px rgba(20,28,42,.10);
  --portal-soft-shadow: 0 8px 24px rgba(20,28,42,.08);
  --bg: var(--portal-bg);
  --panel: var(--portal-surface);
  --panel-2: var(--portal-surface-2);
  --text: var(--portal-text);
  --muted: var(--portal-muted);
  --line: var(--portal-line);
  --shadow: var(--portal-shadow);
}

body.front.portal {
  background:
    linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,0) 220px),
    var(--portal-bg);
}

:root[data-portal-theme="light"] body.front.portal {
  background: var(--portal-bg);
}

.front .portal-top {
  background: rgba(8,10,15,.94);
  box-shadow: 0 6px 22px rgba(0,0,0,.18);
}

:root[data-portal-theme="light"] .front .portal-top {
  background: rgba(255,255,255,.94);
  box-shadow: 0 6px 22px rgba(20,28,42,.07);
}

.front .portal-bar {
  min-height: 64px;
  gap: 16px;
}

.front .portal-brand {
  gap: 10px;
}

.front .portal-brand .brand-mark {
  position: relative;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(217,71,82,.95), rgba(245,169,73,.82)),
    #161b24;
  box-shadow: 0 10px 22px rgba(217,71,82,.16);
  overflow: hidden;
  color: transparent;
  font-size: 0;
  isolation: isolate;
}

.front .portal-brand .brand-mark::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 72% 18%, rgba(255,255,255,.24), transparent 28%),
    linear-gradient(135deg, rgba(255,255,255,.14), rgba(255,255,255,0) 42%);
}

.front .portal-brand .brand-mark::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 7px;
  bottom: 7px;
  width: 4px;
  z-index: 1;
  border-radius: 999px;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,.72) 0 3px,
    transparent 3px 7px
  );
  opacity: .78;
}

.front .brand-play {
  position: absolute;
  left: 16px;
  top: 11px;
  z-index: 2;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid #fff;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.28));
}

:root[data-portal-theme="light"] .front .portal-brand .brand-mark {
  border-color: rgba(20,26,36,.08);
  box-shadow: 0 10px 20px rgba(217,71,82,.12);
}

.front .portal-brand strong {
  font-size: 16px;
  font-weight: 760;
}

.front .portal-brand small {
  font-size: 11px;
  color: var(--portal-muted);
}

.front .portal-search {
  grid-template-columns: minmax(0, 1fr) 68px;
  min-height: 40px;
  border-radius: 7px;
  background: var(--portal-input);
  box-shadow: none;
}

.front .portal-search input {
  padding: 0 12px;
  font-size: 14px;
}

.front .portal-search button {
  font-size: 14px;
  font-weight: 760;
  background: #d94752;
}

.front .portal-actions {
  gap: 6px;
}

.front .portal-actions a,
.front .portal-actions .user-chip,
.front .theme-toggle {
  min-height: 32px;
  padding: 7px 10px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
}

.front .theme-toggle {
  background: transparent;
}

.front .portal-actions a:hover,
.front .portal-actions .user-chip.logged-in,
.front .theme-toggle:hover {
  transform: none;
}

.front .portal-nav {
  gap: 4px;
  padding: 0 0 10px;
}

.front .portal-nav a {
  min-height: 32px;
  padding: 7px 11px;
  border-radius: 7px;
  color: var(--portal-muted);
  font-size: 14px;
  font-weight: 650;
}

.front .portal-nav a.active,
.front .portal-nav a:hover {
  background: var(--portal-surface-2);
  color: var(--portal-strong);
  transform: none;
}

.front .nav-with-menu {
  align-items: center;
  overflow: visible;
}

.front .nav-dropdown {
  position: relative;
  z-index: 40;
}

.front .nav-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: -420px;
  right: -820px;
  height: 28px;
  pointer-events: none;
}

.front .nav-dropdown:hover::after,
.front .nav-dropdown.open::after,
.front .nav-dropdown:focus-within::after {
  pointer-events: auto;
}

.front .nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 7px 12px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--portal-muted);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}

.front .nav-dropdown-trigger span {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.front .nav-dropdown:hover .nav-dropdown-trigger,
.front .nav-dropdown:focus-within .nav-dropdown-trigger,
.front .nav-dropdown.open .nav-dropdown-trigger,
.front .nav-dropdown-trigger.active {
  background: var(--portal-surface-2);
  color: var(--portal-strong);
}

.front .nav-mega {
  position: absolute;
  top: calc(100% + 2px);
  left: 50%;
  display: grid;
  grid-template-columns: 170px minmax(380px, 1fr);
  width: min(740px, calc(100vw - 40px));
  min-height: 300px;
  border: 1px solid var(--portal-line);
  background: rgba(34,37,52,.98);
  box-shadow: 0 22px 48px rgba(0,0,0,.30);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-44%) translateY(8px);
  transition: opacity .16s ease, transform .16s ease;
}

:root[data-portal-theme="light"] .front .nav-mega {
  background: rgba(255,255,255,.98);
  box-shadow: 0 22px 46px rgba(20,28,42,.14);
}

.front .nav-dropdown:hover .nav-mega,
.front .nav-dropdown:focus-within .nav-mega,
.front .nav-dropdown.open .nav-mega {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-44%) translateY(0);
}

.front .nav-mega::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 210px;
  width: 16px;
  height: 16px;
  background: inherit;
  border-top: 1px solid var(--portal-line);
  border-left: 1px solid var(--portal-line);
  transform: rotate(45deg);
}

.front .nav-mega-main,
.front .nav-mega-genres {
  position: relative;
  z-index: 1;
  padding: 22px;
}

.front .nav-mega-main {
  display: grid;
  align-content: start;
  gap: 6px;
  border-right: 1px solid rgba(255,255,255,.06);
}

:root[data-portal-theme="light"] .front .nav-mega-main {
  border-right-color: rgba(20,26,36,.08);
}

.front .nav-mega-main a {
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 6px;
  color: rgba(238,242,247,.66);
}

:root[data-portal-theme="light"] .front .nav-mega-main a {
  color: var(--portal-muted);
}

.front .nav-mega-main a:hover,
.front .nav-mega-main a.active {
  color: #fff;
  background: rgba(255,255,255,.08);
}

:root[data-portal-theme="light"] .front .nav-mega-main a:hover,
:root[data-portal-theme="light"] .front .nav-mega-main a.active {
  color: var(--portal-strong);
  background: rgba(20,26,36,.06);
}

.front .nav-mega-genres {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 24px;
}

.front .nav-mega-genres section {
  min-width: 0;
}

.front .nav-mega-title {
  display: inline-flex;
  margin-bottom: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 760;
}

:root[data-portal-theme="light"] .front .nav-mega-title {
  color: var(--portal-strong);
}

.front .nav-mega-genres section div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 12px;
}

.front .nav-mega-genres section div a {
  min-width: 0;
  padding: 4px 0;
  overflow: hidden;
  color: rgba(238,242,247,.58);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

:root[data-portal-theme="light"] .front .nav-mega-genres section div a {
  color: var(--portal-muted);
}

.front .nav-mega-genres section div a:hover {
  color: var(--accent-2);
  background: transparent;
}

.front .portal-shell {
  padding: 18px 0 58px;
}

.front .breadcrumb {
  position: relative;
  width: min(1280px, calc(100vw - 40px));
  margin: 14px auto 12px;
  color: rgba(151,163,184,.72);
  font-size: 12px;
  line-height: 1.35;
}

.front .page-shell > .breadcrumb,
.front .portal-shell > .breadcrumb {
  width: 100%;
  margin: 0 0 14px;
}

.front .breadcrumb ol {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0 30px 0 0;
  overflow-x: auto;
  overflow-y: hidden;
  list-style: none;
  scrollbar-width: none;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

.front .breadcrumb ol::-webkit-scrollbar {
  display: none;
}

.front .breadcrumb li {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  flex: 0 0 auto;
}

.front .breadcrumb li + li::before {
  content: "";
  flex: 0 0 auto;
  width: 5px;
  height: 5px;
  margin: 0 9px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  opacity: .42;
  transform: rotate(45deg);
}

.front .breadcrumb a,
.front .breadcrumb .crumb-current {
  display: block;
  max-width: 188px;
  overflow: hidden;
  color: inherit;
  text-overflow: ellipsis;
}

.front .breadcrumb a {
  transition: color .16s ease;
}

.front .breadcrumb a:hover {
  color: var(--accent-2);
}

.front .breadcrumb .crumb-current {
  max-width: 280px;
  color: rgba(238,242,247,.88);
  font-weight: 650;
}

:root[data-portal-theme="light"] .front .breadcrumb {
  color: rgba(100,116,139,.78);
}

:root[data-portal-theme="light"] .front .breadcrumb .crumb-current {
  color: rgba(15,23,42,.82);
}

.front .detail-hero {
  position: relative;
}

.front .detail-breadcrumb {
  position: absolute;
  top: 18px;
  left: max(20px, calc((100vw - 1180px) / 2));
  right: max(20px, calc((100vw - 1180px) / 2));
  z-index: 2;
  width: auto;
  margin: 0;
  color: rgba(226,232,240,.64);
}

.front .detail-breadcrumb::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 28px;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(7,10,16,0), rgba(7,10,16,.82) 76%);
}

.front .detail-breadcrumb .crumb-current {
  color: rgba(255,255,255,.9);
}

.front .hot-searches {
  padding: 2px 0 16px;
  gap: 8px;
  font-size: 13px;
}

.front .hot-searches strong {
  font-size: 13px;
}

.front .hot-searches a {
  padding: 5px 8px;
  border-radius: 7px;
  background: transparent;
  font-size: 12px;
}

.front .hot-searches a:hover {
  background: var(--portal-surface-2);
  color: var(--portal-strong);
  transform: none;
}

.front .portal-hero {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
  gap: 12px;
  margin-bottom: 18px;
}

.front .hero-feature {
  min-height: 334px;
  padding: 26px;
  border-color: rgba(255,255,255,.07);
  box-shadow: var(--portal-shadow);
}

.front .hero-feature h1 {
  margin-bottom: 12px;
  font-size: 34px;
  line-height: 1.16;
  font-weight: 780;
  overflow-wrap: anywhere;
}

.front .hero-feature p {
  max-width: 680px;
  color: rgba(238,242,247,.84);
  font-size: 14px;
  line-height: 1.78;
}

.front .eyebrow {
  margin-bottom: 8px;
  color: var(--accent-2);
  font-size: 11px;
  font-weight: 760;
}

.front .focus-panel,
.front .rank-box,
.front .section-block,
.front .channel-cloud,
.front .info-panel,
.front .player-side {
  border-color: var(--portal-line);
  background: var(--portal-card);
  box-shadow: none;
  backdrop-filter: none;
}

.front .focus-panel,
.front .rank-box,
.front .section-block,
.front .channel-cloud {
  padding: 16px;
}

.front .section-title {
  margin-bottom: 14px;
}

.front .section-title h2 {
  font-size: 20px;
  font-weight: 760;
}

.front .compact-title h2 {
  font-size: 17px;
}

.front .section-title a,
.front .section-title span {
  font-size: 12px;
}

.front .focus-list,
.front .rank-list {
  gap: 8px;
}

.front .focus-list li {
  padding-bottom: 9px;
}

.front .focus-list a,
.front .rank-list a {
  font-size: 13px;
  font-weight: 720;
}

.front .focus-list span {
  font-size: 12px;
}

.front .channel-cloud {
  margin-bottom: 22px;
}

.front .channel-grid {
  gap: 10px;
}

.front .channel-grid a {
  min-height: 78px;
  padding: 13px;
  background: var(--portal-surface);
  box-shadow: none;
}

.front .channel-grid a:hover {
  border-color: rgba(240,178,75,.34);
  box-shadow: none;
  transform: none;
}

.front .channel-grid strong {
  font-size: 14px;
  font-weight: 760;
}

.front .channel-grid span {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.48;
}

.front .portal-content-grid {
  gap: 18px;
}

.front .poster-row {
  gap: 14px;
}

.front .portal-card h2,
.front .portal-card h3 {
  margin: 8px 0 3px;
  font-size: 14px;
  font-weight: 720;
  line-height: 1.35;
}

.front .portal-card h2 a,
.front .portal-card h3 a {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.front .portal-card p {
  overflow: hidden;
  font-size: 12px;
  color: var(--portal-muted);
  line-height: 1.42;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.front .news-grid {
  gap: 9px 18px;
}

.front .news-grid article {
  padding-bottom: 10px;
}

.front .news-grid a {
  font-size: 13px;
  font-weight: 720;
}

.front .news-grid span {
  font-size: 12px;
}

.front .rank-list li {
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 9px;
  min-height: 32px;
}

.front .rank-list li::before {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: transparent;
  color: var(--portal-muted);
  font-size: 11px;
  font-weight: 760;
  font-variant-numeric: tabular-nums;
}

.front .rank-list li:nth-child(-n+3)::before {
  background: rgba(217,71,82,.16);
  box-shadow: inset 0 0 0 1px rgba(217,71,82,.28);
  color: #ff737d;
}

.front .rank-list span {
  justify-self: end;
  min-width: 54px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(151,163,184,.74);
  font-size: 11px;
  font-weight: 660;
  line-height: 1.35;
  text-align: right;
  white-space: nowrap;
}

.front .rank-list span:not(.score-empty)::before {
  content: "评分 ";
  color: rgba(151,163,184,.48);
  font-weight: 560;
}

.front .rank-list span.score-empty {
  color: rgba(151,163,184,.56);
}

:root[data-portal-theme="light"] .front .rank-list span {
  color: rgba(71,85,105,.74);
}

:root[data-portal-theme="light"] .front .rank-list span:not(.score-empty)::before {
  color: rgba(100,116,139,.58);
}

:root[data-portal-theme="light"] .front .content-count-badge {
  border-color: rgba(15,23,42,.10);
  background: rgba(255,255,255,.78);
  color: rgba(51,65,85,.82);
  box-shadow: 0 8px 22px rgba(15,23,42,.06);
}

.front .page-shell {
  padding: 18px 0 58px;
}

.front .list-hero {
  max-width: 760px;
  padding: 6px 0 16px;
  margin-bottom: 16px;
  border-width: 0 0 1px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.front .list-hero h1 {
  margin-bottom: 8px;
  font-size: clamp(25px, 2.2vw, 34px);
  line-height: 1.2;
  font-weight: 760;
  overflow-wrap: anywhere;
}

.front .list-hero p {
  max-width: 560px;
  font-size: 14px;
  line-height: 1.65;
}

.front .hero-actions,
.front .form-actions {
  gap: 10px;
  margin-top: 18px;
}

.front .detail-actions {
  gap: 8px;
  margin-top: 4px;
}

.front .primary-btn,
.front .ghost-btn,
.front .disabled-action {
  min-height: 36px;
  padding: 8px 13px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 720;
  box-shadow: none;
}

.front .primary-btn {
  background: #d94752;
}

.front .content-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  max-width: min(100%, 320px);
  min-height: 34px;
  padding: 7px 11px 7px 9px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 8px;
  background: rgba(255,255,255,.045);
  color: rgba(226,232,240,.78);
  font-size: 13px;
  font-weight: 760;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}

.front .content-count-badge span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.front .count-icon {
  position: relative;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border-radius: 7px;
  background: linear-gradient(135deg, rgba(217,71,82,.95), rgba(240,178,75,.92));
  box-shadow: 0 8px 18px rgba(217,71,82,.22);
}

.front .count-icon::before,
.front .count-icon::after {
  content: "";
  position: absolute;
  inset: 6px 5px;
  border: 2px solid rgba(255,255,255,.92);
  border-top: 0;
  border-radius: 0 0 5px 5px;
}

.front .count-icon::after {
  inset: 5px 8px auto 8px;
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
}

.front .count-icon.search {
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(70,176,217,.95), rgba(47,191,136,.9));
}

.front .count-icon.search::before {
  inset: 5px;
  border: 2px solid rgba(255,255,255,.92);
  border-radius: 999px;
  background: transparent;
}

.front .count-icon.search::after {
  inset: auto 4px 4px auto;
  width: 7px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  transform: rotate(45deg);
}

.front .primary-btn:hover,
.front .ghost-btn:hover {
  transform: none;
}

.front .filter-panel {
  gap: 10px;
  margin: 0 0 24px;
  padding: 14px;
  border-color: var(--portal-line);
  background: var(--portal-card);
  box-shadow: none;
}

.front .filter-row {
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
}

.front .filter-row strong {
  min-height: 30px;
  color: var(--portal-muted);
  font-size: 12px;
  font-weight: 720;
}

.front .filter-values {
  gap: 8px 18px;
}

.front .filter-values a {
  min-height: 30px;
  padding: 6px 8px;
  border-radius: 7px;
  background: transparent;
  color: var(--portal-muted);
  font-size: 12px;
  font-weight: 650;
}

.front .filter-values a.active,
.front .filter-values a:hover {
  background: rgba(217,71,82,.94);
  color: #fff;
}

.front .filter-panel {
  gap: 14px;
  padding: 18px 20px;
}

.front .filter-row {
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 16px;
}

.front .filter-row strong {
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 6px;
  background: rgba(217,71,82,.94);
  color: #fff;
  font-size: 12px;
  font-weight: 760;
  white-space: nowrap;
}

.front .movie-grid {
  grid-template-columns: repeat(auto-fill, minmax(156px, 1fr));
  gap: 18px 16px;
}

.front .movie-card {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: none;
}

.front .movie-card:hover {
  border-color: transparent;
  box-shadow: none;
  transform: none;
}

.front .poster {
  border-radius: 7px;
  border-color: rgba(255,255,255,.10);
  background: var(--portal-surface-2);
  box-shadow: none;
}

:root[data-portal-theme="light"] .front .poster {
  border-color: rgba(20,26,36,.10);
}

.front .poster::after {
  inset: 58% 0 0;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.38));
}

.front .poster:hover img {
  transform: scale(1.025);
}

.front .poster span {
  right: 7px;
  top: 7px;
  min-width: auto;
  padding: 3px 6px;
  border-radius: 6px;
  background: rgba(0,0,0,.66);
  color: #ffe5a1;
  font-size: 11px;
  font-weight: 760;
}

.front .movie-title {
  margin-top: 8px;
  color: var(--portal-text);
  font-size: 14px;
  font-weight: 720;
  line-height: 1.38;
}

.front .movie-card p {
  margin: 4px 0 0;
  color: var(--portal-muted);
  font-size: 12px;
  line-height: 1.45;
  -webkit-line-clamp: 1;
}

.front .movie-card small {
  display: none;
}

.front .pager {
  flex-wrap: wrap;
  margin-top: 28px;
  gap: 8px;
  font-size: 13px;
}

.front .pager a,
.front .pager span,
.front .pager strong {
  min-height: 34px;
  padding: 7px 11px;
  border-radius: 7px;
  background: transparent;
  box-shadow: none;
}

.front .pager a:hover {
  background: #d94752;
}

.front .page-jump {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 4px 6px 4px 10px;
  border: 1px solid var(--portal-line);
  border-radius: 7px;
  background: rgba(255,255,255,.035);
  color: var(--portal-muted);
}

.front .page-jump label {
  font-size: 12px;
  white-space: nowrap;
}

.front .page-jump input {
  width: 58px;
  height: 26px;
  border: 1px solid var(--portal-line);
  border-radius: 6px;
  background: var(--portal-surface);
  color: var(--portal-strong);
  font: inherit;
  font-size: 12px;
  text-align: center;
}

.front .page-jump button {
  height: 26px;
  padding: 0 9px;
  border: 0;
  border-radius: 6px;
  background: rgba(217,71,82,.92);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 720;
}

.front .hero-feature h1,
.front .detail-copy h1,
.front .list-hero h1,
.front .movie-title,
.front .portal-card h2 a,
.front .portal-card h3 a,
.front .focus-list a,
.front .rank-list a,
.front .news-grid a {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
}

.front .hero-feature h1,
.front .detail-copy h1,
.front .list-hero h1 {
  -webkit-line-clamp: 2;
}

.front .movie-title,
.front .portal-card h2 a,
.front .portal-card h3 a,
.front .focus-list a,
.front .rank-list a,
.front .news-grid a {
  -webkit-line-clamp: 2;
}

.front .hero-feature p,
.front .detail-copy p,
.front .list-hero p,
.front .comment-item p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
}

.front .hero-feature p {
  -webkit-line-clamp: 3;
}

.front .detail-copy p,
.front .list-hero p {
  -webkit-line-clamp: 4;
}

.front .comment-item p {
  -webkit-line-clamp: 5;
}

.front .eyebrow,
.front .focus-list span,
.front .news-grid span,
.front .movie-card p,
.front .portal-card p,
.front .rank-list span,
.front .section-title > span,
.front .section-title a {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.front .filter-values a,
.front .sort-tabs a,
.front .channel-genre-tabs a {
  max-width: 138px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.front .detail-hero {
  min-height: 470px;
  padding: 78px 32px 44px;
  box-shadow: inset 0 -72px 78px rgba(0,0,0,.42);
}

.front .detail-layout {
  grid-template-columns: 190px minmax(0, 760px);
  gap: 28px;
}

.front .detail-poster {
  width: 190px;
  border-radius: 7px;
  box-shadow: 0 18px 42px rgba(0,0,0,.28);
}

.front .detail-copy h1 {
  margin-bottom: 12px;
  font-size: 36px;
  line-height: 1.16;
  font-weight: 780;
  overflow-wrap: anywhere;
}

.front .detail-copy p {
  font-size: 14px;
  line-height: 1.78;
}

.front .facts {
  gap: 8px;
  margin-top: 16px;
}

.front .facts span {
  padding: 6px 9px;
  border-radius: 7px;
  font-size: 12px;
  backdrop-filter: none;
}

.front .detail-main {
  gap: 20px;
}

.front .info-panel {
  padding: 20px;
}

.front .info-panel h2,
.front .section-head h2 {
  font-size: 20px;
  font-weight: 760;
}

.front .synopsis-panel p,
.front .info-panel dd {
  font-size: 14px;
}

.front .episode-list {
  gap: 8px;
}

.front .episode-list a {
  min-height: 32px;
  padding: 7px 10px;
  border-radius: 7px;
  font-size: 12px;
}

.front .player-shell {
  gap: 20px;
  margin-top: 26px;
}

.front .player-frame {
  border-radius: 7px;
  box-shadow: var(--portal-shadow);
}

.front .player-side h1 {
  font-size: 22px;
  line-height: 1.25;
}

.front .episode-panel .section-title {
  margin-bottom: 14px;
}

.front .line-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.front .line-head strong {
  min-width: 0;
  color: var(--portal-strong);
  font-size: 15px;
  font-weight: 760;
}

.front .line-head span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
}

.front .episode-groups {
  display: grid;
  gap: 10px;
}

.front .episode-groups.compact {
  gap: 8px;
}

.front .episode-group,
.front .player-line-group {
  --line-color: rgba(217,71,82,.85);
  border: 1px solid var(--portal-line);
  border-radius: 8px;
  background: rgba(255,255,255,.025);
  overflow: clip;
}

.front .player-line-group:nth-child(2n) {
  --line-color: rgba(47,191,136,.82);
}

.front .player-line-group:nth-child(3n) {
  --line-color: rgba(70,176,217,.82);
}

.front .player-line-group:nth-child(4n) {
  --line-color: rgba(240,178,75,.86);
}

.front .player-line-group[open] {
  border-color: color-mix(in srgb, var(--line-color) 48%, var(--portal-line));
  background: linear-gradient(90deg, color-mix(in srgb, var(--line-color) 13%, transparent), rgba(255,255,255,.026));
}

.front .episode-group summary,
.front .player-line-group > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
  padding: 10px 12px;
  color: var(--portal-strong);
  cursor: pointer;
  user-select: none;
  list-style: none;
}

.front .player-line-group > summary {
  border-left: 3px solid var(--line-color);
}

.front .episode-group summary::-webkit-details-marker,
.front .player-line-group > summary::-webkit-details-marker {
  display: none;
}

.front .episode-group summary::after,
.front .player-line-group > summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--muted);
  font-weight: 700;
}

.front .episode-group[open] summary::after,
.front .player-line-group[open] > summary::after {
  content: "-";
}

.front .episode-group summary span,
.front .player-line-group > summary span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.front .episode-group summary small,
.front .player-line-group > summary small {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.front .episode-group .episode-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0 12px 12px;
}

.front .episode-list.vertical {
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
}

.front .episode-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-width: 0;
  min-height: 34px;
  padding: 7px 8px;
  text-align: center;
  font-weight: 650;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.front .episode-list a.active {
  border-color: transparent;
  background: var(--accent);
  color: white;
  font-weight: 760;
}

body.front .download-panel {
  overflow: hidden;
}

body.front .download-panel .download-title {
  align-items: baseline;
  border-bottom: 1px solid var(--portal-line);
  padding-bottom: 10px;
}

body.front .download-panel .download-title span {
  color: #ff4f9a;
  font-size: 15px;
  font-weight: 900;
}

body.front .download-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0 12px 12px;
}

body.front .download-row {
  display: grid;
  grid-template-columns: 34px minmax(74px, 112px) minmax(150px, 1fr) minmax(220px, 300px);
  align-items: center;
  gap: 10px;
  min-width: 0;
}

body.front .download-check {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  cursor: pointer;
}

body.front .download-check input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

body.front .download-check span {
  width: 18px;
  height: 18px;
  border: 2px solid color-mix(in srgb, var(--portal-muted) 58%, transparent);
  border-radius: 5px;
  background: color-mix(in srgb, var(--portal-panel) 80%, transparent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}

body.front .download-check input:checked + span {
  border-color: rgba(99, 231, 143, .92);
  background: linear-gradient(135deg, #31df72, #a7f3c1);
}

body.front .download-check input:checked + span::after {
  content: "";
  display: block;
  width: 8px;
  height: 4px;
  margin: 4px 0 0 3px;
  border-left: 2px solid #062113;
  border-bottom: 2px solid #062113;
  transform: rotate(-45deg);
}

body.front .download-episode,
body.front .download-mask,
body.front .download-action {
  min-width: 0;
  min-height: 38px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}

body.front .download-episode,
body.front .download-mask {
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.front .download-episode {
  color: var(--portal-strong);
}

body.front .download-mask {
  padding: 0 12px;
  border: 1px solid color-mix(in srgb, var(--portal-line) 78%, rgba(255,255,255,.16));
  color: color-mix(in srgb, var(--portal-strong) 88%, transparent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 760;
  background:
    linear-gradient(90deg, rgba(36, 93, 112, .44), rgba(255, 79, 154, .22)),
    color-mix(in srgb, var(--portal-panel) 76%, transparent);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 10px 28px rgba(0,0,0,.16);
  background-clip: padding-box;
}

body.front .download-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  min-width: 0;
}

body.front .download-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(107, 226, 151, .28);
  padding: 0 12px;
  color: #082214;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(21, 180, 91, .13);
}

body.front .download-thunder {
  background:
    linear-gradient(135deg, rgba(36, 224, 98, .96), rgba(164, 246, 188, .96)),
    #54e882;
}

body.front .download-copy {
  background:
    linear-gradient(135deg, rgba(230, 255, 236, .96), rgba(126, 228, 169, .94)),
    #c8f7d5;
}

body.front .download-copy.is-copied {
  background: linear-gradient(135deg, #35d77b, #86efac);
  color: #062113;
}

body.front .download-bulk {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
  padding: 10px 0 0;
  border-top: 1px solid color-mix(in srgb, var(--portal-line) 70%, transparent);
}

body.front .download-bulk-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid rgba(107, 226, 151, .3);
  border-radius: 8px;
  padding: 0 16px;
  color: #082214;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(21, 180, 91, .12);
}

body.front .download-bulk-select,
body.front .download-bulk-download {
  background:
    linear-gradient(135deg, rgba(36, 224, 98, .96), rgba(164, 246, 188, .96)),
    #54e882;
}

body.front .download-bulk-copy {
  background:
    linear-gradient(135deg, rgba(230, 255, 236, .98), rgba(126, 228, 169, .95)),
    #c8f7d5;
}

body.front .download-bulk-copy.is-copied {
  background: linear-gradient(135deg, #35d77b, #86efac);
}

body.front .download-bulk-hint {
  color: color-mix(in srgb, var(--portal-muted) 84%, transparent);
  font-size: 12px;
  font-weight: 800;
}

:root[data-portal-theme="light"] body.front .download-mask {
  border-color: rgba(101, 176, 137, .28);
  color: #173427;
  background:
    linear-gradient(90deg, rgba(184, 236, 221, .74), rgba(255, 219, 234, .62)),
    rgba(255, 255, 255, .62);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.72),
    0 10px 24px rgba(52, 132, 92, .12);
}

:root[data-portal-theme="light"] body.front .download-check span {
  border-color: rgba(104, 148, 126, .42);
  background: rgba(255,255,255,.82);
}

:root[data-portal-theme="light"] body.front .download-bulk {
  border-top-color: rgba(86, 142, 111, .18);
}

@media (max-width: 720px) {
  body.front .download-panel .download-title {
    padding-bottom: 8px;
  }

  body.front .download-panel .download-title span {
    font-size: 13px;
  }

  body.front .download-list {
    gap: 8px;
    padding: 0 10px 10px;
  }

  body.front .download-row {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 7px;
    padding: 10px;
    border: 1px solid var(--portal-line);
    border-radius: 9px;
    background: color-mix(in srgb, var(--portal-panel) 68%, transparent);
  }

  body.front .download-check {
    width: 28px;
    height: 30px;
  }

  body.front .download-episode,
  body.front .download-mask,
  body.front .download-action {
    min-height: 34px;
    font-size: 12px;
  }

  body.front .download-mask {
    grid-column: 1 / -1;
    padding: 0 10px;
    font-size: 11px;
  }

  body.front .download-actions {
    grid-column: 1 / -1;
  }

  body.front .download-bulk {
    gap: 8px;
    padding-top: 8px;
  }

  body.front .download-bulk-action {
    flex: 1 1 128px;
    min-height: 36px;
    padding: 0 10px;
    font-size: 12px;
  }

  body.front .download-bulk-hint {
    flex: 1 1 100%;
    font-size: 11px;
  }
}

/* Stream template v2: independent layout, not a color-only skin. */
.stream-template {
  --stream-bg: #090b15;
  --stream-panel: rgba(16, 20, 34, .92);
  --stream-panel-2: rgba(22, 27, 45, .88);
  --stream-card: #151a2b;
  --stream-text: #f7f9ff;
  --stream-strong: #ffffff;
  --stream-muted: #a7b0c2;
  --stream-line: rgba(255,255,255,.11);
  --stream-soft: rgba(255,255,255,.065);
  --stream-accent: #ff4f9a;
  --stream-accent-2: #39d9ff;
  --stream-glow: 0 26px 70px rgba(0,0,0,.34);
  color: var(--stream-text);
  background:
    radial-gradient(circle at 12% 0, rgba(57,217,255,.13), transparent 32vw),
    radial-gradient(circle at 88% 8%, rgba(255,79,154,.14), transparent 28vw),
    linear-gradient(180deg, #090b15 0, #0e1220 48%, #090b15 100%);
}

:root[data-portal-theme="light"] .stream-template {
  --stream-bg: #f7f8fc;
  --stream-panel: rgba(255,255,255,.96);
  --stream-panel-2: rgba(255,255,255,.9);
  --stream-card: #ffffff;
  --stream-text: #182033;
  --stream-strong: #0f172a;
  --stream-muted: #5d6880;
  --stream-line: rgba(15,23,42,.12);
  --stream-soft: rgba(15,23,42,.045);
  --stream-glow: 0 22px 52px rgba(31,41,55,.11);
  background:
    radial-gradient(circle at 10% 0, rgba(57,217,255,.14), transparent 32vw),
    radial-gradient(circle at 88% 8%, rgba(255,79,154,.12), transparent 26vw),
    linear-gradient(180deg, #fbfcff 0, #f1f4fa 48%, #f8f9fd 100%);
}

.stream-template a {
  color: inherit;
  text-decoration: none;
}

.stream-shell {
  width: min(1720px, calc(100vw - 56px));
  margin: 0 auto;
  padding: 22px 0 56px;
}

.stream-top {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--stream-line);
  background: rgba(9, 11, 21, .86);
  backdrop-filter: blur(18px);
}

:root[data-portal-theme="light"] .stream-top {
  background: rgba(255,255,255,.9);
}

.stream-head {
  width: min(1720px, calc(100vw - 56px));
  min-height: 72px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(220px, 310px) minmax(360px, 620px) auto;
  align-items: center;
  gap: 18px;
}

.stream-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.stream-logo {
  width: 46px;
  height: 46px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(255,79,154,.28), rgba(57,217,255,.22));
  box-shadow: 0 16px 38px rgba(255,79,154,.22);
}

.stream-brand strong {
  display: block;
  color: var(--stream-strong);
  font-size: 22px;
  line-height: 1.05;
  letter-spacing: 0;
}

.stream-brand small {
  display: block;
  margin-top: 4px;
  color: var(--stream-muted);
  font-size: 12px;
}

.stream-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 46px;
  border: 1px solid var(--stream-line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--stream-soft);
}

.stream-search input {
  min-width: 0;
  height: 46px;
  border: 0;
  outline: 0;
  padding: 0 18px;
  color: var(--stream-text);
  background: transparent;
  font: inherit;
}

.stream-search input::placeholder {
  color: var(--stream-muted);
}

.stream-search button,
.stream-template .primary-btn {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  padding: 0 22px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--stream-accent), #ff7ab8);
  box-shadow: 0 14px 32px rgba(255,79,154,.28);
}

.stream-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.stream-actions .theme-toggle,
.stream-actions .user-chip,
.stream-template .ghost-btn,
.stream-template .like-button {
  border: 1px solid var(--stream-line);
  background: var(--stream-soft);
  color: var(--stream-text);
}

.stream-nav {
  width: min(1720px, calc(100vw - 56px));
  min-height: 48px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.stream-nav a {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--stream-muted);
  font-size: 15px;
  font-weight: 900;
  padding: 13px 0 15px;
}

.stream-nav .nav-symbol {
  font-size: 16px;
  line-height: 1;
}

.stream-nav .nav-text {
  line-height: 1;
}

.stream-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 7px;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--stream-accent), var(--stream-accent-2));
  opacity: 0;
  transform: scaleX(.35);
  transition: opacity .16s ease, transform .16s ease;
}

.stream-nav a.active,
.stream-nav a:hover {
  color: var(--stream-strong);
}

.stream-nav a.active::after,
.stream-nav a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.stream-ticker {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--stream-line);
}

.stream-ticker strong {
  color: var(--stream-strong);
  white-space: nowrap;
}

.stream-ticker div {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.stream-ticker a {
  flex: 0 0 auto;
  max-width: 168px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--stream-line);
  border-radius: 999px;
  padding: 0 13px;
  color: var(--stream-muted);
  background: var(--stream-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stream-prime {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
  align-items: stretch;
}

.stream-prime-card,
.stream-error-hero {
  min-height: 430px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--stream-line);
  border-radius: 28px;
  background:
    linear-gradient(90deg, rgba(9,11,21,.96), rgba(9,11,21,.72) 44%, rgba(9,11,21,.22)),
    linear-gradient(0deg, rgba(9,11,21,.86), transparent 58%),
    var(--stream-backdrop);
  background-size: cover;
  background-position: center;
  box-shadow: var(--stream-glow);
}

.stream-prime-copy {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 98px 46px 42px;
}

.stream-kicker {
  margin: 0 0 12px;
  color: #ffbd5f;
  font-size: 13px;
  font-weight: 900;
}

.stream-prime h1,
.stream-detail-copy h1,
.stream-catalog-brief h1,
.stream-error-hero h1 {
  margin: 0;
  color: var(--stream-strong);
  letter-spacing: 0;
  line-height: 1.1;
}

.stream-prime h1 {
  font-size: clamp(34px, 4.2vw, 60px);
}

.stream-prime p,
.stream-detail-copy > p,
.stream-error-hero > p {
  color: rgba(247,249,255,.86);
  line-height: 1.75;
}

:root[data-portal-theme="light"] .stream-prime-card,
:root[data-portal-theme="light"] .stream-error-hero {
  background:
    linear-gradient(90deg, rgba(15,23,42,.84), rgba(15,23,42,.48) 45%, rgba(15,23,42,.12)),
    linear-gradient(0deg, rgba(15,23,42,.65), transparent 58%),
    var(--stream-backdrop);
}

.stream-cta,
.stream-detail-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.stream-template .primary-btn,
.stream-template .ghost-btn,
.stream-template .disabled-action {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  padding: 0 22px;
  font-weight: 900;
}

.stream-side-stack,
.stream-info-card,
.stream-channel-map,
.stream-showcase,
.stream-lane,
.stream-rank-card,
.stream-latest,
.stream-filter-deck,
.stream-result-panel,
.stream-category-board,
.stream-public-note {
  border: 1px solid var(--stream-line);
  border-radius: 22px;
  background: var(--stream-panel);
  box-shadow: var(--stream-glow);
}

.stream-side-stack {
  padding: 22px;
  display: grid;
  gap: 13px;
  align-content: start;
}

.stream-block-title,
.stream-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.stream-block-title strong,
.stream-section-head h2 {
  color: var(--stream-strong);
}

.stream-block-title span,
.stream-section-head a,
.stream-section-head nav a {
  color: var(--stream-muted);
}

.stream-mini-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.stream-mini-card img {
  width: 58px;
  aspect-ratio: 2 / 3;
  border-radius: 10px;
  object-fit: cover;
  background: var(--stream-soft);
}

.stream-mini-card b,
.stream-mini-card small {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.stream-mini-card b {
  color: var(--stream-strong);
}

.stream-mini-card small {
  margin-top: 5px;
  color: var(--stream-muted);
}

.stream-showcase,
.stream-channel-map,
.stream-lane,
.stream-latest,
.stream-info-card,
.stream-filter-deck,
.stream-result-panel,
.stream-category-board,
.stream-public-note {
  margin-top: 22px;
  padding: 24px;
}

.stream-poster-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(154px, 188px);
  gap: 18px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  scrollbar-width: thin;
}

.stream-poster-rail.small {
  grid-auto-columns: minmax(142px, 168px);
}

.stream-detail-related {
  grid-auto-flow: row;
  grid-auto-columns: initial;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: clamp(12px, 1vw, 18px);
  align-items: start;
  overflow: visible;
  padding: 2px 0 0;
}

.stream-poster-rail.tiny {
  grid-auto-columns: minmax(118px, 142px);
}

.stream-poster-card {
  min-width: 0;
}

.stream-poster-card > a {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border: 1px solid var(--stream-line);
  border-radius: 16px;
  background: var(--stream-soft);
}

.stream-poster-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.stream-poster-card > a span {
  position: absolute;
  top: 8px;
  right: 8px;
  max-width: 72%;
  border-radius: 999px;
  padding: 3px 8px;
  color: #fff2b6;
  background: rgba(0,0,0,.58);
  font-size: 12px;
  font-weight: 900;
}

.stream-poster-card h3 {
  margin: 10px 0 4px;
  color: var(--stream-strong);
  font-size: 15px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.stream-poster-card p {
  margin: 0;
  color: var(--stream-muted);
  font-size: 13px;
  line-height: 1.45;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.stream-channel-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.stream-channel-grid a {
  min-height: 86px;
  display: grid;
  gap: 6px;
  align-content: start;
  border: 1px solid var(--stream-line);
  border-radius: 16px;
  padding: 14px;
  background: var(--stream-soft);
}

.stream-channel-grid strong {
  color: var(--stream-strong);
}

.stream-channel-grid span {
  color: var(--stream-muted);
  font-size: 13px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.stream-rank-dock {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.stream-rank-card {
  padding: 20px;
}

.stream-rank-card ol,
.stream-category-board ol {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  counter-reset: rank;
}

.stream-rank-card li,
.stream-category-board li {
  counter-increment: rank;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--stream-line);
}

.stream-rank-card li::before,
.stream-category-board li::before {
  content: counter(rank);
  color: var(--stream-muted);
  font-weight: 900;
}

.stream-rank-card li:nth-child(-n+3)::before,
.stream-category-board li:nth-child(-n+3)::before {
  color: var(--stream-accent);
}

.stream-rank-card li a,
.stream-category-board li a {
  min-width: 0;
  color: var(--stream-strong);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.stream-rank-card li span,
.stream-category-board li span {
  color: #ffbd5f;
  font-size: 13px;
  font-weight: 900;
}

.stream-news-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stream-news-grid article {
  min-width: 0;
  border: 1px solid var(--stream-line);
  border-radius: 14px;
  padding: 14px;
  background: var(--stream-soft);
}

.stream-news-grid a,
.stream-news-grid span {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.stream-news-grid a {
  color: var(--stream-strong);
  font-weight: 900;
}

.stream-news-grid span {
  margin-top: 6px;
  color: var(--stream-muted);
}

.stream-breadcrumb {
  margin: 0 0 18px;
}

.stream-catalog-brief {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  padding: 8px 0 18px;
  border-bottom: 1px solid var(--stream-line);
}

.stream-catalog-brief h1 {
  font-size: clamp(28px, 3vw, 42px);
}

.stream-catalog-brief p {
  max-width: 720px;
  color: var(--stream-muted);
}

.stream-count-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--stream-line);
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--stream-muted);
  background: var(--stream-soft);
  font-weight: 900;
}

.stream-filter-deck {
  display: grid;
  gap: 10px;
}

.stream-more-filters,
.stream-more-filter-body {
  display: contents;
}

.stream-more-filters summary {
  display: none;
}

.stream-filter-line {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
}

.stream-filter-line strong {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  color: var(--stream-muted);
}

.stream-filter-line div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stream-filter-line a,
.stream-sortline a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--stream-line);
  border-radius: 999px;
  padding: 0 12px;
  color: var(--stream-muted);
  background: var(--stream-soft);
  font-weight: 800;
}

.stream-filter-line a.active,
.stream-sortline a.active,
.stream-filter-line a:hover,
.stream-sortline a:hover {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, var(--stream-accent), var(--stream-accent-2));
}

.stream-sortline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin: 18px 0;
}

.stream-sortline nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stream-sortline span {
  color: var(--stream-muted);
  white-space: nowrap;
}

.stream-catalog-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 20px;
  align-items: start;
}

.stream-card-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px 18px;
}

.stream-category-board {
  position: sticky;
  top: 140px;
}

.stream-detail-stage {
  position: relative;
  border-bottom: 1px solid var(--stream-line);
  background:
    linear-gradient(90deg, rgba(9,11,21,.95), rgba(9,11,21,.78) 52%, rgba(9,11,21,.42)),
    linear-gradient(0deg, var(--stream-bg), transparent 62%),
    var(--stream-backdrop);
  background-size: cover;
  background-position: center;
}

.stream-detail-stage .stream-breadcrumb {
  width: min(1720px, calc(100vw - 56px));
  margin: 0 auto;
  padding-top: 20px;
}

.stream-detail-inner {
  width: min(1720px, calc(100vw - 56px));
  min-height: 500px;
  margin: 0 auto;
  padding: 48px 0 62px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 42px;
  align-items: center;
}

.stream-detail-copy h1 {
  max-width: 880px;
  font-size: clamp(34px, 4vw, 58px);
}

.stream-detail-copy > p {
  max-width: 960px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.stream-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.stream-facts span {
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 12px;
  padding: 8px 12px;
  color: rgba(255,255,255,.9);
  background: rgba(0,0,0,.22);
}

.stream-detail-poster {
  margin: 0;
}

.stream-detail-poster img {
  width: 250px;
  aspect-ratio: 2 / 3;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 26px 64px rgba(0,0,0,.42);
}

.stream-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  gap: 20px;
  align-items: start;
}

.stream-synopsis,
.stream-comment-card,
.stream-episode-card {
  grid-column: 1 / -1;
}

.stream-synopsis summary.stream-block-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  list-style: none;
  align-items: start;
  gap: 16px;
  cursor: pointer;
  user-select: none;
}

.stream-synopsis summary.stream-block-title::-webkit-details-marker {
  display: none;
}

.stream-synopsis summary.stream-block-title em {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--stream-line);
  border-radius: 999px;
  color: var(--stream-muted);
  background: var(--stream-soft);
  font-style: normal;
  font-size: 13px;
  font-weight: 850;
}

.stream-synopsis summary.stream-block-title em::before {
  content: "展开剧情";
}

.stream-synopsis[open] summary.stream-block-title em::before {
  content: "收起剧情";
}

.stream-synopsis .synopsis-summary-copy {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.stream-synopsis .synopsis-summary-copy small {
  display: -webkit-box;
  color: var(--stream-muted);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.65;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.stream-synopsis[open] .synopsis-summary-copy small {
  display: none;
}

.stream-synopsis .synopsis-body {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.stream-synopsis:not([open]) .synopsis-body {
  display: none;
}

.stream-synopsis .synopsis-body > p {
  margin: 0;
}

.stream-info-card dl {
  display: grid;
  gap: 14px;
  margin: 18px 0 0;
}

.stream-info-card dl div {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
}

.stream-info-card dt {
  color: var(--stream-muted);
  font-weight: 900;
}

.stream-info-card dd {
  margin: 0;
}

.stream-template .meta-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stream-template .meta-links a,
.stream-template .meta-links span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border: 1px solid var(--stream-line);
  border-radius: 999px;
  padding: 0 10px;
  color: var(--stream-text);
  background: var(--stream-soft);
  text-decoration: none;
}

.stream-template .meta-links a:hover {
  border-color: var(--stream-accent);
  color: var(--stream-accent);
}

.stream-error-main {
  max-width: 1280px;
}

.stream-error-hero {
  min-height: 320px;
  padding: 64px;
}

.stream-public-note {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

@media (max-width: 1220px) {
  .stream-prime,
  .stream-catalog-grid,
  .stream-detail-grid {
    grid-template-columns: 1fr;
  }

  .stream-category-board {
    position: static;
  }

  .stream-card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .stream-channel-grid,
  .stream-news-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .stream-shell {
    width: calc(100vw - 28px);
    padding: 14px 0 38px;
  }

  .stream-head {
    width: calc(100vw - 28px);
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 12px 0;
  }

  .stream-brand small {
    display: none;
  }

  .stream-brand strong {
    font-size: 20px;
  }

  .stream-logo {
    width: 42px;
    height: 42px;
    border-radius: 15px;
  }

  .stream-search {
    grid-column: 1 / -1;
    order: 3;
    min-height: 44px;
    border-radius: 14px;
  }

  .stream-search input {
    height: 44px;
    padding: 0 14px;
  }

  .stream-search button {
    min-height: 44px;
    border-radius: 12px;
    padding: 0 18px;
  }

  .stream-actions {
    gap: 6px;
  }

  .stream-actions .theme-toggle {
    min-width: 108px;
    min-height: 38px;
    padding: 0 8px;
    border-radius: 999px;
  }

  .stream-actions .user-chip {
    min-height: 38px;
    padding: 0 10px;
    border-radius: 12px;
  }

  .stream-nav {
    width: 100%;
    gap: 22px;
    padding: 0 14px 8px;
  }

  .stream-ticker {
    grid-template-columns: 1fr;
    gap: 8px;
    margin: 0 -14px 14px;
    padding: 10px 14px 12px;
  }

  .stream-ticker div {
    padding-bottom: 4px;
  }

  .stream-prime {
    grid-template-columns: 1fr;
  }

  .stream-prime-card {
    min-height: 344px;
    border-radius: 22px;
    background:
      linear-gradient(90deg, rgba(9,11,21,.96), rgba(9,11,21,.76)),
      linear-gradient(0deg, rgba(9,11,21,.9), transparent 58%),
      var(--stream-backdrop);
    background-size: cover;
    background-position: center;
  }

  .stream-prime-copy {
    padding: 62px 20px 28px;
  }

  .stream-prime h1 {
    font-size: 31px;
  }

  .stream-prime p {
    display: -webkit-box;
    max-height: 100px;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.6;
  }

  .stream-cta,
  .stream-detail-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .stream-template .primary-btn,
  .stream-template .ghost-btn,
  .stream-template .like-button,
  .stream-template .disabled-action {
    min-height: 42px;
    padding: 0 10px;
    border-radius: 12px;
    font-size: 13px;
  }

  .stream-side-stack {
    display: none;
  }

  .stream-showcase,
  .stream-channel-map,
  .stream-lane,
  .stream-latest,
  .stream-info-card,
  .stream-filter-deck,
  .stream-result-panel,
  .stream-category-board,
  .stream-public-note {
    margin-top: 16px;
    padding: 16px;
    border-radius: 18px;
  }

  .stream-section-head {
    align-items: flex-end;
  }

  .stream-section-head h2 {
    font-size: 22px;
  }

  .stream-section-head nav {
    display: flex;
    max-width: 62vw;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .stream-poster-rail {
    grid-auto-columns: minmax(128px, 42vw);
    gap: 12px;
    margin: 0 -16px;
    padding: 0 16px 8px;
  }

  .stream-poster-rail.small,
  .stream-poster-rail.tiny {
    grid-auto-columns: minmax(118px, 38vw);
  }

  .stream-detail-related {
    grid-auto-flow: column;
    grid-auto-columns: clamp(106px, calc((100vw - 56px) / 3), 148px);
    grid-template-columns: none;
    grid-template-rows: repeat(2, auto);
    gap: 12px;
    margin: 0 -16px;
    padding: 0 16px 8px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .stream-detail-related::-webkit-scrollbar {
    display: none;
  }

  .stream-channel-grid {
    display: flex;
    gap: 10px;
    margin: 0 -16px;
    padding: 0 16px 6px;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .stream-channel-grid a {
    flex: 0 0 132px;
    min-height: 64px;
    padding: 12px;
  }

  .stream-channel-grid span {
    display: none;
  }

  .stream-rank-dock {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .stream-news-grid {
    grid-template-columns: 1fr;
  }

  .stream-catalog-brief {
    display: block;
    padding: 4px 0 14px;
  }

  .stream-catalog-brief h1 {
    font-size: 28px;
  }

  .stream-count-pill {
    margin-top: 8px;
    padding: 9px 11px;
  }

  .stream-filter-deck {
    max-height: 260px;
    overflow: auto;
  }

  .stream-filter-line {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 8px;
  }

  .stream-filter-line strong {
    font-size: 12px;
    color: var(--stream-muted);
  }

  .stream-filter-line div {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .stream-filter-line a,
  .stream-sortline a {
    flex: 0 0 auto;
    min-height: 32px;
    padding: 0 11px;
    font-size: 12px;
  }

  .stream-sortline {
    display: grid;
    gap: 10px;
    align-items: start;
  }

  .stream-sortline nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .stream-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 12px;
  }

  .stream-detail-stage .stream-breadcrumb,
  .stream-detail-inner {
    width: calc(100vw - 28px);
  }

  .stream-detail-inner {
    min-height: 0;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 16px;
    padding: 22px 0 30px;
  }

  .stream-detail-poster {
    grid-column: 1;
    grid-row: 1;
  }

  .stream-detail-poster img {
    width: 104px;
    border-radius: 14px;
  }

  .stream-detail-copy {
    grid-column: 2;
    min-width: 0;
  }

  .stream-detail-copy h1 {
    font-size: 26px;
    line-height: 1.12;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .stream-detail-copy > p {
    -webkit-line-clamp: 3;
    font-size: 13px;
    line-height: 1.55;
  }

  .stream-facts {
    gap: 6px;
  }

  .stream-facts span {
    min-height: 30px;
    padding: 5px 8px;
    border-radius: 9px;
    font-size: 12px;
  }

  .stream-detail-actions {
    grid-column: 1 / -1;
  }

  .stream-info-card dl div {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .stream-template .meta-links a,
  .stream-template .meta-links span {
    min-height: 28px;
    padding: 0 9px;
    font-size: 12px;
  }

  .stream-error-hero {
    min-height: 0;
    padding: 34px 20px;
    border-radius: 20px;
  }

  .stream-error-hero h1 {
    font-size: 30px;
  }

  .stream-public-note {
    grid-template-columns: 1fr;
  }
}

* {
  box-sizing: border-box;
}


.front .player-lines {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  max-height: 56vh;
  overflow: auto;
  padding-right: 4px;
  overscroll-behavior: contain;
  scrollbar-color: rgba(151,163,184,.42) transparent;
  scrollbar-width: thin;
}

.front .player-lines::-webkit-scrollbar {
  width: 6px;
}

.front .player-lines::-webkit-scrollbar-track {
  background: transparent;
}

.front .player-lines::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(151,163,184,.38);
}

.front .player-line-group .episode-groups {
  padding: 0 10px 10px;
}

.front .player-context {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 56px;
}

.front .player-context-card {
  display: grid;
  align-content: start;
  gap: 12px;
}

.front .player-context-card p {
  margin: 0;
  color: var(--portal-muted);
  font-size: 14px;
  line-height: 1.75;
}

.front .player-context-card strong {
  color: var(--portal-strong);
}

.front .now-playing-card {
  gap: 14px;
}

.front .watching-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
}

.front .watching-meta strong {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  color: var(--portal-strong);
  font-size: 16px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.front .watching-meta span {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid rgba(217,71,82,.22);
  border-radius: 999px;
  background: rgba(217,71,82,.08);
  color: var(--portal-strong);
  font-size: 12px;
  font-weight: 800;
}

.front .player-context-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.front .player-related {
  grid-column: 1 / -1;
}

.front .player-related .related-grid {
  margin-top: 4px;
}

body.projection-mode {
  overflow: hidden;
  background: #000;
}

body.projection-mode .portal-top,
body.projection-mode .player-breadcrumb,
body.projection-mode .player-context,
body.projection-mode .footer {
  display: none;
}

body.projection-mode .player-shell {
  width: 100vw;
  min-height: 100vh;
  margin: 0;
  padding: 18px;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 330px);
  align-items: stretch;
  background: #000;
}

body.projection-mode .player-frame {
  align-self: center;
  border-color: rgba(255,255,255,.16);
  box-shadow: none;
}

body.projection-mode .player-side {
  max-height: calc(100vh - 36px);
  background: rgba(10,14,22,.92);
}

.front .footer,
.front .portal-footer {
  background: transparent;
  font-size: 12px;
}

.front .friend-links {
  display: flex;
  flex: 1 1 100%;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,.07);
  color: rgba(151,163,184,.70);
  font-size: 12px;
}

.front .friend-links strong {
  color: rgba(226,232,240,.78);
  font-weight: 800;
}

.front .friend-links a {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color .16s ease;
}

.front .friend-links a:hover {
  color: var(--portal-strong);
}

:root[data-portal-theme="light"] .front .friend-links {
  border-top-color: rgba(15,23,42,.08);
  color: rgba(71,85,105,.72);
}

:root[data-portal-theme="light"] .front .friend-links strong {
  color: rgba(15,23,42,.78);
}

@media (max-width: 1100px) {
  .front .portal-hero,
  .front .portal-content-grid,
  .front .player-shell {
    grid-template-columns: 1fr;
  }

  .front .portal-bar {
    grid-template-columns: 1fr;
    padding: 12px 0;
  }

  .front .channel-grid,
  .front .poster-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .front .portal-bar,
  .front .portal-nav,
  .front .portal-shell,
  .front .page-shell,
  .front .player-shell {
    width: min(100vw - 28px, 1280px);
  }

  .front .portal-bar {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px 12px;
  }

  .front .portal-brand {
    grid-column: 1;
    grid-row: 1;
  }

  .front .portal-actions {
    grid-column: 2;
    grid-row: 1;
    justify-content: flex-end;
  }

  .front .portal-search {
    grid-column: 1 / -1;
    grid-row: 2;
    grid-template-columns: minmax(0, 1fr) 62px;
  }

  .front .breadcrumb {
    width: min(100vw - 28px, 1280px);
    margin-bottom: 12px;
    font-size: 11px;
  }

  .front .page-shell > .breadcrumb,
  .front .portal-shell > .breadcrumb {
    width: 100%;
  }

  .front .breadcrumb li + li::before {
    width: 4px;
    height: 4px;
    margin: 0 7px;
  }

  .front .breadcrumb a,
  .front .breadcrumb .crumb-current {
    max-width: 38vw;
  }

  .front .breadcrumb .crumb-current {
    max-width: 54vw;
  }

  .front .detail-breadcrumb {
    top: 12px;
    left: 14px;
    right: 14px;
    width: auto;
    margin: 0;
  }

  .front .portal-hero {
    gap: 14px;
  }

  .front .hero-feature {
    min-height: 330px;
    padding: 22px;
  }

  .front .hero-feature h1,
  .front .list-hero h1 {
    font-size: 28px;
  }

  .front .detail-copy h1 {
    font-size: 28px;
  }

  .front .channel-grid,
  .front .poster-row,
  .front .search-results,
  .front .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .front .filter-row {
    grid-template-columns: 1fr;
  }

  .front .filter-panel {
    padding: 12px;
  }

  .front .movie-grid,
  .front .featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 12px;
  }

  .front .movie-title {
    font-size: 13px;
  }

  .front .movie-card p {
    font-size: 11px;
  }

  .front .detail-hero {
    min-height: 430px;
    padding: 54px 20px 32px;
  }

  .front .detail-layout {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 16px;
  }

  .front .detail-poster {
    width: 104px;
  }
}

.front .theme-toggle[data-theme-toggle] {
  position: relative;
  flex: 0 0 auto;
  width: 58px;
  min-width: 58px;
  height: 30px;
  min-height: 30px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #18d36f;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.16);
  color: transparent;
  font-size: 0;
  line-height: 0;
  overflow: hidden;
}

.front .theme-toggle[data-theme-toggle]::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 31px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.22);
  transition: left .18s ease, background .18s ease, box-shadow .18s ease;
}

.front .theme-toggle[data-theme-toggle]:hover {
  background: #1dde78;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.20), 0 0 0 3px rgba(24,211,111,.14);
}

.front .theme-toggle[data-theme-toggle]:focus-visible {
  outline: 2px solid rgba(24,211,111,.72);
  outline-offset: 3px;
}

:root[data-portal-theme="light"] .front .theme-toggle[data-theme-toggle] {
  background: #222936;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.10);
}

:root[data-portal-theme="light"] .front .theme-toggle[data-theme-toggle]::before {
  left: 3px;
  background: #fff;
}

:root[data-portal-theme="light"] .front .theme-toggle[data-theme-toggle]:hover {
  background: #111827;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.12), 0 0 0 3px rgba(17,24,39,.10);
}

.front .theme-toggle[data-theme-toggle] {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: auto;
  min-width: 0;
  height: 30px;
  min-height: 30px;
  padding: 4px 5px 4px 9px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  box-shadow: none;
  color: #f7f9fc;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  overflow: visible;
  white-space: nowrap;
}

.front .theme-toggle[data-theme-toggle]::before {
  content: none;
}

:root[data-portal-theme="light"] .front .theme-toggle[data-theme-toggle]::before {
  content: none;
}

.front .theme-icon {
  position: relative;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 50%;
  box-shadow: inset -5px -1px 0 0 currentColor;
  opacity: .95;
}

.front .theme-label {
  display: inline-block;
  min-width: 52px;
  text-align: left;
}

.front .theme-switch {
  position: relative;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: #18d36f;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.16);
}

.front .theme-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 18px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 7px rgba(0,0,0,.22);
  transition: left .18s ease;
}

.front .theme-toggle[data-theme-toggle]:hover {
  background: rgba(255,255,255,.10);
  box-shadow: none;
}

:root[data-portal-theme="light"] .front .theme-toggle[data-theme-toggle] {
  border-color: rgba(20,26,36,.10);
  background: rgba(255,255,255,.72);
  color: #222936;
}

:root[data-portal-theme="light"] .front .theme-icon {
  box-shadow: inset -5px -1px 0 0 currentColor;
}

:root[data-portal-theme="light"] .front .theme-switch {
  background: #d5dbe5;
  box-shadow: inset 0 0 0 1px rgba(20,26,36,.08);
}

:root[data-portal-theme="light"] .front .theme-switch::after {
  left: 2px;
}

:root[data-portal-theme="light"] .front .theme-toggle[data-theme-toggle]:hover {
  background: #fff;
  box-shadow: none;
}

.front .hero-switcher {
  display: block;
  min-height: 334px;
  padding: 0;
  background: #070a10;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.front .hero-switcher::after {
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(0,0,0,0) 38%);
}

.front .hero-switcher-tabs {
  position: relative;
  z-index: 2;
  display: inline-flex;
  gap: 8px;
  margin: 22px 0 0 24px;
  padding: 4px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  background: rgba(7,10,16,.48);
  backdrop-filter: blur(10px);
}

.front .hero-switcher-tabs button {
  min-height: 30px;
  padding: 7px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255,255,255,.72);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.front .hero-switcher-tabs button.active,
.front .hero-switcher-tabs button:hover {
  background: rgba(255,255,255,.14);
  color: #fff;
}

.front .hero-switcher-panels {
  position: relative;
  z-index: 2;
}

.front .hero-panel {
  position: relative;
  min-height: 278px;
}

.front .hero-panel[hidden] {
  display: none;
}

.front .hero-slide {
  position: relative;
  min-height: 278px;
  padding: 64px 26px 44px;
  background-image:
    linear-gradient(90deg, rgba(5,8,13,.96), rgba(5,8,13,.72) 48%, rgba(5,8,13,.28)),
    linear-gradient(0deg, rgba(5,8,13,.52), rgba(5,8,13,.08)),
    var(--hero-backdrop),
    url("/static/cinema-hero-1920.jpg");
  background-size: cover;
  background-position: center;
}

.front .hero-slide[hidden] {
  display: none;
}

.front .hero-panel h1 {
  margin-bottom: 12px;
  max-width: 760px;
  color: #fff;
  font-size: 32px;
  line-height: 1.16;
  font-weight: 780;
  overflow-wrap: anywhere;
}

.front .hero-panel p {
  max-width: 760px;
  color: rgba(238,242,247,.86);
  font-size: 14px;
  line-height: 1.68;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.front .hero-cta-row {
  gap: 14px;
  margin-top: 18px;
}

.front .hero-action-btn {
  position: relative;
  min-width: 126px;
  min-height: 44px;
  padding: 11px 20px;
  border-radius: 10px;
  overflow: hidden;
  color: #fff;
  font-size: 14px;
  font-weight: 820;
  letter-spacing: 0;
  box-shadow: 0 14px 32px rgba(0,0,0,.28);
}

.front .hero-action-btn::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,.20), rgba(255,255,255,0) 42%);
  pointer-events: none;
}

.front .hero-action-detail {
  border-color: rgba(255,255,255,.10);
  background:
    linear-gradient(135deg, #e24352, #f0695f 58%, #f0b24b);
  box-shadow: 0 16px 34px rgba(216,63,77,.34), inset 0 0 0 1px rgba(255,255,255,.12);
}

.front .hero-action-play {
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.105);
  color: rgba(255,255,255,.94);
  backdrop-filter: blur(12px);
  box-shadow: 0 14px 30px rgba(0,0,0,.24), inset 0 0 0 1px rgba(255,255,255,.08);
}

.front .hero-action-play::before {
  content: "";
  width: 0;
  height: 0;
  margin-right: 8px;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid currentColor;
}

.front .hero-action-btn:hover {
  transform: translateY(-1px);
  filter: saturate(1.08) brightness(1.04);
}

.front .hero-dots {
  position: absolute;
  left: 26px;
  bottom: 18px;
  z-index: 4;
  display: flex;
  gap: 8px;
}

.front .hero-dots button {
  position: relative;
  width: 34px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.front .hero-dots button::before {
  content: "";
  position: absolute;
  left: 5px;
  right: 5px;
  top: 10px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,.28);
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.front .hero-dots button:hover::before {
  background: rgba(255,255,255,.58);
  transform: scaleY(1.2);
}

.front .hero-dots button.active {
  width: 42px;
}

.front .hero-dots button.active::before {
  left: 4px;
  right: 4px;
  background: linear-gradient(90deg, var(--accent-2), #f2d38a);
  box-shadow: 0 0 0 4px rgba(240,178,75,.10), 0 8px 18px rgba(240,178,75,.22);
}

.front .channel-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.front .channel-heading {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.front .channel-heading h2 {
  margin: 0;
  color: var(--portal-strong);
  font-size: 24px;
  font-weight: 760;
  line-height: 1.15;
}

.front .channel-mark {
  width: 20px;
  height: 28px;
  border-radius: 4px;
  background: linear-gradient(135deg, #f36ca5 0 42%, #64d4ff 43% 100%);
  clip-path: polygon(20% 15%, 100% 0, 72% 100%, 0 82%);
  box-shadow: 0 8px 18px rgba(100,212,255,.18);
}

.front .channel-genre-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.front .channel-genre-tabs::-webkit-scrollbar {
  display: none;
}

.front .channel-genre-tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  min-height: 34px;
  padding: 7px 14px;
  border: 1px solid transparent;
  background: rgba(255,255,255,.06);
  color: var(--portal-muted);
  font-size: 13px;
  font-weight: 660;
  white-space: nowrap;
}

.front .channel-genre-tabs a:hover {
  border-color: rgba(240,178,75,.34);
  color: #fff;
  background: rgba(255,255,255,.10);
}

:root[data-portal-theme="light"] .front .channel-genre-tabs a {
  background: rgba(20,26,36,.05);
}

:root[data-portal-theme="light"] .front .channel-genre-tabs a:hover {
  color: var(--portal-strong);
  background: rgba(20,26,36,.08);
}

.front .result-toolbar {
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: space-between;
  margin: 0 0 18px;
}

.front .sort-tabs {
  display: flex;
  min-width: 0;
  background: rgba(255,255,255,.06);
}

.front .sort-tabs a {
  min-width: 118px;
  padding: 11px 18px;
  color: var(--portal-muted);
  text-align: center;
  font-size: 13px;
}

.front .sort-tabs a.active,
.front .sort-tabs a:hover {
  background: rgba(255,255,255,.08);
  color: var(--portal-strong);
}

:root[data-portal-theme="light"] .front .sort-tabs {
  background: rgba(20,26,36,.05);
}

:root[data-portal-theme="light"] .front .sort-tabs a.active,
:root[data-portal-theme="light"] .front .sort-tabs a:hover {
  background: rgba(20,26,36,.08);
}

.front .result-toolbar > span {
  flex: 1 1 auto;
  color: var(--portal-muted);
  font-size: 13px;
}

.front .rank-entry {
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 720;
}

.front .catalog-content-grid {
  align-items: start;
}

.front .catalog-results-panel {
  min-width: 0;
}

.front .catalog-sidebar {
  position: sticky;
  top: 96px;
}

.front .portal-main-flow .section-block {
  padding: 20px;
}

.front .portal-main-flow .poster-row {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px 16px;
}

.front .portal-main-flow .portal-card {
  min-width: 0;
}

.front .portal-main-flow .portal-card h3 {
  min-height: 38px;
}

.front .portal-main-flow .portal-card p {
  max-width: 100%;
}

.front .portal-main-flow .poster {
  border-color: rgba(255,255,255,.09);
}

:root[data-portal-theme="light"] .front .portal-main-flow .poster {
  border-color: rgba(20,26,36,.10);
}

@media (max-width: 1100px) and (min-width: 761px) {
  .front .portal-main-flow .poster-row {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .front .portal-top {
    overflow: visible;
  }

  .front .portal-bar,
  .front .portal-nav {
    width: min(100% - 24px, 1360px);
  }

  .front .portal-nav.nav-with-menu {
    position: relative;
    overflow: visible;
  }

  .front .theme-toggle[data-theme-toggle] {
    gap: 6px;
    height: 29px;
    min-height: 29px;
    padding-left: 8px;
    font-size: 12px;
  }

  .front .theme-label {
    min-width: 48px;
  }

  .front .theme-switch {
    width: 34px;
    height: 20px;
  }

  .front .theme-switch::after {
    left: 16px;
    width: 16px;
    height: 16px;
  }

  .front .hero-switcher {
    min-height: 350px;
  }

  .front .hero-switcher-tabs {
    margin: 18px 0 0 18px;
  }

  .front .hero-panel {
    min-height: 294px;
  }

  .front .hero-slide {
    min-height: 294px;
    padding: 62px 22px 46px;
  }

  .front .hero-cta-row {
    gap: 10px;
    margin-top: 18px;
  }

  .front .hero-action-btn {
    min-width: 112px;
    min-height: 40px;
    padding: 10px 14px;
    font-size: 13px;
  }

  .front .hero-dots {
    left: 22px;
    bottom: 18px;
  }

  .front .nav-dropdown {
    position: static;
  }

  .front .nav-dropdown::after {
    display: none;
  }

  .front .nav-dropdown-trigger {
    min-height: 30px;
    padding: 6px 10px;
    font-size: 13px;
  }

  .front .nav-mega {
    position: fixed;
    top: 108px;
    left: 12px;
    right: 12px;
    display: grid;
    grid-template-columns: 106px minmax(0, 1fr);
    width: auto;
    min-height: 0;
    max-height: min(70vh, 520px);
    border-radius: 8px;
    overflow: hidden;
    transform: translateY(8px);
  }

  .front .nav-dropdown:hover .nav-mega,
  .front .nav-dropdown:focus-within .nav-mega,
  .front .nav-dropdown.open .nav-mega {
    transform: translateY(0);
  }

  .front .nav-mega::before {
    display: none;
  }

  .front .nav-mega-main,
  .front .nav-mega-genres {
    min-height: 0;
    padding: 12px;
    overflow-y: auto;
  }

  .front .nav-mega-main {
    gap: 4px;
  }

  .front .nav-mega-main a {
    min-height: 34px;
    padding: 7px 8px;
    font-size: 13px;
  }

  .front .nav-mega-genres {
    grid-template-columns: 1fr;
    gap: 12px;
    max-height: none;
  }

  .front .nav-mega-title {
    margin-bottom: 6px;
    font-size: 13px;
  }

  .front .nav-mega-genres section div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 10px;
  }

  .front .nav-mega-genres section div a {
    min-height: 28px;
    padding: 4px 0;
    font-size: 12px;
  }

  .front .channel-section-head {
    display: grid;
    gap: 10px;
  }

.front .channel-heading h2 {
  font-size: 20px;
}

.front .channel-heading {
  --channel-a: #ef5b67;
  --channel-b: #f4be5e;
}

.front .channel-section:nth-of-type(2) .channel-heading {
  --channel-a: #38bdf8;
  --channel-b: #5eead4;
}

.front .channel-section:nth-of-type(3) .channel-heading {
  --channel-a: #a78bfa;
  --channel-b: #f472b6;
}

.front .channel-section:nth-of-type(4) .channel-heading {
  --channel-a: #22c55e;
  --channel-b: #bef264;
}

.front .channel-section:nth-of-type(5) .channel-heading {
  --channel-a: #fb7185;
  --channel-b: #fdba74;
}

.front .channel-section:nth-of-type(6) .channel-heading {
  --channel-a: #60a5fa;
  --channel-b: #c084fc;
}

.front .channel-mark {
  background: linear-gradient(135deg, var(--channel-a), var(--channel-b));
  box-shadow: 0 10px 24px color-mix(in srgb, var(--channel-a) 28%, transparent);
}

.front .channel-heading h2 {
  text-shadow: 0 10px 30px color-mix(in srgb, var(--channel-a) 14%, transparent);
}

  .front .channel-genre-tabs {
    margin: 0 -14px;
    padding: 0 14px 2px;
  }

  .front .channel-genre-tabs a {
    min-width: 68px;
    min-height: 30px;
    padding: 6px 10px;
    font-size: 12px;
  }

  .front .result-toolbar {
    display: grid;
    gap: 10px;
  }

  .front .sort-tabs {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .front .sort-tabs a {
    min-width: 96px;
    padding: 10px 12px;
  }

  .front .portal-main-flow .section-block {
    overflow: hidden;
    padding: 14px;
  }

  .front .portal-main-flow .section-title {
    align-items: center;
    margin-bottom: 12px;
  }

  .front .portal-main-flow .section-title h2 {
    font-size: 18px;
  }

  .front .portal-main-flow .poster-row {
    display: flex;
    grid-template-columns: none;
    gap: 12px;
    margin: 0 -14px;
    padding: 0 14px 6px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .front .portal-main-flow .poster-row::-webkit-scrollbar {
    display: none;
  }

  .front .portal-main-flow .portal-card {
    flex: 0 0 128px;
    min-width: 128px;
    scroll-snap-align: start;
  }

  .front .portal-main-flow .portal-card h3 {
    min-height: 35px;
    margin: 7px 0 0;
    font-size: 13px;
  }

  .front .portal-main-flow .portal-card p {
    margin-top: 2px;
    font-size: 11px;
    line-height: 1.35;
  }

  .front .portal-main-flow .poster span {
    padding: 2px 5px;
    font-size: 10px;
  }

  .front .catalog-page {
    width: min(100% - 24px, 1280px);
    padding-top: 18px;
  }

  .front .catalog-page .filter-panel {
    gap: 10px;
    margin-bottom: 16px;
    padding: 12px;
  }

  .front .catalog-page .filter-row {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .front .catalog-page .filter-row strong {
    justify-content: flex-start;
    width: fit-content;
    min-height: 26px;
    padding: 0 8px;
    font-size: 11px;
  }

  .front .catalog-page .filter-values {
    flex-wrap: nowrap;
    gap: 8px;
    margin: 0 -12px;
    padding: 0 12px 2px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .front .catalog-page .filter-values::-webkit-scrollbar {
    display: none;
  }

  .front .catalog-page .filter-values a {
    flex: 0 0 auto;
    min-height: 28px;
    padding: 6px 9px;
    font-size: 12px;
    white-space: nowrap;
  }

  .front .catalog-page .movie-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 12px;
    align-items: start;
  }

  .front .catalog-page .movie-card {
    min-width: 0;
  }

  .front .catalog-page .poster {
    width: 100%;
    aspect-ratio: 2 / 3;
    border-radius: 7px;
  }

  .front .catalog-page .movie-title {
    display: -webkit-box;
    min-height: 36px;
    margin-top: 7px;
    overflow: hidden;
    color: var(--portal-text);
    font-size: 13px;
    line-height: 1.38;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .front .catalog-page .movie-card p {
    display: block;
    margin-top: 3px;
    overflow: hidden;
    color: var(--portal-muted);
    font-size: 11px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 360px) {
  .front .portal-main-flow .portal-card {
    flex-basis: 116px;
  }

  .front .catalog-page {
    width: min(100% - 20px, 1280px);
  }

  .front .catalog-page .movie-grid {
    gap: 16px 10px;
  }

  .front .catalog-page .movie-title {
    font-size: 12px;
  }
}

.front .portal-brand .brand-mark {
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  box-shadow: 0 12px 26px rgba(217,71,82,.18);
  color: transparent;
}

.front .portal-brand .brand-mark::before,
.front .portal-brand .brand-mark::after {
  content: none;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.front .brand-play {
  display: none;
}

.front .catalog-page .movie-grid {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.front .catalog-page .catalog-content-grid .movie-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.front .related-grid {
  grid-template-columns: repeat(8, minmax(0, 1fr));
}

.front .detail-related-grid {
  align-items: start;
  margin-bottom: 18px;
}

@media (max-width: 1240px) {
  .front .catalog-page .movie-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .front .catalog-page .catalog-content-grid .movie-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .front .related-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .front .catalog-page .movie-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .front .catalog-page .catalog-sidebar {
    position: static;
  }

  .front .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.admin-topbar .brand-mark {
  padding: 0;
  overflow: hidden;
  background: transparent;
  box-shadow: 0 10px 24px rgba(216,63,77,.18);
}

.source-manager {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.source-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.035);
}

.source-card span,
.source-card small,
.source-card dt,
.filter-summary span {
  color: var(--muted);
}

.source-card strong {
  display: block;
  margin: 4px 0;
  font-size: 18px;
}

.source-card dl {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.source-card dl div {
  padding: 10px;
  border-radius: 7px;
  background: rgba(255,255,255,.045);
}

.source-card dt {
  font-size: 12px;
}

.source-card dd {
  margin: 3px 0 0;
  font-weight: 800;
}

.source-actions,
.row-actions,
.filter-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.source-actions {
  justify-content: flex-start;
  align-items: stretch;
}

.source-actions form,
.row-actions form,
.filter-summary form {
  margin: 0;
}

.admin-filter {
  display: grid;
  grid-template-columns: minmax(180px, 1.3fr) repeat(3, minmax(130px, .8fr)) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.03);
}

.admin-filter label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
}

.admin-filter input,
.admin-filter select {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255,255,255,.06);
  color: var(--text);
  padding: 0 10px;
}

.filter-summary {
  justify-content: space-between;
  margin-bottom: 16px;
}

.filter-summary form {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.danger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid rgba(216,63,77,.32);
  border-radius: 8px;
  background: rgba(216,63,77,.10);
  color: #ffb9c0;
  cursor: pointer;
  font-weight: 800;
}

.danger-btn:hover {
  background: rgba(216,63,77,.18);
  color: #fff;
}

.danger-btn.small {
  min-height: 32px;
  padding: 7px 10px;
  font-size: 12px;
}

.admin-body .danger-btn {
  background: #fff0f2;
  color: #b42335;
}

.admin-body .danger-btn:hover {
  background: #ffe2e7;
  color: #8f1d2d;
}

.admin-body .subtle-danger {
  border-color: #f0d3d8;
  background: #fff8f9;
  color: #a24a56;
}

.user-policy-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-user-list {
  display: grid;
  gap: 12px;
}

.admin-user-card {
  display: grid;
  gap: 13px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.admin-user-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.admin-user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  overflow: hidden;
  background: #edf2f8;
  color: #fff;
  font-weight: 900;
}

.admin-user-head strong {
  display: block;
  color: var(--text);
  font-size: 18px;
}

.admin-user-head span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.admin-user-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-user-badges .status-pill {
  margin-top: 0;
}

.admin-user-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 180px));
  gap: 10px;
  margin: 0;
}

.admin-user-stats div {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f9fc;
}

.admin-user-stats dt,
.admin-user-stats dd {
  margin: 0;
}

.admin-user-stats dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.admin-user-stats dd {
  margin-top: 4px;
  color: var(--text);
  font-weight: 800;
}

.admin-user-comments {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcff;
}

.admin-user-comments > strong {
  color: var(--text);
  font-size: 13px;
}

.admin-user-comments article {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid #e6ebf2;
  border-radius: 8px;
  background: #fff;
}

.admin-user-comments article div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-user-comments a,
.admin-user-comments span {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user-comments time {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
}

.admin-user-comments p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin: 0;
  color: #475569;
  font-size: 13px;
  line-height: 1.55;
}

.admin-user-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.admin-user-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.admin-user-form input,
.admin-user-form select {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  padding: 8px 10px;
}

.admin-user-form .wide-field,
.admin-user-form .form-actions {
  grid-column: 1 / -1;
}

.admin-user-danger {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

@media (max-width: 1100px) {
  .source-manager {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .user-policy-grid {
    grid-template-columns: 1fr;
  }

  .traffic-grid {
    grid-template-columns: 1fr;
  }

  .batch-site-grid,
  .crawler-control-grid {
    grid-template-columns: 1fr;
  }

  .crawler-control-form {
    grid-template-columns: 1fr;
  }

  .admin-list-table {
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .domain-list-table .table-head,
  .domain-list-table article {
    min-width: 1360px;
  }

  .traffic-list-table .table-head,
  .traffic-list-table article {
    min-width: 1280px;
  }

  .crawler-traffic-table .table-head,
  .crawler-traffic-table article {
    min-width: 1360px;
  }

  .user-traffic-table .table-head,
  .user-traffic-table article {
    min-width: 1360px;
  }

  .public-good-panel {
    grid-template-columns: 1fr;
  }

  .admin-filter {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-user-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .source-manager,
  .admin-filter {
    grid-template-columns: 1fr;
  }

  .source-card dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-user-head {
    flex-direction: column;
  }

  .admin-user-badges,
  .admin-user-danger {
    justify-content: flex-start;
  }

  .admin-user-stats,
  .admin-user-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .front .detail-hero {
    background-image:
      linear-gradient(180deg, rgba(9,13,20,.92), rgba(9,13,20,.98));
  }

  .front .pager {
    gap: 7px;
  }

  .front .page-jump {
    width: 100%;
    justify-content: center;
  }

  .front .filter-values a,
  .front .sort-tabs a,
  .front .channel-genre-tabs a {
    max-width: 118px;
  }

  .front .comment-auth {
    grid-template-columns: 1fr;
  }

  .front .comment-auth-card {
    grid-template-columns: 1fr;
  }

  .front .comment-auth-switch,
  .front .comment-auth-panels {
    grid-column: 1;
  }

  .front .comment-auth-panel {
    grid-template-columns: 1fr;
  }

  .front .profile-card {
    align-items: flex-start;
  }

  .front .profile-avatar {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    font-size: 20px;
  }

  .front .profile-form {
    grid-template-columns: 1fr;
  }

  .front .hero-feature h1,
  .front .hero-panel h1,
  .front .list-hero h1,
  .front .detail-copy h1 {
    font-size: 25px;
    line-height: 1.18;
  }

  .front .player-side h1 {
    font-size: 21px;
    line-height: 1.24;
  }

  .front .line-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .front .episode-group .episode-list,
  .front .episode-list.vertical {
    grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
    gap: 7px;
  }

  .front .episode-group summary,
  .front .player-line-group > summary {
    min-height: 36px;
    padding: 9px 10px;
  }

  .front .episode-list a {
    min-height: 30px;
    padding: 6px 7px;
    font-size: 11px;
  }

  .front .player-lines {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .front .player-context {
    grid-template-columns: 1fr;
  }

  .player-toolbar {
    top: 10px;
    right: 10px;
  }

  .player-toolbar button {
    min-height: 28px;
    padding: 5px 8px;
    font-size: 11px;
  }

  body.projection-mode .player-shell {
    display: block;
    padding: 10px;
    overflow: auto;
  }

  body.projection-mode .player-side {
    max-height: none;
    margin-top: 10px;
  }
}

.front .comment-panel .section-title {
  margin-bottom: 12px;
}

.front .site-flash {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid rgba(217,71,82,.28);
  border-radius: 8px;
  background: rgba(217,71,82,.10);
  color: var(--portal-strong);
  font-size: 13px;
  line-height: 1.5;
}

.front .comment-auth-card {
  display: grid;
  grid-template-columns: minmax(190px, .8fr) minmax(0, 1.6fr);
  gap: 12px;
  align-items: center;
  margin: 0 0 14px;
  padding: 13px;
  border: 1px solid var(--portal-line);
  border-radius: 8px;
  background: rgba(255,255,255,.035);
}

.front .comment-auth-card[hidden] {
  display: none;
}

.front .guest-comment-box {
  margin-bottom: 10px;
}

.front .guest-comment .comment-auth-card.active {
  animation: commentAuthIn .18s ease-out;
}

@keyframes commentAuthIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.front .comment-auth-intro {
  min-width: 0;
}

.front .comment-auth-intro strong,
.front .comment-auth-intro span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.front .comment-auth-intro strong {
  color: var(--portal-strong);
  font-size: 15px;
}

.front .comment-auth-intro span {
  margin-top: 4px;
  color: var(--portal-muted);
  font-size: 12px;
}

.front .comment-auth-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.front .comment-auth-switch {
  grid-column: 2;
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 74px));
  width: fit-content;
  padding: 3px;
  border: 1px solid var(--portal-line);
  border-radius: 7px;
  background: var(--portal-surface);
}

.front .comment-auth-switch label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  border-radius: 5px;
  color: var(--portal-muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 760;
}

#commentAuthLogin:checked ~ .comment-auth-switch label[for="commentAuthLogin"],
#commentAuthRegister:checked ~ .comment-auth-switch label[for="commentAuthRegister"],
#profileAuthLogin:checked ~ .comment-auth-switch label[for="profileAuthLogin"],
#profileAuthRegister:checked ~ .comment-auth-switch label[for="profileAuthRegister"] {
  background: rgba(217,71,82,.92);
  color: #fff;
}

.front .comment-auth-panels {
  grid-column: 2;
}

.front .comment-auth-panel {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  gap: 9px;
  align-items: end;
}

#commentAuthLogin:checked ~ .comment-auth-panels .comment-auth-panel.login,
#commentAuthRegister:checked ~ .comment-auth-panels .comment-auth-panel.register,
#profileAuthLogin:checked ~ .comment-auth-panels .comment-auth-panel.login,
#profileAuthRegister:checked ~ .comment-auth-panels .comment-auth-panel.register {
  display: grid;
}

.front .comment-auth-panel label {
  display: grid;
  gap: 5px;
  color: var(--portal-muted);
  font-size: 11px;
  font-weight: 700;
}

.front .comment-auth-panel input {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--portal-line);
  border-radius: 7px;
  background: var(--portal-surface);
  color: var(--portal-strong);
  padding: 8px 10px;
  font: inherit;
  font-size: 13px;
}

.front .comment-auth-panel button {
  min-height: 36px;
  padding: 8px 14px;
  white-space: nowrap;
}

.front .comment-form,
.front .comment-auth form {
  display: grid;
  gap: 11px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--portal-line);
  border-radius: 8px;
  background: rgba(255,255,255,.03);
}

.front .comment-auth-drawer {
  margin: 0 0 14px;
}

.front .comment-auth-drawer summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--portal-line);
  border-radius: 8px;
  background: rgba(255,255,255,.035);
  color: var(--portal-muted);
  cursor: pointer;
  list-style: none;
}

.front .comment-auth-drawer summary::-webkit-details-marker {
  display: none;
}

.front .comment-auth-drawer summary span {
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.front .comment-auth-drawer summary strong {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 7px;
  background: rgba(217,71,82,.92);
  color: #fff;
  font-size: 12px;
  font-weight: 760;
}

.front .comment-auth-drawer[open] summary {
  margin-bottom: 12px;
  border-color: rgba(217,71,82,.28);
}

.front .comment-form-head,
.front .logout-form {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.front .comment-form-head strong,
.front .comment-auth strong {
  color: var(--portal-strong);
  font-size: 14px;
}

.front .rating-field {
  min-width: 132px;
}

.front .comment-form label,
.front .comment-auth label {
  display: grid;
  gap: 6px;
  color: var(--portal-muted);
  font-size: 12px;
}

.front .comment-form textarea,
.front .comment-form select,
.front .comment-auth input {
  width: 100%;
  border: 1px solid var(--portal-line);
  border-radius: 7px;
  background: var(--portal-surface);
  color: var(--portal-strong);
  font: inherit;
}

.front .comment-form textarea {
  min-height: 92px;
  padding: 10px 11px;
  resize: vertical;
}

.front .comment-form select,
.front .comment-auth input {
  min-height: 36px;
  padding: 8px 10px;
}

.front .comment-form .rating-select {
  min-height: 38px;
  padding: 7px 34px 7px 12px;
  border-color: rgba(244,190,94,.34);
  background: linear-gradient(180deg, rgba(244,190,94,.12), rgba(255,255,255,.035));
  color: var(--portal-strong);
  font-weight: 800;
}

.front .comment-auth {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.front .logout-form {
  margin: -8px 0 14px;
  justify-content: flex-end;
}

.front .logout-form button {
  border: 0;
  background: transparent;
  color: var(--portal-muted);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.front .comment-list {
  display: grid;
  gap: 12px;
}

.front .comment-item {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--portal-line);
  border-radius: 8px;
  background: rgba(255,255,255,.035);
}

.front .comment-item div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.front .comment-item strong {
  color: var(--portal-strong);
  font-size: 14px;
}

.front .comment-item span,
.front .comment-item small {
  color: var(--portal-muted);
  font-size: 12px;
}

.front .comment-item .comment-rating {
  color: #f4be5e;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.front .comment-item p {
  margin: 0;
  color: var(--portal-text);
  font-size: 14px;
  line-height: 1.72;
}

.front .comment-panel .admin-note {
  margin: 12px 0 0;
  color: var(--portal-muted);
  font-size: 12px;
  line-height: 1.6;
}

.front .profile-shell {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.front .profile-hero {
  min-height: auto;
}

.front .profile-panel {
  display: grid;
  gap: 16px;
}

.front .profile-card {
  display: flex;
  align-items: center;
  gap: 14px;
}

.front .profile-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 68px;
  height: 68px;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(217,71,82,.95), rgba(240,178,75,.85));
  color: #fff;
  font-size: 24px;
  font-weight: 900;
}

.front .avatar-portrait,
.front .avatar-mini {
  position: relative;
  isolation: isolate;
}

.front .avatar-portrait {
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.20), 0 14px 26px rgba(0,0,0,.22);
}

.front .avatar-mini {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  overflow: hidden;
}

.front .avatar-head,
.front .avatar-hair,
.front .avatar-body,
.front .avatar-glint {
  position: absolute;
  pointer-events: none;
}

.front .avatar-head {
  z-index: 3;
  left: 30%;
  top: 24%;
  width: 40%;
  height: 38%;
  border-radius: 46% 46% 48% 48%;
  background: var(--avatar-skin, #e8b98e);
  box-shadow: inset -5px -6px 0 rgba(0,0,0,.10);
}

.front .avatar-hair {
  z-index: 4;
  left: 23%;
  top: 14%;
  width: 54%;
  height: 31%;
  border-radius: 60% 60% 40% 40%;
  background: var(--avatar-hair, #1f2937);
}

.front .avatar-body {
  z-index: 2;
  left: 20%;
  right: 20%;
  bottom: 8%;
  height: 35%;
  border-radius: 45% 45% 16% 16%;
  background: linear-gradient(135deg, var(--avatar-accent, #ef4444), rgba(255,255,255,.18));
}

.front .avatar-glint {
  z-index: 5;
  right: 16%;
  top: 18%;
  width: 14%;
  height: 14%;
  border-radius: 999px;
  background: rgba(255,255,255,.70);
  box-shadow: 0 0 16px rgba(255,255,255,.28);
}

.front .avatar-face-2 .avatar-hair,
.front .avatar-face-7 .avatar-hair {
  top: 10%;
  height: 40%;
  border-radius: 45% 55% 48% 42%;
}

.front .avatar-face-3 .avatar-hair,
.front .avatar-face-8 .avatar-hair {
  left: 18%;
  width: 62%;
  border-radius: 58% 42% 50% 34%;
}

.front .avatar-face-4 .avatar-head,
.front .avatar-face-9 .avatar-head {
  width: 36%;
  left: 32%;
}

.front .avatar-face-5 .avatar-body,
.front .avatar-face-10 .avatar-body {
  bottom: 4%;
  height: 42%;
  border-radius: 20% 52% 14% 14%;
}

.front .profile-card h2 {
  margin: 0;
  color: var(--portal-strong);
  font-size: 22px;
  line-height: 1.25;
}

.front .profile-card p {
  margin: 6px 0 0;
  color: var(--portal-muted);
  font-size: 13px;
}

.front .profile-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.front .profile-form label {
  display: grid;
  gap: 6px;
  color: var(--portal-muted);
  font-size: 12px;
  font-weight: 750;
}

.front .profile-form input {
  min-height: 38px;
  border: 1px solid var(--portal-line);
  border-radius: 7px;
  background: var(--portal-surface);
  color: var(--portal-strong);
  padding: 8px 10px;
  font: inherit;
}

.front .profile-form .form-actions {
  grid-column: 1 / -1;
}

.front .avatar-picker {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(10, 42px);
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.front .avatar-picker legend {
  grid-column: 1 / -1;
  margin-bottom: 2px;
  color: var(--portal-muted);
  font-size: 12px;
  font-weight: 800;
}

.front .avatar-picker label {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  overflow: hidden;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}

.front .avatar-picker input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.front .avatar-picker label:has(input:checked) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.front .profile-logout {
  margin: -4px 0 0;
  justify-content: flex-start;
}

.front .profile-points {
  display: grid;
  gap: 16px;
}

.front .point-dashboard {
  display: grid;
  grid-template-columns: 1.15fr repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.front .point-dashboard article {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--portal-line);
  border-radius: 8px;
  background: var(--portal-surface);
}

.front .point-dashboard span {
  color: var(--portal-muted);
  font-size: 12px;
  font-weight: 800;
}

.front .point-dashboard strong {
  color: var(--portal-strong);
  font-size: 24px;
  line-height: 1.1;
}

.front .point-dashboard small {
  color: var(--portal-muted);
  font-size: 12px;
  line-height: 1.55;
}

.front .point-dashboard form {
  margin-top: 2px;
}

.front .share-reward-card {
  align-content: start;
}

.front .share-link-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.front .share-link-box input {
  min-width: 0;
  min-height: 36px;
  border: 1px solid var(--portal-line);
  border-radius: 8px;
  background: rgba(255,255,255,.04);
  color: var(--portal-strong);
  padding: 8px 10px;
  font: inherit;
  font-size: 12px;
}

.front .share-targets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.front .share-targets form {
  margin: 0;
}

.front .share-target {
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid var(--portal-line);
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  color: var(--portal-strong);
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.front .share-target:hover {
  border-color: rgba(244,190,94,.36);
  background: rgba(244,190,94,.12);
  color: var(--accent);
}

.front .point-progress {
  width: 100%;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(148, 163, 184, .2);
}

.front .point-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #f2b64f);
}

.front .point-events {
  display: grid;
  gap: 8px;
}

.front .point-events div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 54px 120px;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--portal-line);
  border-radius: 8px;
}

.front .point-events span,
.front .point-events small {
  min-width: 0;
  overflow: hidden;
  color: var(--portal-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.front .point-events strong {
  color: var(--accent);
  text-align: right;
}

.front .profile-auth-card {
  width: min(100%, 560px);
  justify-self: center;
  grid-template-columns: 1fr;
  margin-bottom: 0;
  padding: 18px;
}

.front .profile-auth-card .comment-auth-switch,
.front .profile-auth-card .comment-auth-panels {
  grid-column: 1;
}

.front .profile-auth-card .comment-auth-switch {
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.front .profile-auth-card .comment-auth-panel {
  grid-template-columns: 1fr;
}

.front .profile-auth-card .comment-auth-panel button {
  width: 100%;
}

.front .hero-feature h1,
.front .hero-panel h1,
.front .detail-copy h1,
.front .list-hero h1,
.front .profile-hero h1,
.front .player-side h1 {
  letter-spacing: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.front .hero-feature h1,
.front .hero-panel h1 {
  font-size: 32px;
  line-height: 1.18;
}

.front .detail-copy h1 {
  font-size: 32px;
  line-height: 1.18;
}

.front .list-hero h1,
.front .profile-hero h1 {
  font-size: 26px;
  line-height: 1.22;
}

.front.player-page .player-side h1 {
  font-size: 24px;
  line-height: 1.24;
}

@media (max-width: 760px) {
  .front .point-dashboard {
    grid-template-columns: 1fr;
  }

  .front .point-events div {
    grid-template-columns: minmax(0, 1fr) 48px;
  }

  .front .point-events small {
    grid-column: 1 / -1;
  }

  .front .avatar-picker {
    grid-template-columns: repeat(5, 42px);
  }

  .front .hero-feature h1,
  .front .hero-panel h1,
  .front .detail-copy h1 {
    font-size: 24px;
    line-height: 1.2;
  }

  .front .list-hero h1,
  .front .profile-hero h1 {
    font-size: 22px;
    line-height: 1.24;
  }

  .front.player-page .player-side h1 {
    font-size: 21px;
    line-height: 1.24;
  }
}

/* Final H5 layout pass: keep mobile pages purpose-built, not desktop squeezed. */
.front [hidden] {
  display: none !important;
}

@media (max-width: 760px) {
  .front {
    --h5-edge: 14px;
  }

  .front .portal-top {
    position: sticky;
    top: 0;
    z-index: 40;
    border-bottom-color: rgba(148,163,184,.12);
    background: color-mix(in srgb, var(--portal-bg) 92%, transparent);
    backdrop-filter: blur(14px);
  }

  .front .portal-bar,
  .front .portal-nav,
  .front .portal-shell,
  .front .page-shell,
  .front .player-shell,
  .front .player-context {
    width: calc(100vw - (var(--h5-edge) * 2));
    max-width: calc(100vw - (var(--h5-edge) * 2));
  }

  .front .player-context,
  .front .player-context-card,
  .front .player-related,
  .front .player-related .related-grid {
    max-width: 100%;
    min-width: 0;
  }

  .front .portal-bar {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px;
    padding: 10px 0 8px;
  }

  .front .portal-brand {
    min-width: 0;
    gap: 8px;
  }

  .front .portal-brand .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .front .portal-brand strong {
    font-size: 16px;
    line-height: 1.1;
  }

  .front .portal-brand small,
  .front .theme-label,
  .front .portal-actions > a:not(.user-chip) {
    display: none;
  }

  .front .portal-actions {
    gap: 7px;
  }

  .front .user-chip {
    max-width: 84px;
    min-height: 31px;
    padding: 7px 9px;
    font-size: 12px;
  }

  .front .theme-toggle[data-theme-toggle] {
    width: 52px;
    height: 28px;
    min-height: 28px;
    padding: 4px 6px;
  }

  .front .theme-icon {
    width: 15px;
    height: 15px;
  }

  .front .theme-switch {
    width: 26px;
    height: 16px;
  }

  .front .theme-switch::after {
    left: 12px;
    width: 12px;
    height: 12px;
  }

  :root[data-portal-theme="light"] .front .theme-switch::after {
    left: 2px;
  }

  .front .portal-search {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) 54px;
  }

  .front .portal-search input,
  .front .portal-search button {
    min-height: 36px;
    border-radius: 7px;
    font-size: 12px;
  }

  .front .portal-nav {
    gap: 8px;
    padding: 8px 0 10px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .front .portal-nav::-webkit-scrollbar {
    display: none;
  }

  .front .portal-nav a,
  .front .nav-dropdown-trigger {
    flex: 0 0 auto;
    min-height: 32px;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 13px;
  }

  .front .nav-mega {
    top: 92px;
    left: var(--h5-edge);
    right: var(--h5-edge);
    max-height: min(68vh, 520px);
  }

  .front .hot-searches {
    margin: 10px 0 12px;
    padding: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .front .hot-searches::-webkit-scrollbar {
    display: none;
  }

  .front .hot-searches strong,
  .front .hot-searches a {
    flex: 0 0 auto;
    min-height: 30px;
    font-size: 12px;
  }

  .front .portal-shell {
    padding: 0 0 34px;
  }

  .front .portal-hero {
    display: grid;
    gap: 12px;
    margin-bottom: 14px;
  }

  .front .hero-switcher,
  .front .hero-feature,
  .front .hero-panel,
  .front .hero-slide {
    min-height: 292px;
    border-radius: 9px;
  }

  .front .hero-switcher-tabs {
    margin: 12px 0 0 12px;
    padding: 3px;
  }

  .front .hero-switcher-tabs button {
    min-height: 32px;
    padding: 6px 11px;
    font-size: 12px;
  }

  .front .hero-slide,
  .front .hero-feature {
    padding: 54px 16px 42px;
  }

  .front .hero-feature h1,
  .front .hero-panel h1 {
    font-size: 24px;
    line-height: 1.16;
  }

  .front .hero-feature p {
    max-width: 100%;
    font-size: 13px;
    line-height: 1.58;
    -webkit-line-clamp: 2;
  }

  .front .hero-cta-row {
    margin-top: 14px;
  }

  .front .hero-action-btn,
  .front .primary-btn,
  .front .ghost-btn,
  .front .disabled-action {
    min-height: 36px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
  }

  .front .hero-dots {
    left: 16px;
    bottom: 14px;
    gap: 7px;
  }

  .front .hero-dots button {
    width: 20px;
    height: 5px;
    border-radius: 999px;
  }

  .front .hero-dots button.active {
    width: 34px;
  }

  .front .focus-panel,
  .front .channel-cloud {
    display: none;
  }

  .front .portal-content-grid,
  .front .catalog-content-grid,
  .front .player-context {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .front .portal-main-flow {
    gap: 14px;
  }

  .front .portal-main-flow .section-block,
  .front .info-panel,
  .front .rank-box {
    padding: 14px;
    border-radius: 9px;
  }

  .front .channel-section-head {
    gap: 10px;
  }

  .front .channel-heading h2 {
    font-size: 19px;
  }

  .front .channel-mark {
    width: 20px;
    height: 20px;
    border-radius: 6px;
  }

  .front .channel-genre-tabs,
  .front .portal-main-flow .poster-row {
    display: flex;
    flex-wrap: nowrap;
    margin: 0 -14px;
    padding: 0 14px 6px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .front .channel-genre-tabs::-webkit-scrollbar,
  .front .portal-main-flow .poster-row::-webkit-scrollbar {
    display: none;
  }

  .front .channel-genre-tabs a {
    flex: 0 0 auto;
    min-width: 68px;
    min-height: 30px;
    padding: 6px 10px;
    border-radius: 7px;
    font-size: 12px;
  }

  .front .portal-main-flow .portal-card {
    flex: 0 0 132px;
    min-width: 132px;
  }

  .front .portal-main-flow .portal-card h3 {
    min-height: 34px;
    margin-top: 7px;
    font-size: 13px;
  }

  .front .portal-main-flow .portal-card p {
    font-size: 11px;
  }

  .front .portal-sidebar {
    display: grid;
    gap: 12px;
    position: static;
  }

  .front .rank-list li {
    min-height: 30px;
  }

  .front .page-shell {
    padding: 12px 0 34px;
  }

  .front .breadcrumb {
    width: 100%;
    margin-bottom: 10px;
    padding-bottom: 2px;
    overflow-x: auto;
    white-space: nowrap;
  }

  .front .list-hero {
    margin-bottom: 12px;
    padding: 4px 0 12px;
  }

  .front .list-hero h1 {
    margin-bottom: 6px;
    font-size: 22px;
    line-height: 1.18;
  }

  .front .list-hero p {
    font-size: 12px;
    line-height: 1.48;
    -webkit-line-clamp: 2;
  }

  .front .content-count-badge {
    min-height: 30px;
    max-width: 100%;
    padding: 6px 9px;
    font-size: 12px;
  }

  .front .filter-panel {
    gap: 9px;
    margin-bottom: 12px;
    padding: 11px;
    border-radius: 9px;
  }

  .front .filter-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .front .filter-row strong {
    justify-content: flex-start;
    width: fit-content;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 6px;
    font-size: 11px;
  }

  .front .filter-values {
    flex-wrap: nowrap;
    gap: 7px;
    margin: 0 -11px;
    padding: 0 11px 2px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .front .filter-values::-webkit-scrollbar {
    display: none;
  }

  .front .filter-values a {
    flex: 0 0 auto;
    min-height: 28px;
    padding: 6px 9px;
    font-size: 12px;
  }

  .front .result-toolbar {
    gap: 8px;
    margin-bottom: 14px;
  }

  .front .sort-tabs {
    margin: 0 calc(var(--h5-edge) * -1);
    padding: 0 var(--h5-edge) 2px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .front .sort-tabs::-webkit-scrollbar {
    display: none;
  }

  .front .sort-tabs a {
    flex: 0 0 auto;
    min-width: 86px;
    min-height: 32px;
    padding: 8px 10px;
    font-size: 12px;
  }

  .front .catalog-page .movie-grid,
  .front .movie-grid,
  .front .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 11px;
  }

  .front .poster {
    border-radius: 8px;
  }

  .front .movie-title {
    min-height: 34px;
    margin-top: 7px;
    font-size: 13px;
    line-height: 1.32;
  }

  .front .movie-card p {
    margin-top: 2px;
    font-size: 11px;
    line-height: 1.35;
  }

  .front .detail-hero {
    display: block;
    min-height: auto;
    padding: 12px 0 18px;
    background-image: linear-gradient(180deg, rgba(9,13,20,.94), rgba(9,13,20,.98));
  }

  .front .detail-breadcrumb {
    position: static;
    width: calc(100vw - (var(--h5-edge) * 2));
    margin: 0 auto 10px;
  }

  .front .detail-layout {
    width: calc(100vw - (var(--h5-edge) * 2));
    grid-template-columns: 104px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    margin: 0 auto;
  }

  .front .detail-poster {
    width: 104px;
    border-radius: 8px;
  }

  .front .detail-copy {
    min-width: 0;
  }

  .front .detail-copy .eyebrow {
    margin-bottom: 6px;
    font-size: 11px;
    white-space: normal;
  }

  .front .detail-copy h1 {
    margin-bottom: 8px;
    font-size: 25px;
    line-height: 1.12;
  }

  .front .detail-copy p {
    font-size: 13px;
    line-height: 1.55;
    -webkit-line-clamp: 4;
  }

  .front .facts {
    gap: 6px;
    margin-top: 10px;
  }

  .front .facts span {
    min-height: 29px;
    padding: 5px 8px;
    border-radius: 7px;
    font-size: 12px;
  }

  .front .detail-layout .detail-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    margin-top: 0;
  }

  .front .detail-actions .primary-btn,
  .front .detail-actions .ghost-btn,
  .front .detail-actions .disabled-action,
  .front .detail-actions .like-button {
    width: 100%;
    min-height: 34px;
    padding: 0 8px;
    font-size: 12px;
  }

  .front .detail-actions .like-form,
  .front .detail-actions .like-button {
    min-width: 0;
  }

  .front .detail-actions .like-button {
    gap: 5px;
  }

  .front .detail-actions .like-button span {
    font-size: 15px;
  }

  .front .detail-actions .like-button strong {
    font-size: 13px;
  }

  .front .detail-actions .like-button em {
    font-size: 11px;
  }

  .front .detail-main {
    gap: 14px;
  }

  .front .info-panel h2 {
    font-size: 19px;
  }

  .front .info-panel dl div {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 10px;
  }

  .front .meta-links {
    gap: 7px;
  }

  .front .meta-links a,
  .front .meta-links span,
  .front .meta-link {
    min-height: 27px;
    padding: 3px 8px;
    font-size: 12px;
  }

  .front .comment-form,
  .front .comment-auth form {
    gap: 8px;
    margin-bottom: 10px;
    padding: 10px;
  }

  .front .comment-auth-card {
    grid-template-columns: 1fr;
    gap: 9px;
    align-items: stretch;
    margin-bottom: 10px;
    padding: 10px;
  }

  .front .comment-auth-intro strong,
  .front .comment-auth-intro span {
    white-space: normal;
  }

  .front .comment-auth-switch,
  .front .comment-auth-panels {
    grid-column: 1;
    width: 100%;
  }

  .front .comment-auth-switch {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 2px;
  }

  .front .comment-auth-switch label {
    min-height: 28px;
    font-size: 12px;
  }

  .front .comment-auth-panel {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .front .comment-auth-panel label {
    gap: 4px;
    font-size: 12px;
  }

  .front .comment-auth-panel input,
  .front .comment-auth-panel button {
    width: 100%;
    min-height: 36px;
    font-size: 13px;
  }

  .front .comment-form-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .front .comment-auth-intro {
    gap: 3px;
  }

  .front .comment-auth-intro strong {
    font-size: 14px;
  }

  .front .comment-auth-intro span {
    font-size: 12px;
    line-height: 1.35;
  }

  .front .rating-field {
    width: 100%;
  }

  .front .rating-select {
    width: 100%;
  }

  .front .comment-form textarea {
    min-height: 82px;
    font-size: 13px;
  }

  .front .comment-item {
    padding: 10px;
  }

  .front .comment-list {
    gap: 8px;
  }

  .front .comment-list .empty-state {
    min-height: 76px;
    margin: 0;
    padding: 16px;
    font-size: 14px;
    line-height: 1.45;
  }

  .front .section-head {
    margin-top: 12px;
  }

  .front .player-shell {
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 12px auto 18px;
  }

  .front .player-frame {
    border-radius: 9px;
  }

  .front .player-side {
    padding: 14px;
    border-radius: 9px;
  }

  .front .player-side h1 {
    font-size: 21px;
    line-height: 1.18;
  }

  .front .player-current {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .front .player-lines {
    max-height: none;
    overflow: visible;
  }

  .front .player-line-group > summary {
    min-height: 38px;
    padding: 9px 10px;
  }

  .front .episode-list.vertical,
  .front .episode-group .episode-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .front .episode-list a {
    min-height: 31px;
    padding: 6px 7px;
    font-size: 11px;
  }

  .front .player-context {
    margin-bottom: 34px;
  }

  .front .player-context-card p {
    font-size: 13px;
    line-height: 1.58;
  }

  .front .footer,
  .front .portal-footer {
    width: calc(100vw - (var(--h5-edge) * 2));
    margin: 0 auto;
    padding: 18px 0;
  }
}

/* Final visual rhythm pass: tighter spacing, calmer type, and H5-native navigation. */
.front {
  --ui-radius: 8px;
  --ui-radius-sm: 7px;
}

.front .detail-hero {
  min-height: 430px;
  padding-top: 74px;
  padding-bottom: 38px;
}

.front .detail-layout {
  grid-template-columns: 184px minmax(0, 740px);
  gap: 24px 26px;
}

.front .detail-copy .eyebrow {
  margin-bottom: 8px;
  font-size: 13px;
  line-height: 1.35;
}

.front .detail-copy h1 {
  margin-bottom: 10px;
  font-size: clamp(30px, 2.65vw, 38px);
  line-height: 1.14;
}

.front .detail-copy p {
  max-width: 760px;
  font-size: 14px;
  line-height: 1.68;
}

.front .facts {
  gap: 7px;
  margin-top: 13px;
}

.front .facts span {
  min-height: 31px;
  padding: 5px 9px;
  border-radius: var(--ui-radius-sm);
  font-size: 12px;
}

.front .detail-actions {
  align-items: center;
}

.front .detail-actions .primary-btn,
.front .detail-actions .ghost-btn,
.front .detail-actions .disabled-action,
.front .detail-actions .like-button {
  min-height: 36px;
  padding: 0 14px;
  border-radius: var(--ui-radius-sm);
  font-size: 13px;
}

.front .detail-actions .like-button {
  min-width: 94px;
}

.front .info-panel,
.front .rank-box,
.front .section-block,
.front .comment-section {
  border-radius: var(--ui-radius);
}

.front .info-panel h2,
.front .section-head h2,
.front .comment-section h2 {
  font-size: clamp(19px, 1.7vw, 24px);
  line-height: 1.25;
}

.front .movie-title,
.front .portal-card h3 {
  letter-spacing: 0;
}

@media (max-width: 760px) {
  .front {
    --h5-edge: 12px;
  }

  .front .portal-top {
    border-bottom-color: rgba(148,163,184,.10);
  }

  .front .portal-bar,
  .front .portal-nav,
  .front .portal-shell,
  .front .page-shell,
  .front .player-shell,
  .front .player-context,
  .front .breadcrumb,
  .front .detail-breadcrumb {
    width: calc(100vw - (var(--h5-edge) * 2));
  }

  .front .portal-bar {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    min-height: 0;
    padding: 8px 0 6px;
  }

  .front .portal-brand {
    gap: 8px;
  }

  .front .portal-brand .brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 9px;
  }

  .front .portal-brand strong {
    font-size: 17px;
    line-height: 1.08;
  }

  .front .portal-actions {
    gap: 6px;
  }

  .front .portal-actions .user-chip {
    max-width: 74px;
    min-height: 30px;
    padding: 6px 8px;
    border-radius: 7px;
    font-size: 12px;
  }

  .front .theme-toggle[data-theme-toggle] {
    width: 50px;
    height: 28px;
    min-height: 28px;
    padding: 3px 5px;
    border-radius: 999px;
  }

  .front .portal-search {
    grid-template-columns: minmax(0, 1fr) 52px;
    min-height: 34px;
    border-radius: 8px;
  }

  .front .portal-search input,
  .front .portal-search button {
    min-height: 34px;
    font-size: 12px;
  }

  .front .portal-search input {
    padding: 0 11px;
  }

  .front .portal-nav {
    gap: 6px;
    padding: 5px 0 8px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .front .portal-nav.nav-with-menu {
    overflow: visible;
  }

  .front .portal-nav a,
  .front .nav-dropdown-trigger {
    min-height: 29px;
    padding: 5px 9px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 740;
    line-height: 1;
  }

  .front .portal-nav a.active,
  .front .portal-nav a:hover,
  .front .nav-dropdown:hover .nav-dropdown-trigger,
  .front .nav-dropdown:focus-within .nav-dropdown-trigger,
  .front .nav-dropdown.open .nav-dropdown-trigger,
  .front .nav-dropdown-trigger.active {
    border-color: rgba(255,255,255,.10);
    background: rgba(255,255,255,.075);
    color: var(--portal-strong);
  }

  :root[data-portal-theme="light"] .front .portal-nav a.active,
  :root[data-portal-theme="light"] .front .portal-nav a:hover,
  :root[data-portal-theme="light"] .front .nav-dropdown:hover .nav-dropdown-trigger,
  :root[data-portal-theme="light"] .front .nav-dropdown:focus-within .nav-dropdown-trigger,
  :root[data-portal-theme="light"] .front .nav-dropdown.open .nav-dropdown-trigger,
  :root[data-portal-theme="light"] .front .nav-dropdown-trigger.active {
    border-color: rgba(15,23,42,.08);
    background: rgba(15,23,42,.06);
  }

  .front .nav-dropdown-trigger span {
    width: 6px;
    height: 6px;
    border-width: 1.5px;
  }

  .front .nav-mega {
    top: 98px;
    left: var(--h5-edge);
    right: var(--h5-edge);
    border-radius: 8px;
  }

  .front .breadcrumb {
    margin-bottom: 8px;
    font-size: 11px;
  }

  .front .detail-hero {
    min-height: auto;
    padding: 10px 0 16px;
    background-image: linear-gradient(180deg, rgba(9,13,20,.94), rgba(9,13,20,.99));
  }

  .front .detail-layout {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 10px;
  }

  .front .detail-poster {
    width: 92px;
    border-radius: 8px;
  }

  .front .detail-copy .eyebrow {
    margin-bottom: 5px;
    font-size: 11px;
    line-height: 1.36;
  }

  .front .detail-copy h1 {
    margin-bottom: 7px;
    font-size: 22px;
    line-height: 1.16;
  }

  .front .detail-copy p {
    font-size: 12px;
    line-height: 1.48;
    -webkit-line-clamp: 3;
  }

  .front .facts {
    gap: 5px;
    margin-top: 8px;
  }

  .front .facts span {
    min-height: 26px;
    padding: 4px 7px;
    border-radius: 7px;
    font-size: 11px;
  }

  .front .detail-layout .detail-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-top: 2px;
  }

  .front .detail-actions .primary-btn,
  .front .detail-actions .ghost-btn,
  .front .detail-actions .disabled-action,
  .front .detail-actions .like-button {
    min-height: 32px;
    padding: 0 6px;
    border-radius: 7px;
    font-size: 11px;
    white-space: nowrap;
  }

  .front .detail-actions .like-button {
    gap: 4px;
  }

  .front .detail-actions .like-button em {
    display: inline;
    font-size: 10px;
  }

  .front .info-panel,
  .front .rank-box,
  .front .section-block,
  .front .comment-section {
    padding: 12px;
    border-radius: 8px;
  }

  .front .info-panel h2,
  .front .section-head h2,
  .front .comment-section h2 {
    font-size: 18px;
  }

  .front .page-shell,
  .front .detail-main {
    gap: 12px;
  }
}

/* Final mobile catalog pass: compact filters, readable tabs, complete poster browsing. */
.front .filter-row strong {
  background: rgba(255,255,255,.055);
  color: var(--portal-muted);
}

.front .filter-values a.active,
.front .filter-values a:hover {
  border-color: rgba(217,71,82,.42);
  background: rgba(217,71,82,.92);
  color: #fff;
}

@media (max-width: 760px) {
  .front .theme-toggle[data-theme-toggle] {
    width: auto;
    min-width: 82px;
    height: 28px;
    min-height: 28px;
    gap: 5px;
    padding: 3px 5px 3px 7px;
  }

  .front .theme-toggle[data-theme-toggle] .theme-label {
    display: inline-flex;
    min-width: 24px;
    color: currentColor;
    font-size: 0;
    line-height: 1;
    text-align: center;
  }

  .front .theme-toggle[data-theme-toggle] .theme-label::after {
    content: "夜间";
    font-size: 11px;
    font-weight: 760;
  }

  :root[data-portal-theme="light"] .front .theme-toggle[data-theme-toggle] .theme-label::after {
    content: "白天";
  }

  .front .theme-toggle[data-theme-toggle] .theme-icon {
    width: 14px;
    height: 14px;
    border-width: 1.5px;
    flex: 0 0 auto;
  }

  .front .theme-toggle[data-theme-toggle] .theme-switch {
    width: 25px;
    height: 16px;
    flex: 0 0 auto;
  }

  .front .theme-toggle[data-theme-toggle] .theme-switch::after {
    top: 2px;
    left: 11px;
    width: 12px;
    height: 12px;
  }

  :root[data-portal-theme="light"] .front .theme-toggle[data-theme-toggle] .theme-switch::after {
    left: 2px;
  }

  .front .catalog-page .filter-panel {
    gap: 8px;
    margin: 0 calc(var(--h5-edge) * -1) 10px;
    padding: 9px var(--h5-edge) 10px;
    max-height: 226px;
    border-width: 1px 0;
    border-radius: 0;
    background: rgba(13,18,27,.72);
    box-shadow: none;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(168,179,196,.34) transparent;
  }

  .front .catalog-page .filter-panel::-webkit-scrollbar {
    width: 3px;
  }

  .front .catalog-page .filter-panel::-webkit-scrollbar-thumb {
    background: rgba(168,179,196,.34);
    border-radius: 999px;
  }

  :root[data-portal-theme="light"] .front .catalog-page .filter-panel {
    background: rgba(255,255,255,.76);
  }

  .front .catalog-page .filter-row {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 7px;
    align-items: center;
  }

  .front .catalog-page .filter-row strong {
    justify-content: flex-start;
    width: 38px;
    min-height: 22px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: rgba(168,179,196,.76);
    font-size: 11px;
    font-weight: 760;
    white-space: nowrap;
  }

  .front .catalog-page .filter-values {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    margin: 0 calc(var(--h5-edge) * -1) 0 0;
    padding: 0 var(--h5-edge) 1px 0;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(168,179,196,.36) transparent;
  }

  .front .catalog-page .filter-values::-webkit-scrollbar {
    height: 3px;
  }

  .front .catalog-page .filter-values::-webkit-scrollbar-track {
    background: transparent;
  }

  .front .catalog-page .filter-values::-webkit-scrollbar-thumb {
    background: rgba(168,179,196,.36);
    border-radius: 999px;
  }

  .front .catalog-page .filter-values a {
    flex: 0 0 auto;
    min-width: auto;
    min-height: 28px;
    max-width: 92px;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1;
  }

  .front .catalog-page .filter-values a.active {
    box-shadow: 0 8px 18px rgba(217,71,82,.18);
  }

  .front .catalog-page .result-toolbar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin: 0 0 12px;
  }

  .front .catalog-page .sort-tabs {
    margin: 0 calc(var(--h5-edge) * -1);
    padding: 0 var(--h5-edge) 2px;
    background: transparent;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(168,179,196,.32) transparent;
  }

  .front .catalog-page .sort-tabs a {
    min-width: 86px;
    min-height: 30px;
    padding: 7px 10px;
    border-radius: 7px;
    background: rgba(255,255,255,.055);
    font-size: 12px;
  }

  .front .catalog-page .result-toolbar > span,
  .front .catalog-page .rank-entry {
    font-size: 12px;
  }

  .front .portal-main-flow .poster-row,
  .front .related-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    margin: 0 calc(var(--h5-edge) * -1);
    padding: 0 var(--h5-edge) 8px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: rgba(168,179,196,.34) transparent;
  }

  .front .portal-main-flow .poster-row::-webkit-scrollbar,
  .front .related-grid::-webkit-scrollbar {
    height: 3px;
  }

  .front .portal-main-flow .poster-row::-webkit-scrollbar-thumb,
  .front .related-grid::-webkit-scrollbar-thumb {
    background: rgba(168,179,196,.34);
    border-radius: 999px;
  }

  .front .portal-main-flow .portal-card,
  .front .related-grid .movie-card {
    flex: 0 0 128px;
    min-width: 128px;
    scroll-snap-align: start;
  }

  .front .portal-main-flow .poster,
  .front .related-grid .poster {
    aspect-ratio: 2 / 3;
    background: #05070b;
  }

  .front .portal-main-flow .poster img,
  .front .related-grid .poster img {
    object-fit: contain;
    background: #05070b;
  }

  .front .detail-related-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(128px, 38vw);
    grid-template-columns: none;
    grid-template-rows: repeat(2, auto);
    align-items: start;
    gap: 14px 10px;
    margin: 0 calc(var(--h5-edge) * -1) 10px;
    padding: 0 var(--h5-edge) 10px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: rgba(168,179,196,.34) transparent;
  }

  .front .detail-related-grid .movie-card {
    min-width: 0;
    scroll-snap-align: start;
  }

  .front .catalog-page .movie-grid,
  .front .catalog-page .catalog-content-grid .movie-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 10px;
  }

  .front .catalog-page .poster {
    aspect-ratio: 2 / 3;
    background: #05070b;
  }

  .front .catalog-page .poster img {
    object-fit: cover;
  }
}

/* Final readability pass: light mode and H5 must be designed, not just inverted. */
.front a,
.front button,
.front .filter-values a,
.front .sort-tabs a,
.front .hot-searches a {
  transition: transform .16s ease, filter .16s ease, background-color .16s ease, border-color .16s ease, color .16s ease;
}

.front .is-pressed {
  transform: translateY(1px);
  filter: brightness(1.06);
}

html.page-pending body.front::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100000;
  width: 42vw;
  height: 3px;
  border-radius: 0 999px 999px 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 20px rgba(24, 216, 102, .32);
  animation: pagePendingBar 1.2s ease-in-out infinite;
}

@keyframes pagePendingBar {
  0% { transform: translateX(-45vw); opacity: .72; }
  50% { opacity: 1; }
  100% { transform: translateX(105vw); opacity: .72; }
}

.front .rank-list span {
  min-width: 58px;
  padding: 3px 8px;
  border: 1px solid rgba(148,163,184,.16);
  border-radius: 999px;
  background: rgba(148,163,184,.08);
  color: rgba(203,213,225,.82);
  font-size: 11px;
  font-weight: 760;
  line-height: 1.2;
}

.front .rank-list span:not(.score-empty) {
  border-color: rgba(240,178,75,.20);
  background: rgba(240,178,75,.10);
  color: #ffd37a;
}

.front .rank-list span.score-empty {
  color: rgba(168,179,196,.72);
}

:root[data-portal-theme="light"] .front,
:root[data-portal-theme="light"] .front.tpl-iqiyi {
  --portal-text: #111827;
  --portal-strong: #0f172a;
  --portal-muted: #526174;
}

:root[data-portal-theme="light"] .front .section-block h2,
:root[data-portal-theme="light"] .front .rank-box h2,
:root[data-portal-theme="light"] .front .info-panel h2,
:root[data-portal-theme="light"] .front .comment-panel h2,
:root[data-portal-theme="light"] .front .movie-title,
:root[data-portal-theme="light"] .front .rank-list a,
:root[data-portal-theme="light"] .front .channel-grid a strong {
  color: #0f172a;
}

:root[data-portal-theme="light"] .front .section-block,
:root[data-portal-theme="light"] .front .rank-box,
:root[data-portal-theme="light"] .front .info-panel,
:root[data-portal-theme="light"] .front .channel-cloud,
:root[data-portal-theme="light"] .front .comment-panel,
:root[data-portal-theme="light"] .front .portal-card,
:root[data-portal-theme="light"] .front .movie-card {
  border-color: rgba(21,128,61,.12);
  background: rgba(255,255,255,.96);
  color: #111827;
}

:root[data-portal-theme="light"] .front .rank-list li::before {
  color: #64748b;
}

:root[data-portal-theme="light"] .front .rank-list li:nth-child(-n+3)::before {
  border: 1px solid rgba(34,197,94,.24);
  background: #effdf4;
  color: #16a34a;
  box-shadow: none;
}

:root[data-portal-theme="light"] .front .rank-list span {
  border-color: #dbe6dc;
  background: #f8fafc;
  color: #475569;
}

:root[data-portal-theme="light"] .front .rank-list span:not(.score-empty) {
  border-color: #cfe8d4;
  background: #f1fbf3;
  color: #166534;
}

@media (max-width: 760px) {
  .front .portal-nav {
    align-items: center;
    min-height: 46px;
  }

  .front .portal-nav a,
  .front .nav-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    min-height: 38px;
    padding: 0 15px;
    line-height: 1;
    white-space: nowrap;
  }

  .front .nav-dropdown-trigger {
    gap: 7px;
  }

  .front .hot-searches {
    align-items: center;
    min-height: 44px;
    padding-top: 7px;
  }

  .front .hot-searches strong,
  .front .hot-searches a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    min-height: 32px;
    line-height: 1;
  }

  .front .hot-searches strong {
    color: var(--portal-strong);
  }

  :root[data-portal-theme="light"] .front .portal-top {
    border-bottom-color: #dde8e2;
    background: rgba(255,255,255,.96);
  }

  :root[data-portal-theme="light"] .front .portal-search {
    border-color: rgba(21,128,61,.26);
    background: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(21,128,61,.08);
  }

  :root[data-portal-theme="light"] .front .portal-search input {
    color: #0f172a;
  }

  :root[data-portal-theme="light"] .front .portal-search input::placeholder {
    color: #64748b;
    opacity: 1;
  }

  :root[data-portal-theme="light"] .front .portal-nav {
    border-bottom-color: #e2e8f0;
  }

  :root[data-portal-theme="light"] .front .portal-nav a,
  :root[data-portal-theme="light"] .front .nav-dropdown-trigger {
    color: #475569;
  }

  :root[data-portal-theme="light"] .front .portal-nav a.active,
  :root[data-portal-theme="light"] .front .portal-nav a:hover,
  :root[data-portal-theme="light"] .front .nav-dropdown:hover .nav-dropdown-trigger,
  :root[data-portal-theme="light"] .front .nav-dropdown:focus-within .nav-dropdown-trigger,
  :root[data-portal-theme="light"] .front .nav-dropdown.open .nav-dropdown-trigger,
  :root[data-portal-theme="light"] .front .nav-dropdown-trigger.active {
    border-color: rgba(21,128,61,.18);
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 8px 22px rgba(15,23,42,.08);
  }

  :root[data-portal-theme="light"] .front.tpl-iqiyi .portal-nav a.active,
  :root[data-portal-theme="light"] .front.tpl-iqiyi .portal-nav a:hover,
  :root[data-portal-theme="light"] .front.tpl-iqiyi .nav-dropdown:hover .nav-dropdown-trigger,
  :root[data-portal-theme="light"] .front.tpl-iqiyi .nav-dropdown:focus-within .nav-dropdown-trigger,
  :root[data-portal-theme="light"] .front.tpl-iqiyi .nav-dropdown.open .nav-dropdown-trigger,
  :root[data-portal-theme="light"] .front.tpl-iqiyi .nav-dropdown-trigger.active {
    border-color: rgba(21,128,61,.20);
    background: #f2fbf4;
    color: #12351f;
  }

  :root[data-portal-theme="light"] .front .hot-searches {
    border-top: 1px solid #e2e8f0;
    border-bottom-color: #dce8df;
    background: #ffffff;
    scrollbar-color: rgba(100,116,139,.36) transparent;
  }

  :root[data-portal-theme="light"] .front .hot-searches strong {
    background: #ffffff;
    color: #0f172a;
  }

  :root[data-portal-theme="light"] .front .hot-searches a,
  :root[data-portal-theme="light"] .front.tpl-iqiyi .hot-searches a {
    border-color: rgba(21,128,61,.22);
    background: #f7fbf8;
    color: #334155;
  }

  :root[data-portal-theme="light"] .front .catalog-page .filter-panel,
  :root[data-portal-theme="light"] .front.tpl-iqiyi .catalog-page .filter-panel {
    border-color: #dce8df;
    background: rgba(255,255,255,.96);
    box-shadow: inset 0 -1px 0 rgba(15,23,42,.04);
  }

  :root[data-portal-theme="light"] .front .catalog-page .filter-row strong,
  :root[data-portal-theme="light"] .front.tpl-iqiyi .catalog-page .filter-row strong {
    color: #475569;
  }

  :root[data-portal-theme="light"] .front .catalog-page .filter-values a,
  :root[data-portal-theme="light"] .front.tpl-iqiyi .catalog-page .filter-values a,
  :root[data-portal-theme="light"] .front .catalog-page .sort-tabs a {
    border-color: #d5e2d8;
    background: #ffffff;
    color: #334155;
  }

  :root[data-portal-theme="light"] .front .catalog-page .filter-values a.active,
  :root[data-portal-theme="light"] .front .catalog-page .filter-values a:hover,
  :root[data-portal-theme="light"] .front.tpl-iqiyi .catalog-page .filter-values a.active,
  :root[data-portal-theme="light"] .front.tpl-iqiyi .catalog-page .filter-values a:hover,
  :root[data-portal-theme="light"] .front .catalog-page .sort-tabs a.active,
  :root[data-portal-theme="light"] .front .catalog-page .sort-tabs a:hover {
    border-color: #22c55e;
    background: #22c55e;
    color: #052e16;
  }
}

/* Light-theme final guardrail: every template must keep text readable on PC and H5. */
:root[data-portal-theme="light"] .front .hot-searches {
  border-color: #dce8df;
  background: rgba(255,255,255,.88);
}

:root[data-portal-theme="light"] .front .portal-search,
:root[data-portal-theme="light"] .front.tpl-iqiyi .portal-search {
  border-color: rgba(21,128,61,.24);
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(21,128,61,.06);
}

:root[data-portal-theme="light"] .front .portal-search input,
:root[data-portal-theme="light"] .front.tpl-iqiyi .portal-search input {
  color: #0f172a;
}

:root[data-portal-theme="light"] .front .portal-search input::placeholder,
:root[data-portal-theme="light"] .front.tpl-iqiyi .portal-search input::placeholder {
  color: #64748b;
  opacity: 1;
}

:root[data-portal-theme="light"] .front .hot-searches strong {
  color: #0f172a;
}

:root[data-portal-theme="light"] .front .hot-searches a,
:root[data-portal-theme="light"] .front.tpl-iqiyi .hot-searches a {
  border-color: rgba(21,128,61,.20);
  background: #f8fbf8;
  color: #334155;
  box-shadow: none;
}

:root[data-portal-theme="light"] .front .hot-searches a:hover,
:root[data-portal-theme="light"] .front.tpl-iqiyi .hot-searches a:hover {
  border-color: rgba(34,197,94,.36);
  background: #effdf4;
  color: #14532d;
}

:root[data-portal-theme="light"] .front .filter-panel,
:root[data-portal-theme="light"] .front.tpl-iqiyi .filter-panel {
  border-color: #d9e7dc;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(15,23,42,.06);
}

:root[data-portal-theme="light"] .front .filter-row strong,
:root[data-portal-theme="light"] .front.tpl-iqiyi .filter-row strong {
  background: #f1f5f9;
  color: #475569;
}

:root[data-portal-theme="light"] .front .filter-values a,
:root[data-portal-theme="light"] .front.tpl-iqiyi .filter-values a,
:root[data-portal-theme="light"] .front .sort-tabs a,
:root[data-portal-theme="light"] .front.tpl-iqiyi .sort-tabs a {
  border-color: #d8e5dc;
  background: #ffffff;
  color: #334155;
}

:root[data-portal-theme="light"] .front .filter-values a.active,
:root[data-portal-theme="light"] .front .filter-values a:hover,
:root[data-portal-theme="light"] .front.tpl-iqiyi .filter-values a.active,
:root[data-portal-theme="light"] .front.tpl-iqiyi .filter-values a:hover,
:root[data-portal-theme="light"] .front .sort-tabs a.active,
:root[data-portal-theme="light"] .front .sort-tabs a:hover,
:root[data-portal-theme="light"] .front.tpl-iqiyi .sort-tabs a.active,
:root[data-portal-theme="light"] .front.tpl-iqiyi .sort-tabs a:hover {
  border-color: #22c55e;
  background: #22c55e;
  color: #052e16;
}

:root[data-portal-theme="light"] .front .catalog-total,
:root[data-portal-theme="light"] .front .section-kicker,
:root[data-portal-theme="light"] .front .movie-card small,
:root[data-portal-theme="light"] .front .movie-meta,
:root[data-portal-theme="light"] .front .breadcrumbs,
:root[data-portal-theme="light"] .front .breadcrumb,
:root[data-portal-theme="light"] .front .subtle,
:root[data-portal-theme="light"] .front:not(.haoju-exact) p {
  color: #526174;
}

:root[data-portal-theme="light"] .front .rank-list span:not(.score-empty),
:root[data-portal-theme="light"] .front.tpl-iqiyi .rank-list li span:not(.score-empty) {
  border-color: #cfe8d4;
  background: #f1fbf3;
  color: #166534;
}

:root[data-portal-theme="light"] .front .rank-list span:not(.score-empty)::before {
  color: #64748b;
}

@media (max-width: 760px) {
  :root[data-portal-theme="light"] .front .filter-panel,
  :root[data-portal-theme="light"] .front.tpl-iqiyi .filter-panel {
    background: rgba(255,255,255,.94);
    box-shadow: inset 0 -1px 0 rgba(15,23,42,.04);
  }

  :root[data-portal-theme="light"] .front .filter-row strong,
  :root[data-portal-theme="light"] .front.tpl-iqiyi .filter-row strong {
    background: transparent;
    color: #475569;
  }
}

/* Stream template final guardrail: structure, readability and H5 fit. */
.stream-template {
  color: var(--stream-text);
}

.stream-template .stream-focus-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.stream-template .stream-focus-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--stream-line);
  border-radius: 999px;
  background: var(--stream-soft);
}

.stream-template .stream-focus-tabs label {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--stream-muted);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.stream-template .stream-focus-radio:nth-of-type(1):checked ~ .stream-focus-tabs label:nth-child(1),
.stream-template .stream-focus-radio:nth-of-type(2):checked ~ .stream-focus-tabs label:nth-child(2) {
  background: linear-gradient(135deg, var(--stream-accent), var(--stream-accent-2));
  color: #fff;
  box-shadow: 0 12px 24px rgba(255, 79, 154, .22);
}

.stream-template .stream-focus-panes {
  min-height: 348px;
}

.stream-template .stream-focus-pane {
  display: none;
  gap: 12px;
}

.stream-template .stream-focus-radio:nth-of-type(1):checked ~ .stream-focus-panes .stream-focus-pane:nth-child(1),
.stream-template .stream-focus-radio:nth-of-type(2):checked ~ .stream-focus-panes .stream-focus-pane:nth-child(2) {
  display: grid;
}

.stream-template .stream-side-stack {
  min-height: 0;
}

.stream-template .stream-prime {
  grid-template-columns: minmax(0, 1fr) 300px;
}

.stream-template .stream-prime-card {
  min-height: 382px;
}

.stream-template .stream-prime-copy {
  padding: 78px 38px 36px;
}

.stream-template .stream-prime h1 {
  font-size: clamp(32px, 3.4vw, 50px);
}

.stream-template .stream-prime p {
  max-height: 92px;
  overflow: hidden;
}

.stream-template .stream-ticker,
.stream-template .stream-nav,
.stream-template .stream-poster-rail,
.stream-template .stream-channel-grid,
.stream-template .stream-filter-line div,
.stream-template .stream-sortline nav {
  -webkit-overflow-scrolling: touch;
  scrollbar-color: rgba(148, 163, 184, .42) transparent;
  scrollbar-width: thin;
}

.stream-template .stream-ticker div::-webkit-scrollbar,
.stream-template .stream-nav::-webkit-scrollbar,
.stream-template .stream-poster-rail::-webkit-scrollbar,
.stream-template .stream-channel-grid::-webkit-scrollbar,
.stream-template .stream-filter-line div::-webkit-scrollbar,
.stream-template .stream-sortline nav::-webkit-scrollbar {
  height: 4px;
}

.stream-template .stream-ticker div::-webkit-scrollbar-thumb,
.stream-template .stream-nav::-webkit-scrollbar-thumb,
.stream-template .stream-poster-rail::-webkit-scrollbar-thumb,
.stream-template .stream-channel-grid::-webkit-scrollbar-thumb,
.stream-template .stream-filter-line div::-webkit-scrollbar-thumb,
.stream-template .stream-sortline nav::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(148, 163, 184, .38);
}

.stream-template .stream-card-grid {
  align-items: start;
}

.stream-template .stream-poster-card h3,
.stream-template .stream-rank-card li a,
.stream-template .stream-category-board li a,
.stream-template .stream-mini-card b {
  letter-spacing: 0;
}

.stream-template .stream-poster-card h3 {
  min-height: 40px;
}

.stream-template .stream-poster-card p {
  min-height: 19px;
}

.stream-template .stream-error-recommend .stream-poster-rail {
  grid-auto-columns: minmax(118px, 136px);
}

.stream-template .stream-error-hero {
  min-height: 260px;
  padding: 46px;
}

.not-found-card-row {
  grid-template-columns: repeat(5, minmax(112px, 132px));
}

.not-found-card-row .movie-card {
  max-width: 132px;
}

:root[data-portal-theme="light"] .stream-template {
  --stream-text: #172033;
  --stream-strong: #0f172a;
  --stream-muted: #4f5b70;
  --stream-line: rgba(31, 41, 55, .14);
  --stream-soft: rgba(15, 23, 42, .045);
}

:root[data-portal-theme="light"] .stream-template .stream-ticker a,
:root[data-portal-theme="light"] .stream-template .stream-filter-line a,
:root[data-portal-theme="light"] .stream-template .stream-sortline a,
:root[data-portal-theme="light"] .stream-template .stream-facts span,
:root[data-portal-theme="light"] .stream-template .stream-focus-tabs,
:root[data-portal-theme="light"] .stream-template .stream-nav a {
  color: #334155;
}

:root[data-portal-theme="light"] .stream-template .stream-filter-line a,
:root[data-portal-theme="light"] .stream-template .stream-sortline a,
:root[data-portal-theme="light"] .stream-template .stream-ticker a,
:root[data-portal-theme="light"] .stream-template .stream-focus-tabs {
  border-color: #d9e2ea;
  background: #fff;
}

:root[data-portal-theme="light"] .stream-template .stream-filter-line a.active,
:root[data-portal-theme="light"] .stream-template .stream-sortline a.active,
:root[data-portal-theme="light"] .stream-template .stream-filter-line a:hover,
:root[data-portal-theme="light"] .stream-template .stream-sortline a:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--stream-accent), var(--stream-accent-2));
}

:root[data-portal-theme="light"] .stream-template .stream-rank-card li span,
:root[data-portal-theme="light"] .stream-template .stream-category-board li span,
:root[data-portal-theme="light"] .stream-template .stream-poster-card > a span {
  color: #7c2d12;
  background: #fff7ed;
  border-color: #fed7aa;
}

@media (max-width: 1220px) {
  .stream-template .stream-prime {
    grid-template-columns: 1fr;
  }

  .stream-template .stream-focus-panes {
    min-height: 0;
  }

  .stream-template .stream-focus-pane {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .stream-template .stream-head {
    width: calc(100vw - 28px);
    align-items: center;
  }

  .stream-template .stream-actions {
    align-items: center;
  }

  .stream-template .theme-toggle[data-theme-toggle],
  .stream-template .stream-actions .theme-toggle {
    min-width: 112px;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 8px;
    border-radius: 999px;
  }

  .stream-template .theme-label {
    max-width: 42px;
    overflow: hidden;
    white-space: nowrap;
  }

  .stream-template .stream-nav {
    width: 100%;
    min-height: 48px;
    gap: 12px;
    padding: 0 14px 9px;
    scrollbar-width: none;
  }

  .stream-template .stream-nav::-webkit-scrollbar {
    display: none;
  }

  .stream-template .stream-nav a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 13px;
    border: 1px solid transparent;
    border-radius: 999px;
    line-height: 1;
  }

  .stream-template .stream-nav a::after {
    display: none;
  }

  .stream-template .stream-nav a.active {
    border-color: rgba(255, 79, 154, .36);
    background: rgba(255, 79, 154, .14);
    color: var(--stream-strong);
  }

  .stream-template .stream-ticker {
    margin: 0 -14px 12px;
    padding: 9px 14px 11px;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
  }

  .stream-template .stream-ticker strong {
    font-size: 13px;
  }

  .stream-template .stream-ticker a {
    max-width: 136px;
    min-height: 32px;
    padding: 0 11px;
    font-size: 12.5px;
  }

  .stream-template .stream-prime-card {
    min-height: 314px;
    border-radius: 20px;
  }

  .stream-template .stream-prime-copy {
    padding: 56px 18px 24px;
  }

  .stream-template .stream-prime h1 {
    font-size: 28px;
  }

  .stream-template .stream-prime p {
    max-height: 88px;
    font-size: 13px;
  }

  .stream-template .stream-cta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stream-template .stream-channel-map,
  .stream-template .stream-showcase,
  .stream-template .stream-lane,
  .stream-template .stream-latest,
  .stream-template .stream-info-card,
  .stream-template .stream-filter-deck,
  .stream-template .stream-result-panel,
  .stream-template .stream-category-board {
    padding: 14px;
    border-radius: 16px;
  }

  .stream-template .stream-poster-rail {
    grid-auto-columns: minmax(124px, 42vw);
    gap: 12px;
  }

  .stream-template .stream-poster-card h3 {
    min-height: 38px;
    font-size: 14px;
  }

  .stream-template .stream-poster-card p {
    font-size: 12px;
  }

  .stream-category .stream-catalog-brief {
    padding: 0 0 10px;
  }

  .stream-category .stream-catalog-brief h1 {
    font-size: 25px;
  }

  .stream-category .stream-catalog-brief p {
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 1.55;
  }

  .stream-category .stream-count-pill {
    min-height: 34px;
    margin-top: 10px;
    padding: 0 10px;
    font-size: 12px;
  }

  .stream-category .stream-filter-deck {
    max-height: 218px;
    margin: 12px -14px 10px;
    padding: 9px 14px 10px;
    overflow-y: auto;
    border-width: 1px 0;
    border-radius: 0;
    gap: 7px;
    box-shadow: none;
  }

  .stream-category .stream-filter-line {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
  }

  .stream-category .stream-filter-line strong {
    min-height: 30px;
    color: var(--stream-muted);
    font-size: 11px;
    line-height: 1;
  }

  .stream-category .stream-filter-line div {
    flex-wrap: nowrap;
    gap: 7px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .stream-category .stream-filter-line div::-webkit-scrollbar {
    display: none;
  }

  .stream-category .stream-filter-line a {
    max-width: 94px;
    min-height: 30px;
    padding: 0 10px;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .stream-category .stream-sortline {
    margin: 10px 0 14px;
  }

  .stream-category .stream-sortline nav {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .stream-category .stream-sortline nav::-webkit-scrollbar {
    display: none;
  }

  .stream-category .stream-sortline span {
    font-size: 13px;
  }

  .stream-category .stream-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px 10px;
  }

  .stream-category .stream-category-board {
    order: 2;
  }

  .stream-template .stream-detail-inner {
    grid-template-columns: 102px minmax(0, 1fr);
    gap: 14px;
  }

  .stream-template .stream-detail-copy h1 {
    font-size: 24px;
  }

  .stream-template .stream-detail-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stream-template .stream-detail-actions .like-button {
    gap: 5px;
  }

  .stream-template .stream-focus-pane {
    grid-template-columns: 1fr;
  }

  .stream-template .stream-error-hero {
    padding: 28px 18px;
  }

  .stream-template .stream-error-recommend .stream-poster-rail,
  .not-found-card-row {
    grid-auto-columns: 118px;
  }
}

/* Mobile catalog scrollbar guardrail: swipeable, but no rough gray bars. */
@media (max-width: 760px) {
  .front .catalog-page .filter-values,
  .front.tpl-iqiyi .catalog-page .filter-values,
  .front.tpl-stream .catalog-page .filter-values,
  .stream-category .stream-filter-line div,
  .stream-template .stream-filter-line div,
  .front .catalog-page .sort-tabs,
  .front.tpl-iqiyi .catalog-page .sort-tabs,
  .stream-category .stream-sortline nav,
  .front .hot-searches,
  .stream-template .stream-ticker div {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none !important;
    -ms-overflow-style: none;
  }

  .front .catalog-page .filter-values::-webkit-scrollbar,
  .front.tpl-iqiyi .catalog-page .filter-values::-webkit-scrollbar,
  .front.tpl-stream .catalog-page .filter-values::-webkit-scrollbar,
  .stream-category .stream-filter-line div::-webkit-scrollbar,
  .stream-template .stream-filter-line div::-webkit-scrollbar,
  .front .catalog-page .sort-tabs::-webkit-scrollbar,
  .front.tpl-iqiyi .catalog-page .sort-tabs::-webkit-scrollbar,
  .stream-category .stream-sortline nav::-webkit-scrollbar,
  .front .hot-searches::-webkit-scrollbar,
  .stream-template .stream-ticker div::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
  }

  .front .catalog-page .filter-values,
  .front.tpl-iqiyi .catalog-page .filter-values {
    padding-bottom: 0 !important;
  }

  .front .catalog-page .filter-row,
  .front.tpl-iqiyi .catalog-page .filter-row {
    align-items: center;
  }

  .front .catalog-page .filter-values a,
  .front.tpl-iqiyi .catalog-page .filter-values a {
    line-height: 1;
  }
}

/* Final template QA patch: Jable-inspired inner pages and global H5 readability. */
.jable-focus-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.jable-focus-head h2 {
  margin: 0;
}

.jable-focus-head span {
  color: var(--jable-muted);
  font-size: 12px;
  font-weight: 900;
}

.jable-focus-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.jable-focus-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--jable-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
}

.jable-focus-tabs label {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--jable-muted);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.jable-focus-radio:nth-of-type(1):checked ~ .jable-focus-tabs label:nth-child(1),
.jable-focus-radio:nth-of-type(2):checked ~ .jable-focus-tabs label:nth-child(2) {
  color: #12100a;
  background: linear-gradient(135deg, #f5c84b, #ff8b55);
}

.jable-focus-panes {
  margin-top: 12px;
}

.jable-focus-pane {
  display: none;
  gap: 0;
}

.jable-focus-radio:nth-of-type(1):checked ~ .jable-focus-panes .jable-focus-pane:nth-child(1),
.jable-focus-radio:nth-of-type(2):checked ~ .jable-focus-panes .jable-focus-pane:nth-child(2) {
  display: grid;
}

.jable-focus-pane a {
  display: grid;
  gap: 5px;
  padding: 12px 0;
  border-bottom: 1px solid var(--jable-line);
}

.jable-focus-pane a:last-child {
  border-bottom: 0;
}

.jable-template .jable-hero article h1,
.jable-template .jable-hero article p,
.jable-template .jable-hero article span {
  color: #fff !important;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .45);
}

.jable-template .jable-hero article .ghost-btn {
  color: #fff !important;
  border-color: rgba(255, 255, 255, .46) !important;
  background: rgba(0, 0, 0, .58) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06) !important;
}

:root[data-portal-theme="light"] .front .hot-searches a,
:root[data-portal-theme="light"] .stream-template .stream-filter-line a,
:root[data-portal-theme="light"] .stream-template .stream-sortline a,
:root[data-portal-theme="light"] .stream-template .stream-nav a {
  color: #334155;
}

:root[data-portal-theme="light"] .front .rank-list span:not(.score-empty),
:root[data-portal-theme="light"] .stream-template .stream-rank-card li span,
:root[data-portal-theme="light"] .stream-template .stream-category-board li span {
  color: #166534;
  background: rgba(34, 197, 94, .09);
}

@media (max-width: 760px) {
  .front .catalog-page .filter-values,
  .front .catalog-page .sort-tabs,
  .front .hot-searches,
  .stream-template .stream-filter-line div,
  .stream-template .stream-sortline nav,
  .stream-template .stream-ticker div,
  .stream-template .stream-nav {
    padding-bottom: 0 !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
  }

  .front .catalog-page .filter-values::-webkit-scrollbar,
  .front .catalog-page .sort-tabs::-webkit-scrollbar,
  .front .hot-searches::-webkit-scrollbar,
  .stream-template .stream-filter-line div::-webkit-scrollbar,
  .stream-template .stream-sortline nav::-webkit-scrollbar,
  .stream-template .stream-ticker div::-webkit-scrollbar,
  .stream-template .stream-nav::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
    display: none !important;
  }
}

/* 2026-06-10 final template audit guardrails: PC/H5 readability, calmer spacing, no accidental desktop bleed. */
:root[data-portal-theme="light"] body.front.portal,
:root[data-portal-theme="light"] body.front.portal.tpl-iqiyi,
:root[data-portal-theme="light"] body.front.portal.tpl-stream,
:root[data-portal-theme="light"] body.tube-template {
  color: #111827;
}

:root[data-portal-theme="light"] .front .hot-searches,
:root[data-portal-theme="light"] .front.tpl-iqiyi .hot-searches,
:root[data-portal-theme="light"] .front.tpl-stream .hot-searches,
:root[data-portal-theme="light"] .tube-hotline {
  background: transparent;
  border-color: #dce8df;
}

:root[data-portal-theme="light"] .front .hot-searches strong,
:root[data-portal-theme="light"] .front.tpl-iqiyi .hot-searches strong,
:root[data-portal-theme="light"] .front.tpl-stream .hot-searches strong,
:root[data-portal-theme="light"] .tube-hotline strong {
  color: #111827;
}

:root[data-portal-theme="light"] .front .hot-searches a,
:root[data-portal-theme="light"] .front.tpl-iqiyi .hot-searches a,
:root[data-portal-theme="light"] .front.tpl-stream .hot-searches a,
:root[data-portal-theme="light"] .tube-hotline a {
  border-color: #d6e4da;
  background: #ffffff;
  color: #334155;
  box-shadow: none;
}

:root[data-portal-theme="light"] .front .hot-searches a:hover,
:root[data-portal-theme="light"] .front.tpl-iqiyi .hot-searches a:hover,
:root[data-portal-theme="light"] .front.tpl-stream .hot-searches a:hover,
:root[data-portal-theme="light"] .tube-hotline a:hover {
  border-color: #22c55e;
  background: #effdf4;
  color: #14532d;
}

:root[data-portal-theme="light"] .front .filter-panel,
:root[data-portal-theme="light"] .front.tpl-iqiyi .filter-panel,
:root[data-portal-theme="light"] .front.tpl-stream .filter-panel,
:root[data-portal-theme="light"] .tube-filter-panel,
:root[data-portal-theme="light"] .tube-page-head,
:root[data-portal-theme="light"] .tube-section,
:root[data-portal-theme="light"] .tube-panel,
:root[data-portal-theme="light"] .tube-side section,
:root[data-portal-theme="light"] .tube-rank-wall section,
:root[data-portal-theme="light"] .tube-focus {
  border-color: #d9e7dc;
  background: #ffffff;
  color: #111827;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .06);
}

:root[data-portal-theme="light"] .front .filter-row strong,
:root[data-portal-theme="light"] .front.tpl-iqiyi .filter-row strong,
:root[data-portal-theme="light"] .front.tpl-stream .filter-row strong,
:root[data-portal-theme="light"] .tube-filter-row > strong {
  color: #475569;
}

:root[data-portal-theme="light"] .front .filter-values a,
:root[data-portal-theme="light"] .front.tpl-iqiyi .filter-values a,
:root[data-portal-theme="light"] .front.tpl-stream .filter-values a,
:root[data-portal-theme="light"] .front .sort-tabs a,
:root[data-portal-theme="light"] .front.tpl-iqiyi .sort-tabs a,
:root[data-portal-theme="light"] .front.tpl-stream .sort-tabs a,
:root[data-portal-theme="light"] .tube-filter-row a,
:root[data-portal-theme="light"] .tube-sortbar a,
:root[data-portal-theme="light"] .tube-tags span,
:root[data-portal-theme="light"] .tube-meta-list a,
:root[data-portal-theme="light"] .tube-meta-list span {
  border-color: #d8e5dc;
  background: #ffffff;
  color: #334155;
}

:root[data-portal-theme="light"] .front .filter-values a.active,
:root[data-portal-theme="light"] .front .filter-values a:hover,
:root[data-portal-theme="light"] .front.tpl-iqiyi .filter-values a.active,
:root[data-portal-theme="light"] .front.tpl-iqiyi .filter-values a:hover,
:root[data-portal-theme="light"] .front.tpl-stream .filter-values a.active,
:root[data-portal-theme="light"] .front.tpl-stream .filter-values a:hover,
:root[data-portal-theme="light"] .front .sort-tabs a.active,
:root[data-portal-theme="light"] .front .sort-tabs a:hover,
:root[data-portal-theme="light"] .front.tpl-iqiyi .sort-tabs a.active,
:root[data-portal-theme="light"] .front.tpl-iqiyi .sort-tabs a:hover,
:root[data-portal-theme="light"] .front.tpl-stream .sort-tabs a.active,
:root[data-portal-theme="light"] .front.tpl-stream .sort-tabs a:hover,
:root[data-portal-theme="light"] .tube-filter-row a.active,
:root[data-portal-theme="light"] .tube-filter-row a:hover,
:root[data-portal-theme="light"] .tube-sortbar a.active,
:root[data-portal-theme="light"] .tube-sortbar a:hover,
:root[data-portal-theme="light"] .tube-meta-list a:hover {
  border-color: #22c55e;
  background: #22c55e;
  color: #052e16;
}

:root[data-portal-theme="light"] .front .rank-list span:not(.score-empty),
:root[data-portal-theme="light"] .front.tpl-iqiyi .rank-list li span:not(.score-empty),
:root[data-portal-theme="light"] .front.tpl-stream .rank-list span:not(.score-empty),
:root[data-portal-theme="light"] .tube-side li span,
:root[data-portal-theme="light"] .tube-rank-wall li span {
  border-radius: 999px;
  background: #f1fbf3;
  color: #166534;
}

.front .hot-searches,
.front .filter-values,
.front .sort-tabs,
.front .channel-genre-tabs,
.tube-hotline div,
.tube-filter-row > div,
.tube-sortbar nav,
.tube-nav {
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 760px) {
  .front .hot-searches,
  .front .filter-values,
  .front .sort-tabs,
  .front .channel-genre-tabs,
  .tube-hotline div,
  .tube-filter-row > div,
  .tube-sortbar nav,
  .tube-nav {
    scrollbar-width: none;
  }

  .front .hot-searches::-webkit-scrollbar,
  .front .filter-values::-webkit-scrollbar,
  .front .sort-tabs::-webkit-scrollbar,
  .front .channel-genre-tabs::-webkit-scrollbar,
  .tube-hotline div::-webkit-scrollbar,
  .tube-filter-row > div::-webkit-scrollbar,
  .tube-sortbar nav::-webkit-scrollbar,
  .tube-nav::-webkit-scrollbar {
    display: none;
  }

  .front .catalog-page .filter-panel,
  .front.tpl-iqiyi .catalog-page .filter-panel,
  .front.tpl-stream .catalog-page .filter-panel,
  .tube-filter-panel {
    max-height: 196px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, .22) transparent;
  }

  .front .catalog-page .filter-panel::-webkit-scrollbar,
  .front.tpl-iqiyi .catalog-page .filter-panel::-webkit-scrollbar,
  .front.tpl-stream .catalog-page .filter-panel::-webkit-scrollbar,
  .tube-filter-panel::-webkit-scrollbar {
    width: 2px;
    height: 0;
  }

  .front .catalog-page .filter-panel::-webkit-scrollbar-thumb,
  .front.tpl-iqiyi .catalog-page .filter-panel::-webkit-scrollbar-thumb,
  .front.tpl-stream .catalog-page .filter-panel::-webkit-scrollbar-thumb,
  .tube-filter-panel::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, .22);
    border-radius: 999px;
  }

  .front .portal-nav a,
  .front .nav-dropdown-trigger,
  .tube-nav a,
  .tube-filter-row a,
  .tube-sortbar a,
  .tube-hotline a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    text-align: center;
  }

  .front .portal-nav a,
  .front .nav-dropdown-trigger {
    height: 36px;
    min-height: 36px;
    padding: 0 13px;
  }

  .tube-nav {
    min-height: 44px;
    padding-bottom: 6px;
  }

  .tube-nav a {
    height: 34px;
    min-height: 34px;
    padding: 0 13px;
    font-size: 13px;
  }

  .front .hot-searches,
  .tube-hotline {
    min-height: 38px;
    margin-bottom: 10px;
    padding-bottom: 4px;
  }

  .front .hot-searches strong,
  .tube-hotline strong {
    font-size: 12px;
  }

  .front .hot-searches a,
  .tube-hotline a {
    max-width: 108px;
    height: 30px;
    min-height: 30px;
    padding: 0 9px;
    overflow: hidden;
    font-size: 11.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .tube-topline {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 7px;
    min-height: 54px;
    padding-top: 7px;
  }

  .tube-brand img {
    width: 34px;
    height: 34px;
  }

  .tube-brand strong {
    font-size: 18px;
  }

  .tube-top .theme-toggle[data-theme-toggle] {
    min-width: 82px;
    height: 32px;
    min-height: 32px;
  }

  .tube-top .theme-toggle[data-theme-toggle] .theme-label::after {
    font-size: 12px;
  }

  .tube-top .user-chip {
    min-height: 32px;
    max-width: 78px;
    padding: 0 9px;
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .tube-search {
    height: 38px;
    margin-bottom: 8px;
    border-radius: 10px;
  }

  .tube-search input {
    padding: 0 12px;
    font-size: 13px;
  }

  .tube-search button {
    min-height: 38px;
    padding: 0 13px;
    border-radius: 10px;
    font-size: 13px;
  }

  .tube-shell {
    padding-top: 12px;
  }

  .tube-board {
    gap: 12px;
  }

  .tube-lead-video {
    min-height: 330px;
    border-radius: 14px;
  }

  .tube-lead-video > a {
    padding: 20px 16px 92px;
  }

  .tube-play-dot {
    width: 40px;
    height: 40px;
  }

  .tube-play-dot::after {
    left: 16px;
    top: 11px;
    border-top-width: 8px;
    border-bottom-width: 8px;
    border-left-width: 12px;
  }

  .tube-lead-video p,
  .tube-watch-info > p {
    font-size: 12px;
    line-height: 1.4;
  }

  .tube-lead-video h1 {
    font-size: 26px;
    line-height: 1.12;
  }

  .tube-lead-video small {
    font-size: 13px;
    line-height: 1.5;
    -webkit-line-clamp: 2;
  }

  .tube-actions {
    left: 16px;
    right: 16px;
    bottom: 18px;
    gap: 8px;
  }

  .tube-actions a {
    min-height: 38px;
    border-radius: 10px;
    font-size: 13px;
  }

  .tube-stack {
    gap: 10px;
    padding-bottom: 6px;
  }

  .tube-mini-video {
    flex-basis: 64vw;
    max-width: 260px;
  }

  .tube-mini-video img,
  .tube-thumb img {
    object-fit: cover;
  }

  .tube-section,
  .tube-panel,
  .tube-focus,
  .tube-side section,
  .tube-rank-wall section,
  .tube-page-head,
  .tube-error-hero {
    padding: 14px 12px;
    border-radius: 14px;
  }

  .tube-video-grid {
    gap: 13px 10px;
  }

  .tube-video-card h3,
  .tube-mini-video h3 {
    min-height: 38px;
    margin-top: 7px;
    font-size: 13px;
    line-height: 1.35;
  }

  .tube-video-card p,
  .tube-mini-video p {
    margin-top: 3px;
    font-size: 11px;
  }

  .tube-page-head {
    gap: 10px;
    margin-bottom: 12px;
  }

  .tube-page-head p {
    margin-bottom: 5px;
    font-size: 10.5px;
  }

  .tube-page-head h1,
  .tube-error-hero h1 {
    font-size: 24px;
    line-height: 1.14;
  }

  .tube-page-head span {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.5;
  }

  .tube-page-head strong {
    padding: 7px 9px;
    border-radius: 9px;
    font-size: 12px;
  }

  .tube-filter-panel {
    margin-bottom: 12px;
    padding: 9px 10px;
  }

  .tube-filter-row {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 6px;
    padding: 4px 0;
  }

  .tube-filter-row > strong {
    line-height: 28px;
    font-size: 11px;
  }

  .tube-filter-row > div {
    gap: 6px;
  }

  .tube-filter-row a,
  .tube-sortbar a,
  .tube-tags span,
  .tube-meta-list a,
  .tube-meta-list span {
    min-height: 28px;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 11.5px;
  }

  .tube-sortbar {
    margin: 10px 0 12px;
    gap: 7px;
  }

  .tube-sortbar span {
    font-size: 12px;
  }

  .tube-watch-head {
    gap: 12px;
    padding: 12px;
  }

  .tube-watch-media {
    border-radius: 12px;
  }

  .tube-watch-info h1 {
    margin: 7px 0 10px;
    font-size: 25px;
    line-height: 1.14;
  }

  .tube-summary {
    font-size: 13px;
    line-height: 1.55;
    -webkit-line-clamp: 3;
  }

  .tube-tags,
  .tube-detail-actions {
    gap: 7px;
    margin-top: 12px;
  }

  .tube-detail-actions .primary-btn,
  .tube-detail-actions .ghost-btn,
  .tube-detail-actions .like-button {
    min-height: 36px;
    border-radius: 10px;
    font-size: 12px;
  }

  .tube-detail-grid {
    gap: 12px;
    margin-bottom: 16px;
  }

  .tube-panel p {
    font-size: 13px;
    line-height: 1.62;
  }

  .tube-meta-list {
    gap: 10px;
  }

  .tube-meta-list div {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 8px;
  }

  .tube-meta-list dt,
  .tube-meta-list dd {
    font-size: 12px;
  }

  .tube-lines summary {
    padding: 12px;
  }

  .tube-episode-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 0 10px 10px;
  }

  .tube-episode-grid a {
    min-height: 32px;
    padding: 0 7px;
    border-radius: 9px;
    font-size: 11px;
  }

  .tube-error-hero {
    margin-bottom: 14px;
  }

  .tube-error-hero span {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.58;
  }
}

@media (max-width: 380px) {
  .tube-topline {
    width: calc(100% - 18px);
  }

  .tube-shell,
  .tube-nav {
    width: calc(100% - 18px);
  }

  .tube-top .theme-toggle[data-theme-toggle] {
    min-width: 76px;
  }

  .tube-top .user-chip {
    max-width: 70px;
  }

  .tube-detail-actions .primary-btn,
  .tube-detail-actions .ghost-btn,
  .tube-detail-actions .like-button {
    font-size: 11px;
  }
}

/* 2026-06-10 template family polish: keep new skins visually distinct without H5/PC readability regressions. */
.tube-template .tube-lead-video h1 {
  font-size: clamp(34px, 3.9vw, 48px);
  line-height: 1.05;
}

.tube-template .tube-page-head h1,
.tube-template .tube-error-hero h1 {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.1;
}

.tube-template .tube-watch-info h1 {
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.08;
}

:root[data-portal-theme="light"] body.front.tpl-jable.jable-template .jable-tags a,
:root[data-portal-theme="light"] body.front.tpl-jable.jable-template .jable-filter-row a,
:root[data-portal-theme="light"] body.front.tpl-jable.jable-template .jable-sortbar a {
  color: #334155;
  background: #fff;
  border-color: #dbe3ea;
}

:root[data-portal-theme="light"] body.front.tpl-jable.jable-template .jable-filter-row strong,
:root[data-portal-theme="light"] body.front.tpl-jable.jable-template .jable-kicker {
  color: #9a5a00;
}

:root[data-portal-theme="light"] body.front.tpl-jable.jable-template .jable-bar nav a.active,
:root[data-portal-theme="light"] body.front.tpl-jable.jable-template .jable-bar nav a:hover,
:root[data-portal-theme="light"] body.front.tpl-jable.jable-template .jable-tags a:hover,
:root[data-portal-theme="light"] body.front.tpl-jable.jable-template .jable-filter-row a.active,
:root[data-portal-theme="light"] body.front.tpl-jable.jable-template .jable-filter-row a:hover,
:root[data-portal-theme="light"] body.front.tpl-jable.jable-template .jable-sortbar a.active,
:root[data-portal-theme="light"] body.front.tpl-jable.jable-template .jable-sortbar a:hover {
  color: #1f1300;
}

@media (max-width: 760px) {
  .tube-template .tube-lead-video h1 {
    font-size: 25px;
  }

  .tube-template .tube-page-head h1,
  .tube-template .tube-error-hero h1 {
    font-size: 23px;
  }

  .tube-template .tube-watch-info h1 {
    font-size: 24px;
  }

  body.front.tpl-jable.jable-template .jable-video-card,
  body.front.tpl-jable.jable-template .jable-card {
    flex-basis: min(58vw, 196px);
    max-width: 196px;
  }

  body.front.tpl-jable.jable-template .jable-video-grid,
  body.front.tpl-jable.jable-template .jable-grid,
  body.front.tpl-jable.jable-template .jable-mosaic-list,
  .stream-template .stream-poster-rail,
  .stream-template .stream-channel-grid,
  .stream-template .stream-card-grid {
    scroll-snap-type: x proximity;
  }

  body.front.tpl-jable.jable-template .jable-video-card,
  body.front.tpl-jable.jable-template .jable-card,
  .stream-template .stream-poster-card {
    scroll-snap-align: start;
  }

  .stream-template .stream-poster-rail {
    grid-auto-columns: minmax(132px, 40vw);
  }

  .stream-template .stream-poster-card h3,
  body.front.tpl-jable.jable-template .jable-video-card h2,
  body.front.tpl-jable.jable-template .jable-video-card h3,
  body.front.tpl-jable.jable-template .jable-card h3 {
    font-size: 13px;
    line-height: 1.35;
  }

  .stream-template .stream-poster-card p,
  body.front.tpl-jable.jable-template .jable-video-card p,
  body.front.tpl-jable.jable-template .jable-card p {
    font-size: 11.5px;
  }

  body.front.tpl-jable.jable-template .jable-filter-row div,
  body.front.tpl-jable.jable-template .jable-sortbar nav,
  body.front.tpl-jable.jable-template .jable-tags,
  .stream-template .stream-ticker div,
  .stream-template .stream-filter-line div,
  .stream-template .stream-sortline nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  body.front.tpl-jable.jable-template .jable-filter-row div::-webkit-scrollbar,
  body.front.tpl-jable.jable-template .jable-sortbar nav::-webkit-scrollbar,
  body.front.tpl-jable.jable-template .jable-tags::-webkit-scrollbar,
  .stream-template .stream-ticker div::-webkit-scrollbar,
  .stream-template .stream-filter-line div::-webkit-scrollbar,
  .stream-template .stream-sortline nav::-webkit-scrollbar {
    display: none;
  }

  .stream-category .stream-filter-deck,
  body.front.tpl-jable.jable-template .jable-filter-board {
    max-height: 196px;
  }

  .front .catalog-page .filter-panel,
  .front.tpl-iqiyi .catalog-page .filter-panel,
  .front.tpl-stream .catalog-page .filter-panel,
  .tube-filter-panel {
    max-height: 182px;
  }

  body.front.tpl-jable.jable-catalog .jable-video-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 10px;
    overflow: visible;
    padding-bottom: 0;
    scroll-snap-type: none;
  }

  body.front.tpl-jable.jable-catalog .jable-video-card {
    flex: initial;
    max-width: none;
    min-width: 0;
    scroll-snap-align: none;
  }

  body.front.tpl-jable.jable-catalog .jable-thumb {
    aspect-ratio: 2 / 3;
    border-radius: 12px;
  }

  body.front.tpl-jable.jable-catalog .jable-thumb img {
    object-fit: cover;
  }

  .front .catalog-page .filter-panel,
  .front.tpl-iqiyi .catalog-page .filter-panel,
  .front.tpl-stream .catalog-page .filter-panel,
  .tube-filter-panel,
  .stream-category .stream-filter-deck,
  body.front.tpl-jable.jable-template .jable-filter-board {
    scrollbar-width: none !important;
    -ms-overflow-style: none;
    overscroll-behavior: contain;
  }

  .front .catalog-page .filter-panel::-webkit-scrollbar,
  .front.tpl-iqiyi .catalog-page .filter-panel::-webkit-scrollbar,
  .front.tpl-stream .catalog-page .filter-panel::-webkit-scrollbar,
  .tube-filter-panel::-webkit-scrollbar,
  .stream-category .stream-filter-deck::-webkit-scrollbar,
  body.front.tpl-jable.jable-template .jable-filter-board::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
    display: none !important;
  }
}

/* 2026-06-10 light-mode contrast guardrail: avoid pale accent text on bright cards. */
:root[data-portal-theme="light"] .front .rank-entry,
:root[data-portal-theme="light"] .front.tpl-iqiyi .rank-entry,
:root[data-portal-theme="light"] .front.tpl-stream .rank-entry,
:root[data-portal-theme="light"] .front .catalog-page .rank-entry {
  color: #166534;
  text-shadow: none;
}

:root[data-portal-theme="light"] .front .section-kicker,
:root[data-portal-theme="light"] .front.tpl-iqiyi .section-kicker,
:root[data-portal-theme="light"] .front.tpl-stream .section-kicker {
  color: #9a5a00;
}

/* 2026-06-11 template readability guardrail:
   image heroes always keep high-contrast text, regardless of light/dark theme. */
.stream-template .stream-prime-card,
.stream-template .stream-detail-stage,
.front.tpl-stream .detail-hero,
.front.tpl-stream .hero-panel,
.front.tpl-stream .featured-panel,
.friday-template .friday-hero,
.nnyy-template .nnyy-feature a,
.baxt-template .baxt-slider article,
.jable-template .jable-hero article,
.tube-template .tube-lead-video,
.tube-template .tube-watch-head {
  color: #fff !important;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .58);
}

:root[data-portal-theme="light"] .stream-template .stream-prime-card,
:root[data-portal-theme="light"] .stream-template .stream-detail-stage {
  background:
    linear-gradient(90deg, rgba(5, 9, 18, .95), rgba(5, 9, 18, .72) 54%, rgba(5, 9, 18, .34)),
    linear-gradient(0deg, rgba(5, 9, 18, .78), transparent 62%),
    var(--stream-backdrop);
  background-size: cover;
  background-position: center;
}

.stream-template .stream-prime-card .stream-kicker,
.stream-template .stream-prime-card h1,
.stream-template .stream-prime-card p,
.stream-template .stream-detail-stage .stream-kicker,
.stream-template .stream-detail-stage .stream-detail-copy h1,
.stream-template .stream-detail-stage .stream-detail-copy > p,
.stream-template .stream-detail-stage .stream-breadcrumb,
.stream-template .stream-detail-stage .stream-breadcrumb a,
.stream-template .stream-detail-stage .crumb-current,
:root[data-portal-theme="light"] .stream-template .stream-prime-card .stream-kicker,
:root[data-portal-theme="light"] .stream-template .stream-prime-card h1,
:root[data-portal-theme="light"] .stream-template .stream-prime-card p,
:root[data-portal-theme="light"] .stream-template .stream-detail-stage .stream-kicker,
:root[data-portal-theme="light"] .stream-template .stream-detail-stage .stream-detail-copy h1,
:root[data-portal-theme="light"] .stream-template .stream-detail-stage .stream-detail-copy > p,
:root[data-portal-theme="light"] .stream-template .stream-detail-stage .stream-breadcrumb,
:root[data-portal-theme="light"] .stream-template .stream-detail-stage .stream-breadcrumb a,
:root[data-portal-theme="light"] .stream-template .stream-detail-stage .crumb-current {
  color: #fff !important;
}

.stream-template .stream-detail-stage .stream-kicker,
.stream-template .stream-prime-card .stream-kicker {
  color: #ffc55f !important;
}

.stream-template .stream-detail-stage .stream-facts span,
:root[data-portal-theme="light"] .stream-template .stream-detail-stage .stream-facts span {
  color: #fff !important;
  border-color: rgba(255, 255, 255, .26) !important;
  background: rgba(0, 0, 0, .34) !important;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .18);
}

.stream-template .stream-detail-stage .ghost-btn,
.stream-template .stream-detail-stage .like-button,
:root[data-portal-theme="light"] .stream-template .stream-detail-stage .ghost-btn,
:root[data-portal-theme="light"] .stream-template .stream-detail-stage .like-button {
  color: #fff !important;
  border-color: rgba(255, 255, 255, .28) !important;
  background: rgba(255, 255, 255, .12) !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .2);
}

.stream-template .stream-showcase .stream-poster-rail:not(.stream-detail-related) {
  grid-auto-columns: minmax(148px, 174px);
}

/* Do not allow rough native scrollbars to appear inside mobile filter pills. */
@media (max-width: 760px) {
  .front .hot-searches,
  .front .catalog-page .filter-values,
  .front .catalog-page .sort-tabs,
  .front.tpl-iqiyi .catalog-page .filter-values,
  .front.tpl-iqiyi .catalog-page .sort-tabs,
  .front.tpl-stream .catalog-page .filter-values,
  .front.tpl-stream .catalog-page .sort-tabs,
  .stream-template .stream-ticker div,
  .stream-template .stream-nav,
  .stream-template .stream-poster-rail,
  .stream-template .stream-channel-grid,
  .stream-template .stream-filter-line div,
  .stream-template .stream-sortline nav,
  .stream-category .stream-filter-deck,
  .stream-category .stream-filter-line div,
  .stream-category .stream-sortline nav {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
  }

  .front .hot-searches::-webkit-scrollbar,
  .front .catalog-page .filter-values::-webkit-scrollbar,
  .front .catalog-page .sort-tabs::-webkit-scrollbar,
  .front.tpl-iqiyi .catalog-page .filter-values::-webkit-scrollbar,
  .front.tpl-iqiyi .catalog-page .sort-tabs::-webkit-scrollbar,
  .front.tpl-stream .catalog-page .filter-values::-webkit-scrollbar,
  .front.tpl-stream .catalog-page .sort-tabs::-webkit-scrollbar,
  .stream-template .stream-ticker div::-webkit-scrollbar,
  .stream-template .stream-nav::-webkit-scrollbar,
  .stream-template .stream-poster-rail::-webkit-scrollbar,
  .stream-template .stream-channel-grid::-webkit-scrollbar,
  .stream-template .stream-filter-line div::-webkit-scrollbar,
  .stream-template .stream-sortline nav::-webkit-scrollbar,
  .stream-category .stream-filter-deck::-webkit-scrollbar,
  .stream-category .stream-filter-line div::-webkit-scrollbar,
  .stream-category .stream-sortline nav::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
    display: none !important;
    background: transparent !important;
  }

  .stream-category .stream-filter-line div,
  .stream-template .stream-filter-line div {
    padding-bottom: 0 !important;
  }
}

@media (max-width: 760px) {
  html,
  body.front {
    max-width: 100%;
    overflow-x: hidden;
    overflow-x: clip;
  }

  .front .catalog-page .filter-row,
  .front .catalog-page .result-toolbar,
  .front.tpl-iqiyi .catalog-page .filter-row,
  .front.tpl-stream .catalog-page .filter-row {
    min-width: 0;
  }

  .front .catalog-page .filter-values,
  .front .catalog-page .sort-tabs,
  .front.tpl-iqiyi .catalog-page .filter-values,
  .front.tpl-stream .catalog-page .filter-values {
    max-width: 100%;
  }
}

/* 2026-06-11 H5 category filter readability pass:
   show complete filter groups, hide rough native scrollbars, and keep text readable in both themes. */
@media (max-width: 760px) {
  .stream-category .stream-filter-deck {
    max-height: none !important;
    margin: 12px 0 12px !important;
    padding: 12px 12px 10px !important;
    overflow: visible !important;
    border: 1px solid rgba(34, 197, 94, .22) !important;
    border-radius: 18px !important;
    background: rgba(3, 10, 8, .72) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
  }

  .stream-category .stream-filter-line {
    grid-template-columns: 50px minmax(0, 1fr) !important;
    gap: 8px !important;
    align-items: start !important;
    padding: 6px 0 !important;
    border-bottom: 1px solid rgba(148, 163, 184, .09);
  }

  .stream-category .stream-filter-line:last-child {
    border-bottom: 0;
  }

  .stream-category .stream-filter-line strong {
    min-height: 32px !important;
    align-items: center !important;
    justify-content: flex-start !important;
    color: rgba(203, 213, 225, .92) !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
  }

  .stream-category .stream-filter-line div {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    min-width: 0 !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 0 2px 1px 0 !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none !important;
    scroll-snap-type: x proximity;
  }

  .stream-category .stream-filter-line div::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
    display: none !important;
  }

  .stream-category .stream-filter-line a {
    flex: 0 0 auto !important;
    max-width: none !important;
    min-height: 32px !important;
    padding: 0 12px !important;
    border-radius: 999px !important;
    color: rgba(226, 232, 240, .88) !important;
    background: rgba(15, 23, 42, .62) !important;
    border-color: rgba(74, 222, 128, .24) !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    scroll-snap-align: start;
  }

  .stream-category .stream-filter-line a.active,
  .stream-category .stream-filter-line a:hover,
  .stream-category .stream-sortline a.active,
  .stream-category .stream-sortline a:hover {
    color: #04130a !important;
    border-color: rgba(34, 197, 94, .86) !important;
    background: linear-gradient(135deg, #35e36b, #9af45d) !important;
    box-shadow: 0 10px 22px rgba(34, 197, 94, .18);
  }

  .stream-category .stream-sortline {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 9px !important;
    margin: 12px 0 16px !important;
    padding: 0 !important;
    background: transparent !important;
  }

  .stream-category .stream-sortline nav {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    min-width: 0 !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 0 0 1px !important;
    scrollbar-width: none !important;
  }

  .stream-category .stream-sortline nav::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
    display: none !important;
  }

  .stream-category .stream-sortline a {
    flex: 0 0 auto !important;
    min-height: 34px !important;
    padding: 0 15px !important;
    color: rgba(226, 232, 240, .84) !important;
    background: rgba(15, 23, 42, .62) !important;
    border-color: rgba(148, 163, 184, .14) !important;
    font-size: 13px !important;
  }

  .stream-category .stream-sortline > span {
    order: 2;
    color: rgba(203, 213, 225, .86) !important;
    font-size: 13px !important;
  }

  .stream-category .stream-sortline > a {
    justify-self: start;
    order: 3;
  }

  .stream-template .stream-ticker {
    overflow: hidden;
  }

  .stream-template .stream-ticker a {
    color: rgba(226, 232, 240, .88) !important;
    background: rgba(15, 23, 42, .66) !important;
    border-color: rgba(74, 222, 128, .22) !important;
  }
}

@media (max-width: 760px) {
  :root[data-portal-theme="light"] .stream-category .stream-filter-deck {
    background: #fff !important;
    border-color: #d9eadf !important;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .06);
  }

  :root[data-portal-theme="light"] .stream-category .stream-filter-line {
    border-bottom-color: #eef3ef;
  }

  :root[data-portal-theme="light"] .stream-category .stream-filter-line strong,
  :root[data-portal-theme="light"] .stream-category .stream-sortline > span {
    color: #4b5563 !important;
  }

  :root[data-portal-theme="light"] .stream-category .stream-filter-line a,
  :root[data-portal-theme="light"] .stream-category .stream-sortline a,
  :root[data-portal-theme="light"] .stream-template .stream-ticker a {
    color: #334155 !important;
    background: #f8fafc !important;
    border-color: #d9e2ea !important;
  }

  :root[data-portal-theme="light"] .stream-category .stream-filter-line a.active,
  :root[data-portal-theme="light"] .stream-category .stream-filter-line a:hover,
  :root[data-portal-theme="light"] .stream-category .stream-sortline a.active,
  :root[data-portal-theme="light"] .stream-category .stream-sortline a:hover {
    color: #052e16 !important;
    border-color: #22c55e !important;
    background: linear-gradient(135deg, #dcfce7, #bbf7d0) !important;
    box-shadow: none;
  }
}

/* 2026-06-11 H5 category final polish:
   compact filter rows, no visible native bars, and clearer contrast before result cards. */
@media (max-width: 760px) {
  .stream-category .stream-catalog-brief {
    gap: 10px !important;
    padding-bottom: 8px !important;
  }

  .stream-category .stream-catalog-brief h1 {
    font-size: 23px !important;
    line-height: 1.14 !important;
  }

  .stream-category .stream-catalog-brief p {
    font-size: 13px !important;
    line-height: 1.5 !important;
  }

  .stream-category .stream-filter-deck {
    max-height: min(46vh, 360px) !important;
    margin: 8px 0 8px !important;
    padding: 9px 9px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    scrollbar-width: none !important;
  }

  .stream-category .stream-filter-deck::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
    display: none !important;
  }

  .stream-category .stream-filter-line {
    grid-template-columns: 42px minmax(0, 1fr) !important;
    gap: 6px !important;
    padding: 3px 0 !important;
    border-bottom: 0 !important;
  }

  .stream-category .stream-more-filters {
    display: block !important;
  }

  .stream-category .stream-more-filters summary {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    margin: 2px 0 0 48px;
    padding: 0 12px;
    border: 1px solid rgba(74, 222, 128, .24);
    border-radius: 999px;
    color: rgba(226, 232, 240, .9);
    background: rgba(15, 23, 42, .62);
    font-size: 12px;
    font-weight: 900;
    list-style: none;
    cursor: pointer;
    user-select: none;
  }

  .stream-category .stream-more-filters summary::-webkit-details-marker {
    display: none;
  }

  .stream-category .stream-more-filters summary::after {
    content: "＋";
    margin-left: 7px;
    font-weight: 900;
  }

  .stream-category .stream-more-filters[open] summary::after {
    content: "－";
  }

  .stream-category .stream-more-filter-body {
    display: grid !important;
    gap: 0 !important;
    margin-top: 3px;
  }

  .stream-category .stream-more-filters:not([open]) .stream-more-filter-body {
    display: none !important;
  }

  .stream-category .stream-filter-line strong {
    min-height: 28px !important;
    color: rgba(226, 232, 240, .9) !important;
    font-size: 12px !important;
    letter-spacing: 0 !important;
  }

  .stream-category .stream-filter-line div {
    gap: 6px !important;
    padding: 0 !important;
    mask-image: linear-gradient(90deg, #000 calc(100% - 18px), transparent);
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 18px), transparent);
  }

  .stream-category .stream-filter-line a {
    min-height: 30px !important;
    padding: 0 10px !important;
    color: rgba(226, 232, 240, .9) !important;
    background: rgba(10, 20, 18, .74) !important;
    border-color: rgba(74, 222, 128, .2) !important;
    font-size: 12px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
  }

  .stream-category .stream-filter-line a.active,
  .stream-category .stream-filter-line a:hover {
    color: #03130a !important;
    background: linear-gradient(135deg, #2ee86b, #8cf56a) !important;
    box-shadow: 0 7px 16px rgba(34, 197, 94, .18);
  }

  .stream-category .stream-sortline {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 7px 8px !important;
    margin: 8px 0 12px !important;
    padding-top: 0 !important;
    border-top: 0 !important;
  }

  .stream-category .stream-sortline nav {
    grid-column: 1 / -1 !important;
    gap: 6px !important;
  }

  .stream-category .stream-sortline a {
    min-height: 32px !important;
    padding: 0 12px !important;
    font-size: 12px !important;
  }

  .stream-category .stream-sortline > span {
    grid-column: 1 !important;
    margin-top: 0 !important;
    font-size: 12px !important;
  }

  .stream-category .stream-sortline > a {
    grid-column: 2 !important;
    justify-self: end !important;
  }
}

@media (max-width: 760px) {
  :root[data-portal-theme="light"] .stream-category .stream-filter-deck {
    background: rgba(255, 255, 255, .98) !important;
    border-color: #cdebd8 !important;
  }

  :root[data-portal-theme="light"] .stream-category .stream-filter-line strong {
    color: #334155 !important;
  }

  :root[data-portal-theme="light"] .stream-category .stream-filter-line a,
  :root[data-portal-theme="light"] .stream-category .stream-sortline a,
  :root[data-portal-theme="light"] .stream-category .stream-more-filters summary {
    color: #334155 !important;
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
  }

  :root[data-portal-theme="light"] .stream-category .stream-filter-line a.active,
  :root[data-portal-theme="light"] .stream-category .stream-filter-line a:hover,
  :root[data-portal-theme="light"] .stream-category .stream-sortline a.active,
  :root[data-portal-theme="light"] .stream-category .stream-sortline a:hover {
    color: #04130a !important;
    background: linear-gradient(135deg, #35e36b, #b9f76d) !important;
    border-color: #22c55e !important;
  }
}

/* 2026-06-11 generic H5 category filter:
   same UX as stream template, so every site can reach posters faster on mobile. */
@media (max-width: 760px) {
  .front .catalog-page .filter-panel {
    max-height: none !important;
    margin: 10px 0 10px !important;
    padding: 11px 10px !important;
    overflow: visible !important;
    border-radius: 18px !important;
    scrollbar-width: none !important;
  }

  .front .catalog-page .filter-panel::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
    display: none !important;
  }

  .front .catalog-page .filter-row {
    grid-template-columns: 44px minmax(0, 1fr) !important;
    gap: 8px !important;
    align-items: start !important;
    padding: 5px 0 !important;
  }

  .front .catalog-page .filter-row strong {
    width: auto !important;
    min-height: 30px !important;
    color: rgba(226, 232, 240, .9) !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
  }

  .front .catalog-page .filter-values {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 7px !important;
    min-width: 0 !important;
    margin-right: 0 !important;
    padding: 0 !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch;
    mask-image: linear-gradient(90deg, #000 calc(100% - 18px), transparent);
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 18px), transparent);
  }

  .front .catalog-page .filter-values::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
    display: none !important;
  }

  .front .catalog-page .filter-values a {
    flex: 0 0 auto !important;
    max-width: none !important;
    min-height: 30px !important;
    padding: 0 11px !important;
    border-radius: 999px !important;
    color: rgba(226, 232, 240, .9) !important;
    background: rgba(10, 20, 18, .74) !important;
    border-color: rgba(74, 222, 128, .2) !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
  }

  .front .catalog-page .filter-values a.active,
  .front .catalog-page .filter-values a:hover {
    color: #03130a !important;
    border-color: rgba(34, 197, 94, .86) !important;
    background: linear-gradient(135deg, #2ee86b, #8cf56a) !important;
    box-shadow: 0 7px 16px rgba(34, 197, 94, .18);
  }

  .front .catalog-page .filter-more {
    display: block !important;
  }

  .front .catalog-page .filter-more summary {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    margin: 4px 0 0 52px;
    padding: 0 13px;
    border: 1px solid rgba(74, 222, 128, .24);
    border-radius: 999px;
    color: rgba(226, 232, 240, .9);
    background: rgba(15, 23, 42, .62);
    font-size: 12px;
    font-weight: 900;
    list-style: none;
    cursor: pointer;
    user-select: none;
  }

  .front .catalog-page .filter-more summary::-webkit-details-marker {
    display: none;
  }

  .front .catalog-page .filter-more summary::after {
    content: "＋";
    margin-left: 7px;
  }

  .front .catalog-page .filter-more[open] summary::after {
    content: "－";
  }

  .front .catalog-page .filter-more-body {
    display: grid !important;
    gap: 0 !important;
    margin-top: 5px;
  }

  .front .catalog-page .filter-more:not([open]) .filter-more-body {
    display: none !important;
  }

  .front .catalog-page .result-toolbar {
    margin-top: 8px !important;
  }
}

@media (max-width: 760px) {
  :root[data-portal-theme="light"] .front .catalog-page .filter-panel {
    background: rgba(255, 255, 255, .98) !important;
    border-color: #cdebd8 !important;
  }

  :root[data-portal-theme="light"] .front .catalog-page .filter-row strong {
    color: #334155 !important;
  }

  :root[data-portal-theme="light"] .front .catalog-page .filter-values a,
  :root[data-portal-theme="light"] .front .catalog-page .filter-more summary {
    color: #334155 !important;
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
  }

  :root[data-portal-theme="light"] .front .catalog-page .filter-values a.active,
  :root[data-portal-theme="light"] .front .catalog-page .filter-values a:hover {
    color: #04130a !important;
    background: linear-gradient(135deg, #35e36b, #b9f76d) !important;
    border-color: #22c55e !important;
  }
}

/* 2026-06-11 H5 capsule alignment guardrail:
   all pill-like controls must keep their label optically centered. */
@media (max-width: 760px) {
  .front .portal-nav a,
  .front .nav-dropdown-trigger,
  .front .hot-searches a,
  .front .catalog-page .filter-values a,
  .front .catalog-page .sort-tabs a,
  .front .catalog-page .filter-more summary,
  .stream-template .stream-nav a,
  .stream-category .stream-filter-line a,
  .stream-category .stream-sortline a,
  .stream-category .stream-more-filters summary {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    line-height: 1 !important;
    text-align: center !important;
    vertical-align: middle !important;
    white-space: nowrap !important;
  }

  .front .catalog-page .filter-values a {
    height: 34px !important;
    min-height: 34px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .stream-category .stream-filter-line a {
    height: 30px !important;
    min-height: 30px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .front .catalog-page .sort-tabs a {
    height: 40px !important;
    min-height: 40px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .stream-category .stream-sortline a {
    height: 34px !important;
    min-height: 34px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .front .catalog-page .filter-more summary {
    height: 34px !important;
    min-height: 34px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .stream-category .stream-more-filters summary {
    height: 30px !important;
    min-height: 30px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .front .portal-nav a,
  .front .nav-dropdown-trigger,
  .stream-template .stream-nav a {
    min-height: 42px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
}

/* 2026-06-11 final template QA patch:
   keep templates readable, compact and stable across PC/H5 dark/light modes. */
.friday-template,
.nnyy-template,
.baxt-template,
.jable-template,
.tube-template,
.stream-template {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.nnyy-template {
  --nnyy-bg: #0d121d;
  --nnyy-panel: #131a28;
  --nnyy-panel-soft: #182132;
  --nnyy-text: #edf4ff;
  --nnyy-muted: #9eacbd;
  --nnyy-line: rgba(148, 163, 184, 0.22);
  --nnyy-accent: #23c2df;
  --nnyy-accent-2: #ffb74a;
  background:
    radial-gradient(circle at 15% 0%, rgba(35, 194, 223, 0.16), transparent 30%),
    linear-gradient(180deg, #0c111b 0%, #111827 48%, #0b1018 100%) !important;
  color: var(--nnyy-text) !important;
}

.nnyy-template .nnyy-header,
.nnyy-template .nnyy-shell,
.nnyy-template .nnyy-section,
.nnyy-template .nnyy-card,
.nnyy-template .nnyy-hot,
.nnyy-template .nnyy-rank {
  border-color: var(--nnyy-line) !important;
  box-shadow: none !important;
}

.nnyy-template .nnyy-logo strong,
.nnyy-template .nnyy-nav a,
.nnyy-template .nnyy-card h3,
.nnyy-template .nnyy-rank a,
.nnyy-template .movie-title,
.nnyy-template h1,
.nnyy-template h2,
.nnyy-template h3 {
  color: var(--nnyy-text) !important;
}

.nnyy-template .nnyy-nav a.active,
.nnyy-template .nnyy-action,
.nnyy-template .nnyy-filter a.active,
.nnyy-template .nnyy-tabs a.active {
  color: #071018 !important;
  background: linear-gradient(135deg, var(--nnyy-accent), var(--nnyy-accent-2)) !important;
  border-color: transparent !important;
}

.nnyy-template .nnyy-hot a,
.nnyy-template .nnyy-filter a,
.nnyy-template .nnyy-tabs a,
.baxt-template .baxt-hot a,
.friday-template .friday-hot a,
.stream-template .stream-ticker a,
.jable-template .jable-hot a,
.tube-template .tube-hot a {
  color: #dce6f3 !important;
  background: rgba(255, 255, 255, 0.055) !important;
  border: 1px solid rgba(148, 163, 184, 0.26) !important;
  box-shadow: none !important;
}

:root[data-portal-theme="light"] .nnyy-template,
:root[data-portal-theme="light"] .baxt-template,
:root[data-portal-theme="light"] .friday-template,
:root[data-portal-theme="light"] .stream-template,
:root[data-portal-theme="light"] .jable-template,
:root[data-portal-theme="light"] .tube-template {
  color: #111827 !important;
}

:root[data-portal-theme="light"] .nnyy-template .nnyy-hot a,
:root[data-portal-theme="light"] .nnyy-template .nnyy-filter a,
:root[data-portal-theme="light"] .nnyy-template .nnyy-tabs a,
:root[data-portal-theme="light"] .baxt-template .baxt-hot a,
:root[data-portal-theme="light"] .friday-template .friday-hot a,
:root[data-portal-theme="light"] .stream-template .stream-ticker a,
:root[data-portal-theme="light"] .jable-template .jable-hot a,
:root[data-portal-theme="light"] .tube-template .tube-hot a {
  color: #223044 !important;
  background: #ffffff !important;
  border-color: #cfd8e3 !important;
}

.friday-hot,
.nnyy-hot,
.baxt-hot,
.jable-hot,
.tube-hot,
.stream-ticker {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  padding-block: 10px !important;
  scrollbar-width: none !important;
}

.friday-hot::-webkit-scrollbar,
.nnyy-hot::-webkit-scrollbar,
.baxt-hot::-webkit-scrollbar,
.jable-hot::-webkit-scrollbar,
.tube-hot::-webkit-scrollbar,
.stream-ticker::-webkit-scrollbar {
  display: none !important;
}

.friday-hot strong,
.nnyy-hot strong,
.baxt-hot strong,
.jable-hot strong,
.tube-hot strong,
.stream-ticker strong {
  flex: 0 0 auto !important;
  color: inherit !important;
  white-space: nowrap !important;
}

.friday-hot a,
.nnyy-hot a,
.baxt-hot a,
.jable-hot a,
.tube-hot a,
.stream-ticker a {
  flex: 0 0 auto !important;
  min-height: 36px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  border-radius: 999px !important;
  padding: 0 16px !important;
  white-space: nowrap !important;
}

@media (min-width: 761px) {
  .friday-stage,
  .stream-prime-layout,
  .baxt-home-grid,
  .tube-feature-layout,
  .jable-home-grid {
    gap: 20px !important;
  }

  .friday-hero,
  .stream-prime-card,
  .tube-feature-card,
  .jable-hero,
  .baxt-slider article {
    min-height: 380px !important;
    max-height: 520px !important;
  }

  .friday-copy,
  .stream-prime-copy,
  .tube-feature-copy,
  .jable-hero-copy,
  .baxt-slider-copy {
    padding: clamp(28px, 4vw, 54px) !important;
  }

  .friday-copy h1,
  .stream-prime-copy h1,
  .tube-feature-copy h1,
  .jable-hero-copy h1,
  .baxt-slider-copy h1,
  .stream-detail-hero h1,
  .tube-detail-hero h1,
  .jable-detail-hero h1 {
    font-size: clamp(30px, 3.8vw, 54px) !important;
    line-height: 1.08 !important;
    letter-spacing: 0 !important;
  }

  .stream-side-stack,
  .friday-focus,
  .tube-side-panel,
  .jable-side-panel {
    padding: 18px !important;
  }
}

.stream-filter-deck,
.jable-filter-panel,
.tube-filter-panel,
.category-filters,
.filter-panel {
  color: #d9e3ef !important;
}

.stream-filter-line,
.jable-filter-row,
.tube-filter-row,
.filter-row {
  align-items: start !important;
}

.stream-filter-line > span,
.jable-filter-row > span,
.tube-filter-row > span,
.filter-row > span,
.filter-label {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 34px !important;
  line-height: 1 !important;
}

.stream-filter-line div,
.jable-filter-row div,
.tube-filter-row div,
.filter-values,
.stream-sortline nav,
.sort-tabs {
  scrollbar-width: none !important;
}

.stream-filter-line div::-webkit-scrollbar,
.jable-filter-row div::-webkit-scrollbar,
.tube-filter-row div::-webkit-scrollbar,
.filter-values::-webkit-scrollbar,
.stream-sortline nav::-webkit-scrollbar,
.sort-tabs::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.stream-filter-line a,
.jable-filter-row a,
.tube-filter-row a,
.filter-values a,
.stream-sortline a,
.sort-tabs a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 34px !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  text-decoration: none !important;
}

:root[data-portal-theme="light"] .stream-filter-deck,
:root[data-portal-theme="light"] .jable-filter-panel,
:root[data-portal-theme="light"] .tube-filter-panel,
:root[data-portal-theme="light"] .category-filters,
:root[data-portal-theme="light"] .filter-panel {
  color: #1f2937 !important;
}

:root[data-portal-theme="light"] .stream-filter-line a,
:root[data-portal-theme="light"] .jable-filter-row a,
:root[data-portal-theme="light"] .tube-filter-row a,
:root[data-portal-theme="light"] .filter-values a,
:root[data-portal-theme="light"] .stream-sortline a,
:root[data-portal-theme="light"] .sort-tabs a {
  color: #263244 !important;
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
}

:root[data-portal-theme="light"] .stream-filter-line a.active,
:root[data-portal-theme="light"] .jable-filter-row a.active,
:root[data-portal-theme="light"] .tube-filter-row a.active,
:root[data-portal-theme="light"] .filter-values a.active,
:root[data-portal-theme="light"] .stream-sortline a.active,
:root[data-portal-theme="light"] .sort-tabs a.active {
  color: #05110b !important;
  background: linear-gradient(135deg, #31e66b, #a7f86c) !important;
  border-color: #1bb954 !important;
}

.player-toolbar,
.tube-player-tools,
.jable-player-frame .player-toolbar {
  top: 10px !important;
  right: 10px !important;
  bottom: auto !important;
  left: auto !important;
  display: inline-flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 6px !important;
  max-width: calc(100% - 20px) !important;
  z-index: 8 !important;
}

.player-toolbar button,
.tube-player-tools button,
.jable-player-frame .player-toolbar button {
  min-width: 42px !important;
  min-height: 28px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 5px 8px !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  vertical-align: middle !important;
  border-radius: 999px !important;
  font-size: 11px !important;
  transform: translateZ(0);
}

.player-toolbar button *,
.tube-player-tools button *,
.jable-player-frame .player-toolbar button * {
  line-height: 1 !important;
}

.stream-detail-actions,
.tube-detail-actions,
.jable-detail-actions,
.movie-actions {
  align-items: center !important;
  gap: 10px !important;
}

.stream-like-button,
.movie-like-button,
.like-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
}

.stream-related-grid,
.related-grid,
.movie-related-grid {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
}

.stream-error-page .movie-card,
.error-page .movie-card,
.not-found-page .movie-card {
  max-width: 180px !important;
}

.stream-error-page .poster,
.error-page .poster,
.not-found-page .poster,
.stream-error-page .movie-card img,
.error-page .movie-card img,
.not-found-page .movie-card img {
  max-height: 260px !important;
  object-fit: cover !important;
}

@media (max-width: 760px) {
  .friday-template,
  .nnyy-template,
  .baxt-template,
  .jable-template,
  .tube-template,
  .stream-template {
    font-size: 15px !important;
  }

  .front-header,
  .stream-header,
  .friday-header,
  .nnyy-header,
  .baxt-header,
  .jable-header,
  .tube-header {
    padding: 12px 16px !important;
    gap: 10px !important;
  }

  .front-nav,
  .stream-nav,
  .friday-nav,
  .nnyy-nav,
  .baxt-nav,
  .jable-nav,
  .tube-nav {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 8px 16px 12px !important;
    scrollbar-width: none !important;
  }

  .front-nav::-webkit-scrollbar,
  .stream-nav::-webkit-scrollbar,
  .friday-nav::-webkit-scrollbar,
  .nnyy-nav::-webkit-scrollbar,
  .baxt-nav::-webkit-scrollbar,
  .jable-nav::-webkit-scrollbar,
  .tube-nav::-webkit-scrollbar {
    display: none !important;
  }

  .front-nav a,
  .stream-nav a,
  .friday-nav a,
  .nnyy-nav a,
  .baxt-nav a,
  .jable-nav a,
  .tube-nav a {
    flex: 0 0 auto !important;
    min-width: auto !important;
    height: 38px !important;
    padding: 0 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  .friday-hot,
  .nnyy-hot,
  .baxt-hot,
  .jable-hot,
  .tube-hot,
  .stream-ticker {
    margin-inline: 16px !important;
    padding-block: 8px !important;
    gap: 8px !important;
  }

  .friday-hot a,
  .nnyy-hot a,
  .baxt-hot a,
  .jable-hot a,
  .tube-hot a,
  .stream-ticker a {
    min-height: 32px !important;
    padding: 0 12px !important;
    font-size: 14px !important;
  }

  .friday-stage,
  .stream-prime-layout,
  .baxt-home-grid,
  .tube-feature-layout,
  .jable-home-grid {
    display: block !important;
    padding: 0 16px !important;
  }

  .friday-hero,
  .stream-prime-card,
  .tube-feature-card,
  .jable-hero,
  .baxt-slider article {
    min-height: 430px !important;
    border-radius: 18px !important;
  }

  .friday-copy,
  .stream-prime-copy,
  .tube-feature-copy,
  .jable-hero-copy,
  .baxt-slider-copy {
    padding: 28px 22px !important;
  }

  .friday-copy h1,
  .stream-prime-copy h1,
  .tube-feature-copy h1,
  .jable-hero-copy h1,
  .baxt-slider-copy h1,
  .stream-detail-hero h1,
  .tube-detail-hero h1,
  .jable-detail-hero h1,
  .movie-hero h1 {
    font-size: clamp(26px, 8vw, 34px) !important;
    line-height: 1.12 !important;
    letter-spacing: 0 !important;
  }

  .stream-filter-deck,
  .jable-filter-panel,
  .tube-filter-panel,
  .category-filters,
  .filter-panel {
    margin: 12px 16px !important;
    padding: 14px 12px !important;
    max-height: 320px !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    scrollbar-width: none !important;
  }

  .stream-filter-deck::-webkit-scrollbar,
  .jable-filter-panel::-webkit-scrollbar,
  .tube-filter-panel::-webkit-scrollbar,
  .category-filters::-webkit-scrollbar,
  .filter-panel::-webkit-scrollbar {
    display: none !important;
  }

  .stream-filter-line,
  .jable-filter-row,
  .tube-filter-row,
  .filter-row {
    display: grid !important;
    grid-template-columns: 46px minmax(0, 1fr) !important;
    gap: 9px !important;
    margin: 0 0 10px !important;
  }

  .stream-filter-line > span,
  .jable-filter-row > span,
  .tube-filter-row > span,
  .filter-row > span,
  .filter-label {
    min-height: 34px !important;
    font-size: 13px !important;
    color: #b7c5d8 !important;
    background: transparent !important;
    border: 0 !important;
  }

  .stream-filter-line div,
  .jable-filter-row div,
  .tube-filter-row div,
  .filter-values {
    display: flex !important;
    gap: 8px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 0 !important;
    min-width: 0 !important;
    scrollbar-width: none !important;
  }

  .stream-filter-line a,
  .jable-filter-row a,
  .tube-filter-row a,
  .filter-values a {
    flex: 0 0 auto !important;
    min-height: 34px !important;
    padding: 0 13px !important;
    border-radius: 999px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #dce7f5 !important;
    background: rgba(15, 23, 42, 0.88) !important;
    border: 1px solid rgba(111, 133, 160, 0.45) !important;
  }

  .stream-filter-line a.active,
  .jable-filter-row a.active,
  .tube-filter-row a.active,
  .filter-values a.active {
    color: #06100a !important;
    background: linear-gradient(135deg, #27df65, #a9f66b) !important;
    border-color: #23c55e !important;
  }

  :root[data-portal-theme="light"] .stream-filter-line > span,
  :root[data-portal-theme="light"] .jable-filter-row > span,
  :root[data-portal-theme="light"] .tube-filter-row > span,
  :root[data-portal-theme="light"] .filter-row > span,
  :root[data-portal-theme="light"] .filter-label {
    color: #425167 !important;
  }

  :root[data-portal-theme="light"] .stream-filter-line a,
  :root[data-portal-theme="light"] .jable-filter-row a,
  :root[data-portal-theme="light"] .tube-filter-row a,
  :root[data-portal-theme="light"] .filter-values a {
    color: #243044 !important;
    background: #ffffff !important;
    border-color: #c7d2df !important;
  }

  .stream-sortline,
  .sort-tabs {
    display: flex !important;
    gap: 8px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 10px 16px !important;
    scrollbar-width: none !important;
  }

  .stream-sortline a,
  .sort-tabs a {
    flex: 0 0 auto !important;
    min-height: 36px !important;
    padding: 0 16px !important;
    border-radius: 999px !important;
  }

  .player-toolbar,
  .tube-player-tools,
  .jable-player-frame .player-toolbar {
    top: 8px !important;
    right: 8px !important;
    bottom: auto !important;
    left: auto !important;
    gap: 4px !important;
    max-width: calc(100% - 16px) !important;
  }

  .player-toolbar button,
  .tube-player-tools button,
  .jable-player-frame .player-toolbar button {
    min-width: 36px !important;
    min-height: 24px !important;
    padding: 4px 7px !important;
    font-size: 10px !important;
    line-height: 1 !important;
  }

  body:not(.tpl-haoju) .stream-detail-actions,
  .tube-detail-actions,
  .jable-detail-actions,
  .movie-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  body:not(.tpl-haoju) .stream-detail-actions a,
  body:not(.tpl-haoju) .stream-detail-actions button,
  .tube-detail-actions a,
  .tube-detail-actions button,
  .jable-detail-actions a,
  .jable-detail-actions button,
  .movie-actions a,
  .movie-actions button {
    min-height: 38px !important;
    padding: 0 14px !important;
  }
}

/* 2026-06-12 template visual QA closure:
   compact first screens, readable light/dark states, centered H5 controls. */
.front.portal,
.friday-template,
.nnyy-template,
.baxt-template,
.stream-template,
.tube-template,
.jable-template {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.front.portal a,
.front.portal button {
  -webkit-tap-highlight-color: transparent;
}

.front.portal .portal-shell,
.friday-template main,
.nnyy-template main,
.baxt-template main,
.stream-template main,
.tube-template main,
.jable-template main {
  max-width: 1800px !important;
}

.front.portal .hot-searches,
.friday-template .friday-hot,
.nnyy-template .nnyy-hot,
.baxt-template .baxt-hot,
.stream-template .stream-ticker,
.tube-template .tube-hotline,
.jable-template .jable-tags {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  margin: 0 0 18px !important;
  padding: 10px 0 12px !important;
  min-height: 0 !important;
  scrollbar-width: none !important;
}

.front.portal .hot-searches::-webkit-scrollbar,
.friday-template .friday-hot::-webkit-scrollbar,
.nnyy-template .nnyy-hot::-webkit-scrollbar,
.baxt-template .baxt-hot::-webkit-scrollbar,
.stream-template .stream-ticker::-webkit-scrollbar,
.tube-template .tube-hotline::-webkit-scrollbar,
.jable-template .jable-tags::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.tube-template .tube-hotline > div,
.stream-template .stream-ticker > div {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: nowrap !important;
  min-width: 0 !important;
}

.front.portal .hot-searches strong,
.friday-template .friday-hot strong,
.nnyy-template .nnyy-hot strong,
.baxt-template .baxt-hot strong,
.stream-template .stream-ticker strong,
.tube-template .tube-hotline strong,
.jable-template .jable-tags strong {
  flex: 0 0 auto !important;
  white-space: nowrap !important;
  margin: 0 !important;
  color: inherit !important;
  font-weight: 800 !important;
}

.front.portal .hot-searches a,
.friday-template .friday-hot a,
.nnyy-template .nnyy-hot a,
.baxt-template .baxt-hot a,
.stream-template .stream-ticker a,
.tube-template .tube-hotline a,
.jable-template .jable-tags a {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 176px !important;
  min-height: 34px !important;
  height: 34px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 13px !important;
  border-radius: 999px !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  color: #dce7f5 !important;
  background: rgba(15, 23, 42, 0.84) !important;
  border: 1px solid rgba(126, 148, 176, 0.34) !important;
  box-shadow: none !important;
}

:root[data-portal-theme="light"] .front.portal .hot-searches a,
:root[data-portal-theme="light"] .friday-template .friday-hot a,
:root[data-portal-theme="light"] .nnyy-template .nnyy-hot a,
:root[data-portal-theme="light"] .baxt-template .baxt-hot a,
:root[data-portal-theme="light"] .stream-template .stream-ticker a,
:root[data-portal-theme="light"] .tube-template .tube-hotline a,
:root[data-portal-theme="light"] .jable-template .jable-tags a {
  color: #243044 !important;
  background: #ffffff !important;
  border-color: #c8d2df !important;
}

:root[data-portal-theme="light"] .front.portal .hot-searches strong,
:root[data-portal-theme="light"] .friday-template .friday-hot strong,
:root[data-portal-theme="light"] .nnyy-template .nnyy-hot strong,
:root[data-portal-theme="light"] .baxt-template .baxt-hot strong,
:root[data-portal-theme="light"] .stream-template .stream-ticker strong,
:root[data-portal-theme="light"] .tube-template .tube-hotline strong,
:root[data-portal-theme="light"] .jable-template .jable-tags strong {
  color: #111827 !important;
}

@media (min-width: 761px) {
  .front.portal .portal-hero {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 330px) !important;
    gap: 18px !important;
    align-items: stretch !important;
  }

  .front.portal .hero-feature,
  .front.portal .hero-switcher,
  .friday-template .friday-hero,
  .baxt-template .baxt-slider article,
  .stream-template .stream-prime-card,
  .tube-template .tube-lead-video,
  .jable-template .jable-mosaic-main {
    min-height: 340px !important;
    max-height: 440px !important;
    border-radius: 20px !important;
  }

  .front.portal .hero-copy,
  .friday-template .friday-copy,
  .baxt-template .baxt-slider div,
  .stream-template .stream-prime-copy,
  .tube-template .tube-lead-video > a,
  .jable-template .jable-mosaic-main > div {
    padding: clamp(26px, 3vw, 42px) !important;
  }

  .front.portal .hero-copy h1,
  .friday-template .friday-copy h1,
  .baxt-template .baxt-slider h1,
  .stream-template .stream-prime h1,
  .tube-template .tube-lead-video h1,
  .jable-template .jable-mosaic-main h1 {
    max-width: 850px !important;
    font-size: clamp(32px, 3.3vw, 50px) !important;
    line-height: 1.08 !important;
    letter-spacing: 0 !important;
  }

  .front.portal .hero-copy p,
  .friday-template .friday-copy p,
  .baxt-template .baxt-slider p,
  .stream-template .stream-prime p,
  .tube-template .tube-lead-video p,
  .jable-template .jable-mosaic-main p {
    max-width: 760px !important;
    font-size: clamp(15px, 1.1vw, 18px) !important;
    line-height: 1.72 !important;
  }

  .friday-template .friday-stage,
  .stream-template .stream-prime,
  .tube-template .tube-board-grid,
  .jable-template .jable-feature-mosaic {
    gap: 18px !important;
  }

  .stream-template .stream-prime {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 320px) !important;
  }

  .tube-template .tube-board-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.55fr) minmax(250px, 0.7fr) !important;
  }

  .jable-template .jable-feature-mosaic {
    grid-template-columns: minmax(0, 1.12fr) minmax(240px, 0.72fr) minmax(250px, 0.7fr) !important;
  }

  .front.portal .focus-panel,
  .friday-template .friday-focus,
  .stream-template .stream-side-stack,
  .tube-template .tube-focus,
  .jable-template .jable-focus {
    min-height: 0 !important;
    max-height: 440px !important;
    overflow: hidden auto !important;
    scrollbar-width: thin !important;
  }

  .stream-template .stream-showcase .stream-poster-rail:not(.stream-detail-related),
  .friday-template .friday-rail-block > .friday-poster-rail,
  .baxt-template .baxt-recommend .baxt-card-wall,
  .jable-template .jable-wall > .jable-grid,
  .tube-template .tube-section > .tube-video-grid,
  .nnyy-template .nnyy-board,
  .nnyy-template .nnyy-feature {
    display: grid !important;
    grid-auto-flow: initial !important;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
    gap: 16px !important;
    overflow: visible !important;
  }

  .stream-template .stream-poster-card,
  .friday-template .friday-card,
  .baxt-template .baxt-card,
  .jable-template .jable-card,
  .tube-template .tube-video-card,
  .nnyy-template .nnyy-card {
    min-width: 0 !important;
  }
}

.front.portal .portal-nav a,
.front.portal .nav-dropdown-trigger,
.friday-template .friday-nav a,
.nnyy-template .nnyy-nav a,
.baxt-template .baxt-bar nav a,
.stream-template .stream-nav a,
.tube-template .tube-nav a,
.jable-template .jable-bar nav a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  text-align: center !important;
}

.stream-filter-deck,
.jable-filter-panel,
.tube-filter-panel,
.category-filters,
.filter-panel {
  overflow: hidden !important;
}

.stream-filter-line,
.jable-filter-row,
.tube-filter-row,
.filter-row {
  align-items: center !important;
}

.stream-filter-line div,
.jable-filter-row div,
.tube-filter-row div,
.filter-values {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  padding-bottom: 0 !important;
  scrollbar-width: none !important;
}

.stream-filter-line div::-webkit-scrollbar,
.jable-filter-row div::-webkit-scrollbar,
.tube-filter-row div::-webkit-scrollbar,
.filter-values::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.stream-filter-line a,
.jable-filter-row a,
.tube-filter-row a,
.filter-values a,
.stream-sortline a,
.sort-tabs a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  text-align: center !important;
  text-decoration: none !important;
  vertical-align: middle !important;
}

:root[data-portal-theme="light"] .front.portal:not(.haoju-exact) h1,
:root[data-portal-theme="light"] .front.portal:not(.haoju-exact) h2,
:root[data-portal-theme="light"] .front.portal:not(.haoju-exact) h3,
:root[data-portal-theme="light"] .friday-template h1,
:root[data-portal-theme="light"] .friday-template h2,
:root[data-portal-theme="light"] .nnyy-template h1,
:root[data-portal-theme="light"] .nnyy-template h2,
:root[data-portal-theme="light"] .baxt-template h1,
:root[data-portal-theme="light"] .baxt-template h2,
:root[data-portal-theme="light"] .stream-template h1,
:root[data-portal-theme="light"] .stream-template h2,
:root[data-portal-theme="light"] .tube-template h1,
:root[data-portal-theme="light"] .tube-template h2,
:root[data-portal-theme="light"] .jable-template h1,
:root[data-portal-theme="light"] .jable-template h2 {
  color: #0f172a !important;
}

:root[data-portal-theme="light"] .front.portal:not(.haoju-exact) .meta,
:root[data-portal-theme="light"] .front.portal:not(.haoju-exact) .muted,
:root[data-portal-theme="light"] .front.portal:not(.haoju-exact) p,
:root[data-portal-theme="light"] .friday-template p,
:root[data-portal-theme="light"] .nnyy-template p,
:root[data-portal-theme="light"] .baxt-template p,
:root[data-portal-theme="light"] .stream-template p,
:root[data-portal-theme="light"] .tube-template p,
:root[data-portal-theme="light"] .jable-template p,
:root[data-portal-theme="light"] .movie-meta,
:root[data-portal-theme="light"] .card-meta,
:root[data-portal-theme="light"] .rank-meta {
  color: #4b5b70 !important;
}

:root[data-portal-theme="light"] .rank-score,
:root[data-portal-theme="light"] .movie-score,
:root[data-portal-theme="light"] .score-pill,
:root[data-portal-theme="light"] .rating-pill {
  color: #2f3b4d !important;
  background: rgba(15, 23, 42, 0.06) !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
}

@media (max-width: 760px) {
  .front.portal,
  .friday-template,
  .nnyy-template,
  .baxt-template,
  .stream-template,
  .tube-template,
  .jable-template {
    font-size: 15px !important;
  }

  .front.portal .portal-shell,
  .friday-template main,
  .nnyy-template main,
  .baxt-template main,
  .stream-template main,
  .tube-template main,
  .jable-template main {
    width: min(100%, 100vw) !important;
    padding-inline: 12px !important;
  }

  .front.portal .portal-header,
  .friday-template .friday-header,
  .nnyy-template .nnyy-header,
  .baxt-template .baxt-head,
  .stream-template .stream-top,
  .tube-template .tube-top,
  .jable-template .jable-top {
    padding: 12px 12px !important;
    gap: 10px !important;
  }

  .front.portal .portal-nav,
  .friday-template .friday-nav,
  .nnyy-template .nnyy-nav,
  .baxt-template .baxt-bar nav,
  .stream-template .stream-nav,
  .tube-template .tube-nav,
  .jable-template .jable-bar nav {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 8px 12px 10px !important;
    scrollbar-width: none !important;
  }

  .front.portal .portal-nav::-webkit-scrollbar,
  .friday-template .friday-nav::-webkit-scrollbar,
  .nnyy-template .nnyy-nav::-webkit-scrollbar,
  .baxt-template .baxt-bar nav::-webkit-scrollbar,
  .stream-template .stream-nav::-webkit-scrollbar,
  .tube-template .tube-nav::-webkit-scrollbar,
  .jable-template .jable-bar nav::-webkit-scrollbar {
    display: none !important;
  }

  .front.portal .portal-nav a,
  .front.portal .nav-dropdown-trigger,
  .friday-template .friday-nav a,
  .nnyy-template .nnyy-nav a,
  .baxt-template .baxt-bar nav a,
  .stream-template .stream-nav a,
  .tube-template .tube-nav a,
  .jable-template .jable-bar nav a {
    flex: 0 0 auto !important;
    height: 38px !important;
    min-height: 38px !important;
    min-width: 0 !important;
    padding: 0 14px !important;
    border-radius: 999px !important;
    font-size: 15px !important;
    font-weight: 800 !important;
  }

  .front.portal .hot-searches,
  .friday-template .friday-hot,
  .nnyy-template .nnyy-hot,
  .baxt-template .baxt-hot,
  .stream-template .stream-ticker,
  .tube-template .tube-hotline,
  .jable-template .jable-tags {
    margin: 0 0 12px !important;
    padding: 8px 0 10px !important;
    gap: 8px !important;
  }

  .front.portal .hot-searches a,
  .friday-template .friday-hot a,
  .nnyy-template .nnyy-hot a,
  .baxt-template .baxt-hot a,
  .stream-template .stream-ticker a,
  .tube-template .tube-hotline a,
  .jable-template .jable-tags a {
    max-width: 138px !important;
    height: 32px !important;
    min-height: 32px !important;
    padding: 0 11px !important;
    font-size: 13px !important;
  }

  .front.portal .portal-hero,
  .friday-template .friday-stage,
  .stream-template .stream-prime,
  .tube-template .tube-board-grid,
  .jable-template .jable-feature-mosaic,
  .baxt-template .baxt-grid-layout,
  .nnyy-template .nnyy-board {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .front.portal .hero-feature,
  .front.portal .hero-switcher,
  .friday-template .friday-hero,
  .baxt-template .baxt-slider article,
  .stream-template .stream-prime-card,
  .tube-template .tube-lead-video,
  .jable-template .jable-mosaic-main {
    min-height: 286px !important;
    max-height: 340px !important;
    border-radius: 18px !important;
  }

  .front.portal .hero-copy,
  .friday-template .friday-copy,
  .baxt-template .baxt-slider div,
  .stream-template .stream-prime-copy,
  .tube-template .tube-lead-video > a,
  .jable-template .jable-mosaic-main > div {
    padding: 22px 16px !important;
  }

  .front.portal .hero-copy h1,
  .friday-template .friday-copy h1,
  .baxt-template .baxt-slider h1,
  .stream-template .stream-prime h1,
  .tube-template .tube-lead-video h1,
  .jable-template .jable-mosaic-main h1,
  .movie-hero h1,
  .stream-detail-hero h1,
  .tube-detail-hero h1,
  .jable-detail-hero h1 {
    font-size: clamp(24px, 7.2vw, 31px) !important;
    line-height: 1.15 !important;
    letter-spacing: 0 !important;
    max-width: 100% !important;
  }

  .front.portal .hero-copy p,
  .friday-template .friday-copy p,
  .baxt-template .baxt-slider p,
  .stream-template .stream-prime p,
  .tube-template .tube-lead-video p,
  .jable-template .jable-mosaic-main p {
    font-size: 14px !important;
    line-height: 1.65 !important;
    max-height: 5.1em !important;
    overflow: hidden !important;
  }

  .front.portal .focus-panel,
  .friday-template .friday-focus,
  .stream-template .stream-side-stack,
  .tube-template .tube-focus,
  .jable-template .jable-focus,
  .baxt-template .baxt-side {
    max-height: none !important;
    overflow: visible !important;
  }

  .stream-filter-deck,
  .jable-filter-panel,
  .tube-filter-panel,
  .category-filters,
  .filter-panel {
    max-height: min(42vh, 340px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 12px !important;
    margin: 12px 0 !important;
    scrollbar-width: none !important;
  }

  .stream-filter-deck::-webkit-scrollbar,
  .jable-filter-panel::-webkit-scrollbar,
  .tube-filter-panel::-webkit-scrollbar,
  .category-filters::-webkit-scrollbar,
  .filter-panel::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }

  .stream-filter-line,
  .jable-filter-row,
  .tube-filter-row,
  .filter-row {
    display: grid !important;
    grid-template-columns: 48px minmax(0, 1fr) !important;
    gap: 8px !important;
    margin: 0 0 9px !important;
  }

  .stream-filter-line > span,
  .jable-filter-row > span,
  .tube-filter-row > span,
  .filter-row > span,
  .filter-label {
    height: 34px !important;
    min-height: 34px !important;
    font-size: 13px !important;
    color: #b8c5d6 !important;
    background: transparent !important;
    border: 0 !important;
  }

  .stream-filter-line a,
  .jable-filter-row a,
  .tube-filter-row a,
  .filter-values a {
    flex: 0 0 auto !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 12px !important;
    border-radius: 999px !important;
    font-size: 14px !important;
    font-weight: 800 !important;
  }

  :root[data-portal-theme="light"] .stream-filter-line > span,
  :root[data-portal-theme="light"] .jable-filter-row > span,
  :root[data-portal-theme="light"] .tube-filter-row > span,
  :root[data-portal-theme="light"] .filter-row > span,
  :root[data-portal-theme="light"] .filter-label {
    color: #44536a !important;
  }

  .stream-sortline,
  .sort-tabs {
    gap: 8px !important;
    padding: 10px 0 !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
  }

  .stream-sortline::-webkit-scrollbar,
  .sort-tabs::-webkit-scrollbar {
    display: none !important;
  }

  .stream-sortline a,
  .sort-tabs a {
    flex: 0 0 auto !important;
    height: 36px !important;
    min-height: 36px !important;
    padding: 0 14px !important;
    border-radius: 999px !important;
  }

  .stream-showcase .stream-poster-rail:not(.stream-detail-related),
  .friday-poster-rail,
  .baxt-card-wall,
  .jable-grid,
  .tube-video-grid,
  .nnyy-feature {
    display: grid !important;
    grid-auto-flow: column !important;
    grid-auto-columns: minmax(128px, 42vw) !important;
    grid-template-columns: none !important;
    gap: 12px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding-bottom: 4px !important;
    scrollbar-width: none !important;
  }

  .stream-showcase .stream-poster-rail::-webkit-scrollbar,
  .friday-poster-rail::-webkit-scrollbar,
  .baxt-card-wall::-webkit-scrollbar,
  .jable-grid::-webkit-scrollbar,
  .tube-video-grid::-webkit-scrollbar,
  .nnyy-feature::-webkit-scrollbar {
    display: none !important;
  }

  .stream-related-grid,
  .related-grid,
  .movie-related-grid {
    display: grid !important;
    grid-auto-flow: column !important;
    grid-auto-columns: minmax(126px, 42vw) !important;
    grid-template-columns: none !important;
    grid-template-rows: repeat(2, auto) !important;
    gap: 12px !important;
    overflow-x: auto !important;
    padding-bottom: 4px !important;
    scrollbar-width: none !important;
  }

  .stream-related-grid::-webkit-scrollbar,
  .related-grid::-webkit-scrollbar,
  .movie-related-grid::-webkit-scrollbar {
    display: none !important;
  }
}

/* 2026-06-12 nnyy structure closure: this template uses bare header nav. */
.nnyy-template .nnyy-top nav {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scrollbar-width: none !important;
}

.nnyy-template .nnyy-top nav::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.nnyy-template .nnyy-top nav a {
  flex: 0 0 auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  text-align: center !important;
  white-space: nowrap !important;
}

@media (min-width: 761px) {
  .nnyy-template .nnyy-board {
    display: grid !important;
    grid-template-columns: minmax(240px, 0.35fr) minmax(0, 1fr) !important;
    gap: 18px !important;
    align-items: start !important;
  }

  .nnyy-template .nnyy-week {
    max-height: 440px !important;
    overflow: hidden auto !important;
  }

  .nnyy-template .nnyy-poster-grid,
  .nnyy-template .nnyy-poster-grid.wide {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
    gap: 16px !important;
  }
}

/* 2026-06-12 nnyy card density closure:
   prevent poster cards from stretching into empty blocks on desktop/mobile. */
.nnyy-template .nnyy-poster-grid,
.nnyy-template .nnyy-poster-grid.wide {
  align-items: start !important;
}

.nnyy-template .nnyy-card {
  align-self: start !important;
  display: block !important;
  height: auto !important;
  min-height: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.nnyy-template .nnyy-card > a:first-child {
  display: block !important;
  width: 100% !important;
  aspect-ratio: 2 / 3 !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  background: rgba(255, 255, 255, 0.06) !important;
}

.nnyy-template .nnyy-card h3 {
  margin: 10px 0 4px !important;
  min-height: 0 !important;
  font-size: clamp(14px, 1vw, 16px) !important;
  line-height: 1.35 !important;
}

.nnyy-template .nnyy-card h3 > a {
  display: -webkit-box !important;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: auto !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

.nnyy-template .nnyy-card p {
  margin: 0 !important;
  min-height: 0 !important;
  color: var(--nnyy-accent-2) !important;
  font-size: 13px !important;
  line-height: 1.3 !important;
}

.nnyy-template .nnyy-title-row nav {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scrollbar-width: none !important;
}

.nnyy-template .nnyy-title-row nav::-webkit-scrollbar {
  display: none !important;
}

.nnyy-template .nnyy-title-row nav a {
  flex: 0 0 auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 56px !important;
  height: 34px !important;
  padding: 0 12px !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

@media (max-width: 760px) {
  .nnyy-template .nnyy-title-row {
    align-items: flex-start !important;
    gap: 10px !important;
  }

  .nnyy-template .nnyy-title-row nav {
    justify-content: flex-start !important;
    max-width: 54% !important;
  }

  .nnyy-template .nnyy-card h3 {
    font-size: 14px !important;
  }
}

/* 2026-06-12 light-mode contrast closure:
   light themes must stay readable on headers, filters and ranking blocks. */
:root[data-portal-theme="light"] .front.portal .theme-toggle,
:root[data-portal-theme="light"] .front.portal .user-chip,
:root[data-portal-theme="light"] .stream-template .theme-toggle,
:root[data-portal-theme="light"] .stream-template .user-chip,
:root[data-portal-theme="light"] .nnyy-template .theme-toggle,
:root[data-portal-theme="light"] .nnyy-template .user-chip {
  opacity: 1 !important;
  color: #1f2937 !important;
  background: rgba(255, 255, 255, 0.9) !important;
  border-color: #cbd5e1 !important;
}

:root[data-portal-theme="light"] .stream-template .stream-nav a,
:root[data-portal-theme="light"] .stream-template .stream-filter-line a,
:root[data-portal-theme="light"] .stream-template .stream-sortline a,
:root[data-portal-theme="light"] .stream-template .stream-count-pill,
:root[data-portal-theme="light"] .stream-template .stream-poster-card p,
:root[data-portal-theme="light"] .stream-template .stream-rank-card li a,
:root[data-portal-theme="light"] .stream-template .stream-mini-card b,
:root[data-portal-theme="light"] .stream-template .stream-mini-card small,
:root[data-portal-theme="light"] .stream-template .breadcrumb a,
:root[data-portal-theme="light"] .stream-template .breadcrumb span {
  opacity: 1 !important;
  color: #334155 !important;
}

:root[data-portal-theme="light"] .stream-template .stream-filter-line strong,
:root[data-portal-theme="light"] .stream-template .stream-kicker,
:root[data-portal-theme="light"] .stream-template .stream-catalog-brief p,
:root[data-portal-theme="light"] .stream-template .stream-rank-card > header span,
:root[data-portal-theme="light"] .stream-template .stream-section-title span {
  opacity: 1 !important;
  color: #475569 !important;
}

:root[data-portal-theme="light"] .stream-template .stream-nav a.active,
:root[data-portal-theme="light"] .stream-template .stream-filter-line a.active,
:root[data-portal-theme="light"] .stream-template .stream-sortline a.active,
:root[data-portal-theme="light"] .stream-template .stream-rank-card h2,
:root[data-portal-theme="light"] .stream-template .stream-catalog-brief h1,
:root[data-portal-theme="light"] .stream-template .stream-poster-card h3 a {
  opacity: 1 !important;
  color: #0f172a !important;
}

:root[data-portal-theme="light"] .stream-template .stream-filter-line a,
:root[data-portal-theme="light"] .stream-template .stream-sortline a {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
}

:root[data-portal-theme="light"] .stream-template .stream-filter-line a.active,
:root[data-portal-theme="light"] .stream-template .stream-sortline a.active {
  background: linear-gradient(135deg, #4ade80, #22d3ee) !important;
  border-color: transparent !important;
  color: #052e16 !important;
}

:root[data-portal-theme="light"] .stream-template .stream-rank-card li span,
:root[data-portal-theme="light"] .stream-template .stream-poster-card > a span {
  color: #166534 !important;
  background: #ecfdf5 !important;
}

:root[data-portal-theme="light"] .nnyy-template .nnyy-hot strong {
  color: #ffffff !important;
}

:root[data-portal-theme="light"] .nnyy-template .nnyy-hot a {
  color: #1f2937 !important;
  background: rgba(255, 255, 255, 0.96) !important;
  border-color: #dbe4ee !important;
}

/* 2026-06-12 all-template light readability closure:
   ranking, chips and header actions must stay readable after template switches. */
:root[data-portal-theme="light"] .portal-top .user-chip,
:root[data-portal-theme="light"] .portal-actions .user-chip,
:root[data-portal-theme="light"] .portal-nav a,
:root[data-portal-theme="light"] .portal-nav button,
:root[data-portal-theme="light"] .section-title span,
:root[data-portal-theme="light"] .compact-title span,
:root[data-portal-theme="light"] .category-sort span,
:root[data-portal-theme="light"] .rank-entry {
  opacity: 1 !important;
  color: #475569 !important;
}

:root[data-portal-theme="light"] .portal-actions .user-chip,
:root[data-portal-theme="light"] .portal-top .user-chip {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
}

:root[data-portal-theme="light"] .portal-nav a.active,
:root[data-portal-theme="light"] .portal-nav button.active,
:root[data-portal-theme="light"] .section-title h2,
:root[data-portal-theme="light"] .compact-title h2,
:root[data-portal-theme="light"] .rank-box h2,
:root[data-portal-theme="light"] .rank-list a,
:root[data-portal-theme="light"] .movie-card h3 a,
:root[data-portal-theme="light"] .movie-card .movie-title,
:root[data-portal-theme="light"] .movie-title {
  opacity: 1 !important;
  color: #0f172a !important;
}

:root[data-portal-theme="light"] .rank-box {
  background: rgba(255, 255, 255, 0.94) !important;
  border-color: #dbe4ee !important;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06) !important;
}

:root[data-portal-theme="light"] .rank-list li {
  border-color: #e2e8f0 !important;
}

:root[data-portal-theme="light"] .rank-list li::before {
  background: #eef2f7 !important;
  color: #64748b !important;
}

:root[data-portal-theme="light"] .rank-list li:nth-child(-n+3)::before {
  background: linear-gradient(135deg, #fb7185, #f97316) !important;
  color: #ffffff !important;
}

:root[data-portal-theme="light"] .rank-list span,
:root[data-portal-theme="light"] .rank-list .score-empty {
  color: #166534 !important;
  background: #ecfdf5 !important;
  border-radius: 999px !important;
  padding: 2px 8px !important;
  justify-self: end !important;
}

:root[data-portal-theme="light"] .movie-card p,
:root[data-portal-theme="light"] .movie-meta,
:root[data-portal-theme="light"] .catalog-count,
:root[data-portal-theme="light"] .catalog-brief p {
  opacity: 1 !important;
  color: #526173 !important;
}

:root[data-portal-theme="light"] .front.portal .hero-slide,
:root[data-portal-theme="light"] .front.portal .hero-feature,
:root[data-portal-theme="light"] .front.portal .hero-copy,
:root[data-portal-theme="light"] .front.portal .detail-hero,
:root[data-portal-theme="light"] .front.portal .detail-hero-copy {
  color: #ffffff !important;
}

:root[data-portal-theme="light"] .front.portal .hero-copy h1,
:root[data-portal-theme="light"] .front.portal .hero-copy p,
:root[data-portal-theme="light"] .front.portal .detail-hero h1,
:root[data-portal-theme="light"] .front.portal .detail-hero p {
  opacity: 1 !important;
  color: #ffffff !important;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.52) !important;
}

:root[data-portal-theme="light"] .front.portal .hero-copy .eyebrow,
:root[data-portal-theme="light"] .front.portal .detail-hero .eyebrow {
  opacity: 1 !important;
  color: #fbbf24 !important;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.58) !important;
}

@media (max-width: 760px) {
  .nnyy-template .nnyy-top nav {
    padding: 8px 0 10px !important;
  }

  .nnyy-template .nnyy-top nav a {
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 14px !important;
    border-radius: 999px !important;
    font-size: 15px !important;
    font-weight: 800 !important;
  }

  .nnyy-template .nnyy-board {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }

  .nnyy-template .nnyy-showing {
    order: 1 !important;
  }

  .nnyy-template .nnyy-week {
    order: 2 !important;
    max-height: 260px !important;
    overflow: hidden auto !important;
    scrollbar-width: none !important;
  }

  .nnyy-template .nnyy-week::-webkit-scrollbar {
    display: none !important;
  }

  .nnyy-template .nnyy-poster-grid,
  .nnyy-template .nnyy-poster-grid.wide {
    display: grid !important;
    grid-auto-flow: column !important;
    grid-auto-columns: minmax(128px, 42vw) !important;
    grid-template-columns: none !important;
    gap: 12px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: none !important;
  }

  .nnyy-template .nnyy-poster-grid::-webkit-scrollbar,
  .nnyy-template .nnyy-poster-grid.wide::-webkit-scrollbar {
    display: none !important;
  }
}

/* 2026-06-18 restore guard: keep the 2026-06-12 portal look, but let the
   newer language/login controls fit the player header without stray bars. */
.front.portal.player-page .portal-top {
  overflow-x: clip;
}

.front.portal.player-page .portal-bar {
  grid-template-columns: minmax(220px, 300px) minmax(320px, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 68px;
}

.front.portal.player-page .portal-brand,
.front.portal.player-page .portal-search,
.front.portal.player-page .portal-actions {
  min-width: 0;
}

.front.portal.player-page .portal-actions {
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.front.portal.player-page .portal-actions > * {
  flex: 0 0 auto;
}

.front.portal.player-page .language-switcher,
.tpl-haoju .language-switcher {
  --lang-switch-line: var(--portal-line);
  --lang-switch-bg: rgba(24, 29, 35, 0.78);
  --lang-menu-bg: rgba(34, 38, 44, 0.96);
  --lang-menu-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  --lang-muted: var(--portal-muted);
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 54px;
  min-height: 34px;
  padding: 0;
  border: 1px solid var(--lang-switch-line);
  border-radius: 10px;
  background: var(--lang-switch-bg);
  overflow: visible;
  white-space: nowrap;
}

.tpl-haoju .language-switcher {
  --lang-switch-line: var(--haoju-control-border);
  --lang-switch-bg: var(--haoju-control-gradient);
  --lang-trigger-bg: var(--haoju-control-gradient);
  --lang-menu-bg: rgba(10, 30, 20, 0.96);
  --lang-menu-shadow: 0 12px 26px rgba(0, 0, 0, 0.24);
  --lang-muted: rgba(208, 238, 218, 0.88);
  width: 52px;
  min-width: 52px;
  height: 32px;
  min-height: 32px;
  border-radius: 999px;
  color: var(--haoju-control-text);
  background: var(--haoju-control-gradient);
  box-shadow: var(--haoju-control-shadow);
}

.front.portal.player-page.tpl-haoju .language-switcher {
  --lang-switch-line: var(--haoju-control-border);
  --lang-switch-bg: var(--haoju-control-gradient);
  --lang-trigger-bg: var(--haoju-control-gradient);
  border-color: var(--haoju-control-border);
  color: var(--haoju-control-text);
  background: var(--haoju-control-gradient);
  box-shadow: var(--haoju-control-shadow);
}

:root[data-portal-theme="light"] .tpl-haoju .language-switcher {
  --lang-switch-line: var(--haoju-control-border);
  --lang-switch-bg: var(--haoju-control-gradient);
  --lang-trigger-bg: var(--haoju-control-gradient);
  --lang-menu-bg: rgba(248, 255, 250, 0.98);
  --lang-menu-shadow: 0 12px 24px rgba(46, 142, 73, 0.14);
  --lang-muted: #2d6f42;
}

.front.portal.player-page .language-switcher-trigger,
.front.portal.player-page .language-switcher-option,
.tpl-haoju .language-switcher-trigger,
.tpl-haoju .language-switcher-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.front.portal.player-page .language-switcher-trigger,
.tpl-haoju .language-switcher-trigger {
  gap: 5px;
  width: 100%;
  height: 32px;
  padding: 0 8px;
  border-radius: inherit;
  color: var(--haoju-control-text, #fff);
  background: var(--lang-trigger-bg, transparent);
}

.tpl-haoju .language-switcher-trigger {
  height: 30px;
}

.front.portal.player-page .language-switcher-caret,
.tpl-haoju .language-switcher-caret {
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-1px) rotate(45deg);
  opacity: 0.85;
}

.front.portal.player-page .language-switcher-menu,
.tpl-haoju .language-switcher-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 50;
  display: none;
  min-width: 104px;
  padding: 6px;
  border: 1px solid var(--lang-switch-line);
  border-radius: 10px;
  background: var(--lang-menu-bg);
  box-shadow: var(--lang-menu-shadow);
}

.front.portal.player-page .language-switcher.is-open .language-switcher-menu,
.tpl-haoju .language-switcher.is-open .language-switcher-menu {
  display: grid;
  gap: 4px;
}

.front.portal.player-page .language-switcher-option,
.tpl-haoju .language-switcher-option {
  width: 100%;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 7px;
  color: var(--lang-muted);
  justify-content: flex-start;
  text-align: left;
}

.front.portal.player-page .language-switcher-option.active,
.tpl-haoju .language-switcher-option.active {
  background: var(--haoju-chip-active-gradient);
  color: var(--haoju-chip-text);
}

.tpl-haoju .language-switcher-option.active {
  color: var(--haoju-chip-text);
  background: var(--haoju-chip-gradient);
}

.front.portal.player-page .portal-actions > a:not(.user-chip) {
  max-width: 54px;
  overflow: hidden;
}

.front.portal.player-page .portal-nav {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.front.portal.player-page .portal-nav::-webkit-scrollbar,
.front.portal.player-page .portal-top::-webkit-scrollbar {
  display: none;
}

@media (min-width: 761px) {
  .front.portal.player-page .nav-menu-toggle {
    display: none !important;
  }
}

@media (max-width: 900px) {
  .front.portal.player-page {
    --h5-edge: 12px;
  }

  .front.portal.player-page .portal-bar {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand actions"
      "search search";
    gap: 8px 10px;
    padding: 8px 0 6px;
    min-height: 0;
  }

  .front.portal.player-page .nav-menu-toggle {
    display: none !important;
  }

  .front.portal.player-page .portal-brand {
    grid-area: brand;
  }

  .front.portal.player-page .portal-actions {
    grid-area: actions;
    gap: 5px;
  }

  .front.portal.player-page .portal-search {
    grid-area: search;
    width: 100%;
    max-width: none;
    grid-template-columns: minmax(0, 1fr) 58px;
    min-height: 36px;
  }

  .front.portal.player-page .portal-actions .user-chip {
    max-width: 52px;
    min-height: 30px;
    padding: 6px 9px;
    font-size: 12px;
  }

  .front.portal.player-page .theme-toggle[data-theme-toggle] {
    width: 44px;
    min-width: 44px;
    height: 30px;
    min-height: 30px;
    padding: 3px 5px;
  }

  .front.portal.player-page .language-switcher,
  .tpl-haoju .language-switcher {
    width: 46px;
    min-height: 30px;
  }

  .front.portal.player-page .language-switcher-trigger,
  .tpl-haoju .language-switcher-trigger {
    height: 28px;
    padding: 0 7px;
    font-size: 11px;
  }

  .front.portal.player-page .portal-actions > a:not(.user-chip) {
    display: none !important;
  }

  .front.portal.player-page .portal-nav {
    gap: 8px;
    padding-bottom: 8px;
  }

  .front.portal.player-page .portal-nav a {
    min-width: max-content;
    height: 34px;
    padding: 0 12px;
    border-radius: 9px;
    font-size: 13px;
  }
}

/* Haoju-inspired dense cinema template.
   Original brand/assets are not copied; this keeps the dark, compact video-portal rhythm. */
.haoju-template,
.tpl-haoju.stream-template,
.tpl-haoju.player-page,
.tpl-haoju:not(.haoju-template) {
  --haoju-bg: #242424;
  --haoju-bg-2: #1b1b1d;
  --haoju-panel: #2d2d2f;
  --haoju-panel-2: #363638;
  --haoju-line: rgba(255, 255, 255, 0.1);
  --haoju-line-strong: rgba(255, 255, 255, 0.18);
  --haoju-text: #f5f7fb;
  --haoju-muted: #b7bdc7;
  --haoju-soft: #858c98;
  --haoju-red: #e8303a;
  --haoju-red-2: #ff635b;
  --haoju-chip-gradient: linear-gradient(135deg, #f7fff9 0%, #dcf6e3 52%, #bbeac8 100%);
  --haoju-chip-active-gradient: linear-gradient(135deg, #edfff1 0%, #b8edc8 48%, #86dba4 100%);
  --haoju-chip-text: #173323;
  --haoju-chip-muted: rgba(23, 51, 35, 0.68);
  --haoju-chip-border: rgba(138, 204, 154, 0.44);
  --haoju-chip-shadow: 0 5px 13px rgba(58, 140, 76, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.38);
  --haoju-chip-active-shadow: 0 7px 16px rgba(51, 150, 82, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.34);
  --haoju-control-gradient: linear-gradient(135deg, #fbfffc 0%, #e7f6eb 52%, #d0ebd6 100%);
  --haoju-control-text: #1c3a28;
  --haoju-control-border: rgba(142, 199, 154, 0.4);
  --haoju-control-shadow: 0 5px 12px rgba(54, 130, 74, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.34);
  --haoju-theme-night-bg: linear-gradient(135deg, rgba(12, 34, 24, 0.94) 0%, rgba(22, 61, 40, 0.9) 100%);
  --haoju-theme-night-text: #dff6e6;
  --haoju-theme-night-border: rgba(126, 220, 145, 0.34);
  --haoju-theme-night-shadow: 0 6px 16px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  --haoju-theme-day-bg: linear-gradient(135deg, #fffdf2 0%, #ecf8dc 52%, #cfeccd 100%);
  --haoju-theme-day-text: #2e411f;
  --haoju-theme-day-border: rgba(168, 207, 124, 0.44);
  --haoju-theme-day-shadow: 0 5px 12px rgba(123, 160, 76, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.42);
  --haoju-cyan: #28d1e6;
  --haoju-blue: #3f8cff;
  --haoju-gold: #ffc53d;
  --haoju-green: #28d17c;
  --haoju-radius: 8px;
  --haoju-shell: min(1380px, calc(100% - 40px));
  min-height: 100vh;
  color: var(--haoju-text);
  background: var(--haoju-bg);
}

.haoju-template *,
.tpl-haoju * {
  box-sizing: border-box;
}

.haoju-template a,
.tpl-haoju a {
  color: inherit;
  text-decoration: none;
}

:root[data-portal-theme="light"] .haoju-template,
:root[data-portal-theme="light"] .tpl-haoju.stream-template,
:root[data-portal-theme="light"] .tpl-haoju.player-page,
:root[data-portal-theme="light"] .tpl-haoju:not(.haoju-template) {
  --haoju-bg: #f2f4f8;
  --haoju-bg-2: #e7ebf2;
  --haoju-panel: #ffffff;
  --haoju-panel-2: #f7f8fb;
  --haoju-line: rgba(23, 31, 45, 0.12);
  --haoju-line-strong: rgba(23, 31, 45, 0.18);
  --haoju-text: #17202e;
  --haoju-muted: #5d6878;
  --haoju-soft: #7a8493;
  background: var(--haoju-bg);
}

.haoju-top {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(27, 27, 29, 0.95);
  border-bottom: 1px solid var(--haoju-line);
  backdrop-filter: blur(16px);
}

:root[data-portal-theme="light"] .haoju-top {
  background: rgba(255, 255, 255, 0.96);
}

.haoju-bar {
  display: grid;
  grid-template-columns: minmax(170px, auto) minmax(0, 1fr) minmax(220px, 330px) auto;
  gap: 14px;
  align-items: center;
  width: var(--haoju-shell);
  min-height: 50px;
  margin: 0 auto;
}

.haoju-menu {
  display: none;
}

.haoju-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--haoju-text);
}

.haoju-brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--haoju-red), #d81324);
  box-shadow: 0 10px 24px rgba(232, 48, 58, 0.25);
}

.haoju-brand-mark img {
  width: 22px;
  height: 22px;
  filter: brightness(0) invert(1);
}

.haoju-brand strong {
  display: block;
  overflow: hidden;
  color: #fff;
  font-size: 21px;
  font-weight: 950;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

:root[data-portal-theme="light"] .haoju-brand strong {
  color: var(--haoju-text);
}

.haoju-brand small {
  display: block;
  overflow: hidden;
  max-width: 160px;
  color: var(--haoju-soft);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.haoju-main-nav,
.haoju-sub-nav {
  display: flex;
  align-items: center;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.haoju-main-nav::-webkit-scrollbar,
.haoju-sub-nav::-webkit-scrollbar {
  display: none;
}

.haoju-main-nav {
  gap: 2px;
}

.haoju-main-nav a,
.haoju-sub-nav a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  color: var(--haoju-muted);
  font-size: 13px;
  font-weight: 850;
}

.haoju-main-nav a.active,
.haoju-main-nav a:hover,
.haoju-sub-nav a.active,
.haoju-sub-nav a:hover {
  color: var(--haoju-chip-text);
  background: var(--haoju-chip-active-gradient);
  box-shadow: var(--haoju-chip-active-shadow);
}

:root[data-portal-theme="light"] .haoju-main-nav a.active,
:root[data-portal-theme="light"] .haoju-main-nav a:hover,
:root[data-portal-theme="light"] .haoju-sub-nav a.active,
:root[data-portal-theme="light"] .haoju-sub-nav a:hover {
  color: var(--haoju-chip-text);
}

.haoju-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  align-items: center;
  min-width: 0;
  height: 34px;
  border: 1px solid var(--haoju-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

:root[data-portal-theme="light"] .haoju-search {
  background: #eef1f6;
}

.haoju-search input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0 10px 0 14px;
  border: 0;
  outline: 0;
  color: var(--haoju-text);
  background: transparent;
  font-size: 13px;
  font-weight: 700;
}

.haoju-search input::placeholder {
  color: var(--haoju-soft);
}

.haoju-search button {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 100%;
  border: 0;
  color: var(--haoju-chip-text);
  background: var(--haoju-blue);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.haoju-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.haoju-actions .theme-toggle[data-theme-toggle] {
  width: 76px;
  min-width: 76px;
  height: 32px;
  gap: 6px;
  padding: 0 10px;
  border-color: var(--haoju-theme-night-border);
  color: var(--haoju-theme-night-text);
  background: var(--haoju-theme-night-bg);
  box-shadow: var(--haoju-theme-night-shadow);
}

.haoju-actions .user-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 32px;
  padding: 0 13px;
  border-radius: 999px;
  color: var(--haoju-chip-text);
  border: 1px solid var(--haoju-chip-border);
  background: var(--haoju-chip-gradient);
  box-shadow: var(--haoju-chip-shadow);
  font-size: 13px;
  font-weight: 850;
}

:root[data-portal-theme="light"] .haoju-actions .theme-toggle[data-theme-toggle],
:root[data-portal-theme="light"] .haoju-actions .user-chip {
  border-color: var(--haoju-chip-border);
}

:root[data-portal-theme="light"] .haoju-actions .theme-toggle[data-theme-toggle] {
  border-color: var(--haoju-theme-day-border);
  color: var(--haoju-theme-day-text);
  background: var(--haoju-theme-day-bg);
  box-shadow: var(--haoju-theme-day-shadow);
}

:root[data-portal-theme="light"] .haoju-actions .user-chip {
  color: var(--haoju-chip-text);
  background: var(--haoju-chip-gradient);
}

.haoju-sub-nav {
  width: var(--haoju-shell);
  min-height: 40px;
  margin: 0 auto;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

:root[data-portal-theme="light"] .haoju-sub-nav {
  border-top-color: rgba(23, 31, 45, 0.08);
}

.haoju-shell {
  width: var(--haoju-shell);
  margin: 0 auto;
  padding: 14px 0 36px;
}

.haoju-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 310px);
  min-height: clamp(330px, 34vw, 470px);
  border-radius: var(--haoju-radius);
  background: var(--haoju-bg-2);
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3);
}

.haoju-hero-main {
  position: relative;
  min-height: inherit;
  background-image:
    linear-gradient(90deg, rgba(20, 20, 22, 0.96), rgba(20, 20, 22, 0.54), rgba(20, 20, 22, 0.12)),
    linear-gradient(180deg, rgba(20, 20, 22, 0.12), rgba(20, 20, 22, 0.9)),
    var(--haoju-backdrop);
  background-position: center;
  background-size: cover;
}

.haoju-hero-main::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 35%, rgba(40, 209, 230, 0.32), transparent 28%),
    radial-gradient(circle at 82% 28%, rgba(232, 48, 58, 0.34), transparent 30%);
  mix-blend-mode: screen;
  opacity: 0.75;
}

.haoju-hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: min(560px, 72%);
  min-height: inherit;
  padding: clamp(26px, 4vw, 54px);
}

.haoju-hero-copy p,
.haoju-title p {
  margin: 0 0 8px;
  color: var(--haoju-cyan);
  font-size: 13px;
  font-weight: 900;
}

.haoju-hero-copy h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(30px, 4.4vw, 58px);
  font-weight: 950;
  line-height: 1.03;
}

.haoju-hero-copy span {
  display: -webkit-box;
  overflow: hidden;
  max-width: 520px;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.75;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.haoju-hero-controls {
  position: absolute;
  z-index: 2;
  left: 22px;
  bottom: 20px;
  display: inline-flex;
  gap: 10px;
}

.haoju-round-btn {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #111;
  background: #fff;
  font-size: 16px;
  font-weight: 950;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.haoju-round-btn.ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.32);
}

.haoju-hero-list {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 22px;
  background: linear-gradient(180deg, rgba(29, 29, 31, 0.94), rgba(22, 22, 24, 0.96));
}

.haoju-hero-list a {
  display: block;
  padding: 12px 10px;
  border-radius: 8px;
  border: 1px solid transparent;
}

.haoju-hero-list a:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

.haoju-hero-list strong,
.haoju-hero-list span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.haoju-hero-list strong {
  color: #fff;
  font-size: 15px;
  font-weight: 920;
}

.haoju-hero-list span {
  margin-top: 4px;
  color: var(--haoju-muted);
  font-size: 12px;
  font-weight: 750;
}

.haoju-quick-grid {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.haoju-quick-grid a {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 54px;
  padding: 9px;
  border-radius: 9px;
  border: 1px solid var(--haoju-line);
  background: var(--haoju-panel);
}

.haoju-quick-grid a i {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--haoju-red), var(--haoju-gold));
}

.haoju-quick-grid a:nth-child(3n+2) i {
  background: linear-gradient(135deg, var(--haoju-blue), var(--haoju-cyan));
}

.haoju-quick-grid a:nth-child(3n+3) i {
  background: linear-gradient(135deg, var(--haoju-green), var(--haoju-blue));
}

.haoju-quick-grid strong,
.haoju-quick-grid span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.haoju-quick-grid strong {
  color: var(--haoju-text);
  font-size: 13px;
  font-weight: 920;
}

.haoju-quick-grid span {
  margin-top: 2px;
  color: var(--haoju-soft);
  font-size: 11px;
  font-weight: 700;
}

.haoju-promo-stack {
  display: grid;
  gap: 8px;
  margin: 12px 0 18px;
}

.haoju-promo-stack a {
  position: relative;
  display: grid;
  grid-template-columns: minmax(120px, 0.26fr) minmax(0, 1fr);
  align-items: center;
  min-height: 58px;
  padding: 9px 18px;
  border-radius: 7px;
  color: #fff;
  overflow: hidden;
}

.haoju-promo-stack a::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.16), transparent 34%, rgba(0, 0, 0, 0.22));
  pointer-events: none;
}

.haoju-promo-stack strong,
.haoju-promo-stack span {
  position: relative;
  z-index: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.haoju-promo-stack strong {
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 950;
}

.haoju-promo-stack span {
  font-size: clamp(15px, 1.8vw, 24px);
  font-weight: 950;
}

.haoju-promo-stack .promo-a {
  background: linear-gradient(90deg, #0653bd, #16b6ff 38%, #ffc12d);
}

.haoju-promo-stack .promo-b {
  background: linear-gradient(90deg, #0b7f3a, #34d66e 34%, #f4f7ff);
  color: #062612;
}

.haoju-promo-stack .promo-c {
  background: linear-gradient(90deg, #d8162e, #ff8939 46%, #7a2cff);
}

.haoju-promo-stack .promo-d {
  background: linear-gradient(90deg, #2727a8, #f7cc2d 38%, #f04a4a);
}

.haoju-block,
.haoju-mini-nav,
.haoju-ranks section {
  border: 1px solid var(--haoju-line);
  border-radius: var(--haoju-radius);
  background: var(--haoju-panel);
}

.haoju-block {
  padding: 16px;
  margin: 14px 0;
}

.haoju-title,
.haoju-rank-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.haoju-title h2,
.haoju-rank-head h2 {
  margin: 0;
  color: var(--haoju-text);
  font-size: 24px;
  font-weight: 950;
  line-height: 1.15;
}

.haoju-title > a,
.haoju-title > span,
.haoju-title nav a,
.haoju-rank-head a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--haoju-muted);
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

:root[data-portal-theme="light"] .haoju-title > a,
:root[data-portal-theme="light"] .haoju-title > span,
:root[data-portal-theme="light"] .haoju-title nav a,
:root[data-portal-theme="light"] .haoju-rank-head a {
  background: #eef1f6;
}

.haoju-title nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.haoju-card-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.haoju-video-card {
  min-width: 0;
}

.haoju-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  border-radius: 7px;
  background: var(--haoju-bg-2);
  overflow: hidden;
}

.haoju-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.18s ease;
}

.haoju-video-card:hover .haoju-thumb img {
  transform: scale(1.035);
}

.haoju-thumb span {
  position: absolute;
  right: 7px;
  bottom: 7px;
  max-width: calc(100% - 14px);
  padding: 4px 7px;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.64);
  font-size: 11px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.haoju-video-card h3 {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.35;
}

.haoju-video-card h3 a {
  display: -webkit-box;
  overflow: hidden;
  color: var(--haoju-text);
  font-weight: 900;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.haoju-video-card p {
  overflow: hidden;
  margin: 4px 0 0;
  color: var(--haoju-soft);
  font-size: 12px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.haoju-mini-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 8px 12px;
  margin: 14px 0;
}

.haoju-mini-nav strong {
  flex: 0 0 auto;
  color: var(--haoju-gold);
  font-size: 13px;
  font-weight: 950;
}

.haoju-mini-nav div {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.haoju-mini-nav div::-webkit-scrollbar {
  display: none;
}

.haoju-mini-nav a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  color: var(--haoju-muted);
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 850;
}

.haoju-main-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
  align-items: start;
}

.haoju-flow {
  min-width: 0;
}

.haoju-ranks {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 12px;
}

.haoju-ranks section {
  padding: 14px;
}

.haoju-rank-head {
  align-items: center;
  margin-bottom: 10px;
}

.haoju-rank-head h2 {
  font-size: 18px;
}

.haoju-ranks ol {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: haoju-rank;
}

.haoju-ranks li {
  counter-increment: haoju-rank;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 34px;
  color: var(--haoju-muted);
}

.haoju-ranks li::before {
  content: counter(haoju-rank);
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  color: var(--haoju-muted);
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 950;
}

.haoju-ranks li:nth-child(-n+3)::before {
  color: #121212;
  background: var(--haoju-gold);
}

.haoju-ranks li a {
  overflow: hidden;
  color: var(--haoju-text);
  font-size: 13px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.haoju-ranks li span {
  color: var(--haoju-gold);
  font-size: 12px;
  font-weight: 900;
}

.haoju-news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.haoju-news-grid a {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 11px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.07);
}

:root[data-portal-theme="light"] .haoju-news-grid a {
  background: #f0f3f8;
}

.haoju-news-grid strong,
.haoju-news-grid span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.haoju-news-grid strong {
  color: var(--haoju-text);
  font-size: 14px;
  font-weight: 900;
}

.haoju-news-grid span {
  color: var(--haoju-soft);
  font-size: 12px;
  font-weight: 750;
}

.haoju-mobile-dock {
  display: none;
}

.tpl-haoju .stream-top,
.tpl-haoju.player-page .portal-top,
.tpl-haoju:not(.haoju-template) .portal-top {
  background: rgba(27, 27, 29, 0.96);
  border-bottom: 1px solid var(--haoju-line);
}

:root[data-portal-theme="light"] .tpl-haoju .stream-top,
:root[data-portal-theme="light"] .tpl-haoju.player-page .portal-top,
:root[data-portal-theme="light"] .tpl-haoju:not(.haoju-template) .portal-top {
  background: rgba(255, 255, 255, 0.96);
}

.tpl-haoju .stream-shell,
.tpl-haoju .portal-shell,
.tpl-haoju .page-shell,
.tpl-haoju.player-page .player-shell,
.tpl-haoju.player-page .player-context {
  width: var(--haoju-shell);
}

.tpl-haoju.player-page .player-context {
  margin-bottom: 24px;
  padding-top: 14px;
  padding-bottom: 28px;
}

.tpl-haoju.player-page .site-footer {
  padding-top: 16px;
  padding-bottom: 16px;
}

.tpl-haoju .stream-prime-card,
.tpl-haoju .stream-catalog-brief,
.tpl-haoju .stream-filter-deck,
.tpl-haoju .stream-result-panel,
.tpl-haoju .stream-category-board section,
.tpl-haoju .stream-info-card,
.tpl-haoju .player-frame,
.tpl-haoju .player-side,
.tpl-haoju .info-panel,
.tpl-haoju .section-block,
.tpl-haoju .not-found-hero,
.tpl-haoju .public-good-panel {
  border-color: var(--haoju-line);
  border-radius: var(--haoju-radius);
  background: var(--haoju-panel);
}

.tpl-haoju .stream-nav a.active,
.tpl-haoju .portal-nav a.active {
  color: var(--haoju-chip-text);
  border-radius: 999px;
  background: var(--haoju-chip-gradient);
  box-shadow: var(--haoju-chip-shadow);
}

.tpl-haoju .stream-nav a:nth-child(1),
.tpl-haoju .portal-nav a:nth-child(1) {
  --haoju-chip-gradient: linear-gradient(135deg, #f2fff5 0%, #cbeed5 48%, #9fdeaf 100%);
  --haoju-chip-shadow: 0 7px 16px rgba(58, 145, 78, 0.13);
}

.tpl-haoju .stream-nav a:nth-child(2),
.tpl-haoju .portal-nav a:nth-child(2) {
  --haoju-chip-gradient: linear-gradient(135deg, #f3fff8 0%, #c4ebd3 46%, #91d8aa 100%);
  --haoju-chip-shadow: 0 7px 16px rgba(52, 140, 86, 0.13);
}

.tpl-haoju .stream-nav a:nth-child(3),
.tpl-haoju .portal-nav a:nth-child(3) {
  --haoju-chip-gradient: linear-gradient(135deg, #f3fffb 0%, #c6ece0 46%, #9bdcbc 100%);
  --haoju-chip-shadow: 0 7px 16px rgba(48, 137, 104, 0.12);
}

.tpl-haoju .stream-nav a:nth-child(4),
.tpl-haoju .portal-nav a:nth-child(4) {
  --haoju-chip-gradient: linear-gradient(135deg, #fbfff3 0%, #dceebf 44%, #afd98f 100%);
  --haoju-chip-shadow: 0 7px 16px rgba(101, 140, 55, 0.12);
}

.tpl-haoju .stream-nav a:nth-child(5),
.tpl-haoju .portal-nav a:nth-child(5) {
  --haoju-chip-gradient: linear-gradient(135deg, #f3fffb 0%, #c7ece4 46%, #a3ddce 100%);
  --haoju-chip-shadow: 0 7px 16px rgba(50, 133, 118, 0.11);
}

.tpl-haoju .stream-nav a:nth-child(6),
.tpl-haoju .portal-nav a:nth-child(6) {
  --haoju-chip-gradient: linear-gradient(135deg, #fcfff1 0%, #e1efb9 46%, #b7dd8e 100%);
  --haoju-chip-shadow: 0 7px 16px rgba(106, 141, 54, 0.12);
}

.tpl-haoju .stream-nav a:nth-child(7),
.tpl-haoju .portal-nav a:nth-child(7) {
  --haoju-chip-gradient: linear-gradient(135deg, #f4fffb 0%, #ceeee5 46%, #a6dcc8 100%);
  --haoju-chip-shadow: 0 7px 16px rgba(54, 136, 110, 0.11);
}

@media (min-width: 761px) {
  body.front.portal.tpl-haoju,
  body.catalog-body.tpl-haoju {
    --haoju-head-w: min(1304px, calc(100vw - 136px));
  }

  body.front.portal.tpl-haoju .portal-bar,
  body.front.portal.tpl-haoju.stream-template .stream-head {
    width: var(--haoju-head-w);
    grid-template-columns: minmax(190px, max-content) minmax(220px, 1fr) max-content;
    gap: clamp(10px, 1vw, 18px);
  }

  body.front.portal.tpl-haoju .portal-search,
  body.front.portal.tpl-haoju.stream-template .stream-search {
    justify-self: stretch;
    width: 100%;
    min-width: 0;
    max-width: min(560px, 38vw);
  }

  body.front.portal.tpl-haoju .portal-actions,
  body.front.portal.tpl-haoju.stream-template .stream-actions {
    justify-self: end;
    min-width: max-content;
  }

  body.front.portal.tpl-haoju:not(.haoju-template) .portal-nav {
    display: flex;
    justify-content: flex-start;
    width: var(--haoju-head-w);
    min-height: 42px;
    margin: 0 auto;
    padding: 0 0 8px;
    gap: clamp(8px, 0.8vw, 12px);
    overflow-x: auto;
    overflow-y: hidden;
  }

  body.front.portal.tpl-haoju.search-page .portal-nav,
  body.front.portal.tpl-haoju.profile-page .portal-nav,
  body.front.portal.tpl-haoju.sitemap-page .portal-nav,
  body.front.portal.tpl-haoju.not-found-page .portal-nav {
    justify-content: flex-start;
  }

  body.front.portal.tpl-haoju:not(.haoju-template) .portal-nav a {
    flex: 0 0 auto;
    width: auto;
    min-width: 96px;
    height: 38px;
    min-height: 38px;
    padding: 0 clamp(12px, 1vw, 16px);
    font-size: 14px;
    line-height: 1;
    white-space: nowrap;
  }

  body.front.portal.tpl-haoju:not(.stream-detail) .breadcrumb:not(.detail-breadcrumb),
  body.front.portal.tpl-haoju.stream-category .stream-breadcrumb {
    width: var(--haoju-head-w);
    margin-right: auto;
    margin-left: auto;
  }

  body.front.portal.tpl-haoju:not(.haoju-template):not(.stream-template):not(.player-page) .portal-shell,
  body.front.portal.tpl-haoju:not(.haoju-template):not(.stream-template):not(.player-page) .page-shell.not-found-page,
  body.front.portal.tpl-haoju:not(.haoju-template):not(.stream-template):not(.player-page) .page-shell.profile-shell,
  body.front.portal.tpl-haoju:not(.haoju-template):not(.stream-template):not(.player-page) .page-shell.sitemap-page {
    width: var(--haoju-head-w);
  }

  body.front.portal.tpl-haoju:not(.haoju-template):not(.stream-template):not(.player-page) .portal-shell > .breadcrumb:not(.detail-breadcrumb),
  body.front.portal.tpl-haoju:not(.haoju-template):not(.stream-template):not(.player-page) .page-shell.not-found-page > .breadcrumb:not(.detail-breadcrumb),
  body.front.portal.tpl-haoju:not(.haoju-template):not(.stream-template):not(.player-page) .page-shell.profile-shell > .breadcrumb:not(.detail-breadcrumb),
  body.front.portal.tpl-haoju:not(.haoju-template):not(.stream-template):not(.player-page) .page-shell.sitemap-page > .breadcrumb:not(.detail-breadcrumb) {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  body.front.portal.tpl-haoju.stream-category .stream-head,
  body.front.portal.tpl-haoju.stream-category .stream-nav,
  body.front.portal.tpl-haoju.stream-category .stream-shell,
  body.catalog-body.tpl-haoju .page-shell {
    width: var(--haoju-head-w);
  }

  body.front.portal.tpl-haoju.stream-error .stream-head,
  body.front.portal.tpl-haoju.stream-error .stream-nav,
  body.front.portal.tpl-haoju.stream-error .stream-shell {
    width: var(--haoju-head-w);
  }

  body.front.portal.tpl-haoju.stream-category .stream-nav,
  body.front.portal.tpl-haoju.stream-error .stream-nav {
    min-height: 42px;
    gap: clamp(8px, 0.8vw, 12px);
    padding: 0 0 8px;
    scrollbar-width: none;
  }

  body.front.portal.tpl-haoju.stream-category .stream-nav::-webkit-scrollbar,
  body.front.portal.tpl-haoju.stream-error .stream-nav::-webkit-scrollbar {
    display: none;
  }

  body.front.portal.tpl-haoju.stream-category .stream-nav a,
  body.front.portal.tpl-haoju.stream-error .stream-nav a {
    flex: 0 0 auto;
    justify-content: center;
    width: auto;
    min-width: 96px;
    height: 38px;
    min-height: 38px;
    padding: 0 clamp(12px, 1vw, 16px);
    border: 1px solid var(--haoju-chip-border);
    border-radius: 999px;
    color: var(--haoju-chip-text);
    background: var(--haoju-chip-gradient);
    box-shadow: var(--haoju-chip-shadow);
    font-size: 14px;
  }

  body.front.portal.tpl-haoju.stream-category .stream-nav a::after,
  body.front.portal.tpl-haoju.stream-error .stream-nav a::after {
    display: none;
  }

  body.front.portal.tpl-haoju.stream-category .stream-nav a.active,
  body.front.portal.tpl-haoju.stream-category .stream-nav a:hover,
  body.front.portal.tpl-haoju.stream-error .stream-nav a.active,
  body.front.portal.tpl-haoju.stream-error .stream-nav a:hover {
    color: var(--haoju-chip-text);
    background: var(--haoju-chip-active-gradient);
    box-shadow: var(--haoju-chip-active-shadow);
  }
}

@media (min-width: 961px) and (max-width: 1180px) {
  body.front.portal.tpl-haoju,
  body.catalog-body.tpl-haoju {
    --haoju-head-w: min(1120px, calc(100vw - 48px));
  }

  body.front.portal.tpl-haoju .portal-bar,
  body.front.portal.tpl-haoju.stream-template .stream-head {
    grid-template-columns: minmax(160px, max-content) minmax(180px, 1fr) max-content;
    gap: 10px;
  }

  body.front.portal.tpl-haoju .portal-search,
  body.front.portal.tpl-haoju.stream-template .stream-search {
    max-width: min(420px, 34vw);
  }

  body.front.portal.tpl-haoju:not(.haoju-template) .portal-nav a,
  body.front.portal.tpl-haoju.stream-category .stream-nav a,
  body.front.portal.tpl-haoju.stream-error .stream-nav a {
    min-width: 86px;
    padding-inline: 10px;
  }
}

body.front.portal.tpl-haoju.stream-category .stream-catalog-brief,
body.front.portal.tpl-haoju.stream-category .stream-filter-deck,
body.front.portal.tpl-haoju.stream-category .stream-result-panel,
body.catalog-body.tpl-haoju .list-hero,
body.catalog-body.tpl-haoju .filter-panel,
body.catalog-body.tpl-haoju .rank-box {
  border-color: rgba(126, 220, 145, 0.18);
  background:
    radial-gradient(circle at 12% 0%, rgba(88, 211, 122, 0.12), transparent 36%),
    radial-gradient(circle at 86% 10%, rgba(70, 176, 217, 0.1), transparent 36%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.035));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.14);
}

:root[data-portal-theme="light"] body.front.portal.tpl-haoju.stream-category .stream-catalog-brief,
:root[data-portal-theme="light"] body.front.portal.tpl-haoju.stream-category .stream-filter-deck,
:root[data-portal-theme="light"] body.front.portal.tpl-haoju.stream-category .stream-result-panel,
:root[data-portal-theme="light"] body.catalog-body.tpl-haoju .list-hero,
:root[data-portal-theme="light"] body.catalog-body.tpl-haoju .filter-panel,
:root[data-portal-theme="light"] body.catalog-body.tpl-haoju .rank-box {
  border-color: rgba(93, 170, 118, 0.18);
  background:
    radial-gradient(circle at 10% 0%, rgba(144, 235, 176, 0.24), transparent 38%),
    radial-gradient(circle at 86% 8%, rgba(111, 195, 235, 0.2), transparent 38%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(246, 252, 249, 0.86));
  box-shadow: 0 18px 40px rgba(79, 112, 92, 0.08);
}

body.front.portal.tpl-haoju.stream-category .stream-category-board {
  padding: 0;
  overflow: visible;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
}

body.front.portal.tpl-haoju.stream-category .stream-category-board section {
  --rank-glow-a: rgba(94, 239, 136, 0.2);
  --rank-glow-b: rgba(83, 173, 218, 0.16);
  --rank-glow-c: rgba(255, 112, 190, 0.08);
  --rank-title-color: #ffd36f;
  --rank-title-shadow: rgba(255, 188, 80, 0.18);
  position: relative;
  isolation: isolate;
  overflow: visible;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
}

body.front.portal.tpl-haoju.stream-category .stream-category-board section::before {
  content: "";
  position: absolute;
  inset: -32px -48px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 4% 0%, var(--rank-glow-a), transparent 48%),
    radial-gradient(ellipse at 100% 12%, var(--rank-glow-b), transparent 48%),
    radial-gradient(ellipse at 52% 100%, var(--rank-glow-c), transparent 58%);
  filter: blur(24px) saturate(130%);
  opacity: 0.92;
}

body.front.portal.tpl-haoju.stream-category .stream-category-board section:nth-of-type(2n) {
  --rank-glow-a: rgba(255, 112, 190, 0.17);
  --rank-glow-b: rgba(111, 195, 235, 0.16);
  --rank-glow-c: rgba(94, 239, 136, 0.08);
  --rank-title-color: #ff9cc8;
  --rank-title-shadow: rgba(255, 112, 190, 0.18);
}

body.front.portal.tpl-haoju.stream-category .stream-category-board section:nth-of-type(3n) {
  --rank-glow-a: rgba(111, 195, 235, 0.2);
  --rank-glow-b: rgba(178, 231, 122, 0.14);
  --rank-glow-c: rgba(255, 188, 80, 0.08);
  --rank-title-color: #8be7ff;
  --rank-title-shadow: rgba(111, 195, 235, 0.18);
}

body.front.portal.tpl-haoju.stream-category .stream-category-board section:nth-of-type(4n) {
  --rank-glow-a: rgba(255, 188, 80, 0.15);
  --rank-glow-b: rgba(94, 239, 136, 0.18);
  --rank-glow-c: rgba(111, 195, 235, 0.09);
  --rank-title-color: #b9f581;
  --rank-title-shadow: rgba(178, 231, 122, 0.16);
}

body.front.portal.tpl-haoju.stream-category .stream-category-board .stream-block-title {
  position: relative;
  z-index: 1;
}

body.front.portal.tpl-haoju.stream-category .stream-category-board .stream-block-title strong {
  color: var(--rank-title-color);
  font-size: 16.5px;
  font-weight: 950;
  text-shadow: 0 8px 22px var(--rank-title-shadow);
}

body.front.portal.tpl-haoju.stream-category .stream-category-board ol {
  position: relative;
  z-index: 1;
  margin-top: 10px;
  background: transparent !important;
}

body.front.portal.tpl-haoju.stream-category .stream-category-board li {
  position: relative;
  padding: 9px 0;
  background: transparent !important;
  border-bottom: 0;
}

body.front.portal.tpl-haoju.stream-category .stream-category-board li::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.08) 12%, rgba(255, 255, 255, 0.1) 52%, rgba(255, 255, 255, 0.06) 88%, transparent 100%);
}

body.front.portal.tpl-haoju.stream-category .stream-category-board li a {
  color: rgba(248, 255, 250, 0.92);
  font-size: 14.5px;
  font-weight: 820;
}

:root[data-portal-theme="light"] body.front.portal.tpl-haoju.stream-category .stream-category-board section {
  --rank-glow-a: rgba(94, 214, 132, 0.27);
  --rank-glow-b: rgba(111, 195, 235, 0.22);
  --rank-glow-c: rgba(255, 112, 190, 0.12);
  --rank-title-color: #7a5200;
  --rank-title-shadow: rgba(138, 91, 0, 0.1);
}

:root[data-portal-theme="light"] body.front.portal.tpl-haoju.stream-category .stream-category-board section:nth-of-type(2n) {
  --rank-title-color: #9c315f;
  --rank-title-shadow: rgba(156, 49, 95, 0.1);
}

:root[data-portal-theme="light"] body.front.portal.tpl-haoju.stream-category .stream-category-board section:nth-of-type(3n) {
  --rank-title-color: #146a7e;
  --rank-title-shadow: rgba(20, 106, 126, 0.1);
}

:root[data-portal-theme="light"] body.front.portal.tpl-haoju.stream-category .stream-category-board section:nth-of-type(4n) {
  --rank-title-color: #3f731c;
  --rank-title-shadow: rgba(63, 115, 28, 0.1);
}

:root[data-portal-theme="light"] body.front.portal.tpl-haoju.stream-category .stream-category-board .stream-block-title strong {
  color: var(--rank-title-color);
}

:root[data-portal-theme="light"] body.front.portal.tpl-haoju.stream-category .stream-category-board li {
  border-bottom: 0;
}

:root[data-portal-theme="light"] body.front.portal.tpl-haoju.stream-category .stream-category-board li::after {
  background: linear-gradient(90deg, transparent 0%, rgba(44, 64, 56, 0.07) 12%, rgba(44, 64, 56, 0.09) 52%, rgba(44, 64, 56, 0.05) 88%, transparent 100%);
}

:root[data-portal-theme="light"] body.front.portal.tpl-haoju.stream-category .stream-category-board li a {
  color: #1f2e26;
}

body.front.portal.tpl-haoju.search-page .portal-shell {
  position: relative;
  isolation: isolate;
  padding-top: 24px;
}

body.front.portal.tpl-haoju.search-page .portal-shell::before {
  content: "";
  position: absolute;
  inset: 0 -56px auto -56px;
  z-index: -1;
  height: 300px;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 0% 0%, rgba(94, 239, 136, 0.13), transparent 42%),
    radial-gradient(ellipse at 58% 8%, rgba(111, 195, 235, 0.12), transparent 44%),
    radial-gradient(ellipse at 100% 18%, rgba(255, 112, 190, 0.1), transparent 48%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 86%);
}

body.front.portal.tpl-haoju.search-page .search-hero {
  position: relative;
  max-width: 760px;
  padding: 0 0 18px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
}

body.front.portal.tpl-haoju.search-page .search-hero .breadcrumb {
  width: 100%;
  margin: 0 0 18px;
  color: rgba(216, 228, 220, 0.62);
}

body.front.portal.tpl-haoju.search-page .search-hero .breadcrumb .crumb-current {
  color: rgba(248, 255, 250, 0.88);
}

:root[data-portal-theme="light"] body.front.portal.tpl-haoju.search-page .portal-shell::before {
  background:
    radial-gradient(ellipse at 0% 0%, rgba(94, 214, 132, 0.22), transparent 42%),
    radial-gradient(ellipse at 58% 8%, rgba(111, 195, 235, 0.2), transparent 44%),
    radial-gradient(ellipse at 100% 18%, rgba(255, 112, 190, 0.14), transparent 48%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), transparent 86%);
}

:root[data-portal-theme="light"] body.front.portal.tpl-haoju.search-page .search-hero {
  border-bottom-color: rgba(44, 64, 56, 0.1);
}

:root[data-portal-theme="light"] body.front.portal.tpl-haoju.search-page .search-hero .breadcrumb {
  color: rgba(82, 97, 116, 0.82);
}

:root[data-portal-theme="light"] body.front.portal.tpl-haoju.search-page .search-hero .breadcrumb .crumb-current {
  color: rgba(24, 38, 30, 0.88);
}

@media (max-width: 760px) {
  body.front.portal.tpl-haoju.stream-category .stream-category-board section::before {
    inset: -24px 0;
  }

  body.front.portal.tpl-haoju.search-page .portal-shell::before {
    inset: 0 0 auto;
  }
}

body.front.portal.tpl-haoju.stream-category .stream-catalog-brief {
  padding: 24px;
  border: 1px solid rgba(126, 220, 145, 0.18);
  border-radius: 22px;
}

body.front.portal.tpl-haoju.stream-category .stream-filter-deck {
  gap: 12px;
}

@media (max-width: 960px) {
  body.front.portal.tpl-haoju.stream-category .stream-breadcrumb {
    margin-bottom: 8px;
  }

  body.front.portal.tpl-haoju.stream-category .stream-catalog-brief {
    display: grid;
    gap: 5px !important;
    padding: 10px 12px !important;
    border-radius: 18px;
    border-color: rgba(104, 222, 142, 0.18) !important;
    background:
      radial-gradient(ellipse at 0% 0%, rgba(91, 220, 126, 0.17), transparent 54%),
      radial-gradient(ellipse at 100% 8%, rgba(75, 164, 220, 0.12), transparent 56%),
      linear-gradient(135deg, rgba(15, 29, 24, 0.72), rgba(14, 21, 30, 0.58) 62%, rgba(10, 11, 16, 0.42)) !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1) !important;
    align-items: start !important;
  }

  body.front.portal.tpl-haoju.stream-category .stream-catalog-brief .stream-kicker {
    display: none !important;
  }

  body.front.portal.tpl-haoju.stream-category .stream-catalog-brief h1 {
    font-size: 22px !important;
    line-height: 1.06 !important;
  }

  body.front.portal.tpl-haoju.stream-category .stream-catalog-brief p:not(.stream-kicker) {
    display: -webkit-box;
    max-width: none;
    margin-top: 1px !important;
    overflow: hidden;
    font-size: 12px !important;
    line-height: 1.32 !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
  }

  body.front.portal.tpl-haoju.stream-category .stream-count-pill {
    justify-self: start;
    min-height: 26px !important;
    margin-top: 1px !important;
    padding: 0 8px !important;
    border-radius: 13px;
    font-size: 11px !important;
  }

  body.front.portal.tpl-haoju.stream-category .stream-filter-deck {
    gap: 4px !important;
    max-height: min(32vh, 218px) !important;
    margin: 8px 0 8px !important;
    padding: 7px 10px !important;
    border-radius: 18px !important;
  }

  body.front.portal.tpl-haoju.stream-category .stream-filter-line {
    grid-template-columns: 38px minmax(0, 1fr) !important;
    gap: 6px !important;
    margin: 0 !important;
    padding: 2px 0 !important;
  }

  body.front.portal.tpl-haoju.stream-category .stream-filter-line strong {
    min-height: 28px !important;
    font-size: 12px !important;
  }

  body.front.portal.tpl-haoju.stream-category .stream-filter-line div {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    min-width: 0 !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 0 !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch;
  }

  body.front.portal.tpl-haoju.stream-category .stream-filter-line div::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }

  body.front.portal.tpl-haoju.stream-category .stream-filter-line a {
    flex: 0 0 auto !important;
    height: 28px !important;
    min-height: 28px !important;
    padding: 0 9px !important;
    font-size: 12px !important;
  }

  body.front.portal.tpl-haoju.stream-category .stream-more-filters summary {
    height: 28px !important;
    min-height: 28px !important;
    margin-left: 44px !important;
    padding: 0 10px !important;
    font-size: 12px !important;
  }
}

@media (max-width: 960px) {
  :root[data-portal-theme="light"] body.front.portal.tpl-haoju.stream-category .stream-catalog-brief {
    border-color: rgba(87, 172, 116, 0.18) !important;
    background:
      radial-gradient(ellipse at 0% 0%, rgba(119, 226, 154, 0.28), transparent 56%),
      radial-gradient(ellipse at 100% 8%, rgba(112, 188, 230, 0.2), transparent 58%),
      linear-gradient(135deg, rgba(250, 255, 252, 0.96), rgba(244, 251, 249, 0.78) 64%, rgba(239, 246, 250, 0.5)) !important;
    box-shadow: 0 10px 24px rgba(74, 119, 88, 0.07) !important;
  }
}

body.front.portal.tpl-haoju.stream-category .stream-filter-line a.active,
body.front.portal.tpl-haoju.stream-category .stream-sortline a.active,
body.front.portal.tpl-haoju.stream-category .stream-filter-line a:hover,
body.front.portal.tpl-haoju.stream-category .stream-sortline a:hover,
body.catalog-body.tpl-haoju .filter-values a.active,
body.catalog-body.tpl-haoju .sort-tabs a.active {
  color: var(--haoju-chip-text);
  border-color: var(--haoju-chip-border);
  background: var(--haoju-chip-active-gradient);
  box-shadow: var(--haoju-chip-active-shadow);
}

@media (min-width: 900px) {
  body.front.portal.tpl-haoju.stream-category .stream-catalog-grid {
    grid-template-columns: clamp(260px, 22vw, 340px) minmax(0, 1fr);
    gap: 18px;
  }

  body.front.portal.tpl-haoju.stream-category .stream-category-board {
    grid-column: 1;
  }

  body.front.portal.tpl-haoju.stream-category .stream-result-panel {
    grid-column: 2;
    padding: 20px;
  }

  body.front.portal.tpl-haoju.stream-category .stream-card-grid {
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
    gap: 18px 14px;
  }

  body.catalog-body.tpl-haoju .catalog-content-grid {
    grid-template-columns: clamp(260px, 22vw, 340px) minmax(0, 1fr);
    gap: 18px;
  }

  body.catalog-body.tpl-haoju .catalog-sidebar {
    grid-column: 1;
    grid-row: 1;
  }

  body.catalog-body.tpl-haoju .catalog-results-panel {
    grid-column: 2;
    grid-row: 1;
  }

  body.catalog-body.tpl-haoju .catalog-content-grid .movie-grid {
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
    gap: 18px 14px;
  }
}

.tpl-haoju .primary-btn {
  color: var(--haoju-chip-text);
  background: var(--haoju-chip-active-gradient);
  box-shadow: var(--haoju-chip-active-shadow);
}

.tpl-haoju .ghost-btn,
.tpl-haoju .disabled-action,
.tpl-haoju .like-button {
  border-color: var(--haoju-line);
  color: var(--haoju-text);
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 1180px) {
  .haoju-bar {
    grid-template-columns: minmax(160px, auto) minmax(0, 1fr) auto;
  }

  .haoju-main-nav {
    display: none;
  }

  .haoju-quick-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .haoju-card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .haoju-main-layout {
    grid-template-columns: 1fr;
  }

  .haoju-ranks {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .haoju-template,
  .tpl-haoju.stream-template,
  .tpl-haoju.player-page,
  .tpl-haoju:not(.haoju-template) {
    --haoju-shell: calc(100% - 18px);
  }

  .haoju-template {
    padding-bottom: 68px;
  }

  .haoju-top {
    position: sticky;
  }

  .haoju-bar {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 8px;
    min-height: 48px;
  }

  .haoju-menu {
    display: inline-grid;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid var(--haoju-line);
    background: rgba(255, 255, 255, 0.08);
  }

  .haoju-brand {
    gap: 7px;
  }

  .haoju-brand-mark {
    width: 30px;
    height: 30px;
    border-radius: 7px;
  }

  .haoju-brand strong {
    max-width: 120px;
    font-size: 18px;
  }

  .haoju-brand small {
    display: none;
  }

  .haoju-search {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    height: 34px;
    margin-bottom: 7px;
  }

  .haoju-actions {
    gap: 5px;
  }

  .haoju-actions .theme-toggle[data-theme-toggle] {
    width: 68px;
    min-width: 68px;
    height: 30px;
    padding: 0 8px;
  }

  .haoju-actions .theme-toggle .theme-switch {
    display: none;
  }

  .haoju-actions .theme-toggle .theme-label {
    display: inline-flex;
  }

  .haoju-actions .user-chip {
    min-width: 42px;
    height: 30px;
    padding: 0 8px;
    font-size: 12px;
  }

  .haoju-sub-nav {
    display: none;
    width: var(--haoju-shell);
    max-height: 52vh;
    padding: 8px 0 10px;
    gap: 7px;
    flex-wrap: wrap;
    overflow-y: auto;
  }

  .haoju-sub-nav.open,
  .haoju-sub-nav[data-open="true"] {
    display: flex;
  }

  .haoju-sub-nav a {
    height: 32px;
    padding: 0 11px;
    font-size: 13px;
  }

  .haoju-shell {
    padding: 9px 0 20px;
  }

  .haoju-hero {
    display: block;
    min-height: 216px;
    border-radius: 0;
    margin-inline: -9px;
  }

  .haoju-hero-main {
    min-height: 216px;
  }

  .haoju-hero-copy {
    width: 86%;
    min-height: 216px;
    padding: 20px 18px 52px;
  }

  .haoju-hero-copy h1 {
    font-size: 24px;
  }

  .haoju-hero-copy span {
    max-width: 100%;
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.55;
    -webkit-line-clamp: 2;
  }

  .haoju-hero-copy p,
  .haoju-title p {
    font-size: 11px;
  }

  .haoju-hero-controls {
    left: 14px;
    bottom: 14px;
  }

  .haoju-round-btn {
    width: 34px;
    height: 34px;
    font-size: 13px;
  }

  .haoju-hero-list {
    display: none;
  }

  .haoju-quick-grid {
    display: flex;
    gap: 8px;
    margin: 8px 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
  }

  .haoju-quick-grid::-webkit-scrollbar {
    display: none;
  }

  .haoju-quick-grid a {
    flex: 0 0 112px;
    grid-template-columns: 24px minmax(0, 1fr);
    min-height: 48px;
    padding: 8px;
  }

  .haoju-quick-grid a i {
    width: 24px;
    height: 24px;
  }

  .haoju-promo-stack {
    gap: 6px;
    margin: 8px 0 12px;
  }

  .haoju-promo-stack a {
    grid-template-columns: minmax(74px, 0.34fr) minmax(0, 1fr);
    min-height: 38px;
    padding: 6px 9px;
    border-radius: 5px;
  }

  .haoju-promo-stack strong {
    font-size: 18px;
  }

  .haoju-promo-stack span {
    font-size: 13px;
  }

  .haoju-block {
    padding: 12px 10px;
    margin: 10px 0;
  }

  .haoju-title {
    align-items: center;
    margin-bottom: 10px;
  }

  .haoju-title h2 {
    font-size: 18px;
  }

  .haoju-title nav {
    flex-wrap: nowrap;
    max-width: 58vw;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
  }

  .haoju-title nav::-webkit-scrollbar {
    display: none;
  }

  .haoju-title nav a {
    height: 28px;
    min-width: max-content;
    font-size: 11px;
  }

  .haoju-card-grid,
  .haoju-card-grid.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 8px;
  }

  .haoju-thumb {
    aspect-ratio: 16 / 9;
    border-radius: 6px;
  }

  .haoju-video-card h3 {
    margin-top: 6px;
    font-size: 13px;
  }

  .haoju-video-card p {
    font-size: 11px;
  }

  .haoju-mini-nav {
    min-height: 40px;
    padding: 7px 9px;
  }

  .haoju-ranks {
    grid-template-columns: 1fr;
  }

  .haoju-news-grid {
    grid-template-columns: 1fr;
  }

  .haoju-mobile-dock {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 90;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    min-height: 56px;
    padding: 5px max(8px, env(safe-area-inset-right)) max(5px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
    border-top: 1px solid var(--haoju-line);
    background: rgba(26, 26, 28, 0.96);
    backdrop-filter: blur(16px);
  }

  :root[data-portal-theme="light"] .haoju-mobile-dock {
    background: rgba(255, 255, 255, 0.96);
  }

  .haoju-mobile-dock a {
    display: grid;
    place-items: center;
    gap: 3px;
    color: var(--haoju-muted);
    font-size: 11px;
    font-weight: 850;
  }

  .haoju-mobile-dock span {
    display: block;
    width: 18px;
    height: 18px;
    border-radius: 6px;
    background: var(--haoju-soft);
  }

  .haoju-mobile-dock a:first-child {
    color: var(--haoju-red-2);
  }

  .haoju-mobile-dock a:first-child span {
    background: var(--haoju-red-2);
  }

  .tpl-haoju .stream-shell,
  .tpl-haoju .portal-shell,
  .tpl-haoju .page-shell,
  .tpl-haoju.player-page .player-shell,
  .tpl-haoju.player-page .player-context {
    width: var(--haoju-shell);
  }
}

/* Haoju final closure: override older global light/header guards inside this template only. */
:root[data-portal-theme="light"] .haoju-template .haoju-hero-copy h1,
:root[data-portal-theme="light"] .haoju-template .haoju-hero-copy p,
:root[data-portal-theme="light"] .haoju-template .haoju-hero-copy span {
  color: #fff !important;
}

.haoju-action-menu,
.tpl-haoju .nav-menu-toggle:not(.haoju-action-menu) {
  display: none !important;
}

.tpl-haoju .stream-actions,
.tpl-haoju .portal-actions,
.tpl-haoju .haoju-actions {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 6px !important;
  flex-wrap: nowrap !important;
  min-width: 0 !important;
}

.tpl-haoju .stream-head {
  position: relative;
}

.tpl-haoju .stream-actions .haoju-action-menu {
  display: inline-flex !important;
  flex: 0 0 32px !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 3px !important;
  width: 32px !important;
  min-width: 32px !important;
  height: 32px !important;
  min-height: 32px !important;
  padding: 0 !important;
  border: 1px solid var(--haoju-control-border) !important;
  border-radius: 999px !important;
  color: var(--haoju-control-text) !important;
  background: var(--haoju-control-gradient) !important;
  box-shadow: var(--haoju-control-shadow) !important;
  cursor: pointer !important;
}

.tpl-haoju .stream-actions .haoju-action-menu span {
  display: block !important;
  height: 2px !important;
  border-radius: 999px !important;
  background: currentColor !important;
}

.tpl-haoju .stream-actions .haoju-action-menu span:nth-child(1) {
  width: 16px !important;
}

.tpl-haoju .stream-actions .haoju-action-menu span:nth-child(2) {
  width: 12px !important;
}

.tpl-haoju .stream-actions .haoju-action-menu span:nth-child(3) {
  width: 8px !important;
}

.tpl-haoju .stream-actions .haoju-action-menu.menu-open {
  color: var(--haoju-chip-text) !important;
  background: var(--haoju-chip-active-gradient) !important;
  box-shadow: var(--haoju-chip-active-shadow) !important;
}

.tpl-haoju .haoju-action-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 160;
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  width: min(320px, calc(100vw - 32px));
  padding: 10px;
  border: 1px solid rgba(126, 220, 145, 0.28);
  border-radius: 14px;
  background: rgba(12, 34, 24, 0.96);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(16px);
}

:root[data-portal-theme="light"] .tpl-haoju .haoju-action-panel {
  border-color: rgba(142, 199, 154, 0.38);
  background: rgba(249, 255, 251, 0.97);
  box-shadow: 0 18px 34px rgba(73, 120, 88, 0.16);
}

.tpl-haoju .haoju-action-panel.nav-open {
  display: grid;
}

.tpl-haoju .haoju-action-panel a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  min-height: 34px;
  padding: 0 10px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--haoju-theme-night-text);
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

:root[data-portal-theme="light"] .tpl-haoju .haoju-action-panel a {
  color: var(--haoju-text);
}

.tpl-haoju .haoju-action-panel a.active,
.tpl-haoju .haoju-action-panel a:hover {
  border-color: var(--haoju-chip-border);
  color: var(--haoju-chip-text);
  background: var(--haoju-chip-gradient);
  box-shadow: var(--haoju-chip-shadow);
}

.haoju-logo-mark {
  position: relative;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 42px;
  height: 42px;
  overflow: hidden;
  border: 1px solid rgba(136, 226, 156, 0.32);
  border-radius: 13px;
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.34), transparent 26%),
    linear-gradient(145deg, #07140d 0%, #123a24 56%, #2a9d55 100%);
  box-shadow: 0 10px 24px rgba(34, 171, 84, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.haoju-logo-mark::before {
  content: "";
  position: absolute;
  width: 22px;
  height: 28px;
  border-radius: 7px;
  background: linear-gradient(145deg, #f7fff9 0%, #bdebc8 52%, #58d177 100%);
  box-shadow: -8px 8px 0 rgba(36, 141, 84, 0.36), 7px -7px 0 rgba(255, 255, 255, 0.16);
  transform: rotate(-9deg);
}

.haoju-logo-mark::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: rgba(8, 47, 25, 0.7);
  box-shadow: 0 7px 0 rgba(8, 47, 25, 0.58), 0 14px 0 rgba(8, 47, 25, 0.45);
  transform: translateY(-9px) rotate(-9deg);
}

.haoju-logo-mark span {
  position: relative;
  z-index: 1;
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid #092414;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.16));
}

.haoju-logo-copy {
  display: block;
  min-width: 0;
}

.haoju-logo-copy strong {
  display: block;
  overflow: hidden;
  max-width: 150px;
  color: #fff;
  font-size: 22px;
  font-weight: 950;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.haoju-logo-copy small {
  display: block;
  overflow: hidden;
  max-width: 170px;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

:root[data-portal-theme="light"] .haoju-logo-copy strong,
:root[data-portal-theme="light"] .tpl-haoju .stream-brand strong {
  color: var(--haoju-text);
}

:root[data-portal-theme="light"] .haoju-logo-copy small,
:root[data-portal-theme="light"] .tpl-haoju .stream-brand small {
  color: var(--haoju-muted);
}

.tpl-haoju .portal-brand {
  gap: 10px;
  color: var(--haoju-text);
}

.tpl-haoju .portal-brand .brand-mark {
  position: relative;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 42px;
  height: 42px;
  overflow: hidden;
  border: 1px solid rgba(136, 226, 156, 0.32);
  border-radius: 13px;
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.34), transparent 26%),
    linear-gradient(145deg, #07140d 0%, #123a24 56%, #2a9d55 100%);
  box-shadow: 0 10px 24px rgba(34, 171, 84, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.tpl-haoju .portal-brand .brand-mark img {
  display: none;
}

.tpl-haoju .portal-brand .brand-mark::before {
  content: "";
  position: absolute;
  width: 22px;
  height: 28px;
  border-radius: 7px;
  background: linear-gradient(145deg, #f7fff9 0%, #bdebc8 52%, #58d177 100%);
  box-shadow: -8px 8px 0 rgba(36, 141, 84, 0.36), 7px -7px 0 rgba(255, 255, 255, 0.16);
  transform: rotate(-9deg);
}

.tpl-haoju .portal-brand .brand-mark::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: rgba(8, 47, 25, 0.7);
  box-shadow: 0 7px 0 rgba(8, 47, 25, 0.58), 0 14px 0 rgba(8, 47, 25, 0.45);
  transform: translateY(-9px) rotate(-9deg);
}

.tpl-haoju .portal-brand .brand-mark > span {
  position: relative;
  z-index: 1;
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid #092414;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.16));
}

.tpl-haoju .portal-brand strong {
  max-width: 150px;
  color: var(--haoju-text);
  font-size: 22px;
  font-weight: 950;
  line-height: 1.05;
}

.tpl-haoju .portal-brand small {
  max-width: 170px;
  margin-top: 4px;
  color: var(--haoju-muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.1;
}

.tpl-haoju .stream-logo.haoju-logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.34), transparent 26%),
    linear-gradient(145deg, #07140d 0%, #123a24 56%, #2a9d55 100%);
}

.tpl-haoju .stream-search,
.tpl-haoju .portal-search {
  height: 32px !important;
  min-height: 32px !important;
  border-radius: 999px !important;
}

.tpl-haoju .stream-search input,
.tpl-haoju .portal-search input {
  height: 100% !important;
  padding: 0 12px !important;
  font-size: 13px !important;
}

.tpl-haoju .stream-search button,
.tpl-haoju .portal-search button {
  height: 100% !important;
  min-height: 0 !important;
  padding: 0 12px !important;
  border-radius: 999px !important;
  color: var(--haoju-chip-text) !important;
  background: var(--haoju-chip-gradient) !important;
  box-shadow: var(--haoju-chip-shadow) !important;
  font-size: 13px !important;
}

.tpl-haoju .portal-nav {
  scrollbar-width: none;
}

.tpl-haoju .portal-nav::-webkit-scrollbar {
  display: none;
}

.tpl-haoju .portal-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--haoju-chip-border);
  border-radius: 999px;
  color: var(--haoju-chip-text);
  background: var(--haoju-chip-gradient);
  box-shadow: var(--haoju-chip-shadow);
  font-weight: 900;
}

.tpl-haoju .portal-nav a:hover {
  color: var(--haoju-chip-text);
  background: var(--haoju-chip-active-gradient);
  box-shadow: var(--haoju-chip-active-shadow);
}

.tpl-haoju .theme-toggle[data-theme-toggle] {
  width: 76px !important;
  min-width: 76px !important;
  height: 32px !important;
  min-height: 32px !important;
  gap: 6px !important;
  padding: 0 10px !important;
  border-color: var(--haoju-theme-night-border) !important;
  color: var(--haoju-theme-night-text) !important;
  background: var(--haoju-theme-night-bg) !important;
  box-shadow: var(--haoju-theme-night-shadow) !important;
}

:root[data-portal-theme="light"] .tpl-haoju .theme-toggle[data-theme-toggle] {
  border-color: var(--haoju-theme-day-border) !important;
  color: var(--haoju-theme-day-text) !important;
  background: var(--haoju-theme-day-bg) !important;
  box-shadow: var(--haoju-theme-day-shadow) !important;
}

.tpl-haoju .theme-toggle[data-theme-toggle] .theme-label {
  display: inline-flex !important;
  min-width: 24px !important;
  color: currentColor !important;
  font-size: 12px !important;
  font-weight: 850 !important;
  line-height: 1 !important;
}

.tpl-haoju .theme-toggle[data-theme-toggle] .theme-label::after {
  content: none !important;
}

.tpl-haoju .theme-toggle[data-theme-toggle] .theme-icon {
  flex: 0 0 auto !important;
  width: 14px !important;
  height: 14px !important;
  border-width: 1.5px !important;
}

.tpl-haoju .theme-toggle[data-theme-toggle] .theme-switch {
  display: none !important;
}

.tpl-haoju .user-chip {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 46px !important;
  height: 32px !important;
  min-height: 32px !important;
  padding: 0 13px !important;
  border-radius: 999px !important;
  color: var(--haoju-chip-text) !important;
  border-color: var(--haoju-chip-border) !important;
  background: var(--haoju-chip-gradient) !important;
  box-shadow: var(--haoju-chip-shadow) !important;
  font-size: 13px !important;
  font-weight: 850 !important;
  line-height: 1 !important;
}

:root[data-portal-theme="light"] .tpl-haoju .user-chip {
  color: var(--haoju-chip-text) !important;
  border-color: var(--haoju-chip-border) !important;
  background: var(--haoju-chip-gradient) !important;
}

:root[data-portal-theme="light"] body.front.portal.tpl-haoju .user-chip,
:root[data-portal-theme="light"] body.stream-template.tpl-haoju .user-chip {
  color: var(--haoju-chip-text) !important;
  border-color: var(--haoju-chip-border) !important;
  background: var(--haoju-chip-gradient) !important;
}

@media (max-width: 960px) {
  body.tpl-haoju {
    padding-bottom: calc(68px + env(safe-area-inset-bottom)) !important;
  }

  body.tpl-haoju .nav-menu-toggle:not(.haoju-action-menu) {
    display: none !important;
  }

  .tpl-haoju .stream-top,
  body.front.portal.tpl-haoju .portal-top {
    position: relative !important;
    top: auto !important;
    transform: none !important;
    filter: none !important;
    contain: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    overflow: visible !important;
  }

  body.tpl-haoju .stream-nav,
  body.front.portal.tpl-haoju .portal-nav {
    display: none !important;
  }

  :root[data-portal-theme="light"] body.tpl-haoju .stream-nav,
  :root[data-portal-theme="light"] body.front.portal.tpl-haoju .portal-nav {
    background: rgba(255, 255, 255, 0.97) !important;
    box-shadow: 0 -10px 28px rgba(90, 99, 120, 0.14) !important;
  }

  body.tpl-haoju .stream-nav::-webkit-scrollbar,
  body.front.portal.tpl-haoju .portal-nav::-webkit-scrollbar {
    display: none !important;
  }

  body.tpl-haoju .stream-nav a,
  body.front.portal.tpl-haoju .portal-nav a {
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    min-width: 0 !important;
    width: auto !important;
    height: 46px !important;
    min-height: 46px !important;
    padding: 0 8px !important;
    border: 0 !important;
    border-radius: 18px !important;
    color: var(--haoju-muted) !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    text-align: center !important;
    white-space: nowrap !important;
  }

  body.tpl-haoju .stream-nav a::after,
  body.front.portal.tpl-haoju .portal-nav a::after {
    display: none !important;
  }

  body.tpl-haoju .stream-nav .nav-symbol,
  body.front.portal.tpl-haoju .portal-nav .nav-symbol {
    font-size: 17px !important;
    line-height: 1 !important;
  }

  body.tpl-haoju .stream-nav .nav-text,
  body.front.portal.tpl-haoju .portal-nav .nav-text {
    display: inline-flex !important;
    max-width: 58px !important;
    overflow: hidden !important;
    font-size: 12px !important;
    line-height: 1.05 !important;
    text-overflow: ellipsis !important;
  }

  body.tpl-haoju .stream-nav a.active,
  body.tpl-haoju .stream-nav a:hover,
  body.front.portal.tpl-haoju .portal-nav a.active,
  body.front.portal.tpl-haoju .portal-nav a:hover {
    color: var(--haoju-chip-text) !important;
    background: var(--haoju-chip-gradient) !important;
    box-shadow: var(--haoju-chip-shadow) !important;
  }

  .haoju-template .haoju-bar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .tpl-haoju .stream-head,
  .tpl-haoju .portal-bar,
  .tpl-haoju.player-page .portal-bar {
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 8px !important;
  }

  .tpl-haoju .portal-brand {
    gap: 7px !important;
    min-width: 0 !important;
  }

  .tpl-haoju .portal-brand .brand-mark {
    width: 34px !important;
    height: 34px !important;
    border-radius: 11px !important;
  }

  .tpl-haoju .portal-brand strong {
    max-width: 132px !important;
    font-size: 18px !important;
  }

  .tpl-haoju .portal-brand small {
    display: none !important;
  }

  .tpl-haoju .stream-actions,
  .tpl-haoju .portal-actions,
  .tpl-haoju .haoju-actions {
    max-width: 184px !important;
  }

  .tpl-haoju .theme-toggle[data-theme-toggle] {
    width: 68px !important;
    min-width: 68px !important;
    height: 30px !important;
    min-height: 30px !important;
    padding: 0 8px !important;
  }

  .tpl-haoju .language-switcher {
    width: 52px !important;
    min-width: 52px !important;
    height: 30px !important;
    min-height: 30px !important;
    border-color: var(--haoju-control-border) !important;
    color: var(--haoju-control-text) !important;
    background: var(--haoju-control-gradient) !important;
    box-shadow: var(--haoju-control-shadow) !important;
  }

  .tpl-haoju .language-switcher-trigger {
    height: 28px !important;
    color: var(--haoju-control-text) !important;
    background: var(--haoju-control-gradient) !important;
  }

  .tpl-haoju .theme-toggle[data-theme-toggle] .theme-label {
    display: inline-flex !important;
    min-width: 24px !important;
    font-size: 12px !important;
  }

  .tpl-haoju .theme-toggle[data-theme-toggle] .theme-switch {
    display: none !important;
  }

  .tpl-haoju .user-chip {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 42px !important;
    min-width: 42px !important;
    height: 30px !important;
    min-height: 30px !important;
    padding: 0 8px !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    text-align: center !important;
    font-size: 12px !important;
    line-height: 1 !important;
  }

  .tpl-haoju .stream-actions .haoju-action-menu {
    flex-basis: 30px !important;
    width: 30px !important;
    min-width: 30px !important;
    height: 30px !important;
    min-height: 30px !important;
  }

  .tpl-haoju .stream-actions .haoju-action-menu span:nth-child(1) {
    width: 15px !important;
  }

  .tpl-haoju .stream-actions .haoju-action-menu span:nth-child(2) {
    width: 11px !important;
  }

  .tpl-haoju .stream-actions .haoju-action-menu span:nth-child(3) {
    width: 8px !important;
  }

  .tpl-haoju .haoju-action-panel {
    top: calc(100% + 6px);
    right: 0;
    width: min(260px, calc(100vw - 28px));
    padding: 8px;
    border-radius: 12px;
  }

  .tpl-haoju .haoju-action-panel a {
    min-height: 32px;
    padding: 0 8px;
    font-size: 12px;
  }

  .tpl-haoju .comment-auth-card {
    gap: 8px !important;
    padding: 10px !important;
  }

  .tpl-haoju .comment-auth-panels,
  .tpl-haoju .comment-auth-panel {
    width: 100% !important;
  }

  .tpl-haoju .comment-auth-panel {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .tpl-haoju .comment-auth-panel label,
  .tpl-haoju .comment-auth-panel input,
  .tpl-haoju .comment-auth-panel button {
    width: 100% !important;
  }

  .tpl-haoju.player-page .player-context {
    gap: 10px !important;
    margin-bottom: 16px !important;
    padding-top: 10px !important;
    padding-bottom: 18px !important;
  }

  .tpl-haoju.player-page .site-footer {
    gap: 8px !important;
    padding-top: 12px !important;
    padding-bottom: 10px !important;
  }

  .tpl-haoju.player-page .footer-copy {
    gap: 2px !important;
    line-height: 1.48 !important;
  }

  .tpl-haoju.player-page .footer-copy small {
    line-height: 1.55 !important;
  }

  .tpl-haoju.player-page .footer-links {
    gap: 6px !important;
  }

  .tpl-haoju.player-page .footer-links a {
    min-height: 28px !important;
    padding: 0 10px !important;
  }

}

/* Haoju exact closure: authorized 1:1 DS3-style homepage recreation. */
.haoju-exact {
  --ds3-bg: #2b2b2b;
  --ds3-panel: #3a3a3a;
  --ds3-text: rgba(255, 255, 255, 0.9);
  --ds3-muted: rgba(255, 255, 255, 0.62);
  --ds3-faint: rgba(255, 255, 255, 0.36);
  --ds3-blue: #26b2ff;
  --ds3-gold: #ffdd9a;
  --ds3-width: min(2316px, calc(100% - 120px));
  --ds3-hero-edge: #2b2b2b;
  --ds3-hero-text: #f7fff9;
  --ds3-hero-muted: rgba(247, 255, 249, 0.74);
  min-height: 100vh;
  color: var(--ds3-text) !important;
  background: var(--ds3-bg) !important;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif;
  font-size: 14px;
  line-height: 1;
}

.haoju-exact *,
.haoju-exact *::before,
.haoju-exact *::after {
  box-sizing: border-box;
}

.haoju-exact a {
  color: inherit;
  text-decoration: none;
}

:root[data-portal-theme="light"] .haoju-exact {
  --ds3-bg: #eef3f6;
  --ds3-panel: #ffffff;
  --ds3-text: #1b2832;
  --ds3-muted: rgba(27, 40, 50, 0.66);
  --ds3-faint: rgba(27, 40, 50, 0.34);
  --ds3-hero-edge: #eef3f6;
  --ds3-hero-text: #173323;
  --ds3-hero-muted: rgba(23, 51, 35, 0.72);
  color: var(--ds3-text) !important;
  background: var(--ds3-bg) !important;
}

.haoju-exact .ds3-head {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: 72px;
  padding: 10px 24px;
  color: rgba(255, 255, 255, 0.88);
  background: linear-gradient(180deg, rgba(18, 25, 27, 0.58), rgba(18, 25, 27, 0));
}

:root[data-portal-theme="light"] .haoju-exact .ds3-head {
  color: rgba(23, 51, 35, 0.86);
  background: linear-gradient(180deg, rgba(238, 243, 246, 0.82), rgba(238, 243, 246, 0));
}

.haoju-exact .ds3-head-left,
.haoju-exact .ds3-head-right,
.haoju-exact .ds3-head-nav,
.haoju-exact .ds3-tool {
  display: flex;
  align-items: center;
}

.haoju-exact .ds3-head-left {
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.haoju-exact .ds3-head-left,
.haoju-exact .ds3-head-right {
  min-width: 0;
}

.haoju-exact .ds3-head-right {
  z-index: 2;
}

.haoju-exact .ds3-head-left {
  flex: 1 1 auto;
}

.haoju-exact .ds3-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  margin: 10px 0;
  min-width: 0;
}

.haoju-exact .ds3-logo .haoju-logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.haoju-exact .ds3-logo .haoju-logo-copy strong {
  max-width: 132px;
  font-size: 22px;
}

.haoju-exact .ds3-logo .haoju-logo-copy small {
  max-width: 150px;
}

.haoju-exact .ds3-head-nav {
  flex: 1 1 auto;
  gap: 18px;
  min-width: 0;
  max-width: 100%;
  margin-left: 24px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  white-space: nowrap;
}

.haoju-exact .ds3-head-nav::-webkit-scrollbar {
  display: none;
}

.haoju-exact .ds3-head-nav a {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 6px;
  height: 48px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  font-weight: 700;
}

.haoju-exact .ds3-head-nav a span {
  color: var(--ds3-blue);
  font-size: 10px;
  transform: scaleX(0.82);
}

.haoju-exact .ds3-head-nav a.current,
.haoju-exact .ds3-head-nav a:hover {
  color: #fff;
}

:root[data-portal-theme="light"] .haoju-exact .ds3-head-nav a {
  color: rgba(23, 51, 35, 0.82);
}

:root[data-portal-theme="light"] .haoju-exact .ds3-head-nav a.current,
:root[data-portal-theme="light"] .haoju-exact .ds3-head-nav a:hover {
  color: #102719;
}

.haoju-exact .ds3-head-right {
  flex: 0 1 clamp(500px, 46vw, 760px);
  justify-content: flex-end;
  gap: 8px;
  min-width: 340px;
  color: rgba(255, 255, 255, 0.72);
}

.haoju-exact .ds3-search {
  position: relative;
  top: auto;
  left: auto;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  flex: 1 1 260px;
  width: auto;
  min-width: 210px;
  max-width: 520px;
  height: 34px;
  margin-right: 0;
  border: 1px solid rgba(142, 199, 154, 0.34);
  border-radius: 999px;
  background: rgba(247, 255, 249, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  transform: none;
  overflow: hidden;
}

:root[data-portal-theme="light"] .haoju-exact .ds3-search {
  border-color: rgba(142, 199, 154, 0.4);
  background: rgba(255, 255, 255, 0.66);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58), 0 8px 20px rgba(92, 137, 106, 0.08);
}

.haoju-exact .ds3-search span {
  padding: 0 12px;
  color: rgba(247, 255, 249, 0.82);
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

:root[data-portal-theme="light"] .haoju-exact .ds3-search span {
  color: rgba(23, 51, 35, 0.68);
}

.haoju-exact .ds3-search input {
  width: 100%;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  color: rgba(247, 255, 249, 0.9);
  background: transparent;
  font-size: 12px;
  font-weight: 650;
}

:root[data-portal-theme="light"] .haoju-exact .ds3-search input {
  color: #173323;
}

.haoju-exact .ds3-search input::placeholder {
  color: rgba(247, 255, 249, 0.52);
}

:root[data-portal-theme="light"] .haoju-exact .ds3-search input::placeholder {
  color: rgba(23, 51, 35, 0.46);
}

.haoju-exact .ds3-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 54px;
  height: 30px;
  margin-right: 2px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  color: var(--haoju-chip-text);
  background: var(--haoju-chip-gradient);
  box-shadow: var(--haoju-chip-shadow);
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.haoju-exact .ds3-tool {
  flex: 0 0 auto;
  flex-direction: row;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  height: 32px;
  padding: 0 11px;
  border: 1px solid var(--haoju-control-border);
  border-radius: 999px;
  color: var(--haoju-control-text);
  background: var(--haoju-control-gradient) !important;
  box-shadow: var(--haoju-control-shadow);
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  cursor: pointer;
}

.haoju-exact .ds3-tool span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: auto;
  color: currentColor;
  font-size: 13px;
  line-height: 1;
}

.haoju-exact .ds3-tool em {
  display: inline-flex;
  height: auto;
  margin-top: 0;
  font-size: 12px;
  font-style: normal;
  line-height: 1;
  white-space: nowrap;
}

.haoju-exact .ds3-mobile-search {
  display: none !important;
}

.haoju-exact .ds3-rank-link {
  display: none !important;
}

.haoju-exact .theme-toggle.ds3-tool > span {
  font-size: 0;
}

.haoju-exact .theme-toggle.ds3-tool > span::before {
  content: "◐";
  font-size: 13px;
}

.haoju-exact .theme-toggle.ds3-tool .theme-label {
  min-width: 24px;
  color: currentColor;
  font-size: 12px;
}

.haoju-exact .theme-toggle.ds3-tool .theme-label::before {
  content: none;
}

.haoju-exact .ds3-user {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  min-width: 48px !important;
  height: 32px !important;
  min-height: 32px !important;
  margin-left: 0;
  padding: 0 13px !important;
  overflow: hidden;
  border: 1px solid var(--haoju-chip-border);
  border-radius: 999px;
  color: var(--haoju-chip-text) !important;
  background: var(--haoju-chip-gradient) !important;
  box-shadow: var(--haoju-chip-shadow);
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  text-align: center;
}

.haoju-exact .language-switcher {
  display: inline-flex !important;
  flex: 0 0 auto;
  width: 54px !important;
  min-width: 54px !important;
  height: 32px !important;
  min-height: 32px !important;
  border-color: var(--haoju-control-border) !important;
  border-radius: 999px !important;
  color: var(--haoju-control-text) !important;
  background: var(--haoju-control-gradient) !important;
  box-shadow: var(--haoju-control-shadow) !important;
}

.haoju-exact .language-switcher-trigger {
  height: 30px !important;
  min-height: 30px !important;
  color: var(--haoju-control-text) !important;
  background: var(--haoju-control-gradient) !important;
  box-shadow: var(--haoju-control-shadow) !important;
}

.haoju-exact .language-switcher-menu {
  top: calc(100% + 7px) !important;
}

.haoju-exact .ds3-menu,
.haoju-exact .ds3-mobile-panel {
  display: none;
}

.haoju-exact .ds3-page {
  min-height: 100vh;
  padding-bottom: 12px;
}

.haoju-exact .ds3-hero {
  position: relative;
  width: 100%;
  height: 440px;
  margin: 0;
  overflow: hidden;
  isolation: isolate;
  background: var(--ds3-hero-edge);
}

.haoju-exact .ds3-hero-bg,
.haoju-exact .ds3-hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.haoju-exact .ds3-hero-bg {
  background:
    radial-gradient(circle at 20% 18%, rgba(94, 239, 136, 0.7), transparent 25%),
    radial-gradient(circle at 54% 20%, rgba(53, 165, 255, 0.66), transparent 30%),
    radial-gradient(circle at 74% 48%, rgba(255, 104, 189, 0.54), transparent 28%),
    radial-gradient(circle at 34% 72%, rgba(255, 188, 80, 0.5), transparent 25%),
    linear-gradient(125deg, #12391f 0%, #163e5b 38%, #45305e 65%, #2b482b 100%);
}

:root[data-portal-theme="light"] .haoju-exact .ds3-hero-bg {
  background:
    radial-gradient(circle at 20% 18%, rgba(94, 239, 136, 0.58), transparent 25%),
    radial-gradient(circle at 54% 20%, rgba(53, 165, 255, 0.5), transparent 30%),
    radial-gradient(circle at 74% 48%, rgba(255, 104, 189, 0.36), transparent 28%),
    radial-gradient(circle at 34% 72%, rgba(255, 188, 80, 0.36), transparent 25%),
    linear-gradient(125deg, #dff4e2 0%, #dcecf9 38%, #f0d9ec 65%, #eaf0d1 100%);
}

.haoju-exact .ds3-hero-bg::before,
.haoju-exact .ds3-hero-bg::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
}

.haoju-exact .ds3-hero-bg::before {
  background:
    linear-gradient(90deg, var(--ds3-hero-edge) 0%, rgba(43, 43, 43, 0) 14%, rgba(43, 43, 43, 0) 76%, var(--ds3-hero-edge) 100%),
    linear-gradient(180deg, rgba(43, 43, 43, 0.2) 0%, rgba(43, 43, 43, 0) 54%, var(--ds3-hero-edge) 100%);
}

:root[data-portal-theme="light"] .haoju-exact .ds3-hero-bg::before {
  background:
    linear-gradient(90deg, var(--ds3-hero-edge) 0%, rgba(238, 243, 246, 0) 14%, rgba(238, 243, 246, 0) 76%, var(--ds3-hero-edge) 100%),
    linear-gradient(180deg, rgba(238, 243, 246, 0.2) 0%, rgba(238, 243, 246, 0) 54%, var(--ds3-hero-edge) 100%);
}

.haoju-exact .ds3-hero-bg::after {
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 68px);
  mix-blend-mode: soft-light;
  opacity: 0.38;
}

.haoju-exact .ds3-hero-shade {
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.06) 46%, rgba(0, 0, 0, 0.28)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.24), rgba(0, 0, 0, 0) 44%, var(--ds3-hero-edge) 100%);
}

:root[data-portal-theme="light"] .haoju-exact .ds3-hero-shade {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.02) 46%, rgba(255, 255, 255, 0.22)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 44%, var(--ds3-hero-edge) 100%);
}

.haoju-exact .ds3-hero-carousel {
  position: absolute;
  top: 84px;
  right: max(450px, calc((100vw - 2316px) / 2 + 450px));
  bottom: 88px;
  left: max(60px, calc((100vw - 2316px) / 2 + 60px));
  z-index: 6;
}

.haoju-exact .ds3-hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(140px, 170px) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: auto;
  animation: ds3HeroFade 60s infinite;
}

.haoju-exact .ds3-hero-slide:nth-child(1) { animation-delay: 0s; }
.haoju-exact .ds3-hero-slide:nth-child(2) { animation-delay: 6s; }
.haoju-exact .ds3-hero-slide:nth-child(3) { animation-delay: 12s; }
.haoju-exact .ds3-hero-slide:nth-child(4) { animation-delay: 18s; }
.haoju-exact .ds3-hero-slide:nth-child(5) { animation-delay: 24s; }
.haoju-exact .ds3-hero-slide:nth-child(6) { animation-delay: 30s; }
.haoju-exact .ds3-hero-slide:nth-child(7) { animation-delay: 36s; }
.haoju-exact .ds3-hero-slide:nth-child(8) { animation-delay: 42s; }
.haoju-exact .ds3-hero-slide:nth-child(9) { animation-delay: 48s; }
.haoju-exact .ds3-hero-slide:nth-child(10) { animation-delay: 54s; }

@keyframes ds3HeroFade {
  0%,
  8% {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  10%,
  100% {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
  }
}

.haoju-exact .ds3-hero-copy {
  display: grid;
  width: min(640px, 100%);
  gap: 12px;
  color: var(--ds3-hero-text);
  text-shadow: none;
}

:root[data-portal-theme="light"] .haoju-exact .ds3-hero-copy {
  text-shadow: none;
}

.haoju-exact .ds3-hero-copy span {
  color: var(--ds3-hero-muted);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
}

.haoju-exact .ds3-hero-copy h2 {
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  color: var(--ds3-hero-text);
  font-size: 36px;
  font-weight: 900;
  line-height: 1.14;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.haoju-exact .ds3-hero-copy p {
  display: -webkit-box;
  max-width: 560px;
  margin: 0;
  overflow: hidden;
  color: var(--ds3-hero-muted);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.75;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.haoju-exact .ds3-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 2px;
}

.haoju-exact .ds3-hero-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 98px;
  height: 34px;
  padding: 0 18px;
  border: 1px solid var(--haoju-chip-border);
  border-radius: 999px;
  color: var(--haoju-chip-text);
  background: var(--haoju-chip-gradient);
  box-shadow: var(--haoju-chip-shadow);
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
  text-shadow: none;
  pointer-events: auto;
}

.haoju-exact .ds3-hero-cta .ds3-hero-primary {
  background: var(--haoju-chip-active-gradient);
  box-shadow: var(--haoju-chip-active-shadow);
}

.haoju-exact .ds3-hero-poster {
  position: relative;
  display: block;
  justify-self: start;
  width: min(170px, 13vw);
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
  pointer-events: auto;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 52%, rgba(0, 0, 0, 0.76) 70%, transparent 100%);
  mask-image: radial-gradient(ellipse at center, #000 52%, rgba(0, 0, 0, 0.76) 70%, transparent 100%);
}

.haoju-exact .ds3-hero-poster img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.haoju-exact .ds3-hero-focus {
  position: absolute;
  top: 78px;
  right: max(60px, calc((100vw - 2316px) / 2 + 60px));
  z-index: 8;
  display: grid;
  width: min(360px, 26vw);
  max-height: 288px;
  padding: 16px 16px 17px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  color: var(--ds3-hero-text);
  background: rgba(8, 18, 18, 0.48);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px);
}

:root[data-portal-theme="light"] .haoju-exact .ds3-hero-focus {
  border-color: rgba(52, 101, 73, 0.16);
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 18px 45px rgba(92, 137, 106, 0.1);
}

.haoju-exact .ds3-focus-head,
.haoju-exact .ds3-focus-tabs {
  display: flex;
  align-items: center;
}

.haoju-exact .ds3-focus-head {
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.haoju-exact .ds3-focus-head strong {
  color: var(--ds3-hero-text);
  font-size: 17px;
  font-weight: 900;
}

.haoju-exact .ds3-focus-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.haoju-exact .ds3-focus-tabs {
  flex: 0 0 auto;
  gap: 7px;
}

.haoju-exact .ds3-focus-tabs label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  height: 26px;
  padding: 0 13px;
  border: 1px solid rgba(142, 199, 154, 0.28);
  border-radius: 999px;
  color: var(--ds3-hero-muted);
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

:root[data-portal-theme="light"] .haoju-exact .ds3-focus-tabs label {
  background: rgba(255, 255, 255, 0.46);
}

.haoju-exact #ds3Focus0:checked ~ .ds3-focus-head .ds3-focus-tabs label[for="ds3Focus0"],
.haoju-exact #ds3Focus1:checked ~ .ds3-focus-head .ds3-focus-tabs label[for="ds3Focus1"] {
  color: var(--haoju-chip-text);
  background: var(--haoju-chip-active-gradient);
  box-shadow: var(--haoju-chip-active-shadow);
}

.haoju-exact .ds3-focus-pane {
  display: none;
  gap: 8px;
}

.haoju-exact #ds3Focus0:checked ~ .ds3-focus-panes .ds3-focus-pane:nth-child(1),
.haoju-exact #ds3Focus1:checked ~ .ds3-focus-panes .ds3-focus-pane:nth-child(2) {
  display: grid;
}

.haoju-exact .ds3-focus-pane a {
  display: grid;
  gap: 3px;
  align-items: center;
  min-height: 37px;
  min-width: 0;
  color: inherit;
}

.haoju-exact .ds3-focus-pane b,
.haoju-exact .ds3-focus-pane span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.haoju-exact .ds3-focus-pane b {
  color: #bdfccf;
  background: linear-gradient(90deg, #fff176 0%, #66f0b5 48%, #7dd3fc 100%);
  background-clip: text;
  -webkit-background-clip: text;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  -webkit-text-fill-color: transparent;
}

.haoju-exact .ds3-focus-pane a:nth-child(2n) b {
  color: #ffd8f2;
  background-image: linear-gradient(90deg, #ff8fc7 0%, #ffe082 48%, #9ff3c8 100%);
}

.haoju-exact .ds3-focus-pane a:nth-child(3n) b {
  color: #c4f1ff;
  background-image: linear-gradient(90deg, #8bd5ff 0%, #c9f871 48%, #ffc36b 100%);
}

:root[data-portal-theme="light"] .haoju-exact .ds3-focus-pane b {
  color: #12683d;
  background-image: linear-gradient(90deg, #087a48 0%, #0a98a3 52%, #5d4ad6 100%);
}

:root[data-portal-theme="light"] .haoju-exact .ds3-focus-pane a:nth-child(2n) b {
  color: #8b2d5f;
  background-image: linear-gradient(90deg, #c23578 0%, #8b6b00 48%, #047857 100%);
}

:root[data-portal-theme="light"] .haoju-exact .ds3-focus-pane a:nth-child(3n) b {
  color: #2457a6;
  background-image: linear-gradient(90deg, #1765ad 0%, #16835b 48%, #a15c00 100%);
}

.haoju-exact .ds3-focus-pane span {
  color: var(--ds3-hero-muted);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.15;
}

.haoju-exact .ds3-type-list {
  position: absolute;
  right: max(60px, calc((100vw - 2316px) / 2 + 60px));
  bottom: 0;
  left: max(60px, calc((100vw - 2316px) / 2 + 60px));
  z-index: 7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding: 10px 0;
}

.haoju-exact .ds3-type-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  gap: 20px;
  align-items: center;
  min-width: 0;
}

.haoju-exact .ds3-type-column {
  --ds3-sub-grad: linear-gradient(90deg, rgba(186, 250, 201, 0.92), rgba(126, 211, 255, 0.88));
  display: grid;
  gap: 6px;
  min-width: 0;
}

.haoju-exact .ds3-type-movie { --ds3-sub-grad: linear-gradient(90deg, #b9fbd0, #7ccdf8); }
.haoju-exact .ds3-type-anime { --ds3-sub-grad: linear-gradient(90deg, #c7fbff, #d8f59a); }
.haoju-exact .ds3-type-drama { --ds3-sub-grad: linear-gradient(90deg, #baf7c8, #9dd6ff); }
.haoju-exact .ds3-type-variety { --ds3-sub-grad: linear-gradient(90deg, #d7f8a7, #9cebd1); }
.haoju-exact .ds3-type-short { --ds3-sub-grad: linear-gradient(90deg, #ffe0a8, #bff3cb); }
.haoju-exact .ds3-type-documentary { --ds3-sub-grad: linear-gradient(90deg, #bfe9ff, #d9f0a8); }

.haoju-exact .ds3-main-type {
  display: inline-flex;
  align-items: center;
  height: 22px;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  line-height: 22px;
  white-space: nowrap;
}

:root[data-portal-theme="light"] .haoju-exact .ds3-main-type {
  color: rgba(23, 51, 35, 0.88);
}

.haoju-exact .ds3-main-type i {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-right: 10px;
  color: var(--ds3-blue);
  font-size: 14px;
  font-style: normal;
}

.haoju-exact .ds3-type-column span {
  display: flex;
  gap: 12px;
  min-width: 0;
}

.haoju-exact .ds3-type-column span a {
  display: inline-flex;
  align-items: center;
  max-width: 5.4em;
  height: 18px;
  overflow: hidden;
  background: var(--ds3-sub-grad);
  background-clip: text;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 800;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

:root[data-portal-theme="light"] .haoju-exact .ds3-type-column span a {
  filter: saturate(0.95) brightness(0.72);
}

.haoju-exact .ds3-type-list > b {
  display: block;
  width: 1px;
  height: 58px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.5) 31%, rgba(255, 255, 255, 0.5) 56%, transparent);
}

:root[data-portal-theme="light"] .haoju-exact .ds3-type-list > b {
  background: linear-gradient(180deg, transparent, rgba(23, 51, 35, 0.22) 31%, rgba(23, 51, 35, 0.22) 56%, transparent);
}

.haoju-exact .ds3-type-icons {
  display: flex;
  justify-content: center;
  gap: 24px;
  min-width: 280px;
}

.haoju-exact .ds3-type-icons a {
  display: grid;
  place-items: center;
  width: 70px;
  height: 58px;
  text-align: center;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, rgba(38, 178, 255, 0.36), rgba(255, 221, 154, 0.25));
  font-size: 14px;
  font-weight: 900;
}

:root[data-portal-theme="light"] .haoju-exact .ds3-type-icons a {
  color: var(--haoju-chip-text);
  background: var(--haoju-chip-gradient);
  box-shadow: var(--haoju-chip-shadow);
}

.haoju-exact .ds3-section,
.haoju-exact .ds3-rank-wrap,
.haoju-exact .site-footer {
  width: var(--ds3-width);
  margin-right: auto;
  margin-left: auto;
}

.haoju-exact .ds3-section {
  margin-top: 30px;
}

.haoju-exact .ds3-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 45px;
  margin-bottom: 0;
  overflow: hidden;
}

.haoju-exact .ds3-title h2 {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 24px;
  font-weight: 500;
  line-height: 45px;
}

:root[data-portal-theme="light"] .haoju-exact .ds3-title h2 {
  color: var(--ds3-text);
}

.haoju-exact .ds3-title > a,
.haoju-exact .ds3-title > span,
.haoju-exact .ds3-title nav a {
  color: rgba(255, 255, 255, 0.54);
  font-size: 14px;
  font-weight: 650;
  line-height: 28px;
  white-space: nowrap;
}

:root[data-portal-theme="light"] .haoju-exact .ds3-title > a,
:root[data-portal-theme="light"] .haoju-exact .ds3-title > span,
:root[data-portal-theme="light"] .haoju-exact .ds3-title nav a {
  color: var(--ds3-muted);
}

.haoju-exact .ds3-title nav {
  display: flex;
  gap: 20px;
  align-items: center;
  min-width: 0;
  overflow: hidden;
}

.haoju-exact .ds3-hot-section {
  position: relative;
}

.haoju-exact .ds3-hot-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.haoju-exact .ds3-hot-tabs {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.haoju-exact .ds3-hot-tabs label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  height: 32px;
  padding: 0 18px;
  border: 1px solid rgba(212, 255, 221, 0.24);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.055);
  font-size: 14px;
  font-weight: 850;
  line-height: 1;
  cursor: pointer;
}

:root[data-portal-theme="light"] .haoju-exact .ds3-hot-tabs label {
  border-color: rgba(49, 132, 80, 0.18);
  color: rgba(25, 56, 37, 0.72);
  background: rgba(255, 255, 255, 0.68);
}

.haoju-exact #ds3Hot0:checked ~ .ds3-title .ds3-hot-tabs label[for="ds3Hot0"],
.haoju-exact #ds3Hot1:checked ~ .ds3-title .ds3-hot-tabs label[for="ds3Hot1"] {
  border-color: rgba(172, 249, 194, 0.68);
  color: #153824;
  background: linear-gradient(135deg, #e6fff0 0%, #9eeab6 100%);
  box-shadow: 0 12px 28px rgba(52, 222, 109, 0.16);
}

.haoju-exact .ds3-hot-pane {
  display: none;
}

.haoju-exact #ds3Hot0:checked ~ .ds3-hot-panes .ds3-hot-pane:nth-child(1),
.haoju-exact #ds3Hot1:checked ~ .ds3-hot-panes .ds3-hot-pane:nth-child(2) {
  display: block;
}

.haoju-exact .ds3-wide-grid,
.haoju-exact .ds3-card-grid {
  display: grid;
  min-width: 0;
}

.haoju-exact .ds3-channel-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(236px, 14vw, 280px);
  gap: 16px;
  align-items: stretch;
  min-width: 0;
}

.haoju-exact .ds3-wide-grid {
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 0;
  margin-right: -16px;
}

.haoju-exact .ds3-card-grid {
  grid-template-columns: repeat(10, minmax(0, 1fr));
  margin-right: -16px;
}

.haoju-exact .ds3-channel .ds3-card-grid {
  grid-template-columns: repeat(9, minmax(0, 1fr));
  margin-right: -10px;
}

.haoju-exact .ds3-card {
  min-width: 0;
  padding-top: 16px;
  padding-right: 16px;
}

.haoju-exact .ds3-channel .ds3-card {
  padding-top: 14px;
  padding-right: 10px;
}

.haoju-exact .ds3-card-wide .ds3-poster {
  aspect-ratio: 100 / 62;
}

.haoju-exact .ds3-card-grid .ds3-poster {
  aspect-ratio: 100 / 136;
}

.haoju-exact .ds3-channel .ds3-poster {
  aspect-ratio: 100 / 112;
}

.haoju-exact .ds3-poster {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 12px;
  background: #25252b;
}

.haoju-exact .ds3-poster img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.18s ease;
}

.haoju-exact .ds3-card:hover .ds3-poster img {
  transform: scale(1.08);
}

.haoju-exact .ds3-poster::before {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 50%;
  content: "";
  background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.45) 100%);
}

.haoju-exact .ds3-poster span,
.haoju-exact .ds3-poster em,
.haoju-exact .ds3-poster i {
  position: absolute;
  z-index: 2;
  color: rgba(255, 255, 255, 0.92);
  font-style: normal;
}

.haoju-exact .ds3-poster span {
  top: 0;
  right: 0;
  max-width: 90%;
  height: 22px;
  padding: 0 8px;
  border-radius: 0 12px;
  background: rgba(38, 178, 255, 0.86);
  font-size: 12px;
  font-weight: 750;
  line-height: 22px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.haoju-exact .ds3-card-wide .ds3-poster span {
  background: var(--ds3-gold);
  color: #4e2d03;
}

.haoju-exact .ds3-poster em {
  right: 6px;
  bottom: 0;
  max-width: 90%;
  font-size: 12px;
  font-weight: 700;
  line-height: 20px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.haoju-exact .ds3-poster i {
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ds3-blue);
  font-size: 16px;
  font-weight: 900;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.18s ease;
}

.haoju-exact .ds3-card:hover .ds3-poster i {
  opacity: 1;
}

.haoju-exact .ds3-card h3 {
  height: 26px;
  margin: 8px 0 0;
  overflow: hidden;
  font-size: 14px;
  font-weight: 700;
  line-height: 26px;
}

.haoju-exact .ds3-card h3 a {
  display: block;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.9);
  text-overflow: ellipsis;
  white-space: nowrap;
}

:root[data-portal-theme="light"] .haoju-exact .ds3-card h3 a {
  color: var(--ds3-text);
}

.haoju-exact .ds3-card p {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 20px;
  margin: 2px 0 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.54);
  font-size: 12px;
  line-height: 20px;
}

.haoju-exact .ds3-card p span {
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

:root[data-portal-theme="light"] .haoju-exact .ds3-card p {
  color: var(--ds3-muted);
}

.haoju-exact .ds3-channel-rank {
  display: grid;
  grid-template-rows: auto 1fr;
  align-self: stretch;
  min-width: 0;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.14);
}

:root[data-portal-theme="light"] .haoju-exact .ds3-channel-rank {
  border-color: rgba(32, 80, 55, 0.1);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 38px rgba(70, 110, 88, 0.1);
}

.haoju-exact .ds3-channel-rank-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  height: 26px;
}

.haoju-exact .ds3-channel-rank-head strong,
.haoju-exact .ds3-channel-rank-head a {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.haoju-exact .ds3-channel-rank-head strong {
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  font-weight: 850;
}

:root[data-portal-theme="light"] .haoju-exact .ds3-channel-rank-head strong {
  color: var(--ds3-text);
}

.haoju-exact .ds3-channel-rank-head a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  font-weight: 750;
}

:root[data-portal-theme="light"] .haoju-exact .ds3-channel-rank-head a {
  color: var(--ds3-muted);
}

.haoju-exact .ds3-channel-rank ol {
  display: grid;
  grid-auto-rows: minmax(25px, 1fr);
  gap: 0;
  align-content: stretch;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: ds3-channel-rank;
}

.haoju-exact .ds3-channel-rank li {
  counter-increment: ds3-channel-rank;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 25px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

:root[data-portal-theme="light"] .haoju-exact .ds3-channel-rank li {
  border-bottom-color: rgba(27, 40, 50, 0.07);
}

.haoju-exact .ds3-channel-rank li:last-child {
  border-bottom: 0;
}

.haoju-exact .ds3-channel-rank li::before {
  content: counter(ds3-channel-rank);
  color: rgba(255, 255, 255, 0.3);
  font-size: 16px;
  font-weight: 900;
}

.haoju-exact .ds3-channel-rank li:nth-child(-n+3)::before {
  color: #8df0aa;
}

:root[data-portal-theme="light"] .haoju-exact .ds3-channel-rank li::before {
  color: rgba(35, 62, 46, 0.38);
}

:root[data-portal-theme="light"] .haoju-exact .ds3-channel-rank li:nth-child(-n+3)::before {
  color: #36a96a;
}

.haoju-exact .ds3-channel-rank li a,
.haoju-exact .ds3-channel-rank li span {
  overflow: hidden;
  font-size: 13px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.haoju-exact .ds3-channel-rank li a {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 720;
}

:root[data-portal-theme="light"] .haoju-exact .ds3-channel-rank li a {
  color: var(--ds3-text);
}

.haoju-exact .ds3-channel-rank li span {
  padding-left: 10px;
  color: rgba(141, 240, 170, 0.9);
  font-size: 12px;
  font-weight: 800;
}

:root[data-portal-theme="light"] .haoju-exact .ds3-channel-rank li span {
  color: #2f8e62;
}

.haoju-exact .ds3-rank-wrap {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 40px;
}

.haoju-exact .ds3-rank-box {
  min-width: 0;
  padding: 16px;
  border-radius: 12px;
  background: var(--ds3-panel);
}

:root[data-portal-theme="light"] .haoju-exact .ds3-rank-box {
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 32px rgba(77, 108, 92, 0.1);
}

.haoju-exact .ds3-rank-title {
  height: 32px;
}

.haoju-exact .ds3-rank-title h2 {
  font-size: 18px;
  line-height: 32px;
}

.haoju-exact .ds3-rank-box ol {
  display: grid;
  gap: 0;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: ds3-rank;
}

.haoju-exact .ds3-rank-box li {
  counter-increment: ds3-rank;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 38px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

:root[data-portal-theme="light"] .haoju-exact .ds3-rank-box li {
  border-bottom-color: rgba(27, 40, 50, 0.08);
}

.haoju-exact .ds3-rank-box li::before {
  content: counter(ds3-rank);
  color: rgba(255, 255, 255, 0.22);
  font: 700 26px/1 Impact, sans-serif;
  transform: skew(-10deg);
}

.haoju-exact .ds3-rank-box li:nth-child(-n+3)::before {
  color: #ff4f34;
}

.haoju-exact .ds3-rank-box li a,
.haoju-exact .ds3-rank-box li span {
  overflow: hidden;
  font-size: 14px;
  line-height: 38px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.haoju-exact .ds3-rank-box li a {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
}

:root[data-portal-theme="light"] .haoju-exact .ds3-rank-box li a {
  color: var(--ds3-text);
}

.haoju-exact .ds3-rank-box li span {
  color: var(--ds3-blue);
  font-size: 12px;
}

.haoju-exact .ds3-latest-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.haoju-exact .ds3-latest-grid a {
  min-width: 0;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
}

:root[data-portal-theme="light"] .haoju-exact .ds3-latest-grid a {
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 8px 24px rgba(77, 108, 92, 0.08);
}

.haoju-exact .ds3-latest-grid strong,
.haoju-exact .ds3-latest-grid span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.haoju-exact .ds3-latest-grid strong {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  line-height: 22px;
}

.haoju-exact .ds3-latest-grid span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  line-height: 18px;
}

:root[data-portal-theme="light"] .haoju-exact .ds3-latest-grid strong {
  color: var(--ds3-text);
}

:root[data-portal-theme="light"] .haoju-exact .ds3-latest-grid span {
  color: var(--ds3-muted);
}

.haoju-exact .site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  margin-top: 36px;
  padding: 0 0 24px;
  color: rgba(255, 255, 255, 0.42);
  background: transparent;
  border: 0;
  text-align: left;
}

:root[data-portal-theme="light"] .haoju-exact .site-footer {
  color: rgba(27, 40, 50, 0.58);
}

.haoju-exact .footer-copy,
.haoju-exact .footer-links,
.haoju-exact .friend-links {
  max-width: none;
}

.haoju-exact .footer-copy {
  display: flex;
  flex-wrap: wrap;
  gap: 0 8px;
  min-width: 0;
}

.haoju-exact .footer-links {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  min-width: max-content;
}

.haoju-exact .friend-links {
  display: none;
}

.haoju-exact .footer-copy strong {
  display: none;
}

.haoju-exact .footer-copy span,
.haoju-exact .footer-copy small,
.haoju-exact .footer-links a,
.haoju-exact .friend-links a,
.haoju-exact .friend-links strong {
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
  font-weight: 500;
  line-height: 26px;
}

:root[data-portal-theme="light"] .haoju-exact .footer-copy span,
:root[data-portal-theme="light"] .haoju-exact .footer-copy small,
:root[data-portal-theme="light"] .haoju-exact .footer-links a,
:root[data-portal-theme="light"] .haoju-exact .friend-links a,
:root[data-portal-theme="light"] .haoju-exact .friend-links strong {
  color: rgba(27, 40, 50, 0.62);
}

.haoju-exact .footer-links {
  margin-top: 0;
}

.haoju-exact .footer-links a {
  margin: 0;
}

.tpl-haoju .ds3-bottom-nav {
  display: none;
}

@media (min-width: 961px) and (max-width: 1546px) {
  .haoju-exact .ds3-head {
    gap: 12px;
    padding-inline: 16px;
  }

  .haoju-exact .ds3-search {
    min-width: 180px;
  }

  .haoju-exact .ds3-head-nav {
    gap: 12px;
    margin-left: 16px;
  }

  .haoju-exact .ds3-head-nav a {
    gap: 4px;
    font-size: 13px;
  }

  .haoju-exact .ds3-head-right {
    flex-basis: clamp(390px, 42vw, 560px);
    min-width: 300px;
    gap: 6px;
  }

  .haoju-exact .ds3-search input {
    font-size: 11px;
  }

  .haoju-exact .ds3-tool {
    padding-inline: 9px;
  }

  .haoju-exact .ds3-user {
    padding-inline: 14px;
  }
}

@media (min-width: 961px) and (max-width: 1120px) {
  .haoju-exact .ds3-logo .haoju-logo-copy small {
    display: none;
  }

  .haoju-exact .ds3-logo .haoju-logo-copy strong {
    max-width: 112px;
    font-size: 20px;
  }

  .haoju-exact .ds3-head-right {
    flex-basis: clamp(340px, 38vw, 460px);
    min-width: 280px;
  }

  .haoju-exact .ds3-search {
    min-width: 150px;
  }
}

@media (min-width: 1547px) and (max-width: 1899px) {
  .haoju-exact .ds3-wide-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
}

@media (min-width: 768px) and (max-width: 1591px) {
  .haoju-exact .ds3-hero {
    height: 430px;
  }
}

@media (min-width: 1592px) and (max-width: 1999px) {
  .haoju-exact .ds3-hero {
    height: 470px;
  }
}

@media (max-width: 1399px) {
  .haoju-exact .ds3-type-icons,
  .haoju-exact .ds3-type-list > b:last-of-type,
  .haoju-exact .ds3-type-muted {
    display: none;
  }

  .haoju-exact .ds3-card-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .haoju-exact .ds3-channel-layout {
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 16px;
  }

  .haoju-exact .ds3-channel .ds3-card-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin-right: -12px;
  }

  .haoju-exact .ds3-channel .ds3-card {
    padding-right: 12px;
  }

  .haoju-exact .ds3-wide-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .haoju-exact .ds3-rank-wrap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1120px) {
  .haoju-exact .ds3-wide-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .haoju-exact .ds3-channel-layout {
    grid-template-columns: 1fr;
  }

  .haoju-exact .ds3-channel-rank {
    margin-top: 12px;
  }

  .haoju-exact .ds3-channel-rank ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 14px;
  }
}

@media (max-width: 960px) {
  .haoju-exact .ds3-search,
  .haoju-exact .ds3-mobile-search em {
    display: none;
  }

  .haoju-exact .ds3-hero-focus {
    display: none;
  }

  .haoju-exact .ds3-hero-carousel {
    right: 24px;
  }

  .haoju-exact .ds3-menu {
    display: grid;
  }
}

@media (max-width: 960px) {
  .haoju-exact {
    padding-bottom: calc(68px + env(safe-area-inset-bottom));
    overflow-x: hidden;
  }

  .tpl-haoju .ds3-bottom-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 160;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: 100%;
    height: calc(58px + env(safe-area-inset-bottom));
    padding: 5px 6px max(4px, env(safe-area-inset-bottom));
    color: var(--haoju-muted);
    background: rgba(27, 27, 29, 0.96);
    border-top: 1px solid var(--haoju-line);
    box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(16px);
  }

  :root[data-portal-theme="light"] .tpl-haoju .ds3-bottom-nav {
    border-color: rgba(142, 199, 154, 0.32);
    background: rgba(249, 255, 251, 0.97);
    box-shadow: 0 -10px 26px rgba(73, 120, 88, 0.13);
  }

  .tpl-haoju .ds3-bottom-nav a {
    display: grid;
    place-items: center;
    gap: 2px;
    min-width: 0;
    height: 49px;
    border-radius: 16px;
    color: var(--haoju-muted);
    font-size: 12px;
    font-weight: 750;
    line-height: 1;
  }

  .tpl-haoju .ds3-bottom-nav span {
    display: block;
    height: 23px;
    color: currentColor;
    font-size: 17px;
    line-height: 23px;
  }

  .tpl-haoju .ds3-bottom-nav .current {
    color: var(--haoju-chip-text);
    background: var(--haoju-chip-active-gradient);
    box-shadow: var(--haoju-chip-active-shadow);
  }
}

@media (min-width: 768px) and (max-width: 960px) {
  .haoju-exact .ds3-head-nav,
  .haoju-exact .ds3-rank-link {
    display: none;
  }

  .haoju-exact .ds3-mobile-search {
    display: flex !important;
  }

  .haoju-exact .ds3-mobile-search span {
    font-size: 18px;
    transform: translateY(-1px);
  }

  .haoju-exact .ds3-head-right {
    gap: 6px;
  }

  .haoju-exact .ds3-menu {
    place-items: center;
    align-content: center;
    justify-items: center;
    width: 32px;
    height: 32px;
    margin-left: 0;
    border: 1px solid var(--haoju-control-border);
    border-radius: 999px;
    background: var(--haoju-control-gradient);
    box-shadow: var(--haoju-control-shadow);
  }

  .haoju-exact .ds3-menu span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 1.8px 0;
    border-radius: 2px;
    background: var(--haoju-control-text);
  }

  .haoju-exact .ds3-menu span:nth-child(1) {
    width: 18px;
    transform: translateX(-1px);
  }

  .haoju-exact .ds3-menu span:nth-child(2) {
    width: 14px;
    transform: translateX(-3px);
  }

  .haoju-exact .ds3-menu span:nth-child(3) {
    width: 10px;
    transform: translateX(-5px);
  }
}

@media (max-width: 767px) {
  .haoju-exact {
    --ds3-width: 100%;
    padding-bottom: calc(68px + env(safe-area-inset-bottom));
    overflow-x: hidden;
  }

  .haoju-exact .ds3-page {
    padding-bottom: 8px;
  }

  .haoju-exact .ds3-head {
    position: absolute;
    height: 56px;
    padding: 0 12px;
    overflow: visible;
  }

  .haoju-exact .ds3-head-left {
    position: absolute;
    top: 0;
    left: 12px;
    display: block;
    width: calc(100% - 24px);
    height: 56px;
  }

  .haoju-exact .ds3-logo {
    margin: 9px 0 0;
  }

  .haoju-exact .ds3-logo .haoju-logo-mark {
    width: 32px;
    height: 32px;
    border-radius: 10px;
  }

  .haoju-exact .ds3-logo .haoju-logo-copy strong {
    max-width: 92px;
    font-size: 17px;
  }

  .haoju-exact .ds3-logo .haoju-logo-copy small {
    display: none;
  }

  .haoju-exact .ds3-head-nav {
    display: none;
  }

  .haoju-exact .ds3-head-right {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
    height: 32px;
    margin-top: 0;
  }

  .haoju-exact .ds3-tool {
    width: 32px !important;
    min-width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
    padding: 0 !important;
  }

  .haoju-exact .ds3-tool span {
    height: 32px;
    font-size: 14px;
    line-height: 32px;
  }

  .haoju-exact .ds3-mobile-search {
    display: flex !important;
  }

  .haoju-exact .ds3-mobile-search span {
    font-size: 18px;
    transform: translateY(-1px);
  }

  .haoju-exact .language-switcher {
    width: 48px !important;
    min-width: 48px !important;
    height: 32px !important;
    min-height: 32px !important;
  }

  .haoju-exact .language-switcher-trigger {
    height: 30px !important;
    min-height: 30px !important;
    padding: 0 9px !important;
  }

  .haoju-exact .theme-toggle.ds3-tool > span::before {
    font-size: 14px;
  }

  .haoju-exact .theme-toggle.ds3-tool {
    width: 62px !important;
    min-width: 62px !important;
    height: 32px !important;
    min-height: 32px !important;
  }

  .haoju-exact .theme-toggle.ds3-tool .theme-label {
    display: inline-flex !important;
    min-width: 20px;
    font-size: 10px;
  }

  .haoju-exact .ds3-rank-link {
    display: none;
  }

  .haoju-exact .ds3-user {
    width: 44px !important;
    min-width: 44px !important;
    height: 32px !important;
    min-height: 32px !important;
    margin-left: 0;
    padding: 0 7px !important;
    font-size: 11px !important;
  }

  .haoju-exact .ds3-menu {
    place-items: center;
    align-content: center;
    justify-items: center;
    width: 32px;
    height: 32px;
    margin-left: 0;
    border: 1px solid var(--haoju-control-border);
    border-radius: 999px;
    background: var(--haoju-control-gradient);
    box-shadow: var(--haoju-control-shadow);
  }

  .haoju-exact .ds3-menu span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 1.8px 0;
    border-radius: 2px;
    background: var(--haoju-control-text);
  }

  .haoju-exact .ds3-menu span:nth-child(1) {
    width: 18px;
    transform: translateX(-1px);
  }

  .haoju-exact .ds3-menu span:nth-child(2) {
    width: 14px;
    transform: translateX(-3px);
  }

  .haoju-exact .ds3-menu span:nth-child(3) {
    width: 10px;
    transform: translateX(-5px);
  }

  .haoju-exact .ds3-mobile-panel {
    position: absolute;
    top: 56px;
    right: 12px;
    left: 12px;
    z-index: 130;
    display: none;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(43, 43, 43, 0.98);
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(16px);
  }

  :root[data-portal-theme="light"] .haoju-exact .ds3-mobile-panel {
    border-color: rgba(142, 199, 154, 0.38);
    background: rgba(249, 255, 251, 0.97);
    box-shadow: 0 16px 34px rgba(73, 120, 88, 0.16);
  }

  .haoju-exact .ds3-mobile-panel.is-open,
  .haoju-exact .ds3-mobile-panel.nav-open {
    display: flex;
  }

  .haoju-exact .ds3-mobile-panel a {
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.86);
    background: rgba(255, 255, 255, 0.08);
    font-size: 13px;
    font-weight: 750;
  }

  :root[data-portal-theme="light"] .haoju-exact .ds3-mobile-panel a {
    border-color: var(--haoju-chip-border);
    color: var(--haoju-chip-text);
    background: var(--haoju-chip-gradient);
    box-shadow: var(--haoju-chip-shadow);
  }

  :root[data-portal-theme="light"] .haoju-exact .ds3-mobile-panel a.current {
    background: var(--haoju-chip-active-gradient);
    box-shadow: var(--haoju-chip-active-shadow);
  }

  .haoju-exact .ds3-hero {
    height: 246px;
  }

  .haoju-exact .ds3-hero-carousel {
    top: 64px;
    right: 12px;
    bottom: 12px;
    left: 12px;
  }

  .haoju-exact .ds3-hero-slide {
    grid-template-columns: minmax(0, 1fr) 94px;
    gap: 12px;
  }

  .haoju-exact .ds3-hero-shade {
    background:
      linear-gradient(90deg, rgba(0, 0, 0, 0.24), rgba(0, 0, 0, 0.04) 58%, rgba(0, 0, 0, 0.22)),
      linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(43, 43, 43, 0) 55%, var(--ds3-hero-edge) 100%);
  }

  :root[data-portal-theme="light"] .haoju-exact .ds3-hero-shade {
    background:
      linear-gradient(90deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02) 58%, rgba(255, 255, 255, 0.18)),
      linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(238, 243, 246, 0) 55%, var(--ds3-hero-edge) 100%);
  }

  .haoju-exact .ds3-hero-copy {
    order: 1;
    width: auto;
    gap: 8px;
  }

  .haoju-exact .ds3-hero-copy span {
    font-size: 11px;
  }

  .haoju-exact .ds3-hero-copy h2 {
    font-size: 24px;
    line-height: 1.18;
    white-space: normal;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .haoju-exact .ds3-hero-copy p {
    max-width: 100%;
    font-size: 12px;
    line-height: 1.55;
    -webkit-line-clamp: 2;
  }

  .haoju-exact .ds3-hero-cta {
    gap: 8px;
  }

  .haoju-exact .ds3-hero-cta a {
    min-width: 82px;
    height: 30px;
    padding: 0 12px;
    font-size: 12px;
  }

  .haoju-exact .ds3-hero-poster {
    order: 2;
    justify-self: end;
    width: 94px;
    border-radius: 14px;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.2);
  }

  .haoju-exact .ds3-type-list {
    display: none;
  }

  .haoju-exact .ds3-section,
  .haoju-exact .ds3-rank-wrap,
  .haoju-exact .site-footer {
    width: 100%;
    padding-right: 12px;
    padding-left: 12px;
  }

  .haoju-exact .ds3-section {
    margin-top: 16px;
  }

  .haoju-exact .ds3-title {
    height: 30px;
    align-items: center;
  }

  .haoju-exact .ds3-title h2 {
    font-size: 16px;
    font-weight: 700;
    line-height: 30px;
  }

  .haoju-exact .ds3-title > a,
  .haoju-exact .ds3-title > span,
  .haoju-exact .ds3-title nav a {
    font-size: 12px;
    line-height: 24px;
  }

  .haoju-exact .ds3-title nav {
    max-width: 58vw;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .haoju-exact .ds3-title nav::-webkit-scrollbar {
    display: none;
  }

  .haoju-exact .ds3-hot-tabs {
    gap: 6px;
  }

  .haoju-exact .ds3-hot-tabs label {
    min-width: 54px;
    height: 26px;
    padding: 0 10px;
    font-size: 12px;
  }

  .haoju-exact .ds3-wide-grid,
  .haoju-exact .ds3-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin-right: -6px;
  }

  .haoju-exact .ds3-wide-grid .ds3-card:nth-child(n+7) {
    display: none;
  }

  .haoju-exact .ds3-channel-layout {
    display: block;
  }

  .haoju-exact .ds3-channel .ds3-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-right: -6px;
  }

  .haoju-exact .ds3-card {
    padding-top: 6px;
    padding-right: 6px;
  }

  .haoju-exact .ds3-channel .ds3-card {
    padding-right: 6px;
  }

  .haoju-exact .ds3-card-wide .ds3-poster,
  .haoju-exact .ds3-card-grid .ds3-poster {
    aspect-ratio: 16 / 9;
  }

  .haoju-exact .ds3-channel .ds3-card-grid .ds3-poster {
    aspect-ratio: 2 / 3;
  }

  .haoju-exact .ds3-poster {
    border-radius: 8px;
  }

  .haoju-exact .ds3-poster span {
    height: 18px;
    padding: 0 6px;
    border-radius: 0 8px;
    font-size: 11px;
    line-height: 18px;
  }

  .haoju-exact .ds3-poster em {
    right: 5px;
    font-size: 11px;
    line-height: 18px;
  }

  .haoju-exact .ds3-card h3 {
    height: 22px;
    margin-top: 6px;
    font-size: 14px;
    line-height: 22px;
  }

  .haoju-exact .ds3-card p {
    height: 18px;
    margin-top: 0;
    font-size: 12px;
    line-height: 18px;
  }

  .haoju-exact .ds3-poster i {
    display: none;
  }

  .haoju-exact .ds3-rank-wrap {
    display: none;
  }

  .haoju-exact .ds3-rank-box {
    padding: 12px;
  }

  .haoju-exact .ds3-channel-rank {
    display: none;
  }

  .haoju-exact .ds3-latest-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .haoju-exact .site-footer {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 18px;
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
    text-align: left;
  }

  .haoju-exact .footer-copy {
    justify-content: flex-start;
    gap: 2px;
    line-height: 1.55;
  }

  .haoju-exact .footer-links {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 0;
  }

  .haoju-exact .footer-copy span,
  .haoju-exact .footer-copy small,
  .haoju-exact .footer-links a,
  .haoju-exact .friend-links a,
  .haoju-exact .friend-links strong {
    line-height: 20px;
  }

  .haoju-exact .footer-links a {
    min-height: 24px;
    margin: 0;
    padding: 0 10px;
  }

}

/* OLEVOD detail-page closure: authorized same-owner recreation. */
.tpl-haoju.stream-detail {
  --haoju-blue: #088cff;
  --detail-bg: var(--haoju-bg);
  --detail-bg-2: var(--haoju-bg-2);
  --detail-panel: var(--haoju-panel);
  --detail-panel-2: var(--haoju-panel-2);
  --detail-text: var(--haoju-text);
  --detail-muted: var(--haoju-muted);
  --detail-line: var(--haoju-line);
  --detail-stage-text: #fff;
  --detail-stage-muted: rgba(255, 255, 255, 0.78);
  --detail-stage-left: rgba(24, 24, 26, 0.76);
  --detail-stage-mid: rgba(24, 24, 26, 0.36);
  --detail-stage-right: rgba(24, 24, 26, 0.66);
  --detail-stage-top: rgba(24, 24, 26, 0.58);
  --detail-top-strong: rgba(36, 36, 36, 0.96);
  --detail-top-soft: rgba(36, 36, 36, 0.14);
  --detail-poster-glow: 0.24;
  --detail-chip-bg: rgba(255, 255, 255, 0.08);
  --detail-chip-text: var(--haoju-text);
  color: var(--detail-text);
  background: var(--detail-bg);
}

body.front.portal.tpl-haoju.stream-detail {
  --portal-bg: var(--detail-bg);
  --bg: var(--detail-bg);
  background: var(--detail-bg) !important;
}

:root[data-portal-theme="light"] .tpl-haoju.stream-detail {
  --detail-stage-text: var(--haoju-text);
  --detail-stage-muted: var(--haoju-muted);
  --detail-stage-left: rgba(250, 252, 255, 0.48);
  --detail-stage-mid: rgba(250, 252, 255, 0.18);
  --detail-stage-right: rgba(250, 252, 255, 0.36);
  --detail-stage-top: rgba(250, 252, 255, 0.34);
  --detail-top-strong: rgba(242, 244, 248, 0.96);
  --detail-top-soft: rgba(242, 244, 248, 0.18);
  --detail-poster-glow: 0.2;
  --detail-chip-bg: rgba(15, 23, 42, 0.06);
  --detail-chip-text: var(--haoju-text);
  background: var(--detail-bg);
}

.tpl-haoju.stream-detail .stream-top {
  position: sticky;
  top: 0;
  z-index: 90;
  border-bottom: 0;
  background: linear-gradient(180deg, var(--detail-top-strong), var(--detail-top-soft));
  box-shadow: none;
  backdrop-filter: blur(18px);
}

:root[data-portal-theme="light"] .tpl-haoju.stream-detail .stream-top {
  background: linear-gradient(180deg, var(--detail-top-strong), var(--detail-top-soft));
}

.tpl-haoju.stream-detail .stream-detail-stage {
  --detail-rand-a: var(--stream-detail-rand-a, var(--stream-grad-a));
  --detail-rand-b: var(--stream-detail-rand-b, var(--stream-grad-b));
  --detail-rand-c: var(--stream-detail-rand-c, var(--stream-grad-c));
  min-height: 0;
  border-bottom: 0;
  background: var(--detail-bg);
  overflow: hidden;
}

:root[data-portal-theme="light"] .tpl-haoju.stream-detail .stream-detail-stage {
  --detail-rand-a: var(--stream-detail-rand-a-light, var(--stream-grad-a));
  --detail-rand-b: var(--stream-detail-rand-b-light, var(--stream-grad-b));
  --detail-rand-c: var(--stream-detail-rand-c-light, var(--stream-grad-c));
  background: var(--detail-bg);
}

.tpl-haoju.stream-detail .stream-detail-stage::before,
.tpl-haoju.stream-detail .stream-detail-stage::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.tpl-haoju.stream-detail .stream-detail-stage::before {
  inset: -100px;
  background-image: var(--stream-backdrop);
  background-repeat: no-repeat;
  background-position: center 28%;
  background-size: cover;
  filter: blur(100px) saturate(180%);
  opacity: var(--detail-poster-glow);
  transform: scale(1.12);
}

.tpl-haoju.stream-detail .stream-detail-stage::after {
  inset: 0;
  background:
    linear-gradient(90deg, var(--detail-bg) 0%, transparent 18%, transparent 82%, var(--detail-bg) 100%),
    linear-gradient(180deg, var(--detail-bg) 0%, transparent 18%, transparent 74%, var(--detail-bg) 100%),
    radial-gradient(circle at 18% 18%, var(--detail-rand-a), transparent 32%),
    radial-gradient(circle at 72% 14%, var(--detail-rand-b), transparent 36%),
    radial-gradient(circle at 54% 76%, var(--detail-rand-c), transparent 42%),
    linear-gradient(90deg, var(--detail-stage-left) 0%, var(--detail-stage-mid) 46%, var(--detail-stage-right) 100%),
    linear-gradient(180deg, var(--detail-stage-top) 0%, transparent 48%, var(--detail-bg) 100%);
}

.tpl-haoju.stream-detail .stream-detail-stage > * {
  position: relative;
  z-index: 1;
}

.tpl-haoju.stream-detail .stream-detail-stage .stream-breadcrumb,
.tpl-haoju.stream-detail .stream-detail-inner,
.tpl-haoju.stream-detail .stream-shell {
  width: min(1304px, calc(100vw - 136px));
}

.tpl-haoju.stream-detail .stream-detail-stage .stream-breadcrumb {
  position: relative;
  z-index: 3;
  box-sizing: border-box;
  margin: 0 auto 12px;
  padding-top: 36px;
  color: var(--detail-stage-muted) !important;
  text-shadow: none;
  line-height: 1.45;
}

:root[data-portal-theme="light"] .tpl-haoju.stream-detail .stream-detail-stage .stream-breadcrumb,
:root[data-portal-theme="light"] .tpl-haoju.stream-detail .stream-detail-stage .stream-breadcrumb a,
:root[data-portal-theme="light"] .tpl-haoju.stream-detail .stream-detail-stage .stream-breadcrumb span,
:root[data-portal-theme="light"] .tpl-haoju.stream-detail .stream-detail-stage .stream-breadcrumb .crumb-current {
  color: rgba(23, 32, 46, 0.74) !important;
  text-shadow: 0 1px 12px rgba(255, 255, 255, 0.72);
}

.tpl-haoju.stream-detail .stream-detail-inner {
  position: relative;
  z-index: 2;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 18px 24px;
  align-items: start;
  min-height: 0;
  padding: 28px 0 28px;
}

.tpl-haoju.stream-detail .stream-detail-poster {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.tpl-haoju.stream-detail .stream-detail-poster img {
  width: 200px;
  border: 0;
  border-radius: 8px;
  box-shadow: none;
}

.tpl-haoju.stream-detail .stream-detail-copy {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding-top: 8px;
  text-shadow: none;
}

.tpl-haoju.stream-detail .stream-detail-copy h1 {
  order: 1;
  max-width: none;
  margin: 0 0 14px;
  color: var(--detail-stage-text) !important;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
}

.tpl-haoju.stream-detail .stream-facts {
  order: 2;
  align-items: center;
  gap: 20px;
  margin: 0 0 16px;
  color: var(--detail-stage-text);
  background: transparent !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

.tpl-haoju.stream-detail .stream-facts span {
  display: inline-flex;
  align-items: baseline;
  min-height: 0;
  min-width: 0;
  padding: 0;
  border: 0 !important;
  border-radius: 0;
  color: var(--detail-stage-text) !important;
  background: transparent !important;
  box-shadow: none;
  filter: none !important;
  text-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}

.tpl-haoju.stream-detail .stream-facts span:first-child {
  color: rgba(255, 187, 112, 0.92) !important;
  font-size: 19px;
  font-weight: 850;
}

.tpl-haoju.stream-detail .stream-kicker {
  order: 3;
  margin: 0 0 8px;
  color: var(--detail-stage-text) !important;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.75;
}

.tpl-haoju.stream-detail .stream-kicker::before {
  content: "资料：";
  font-weight: 800;
}

.tpl-haoju.stream-detail .stream-detail-copy > p:not(.stream-kicker) {
  order: 4;
  display: -webkit-box;
  max-width: none;
  margin: 0;
  color: var(--detail-stage-text) !important;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.75;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.tpl-haoju.stream-detail .stream-detail-copy > p:not(.stream-kicker)::before {
  content: "简介：";
  color: var(--detail-stage-text);
  font-weight: 800;
}

:root[data-portal-theme="light"] .tpl-haoju.stream-detail .stream-detail-stage .stream-detail-copy h1,
:root[data-portal-theme="light"] .tpl-haoju.stream-detail .stream-detail-stage .stream-facts span:not(:first-child),
:root[data-portal-theme="light"] .tpl-haoju.stream-detail .stream-detail-stage .stream-kicker,
:root[data-portal-theme="light"] .tpl-haoju.stream-detail .stream-detail-stage .stream-detail-copy > p:not(.stream-kicker),
:root[data-portal-theme="light"] .tpl-haoju.stream-detail .stream-detail-stage .stream-detail-copy > p:not(.stream-kicker)::before {
  color: var(--detail-stage-text) !important;
}

:root[data-portal-theme="light"] .tpl-haoju.stream-detail .stream-detail-stage .stream-facts,
:root[data-portal-theme="light"] .tpl-haoju.stream-detail .stream-detail-stage .stream-facts span {
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
  text-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

:root[data-portal-theme="light"] .tpl-haoju.stream-detail .stream-detail-stage .stream-facts span:first-child {
  color: rgba(204, 107, 31, 0.92) !important;
}

.tpl-haoju.stream-detail .stream-detail-actions {
  grid-column: 2;
  grid-row: 2;
  justify-self: start;
  order: 5;
  gap: 12px;
  margin-top: 0;
  align-items: center;
}

.tpl-haoju.stream-detail .stream-detail-actions .primary-btn {
  min-width: 112px;
  height: 36px;
  padding: 0 20px;
  border-radius: 18px;
  color: var(--haoju-chip-text);
  background: var(--haoju-chip-active-gradient);
  box-shadow: var(--haoju-chip-active-shadow);
}

.tpl-haoju.stream-detail .stream-detail-actions .ghost-btn,
.tpl-haoju.stream-detail .stream-detail-actions .like-button {
  min-width: 64px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--haoju-chip-border) !important;
  border-radius: 18px;
  color: var(--haoju-chip-text) !important;
  background: var(--haoju-chip-gradient) !important;
  box-shadow: var(--haoju-chip-shadow);
}

.tpl-haoju.stream-detail .stream-detail-actions .like-button span {
  color: #ff6486;
}

.tpl-haoju.stream-detail .stream-detail-actions .like-button strong {
  color: var(--haoju-chip-text);
}

.tpl-haoju.stream-detail .stream-detail-actions .like-button em {
  color: var(--haoju-chip-muted);
}

:root[data-portal-theme="light"] .tpl-haoju.stream-detail .stream-detail-stage .stream-detail-actions .ghost-btn,
:root[data-portal-theme="light"] .tpl-haoju.stream-detail .stream-detail-stage .stream-detail-actions .like-button {
  border: 1px solid var(--haoju-chip-border) !important;
  color: var(--haoju-chip-text) !important;
  background: var(--haoju-chip-gradient) !important;
  box-shadow: var(--haoju-chip-shadow) !important;
}

.tpl-haoju.stream-detail .stream-detail-main {
  padding-top: 12px;
  background: var(--detail-bg);
}

.tpl-haoju.stream-detail .stream-detail-grid {
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 14px;
}

.tpl-haoju.stream-detail .stream-detail-stack {
  display: grid;
  grid-column: 1;
  gap: 12px;
  min-width: 0;
}

.tpl-haoju.stream-detail .stream-synopsis,
.tpl-haoju.stream-detail .stream-episode-card,
.tpl-haoju.stream-detail .stream-comment-card {
  grid-column: 1;
}

.tpl-haoju.stream-detail .stream-meta-card {
  grid-column: 2;
  grid-row: 1;
}

.tpl-haoju.stream-detail .stream-info-card,
.tpl-haoju.stream-detail .stream-showcase {
  margin-top: 0;
  padding: 18px 22px;
  border: 0;
  border-radius: 8px;
  color: var(--detail-text);
  background: var(--detail-panel);
  box-shadow: none;
}

.tpl-haoju.stream-detail .stream-info-card p,
.tpl-haoju.stream-detail .stream-info-card dd,
.tpl-haoju.stream-detail .stream-poster-card p {
  color: var(--detail-muted);
}

.tpl-haoju.stream-detail .stream-synopsis .synopsis-summary-copy small {
  color: var(--detail-muted);
}

.tpl-haoju.stream-detail .stream-synopsis summary.stream-block-title em {
  border-color: var(--detail-line);
  color: var(--detail-muted);
  background: var(--detail-panel-2);
}

.tpl-haoju.stream-detail .stream-synopsis[open] summary.stream-block-title em {
  border-color: var(--haoju-chip-border);
  color: var(--haoju-chip-text);
  background: var(--haoju-chip-gradient);
}

.tpl-haoju.stream-detail .stream-synopsis .synopsis-body {
  margin-top: 10px;
}

.tpl-haoju.stream-detail .stream-info-card dl {
  gap: 10px;
  margin-top: 12px;
}

.tpl-haoju.stream-detail .line-block {
  padding: 10px 0 0;
}

.tpl-haoju.stream-detail .line-block:first-of-type {
  padding-top: 8px;
}

.tpl-haoju.stream-detail .episode-groups {
  gap: 7px;
}

.tpl-haoju.stream-detail .episode-group summary {
  min-height: 34px;
  padding: 8px 10px;
}

.tpl-haoju.stream-detail .episode-group .episode-list {
  gap: 7px;
  padding: 0 10px 10px;
}

.tpl-haoju.stream-detail .comment-form,
.tpl-haoju.stream-detail .guest-comment-box {
  gap: 9px;
  margin-bottom: 10px;
  padding: 12px;
}

.tpl-haoju.stream-detail .comment-form textarea {
  min-height: 82px;
}

.tpl-haoju.stream-detail .stream-block-title strong,
.tpl-haoju.stream-detail .stream-section-head h2,
.tpl-haoju.stream-detail .stream-poster-card h3 a {
  color: var(--detail-text);
}

.tpl-haoju.stream-detail .stream-block-title span,
.tpl-haoju.stream-detail .stream-info-card dt,
.tpl-haoju.stream-detail .stream-section-head span {
  color: var(--detail-muted);
}

.tpl-haoju.stream-detail .stream-template .meta-links a,
.tpl-haoju.stream-detail .stream-template .meta-links span,
.tpl-haoju.stream-detail .meta-links a,
.tpl-haoju.stream-detail .meta-links span,
.tpl-haoju.stream-detail .episode-list a,
.tpl-haoju.stream-detail .comment-form,
.tpl-haoju.stream-detail .guest-comment-box,
.tpl-haoju.stream-detail .comment-item {
  border-color: var(--detail-line);
  color: var(--detail-text);
  background: var(--detail-panel-2);
}

@media (max-width: 1220px) {
  .tpl-haoju.stream-detail .stream-detail-stage .stream-breadcrumb,
  .tpl-haoju.stream-detail .stream-detail-inner,
  .tpl-haoju.stream-detail .stream-shell {
    width: min(960px, calc(100% - 40px));
  }

  .tpl-haoju.stream-detail .stream-detail-grid {
    grid-template-columns: 1fr;
  }

  .tpl-haoju.stream-detail .stream-detail-stack,
  .tpl-haoju.stream-detail .stream-synopsis,
  .tpl-haoju.stream-detail .stream-meta-card,
  .tpl-haoju.stream-detail .stream-episode-card,
  .tpl-haoju.stream-detail .stream-comment-card {
    grid-column: 1;
    grid-row: auto;
  }
}

@media (min-width: 761px) {
  .tpl-haoju.stream-detail .stream-top {
    position: absolute;
    right: 0;
    left: 0;
    height: auto;
    padding-bottom: 8px;
    overflow: visible;
  }

  .tpl-haoju.stream-detail .stream-head {
    width: min(1304px, calc(100vw - 136px));
    min-height: 66px;
    padding: 0;
  }

  .tpl-haoju.stream-detail .stream-nav {
    display: flex;
    width: min(1304px, calc(100vw - 136px));
    min-height: 42px;
    gap: 12px;
    padding: 0;
    scrollbar-width: none;
  }

  .tpl-haoju.stream-detail .stream-nav::-webkit-scrollbar {
    display: none;
  }

  .tpl-haoju.stream-detail .stream-nav a {
    justify-content: center;
    width: 116px;
    align-items: center;
    height: 38px;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid var(--haoju-chip-border);
    border-radius: 999px;
    color: var(--haoju-chip-text) !important;
    background: var(--haoju-chip-gradient);
    box-shadow: var(--haoju-chip-shadow);
    font-size: 14px;
  }

  .tpl-haoju.stream-detail .stream-nav a::after {
    display: none;
  }

  .tpl-haoju.stream-detail .stream-nav a.active,
  .tpl-haoju.stream-detail .stream-nav a:hover {
    color: var(--haoju-chip-text) !important;
    background: var(--haoju-chip-gradient) !important;
    box-shadow: var(--haoju-chip-shadow) !important;
  }

  :root[data-portal-theme="light"] body.tpl-haoju.stream-detail .stream-nav a,
  :root[data-portal-theme="light"] body.tpl-haoju.stream-detail .stream-nav a.active,
  :root[data-portal-theme="light"] body.tpl-haoju.stream-detail .stream-nav a:hover,
  :root[data-portal-theme="light"] body.tpl-haoju.stream-detail .stream-nav .nav-symbol,
  :root[data-portal-theme="light"] body.tpl-haoju.stream-detail .stream-nav .nav-text {
    color: var(--haoju-chip-text) !important;
  }

  .tpl-haoju.stream-detail .stream-detail-stage .stream-breadcrumb {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    z-index: 3;
    margin-bottom: 12px;
    padding-top: 124px;
    padding-bottom: 0;
  }

  .tpl-haoju.stream-detail .stream-detail-stage .stream-breadcrumb ol {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .tpl-haoju.stream-detail .stream-detail-stage .stream-breadcrumb li {
    max-width: 22vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .tpl-haoju.stream-detail .stream-detail-stage .stream-breadcrumb li:last-child {
    max-width: 34vw;
  }

  .tpl-haoju.stream-detail .stream-detail-stage .stream-breadcrumb li::after {
    flex: 0 0 auto;
  }

  .tpl-haoju.stream-detail .stream-detail-inner {
    padding-top: 0;
  }
}

@media (max-width: 760px) {
  .tpl-haoju.stream-detail {
    background: var(--detail-bg);
  }

  .tpl-haoju.stream-detail .stream-top {
    background: linear-gradient(180deg, var(--detail-top-strong), var(--detail-top-soft));
  }

  .tpl-haoju.stream-detail .stream-detail-stage .stream-breadcrumb,
  .tpl-haoju.stream-detail .stream-detail-inner,
  .tpl-haoju.stream-detail .stream-shell {
    width: calc(100vw - 18px);
  }

  .tpl-haoju.stream-detail .stream-detail-stage .stream-breadcrumb {
    padding-top: 12px;
  }

  .tpl-haoju.stream-detail .stream-detail-stage::before {
    inset: -70px;
    filter: blur(70px) saturate(170%);
  }

  .tpl-haoju.stream-detail .stream-detail-stage::after {
    background:
      linear-gradient(90deg, var(--detail-bg) 0%, transparent 16%, transparent 84%, var(--detail-bg) 100%),
      linear-gradient(180deg, var(--detail-bg) 0%, transparent 16%, transparent 74%, var(--detail-bg) 100%),
      radial-gradient(circle at 18% 24%, var(--detail-rand-a), transparent 44%),
      radial-gradient(circle at 82% 18%, var(--detail-rand-b), transparent 48%),
      radial-gradient(circle at 54% 82%, var(--detail-rand-c), transparent 52%),
      linear-gradient(90deg, var(--detail-stage-left) 0%, var(--detail-stage-mid) 52%, var(--detail-stage-right) 100%),
      linear-gradient(180deg, var(--detail-stage-top) 0%, transparent 52%, var(--detail-bg) 100%);
  }

  .tpl-haoju.stream-detail .stream-detail-inner {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 12px;
    padding: 18px 0 22px;
  }

  .tpl-haoju.stream-detail .stream-detail-poster {
    grid-column: 1;
    grid-row: 1;
  }

  .tpl-haoju.stream-detail .stream-detail-poster img {
    width: 112px;
    border-radius: 7px;
  }

  .tpl-haoju.stream-detail .stream-detail-copy {
    padding-top: 0;
  }

  .tpl-haoju.stream-detail .stream-detail-copy h1 {
    margin-bottom: 8px;
    font-size: 18px;
    line-height: 1.28;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }

  .tpl-haoju.stream-detail .stream-facts {
    gap: 10px;
    margin-bottom: 7px;
  }

  .tpl-haoju.stream-detail .stream-facts span {
    font-size: 12px;
    line-height: 1.5;
  }

  .tpl-haoju.stream-detail .stream-facts span:first-child {
    font-size: 15px;
  }

  .tpl-haoju.stream-detail .stream-kicker {
    margin-bottom: 4px;
    font-size: 12px;
    line-height: 1.5;
  }

  .tpl-haoju.stream-detail .stream-detail-copy > p:not(.stream-kicker) {
    font-size: 12px;
    line-height: 1.55;
    -webkit-line-clamp: 2;
  }

  .tpl-haoju.stream-detail .stream-detail-actions {
    grid-column: 1 / -1;
    grid-row: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    width: 100%;
    gap: 6px;
    margin-top: 0;
    overflow: visible;
  }

  .tpl-haoju.stream-detail .stream-detail-actions .like-form {
    min-width: 0;
  }

  .tpl-haoju.stream-detail .stream-detail-actions .primary-btn,
  .tpl-haoju.stream-detail .stream-detail-actions .ghost-btn,
  .tpl-haoju.stream-detail .stream-detail-actions .like-button {
    min-width: 0;
    justify-self: center;
    width: min(100%, 106px);
    height: 32px;
    min-height: 32px;
    padding: 0 6px;
    border-radius: 16px;
    border: 1px solid var(--haoju-chip-border) !important;
    color: var(--haoju-chip-text) !important;
    background: var(--haoju-chip-gradient) !important;
    box-shadow: var(--haoju-chip-shadow) !important;
    font-size: 11.5px;
    line-height: 1;
    white-space: nowrap;
  }

  .tpl-haoju.stream-detail .stream-detail-actions .primary-btn {
    background: var(--haoju-chip-active-gradient) !important;
    box-shadow: var(--haoju-chip-active-shadow) !important;
  }

  .tpl-haoju.stream-detail .stream-detail-actions .ghost-btn,
  .tpl-haoju.stream-detail .stream-detail-actions .like-button {
    background: var(--haoju-chip-gradient) !important;
    box-shadow: var(--haoju-chip-shadow) !important;
  }

  .tpl-haoju.stream-detail .stream-detail-actions .like-button {
    gap: 3px;
  }

  .tpl-haoju.stream-detail .stream-detail-actions .like-button span {
    font-size: 16px;
  }

  .tpl-haoju.stream-detail .stream-detail-actions .like-button em {
    color: var(--haoju-chip-muted);
    font-size: 11px;
  }

  .tpl-haoju.stream-detail .stream-detail-main {
    padding-top: 8px;
    background: var(--detail-bg);
  }

  .tpl-haoju.stream-detail .stream-info-card,
  .tpl-haoju.stream-detail .stream-showcase {
    padding: 14px;
  }

  .tpl-haoju.stream-detail .stream-detail-stack {
    gap: 10px;
  }
}

/* 2026-06-29 global capsule size system:
   keep shared pills visually consistent across home/category/detail/search/player pages. */
.front.portal,
.stream-template,
.tube-template,
.jable-template,
.tpl-haoju {
  --cms-pill-control-h: 34px;
  --cms-pill-search-h: 38px;
  --cms-pill-nav-h: 38px;
  --cms-pill-filter-h: 34px;
  --cms-pill-sort-h: 36px;
  --cms-pill-action-h: 38px;
  --cms-pill-radius: 999px;
  --cms-pill-control-x: 14px;
  --cms-pill-nav-x: 16px;
  --cms-pill-filter-x: 13px;
  --cms-pill-action-x: 16px;
}

.front.portal :where(.portal-actions .user-chip, .theme-toggle[data-theme-toggle]),
.stream-template :where(.stream-actions .user-chip, .stream-actions .theme-toggle[data-theme-toggle]),
.front.portal.player-page .language-switcher,
.tpl-haoju .language-switcher,
.tpl-haoju .stream-actions .haoju-action-menu {
  height: var(--cms-pill-control-h) !important;
  min-height: var(--cms-pill-control-h) !important;
  border-radius: var(--cms-pill-radius) !important;
  box-sizing: border-box !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

.front.portal :where(.portal-actions .user-chip, .theme-toggle[data-theme-toggle]),
.stream-template :where(.stream-actions .user-chip, .stream-actions .theme-toggle[data-theme-toggle]) {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 var(--cms-pill-control-x) !important;
  font-size: 13px !important;
}

.front.portal .theme-toggle[data-theme-toggle],
.stream-template .stream-actions .theme-toggle[data-theme-toggle] {
  gap: 7px !important;
}

.front.portal.player-page .language-switcher,
.tpl-haoju .language-switcher {
  width: auto !important;
  min-width: 54px !important;
  padding: 0 !important;
}

.front.portal.player-page .language-switcher-trigger,
.tpl-haoju .language-switcher-trigger {
  height: calc(var(--cms-pill-control-h) - 2px) !important;
  min-height: calc(var(--cms-pill-control-h) - 2px) !important;
  padding: 0 10px !important;
  border-radius: var(--cms-pill-radius) !important;
  line-height: 1 !important;
}

.tpl-haoju .stream-actions .haoju-action-menu {
  width: var(--cms-pill-control-h) !important;
  min-width: var(--cms-pill-control-h) !important;
  padding: 0 !important;
}

.front.portal :where(.portal-search, .stream-search),
.stream-template :where(.portal-search, .stream-search) {
  min-height: var(--cms-pill-search-h) !important;
}

.front.portal :where(.portal-search button, .stream-search button),
.stream-template :where(.portal-search button, .stream-search button) {
  min-height: var(--cms-pill-search-h) !important;
  height: var(--cms-pill-search-h) !important;
  padding: 0 var(--cms-pill-control-x) !important;
  border-radius: var(--cms-pill-radius) !important;
  line-height: 1 !important;
}

.front.portal :where(.portal-nav a, .main-nav a),
.stream-template .stream-nav a,
.tpl-haoju :where(.portal-nav a, .stream-nav a) {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: var(--cms-pill-nav-h) !important;
  min-height: var(--cms-pill-nav-h) !important;
  padding: 0 var(--cms-pill-nav-x) !important;
  border-radius: var(--cms-pill-radius) !important;
  box-sizing: border-box !important;
  font-size: 14px !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

.front.portal :where(.catalog-page .filter-values a, .catalog-page .filter-more summary),
.stream-category :where(.stream-filter-line a, .stream-more-filters summary),
.jable-filter-row a,
.tube-filter-row a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: var(--cms-pill-filter-h) !important;
  min-height: var(--cms-pill-filter-h) !important;
  padding: 0 var(--cms-pill-filter-x) !important;
  border-radius: var(--cms-pill-radius) !important;
  box-sizing: border-box !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

.front.portal .catalog-page .sort-tabs a,
.stream-category .stream-sortline a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: var(--cms-pill-sort-h) !important;
  min-height: var(--cms-pill-sort-h) !important;
  padding: 0 var(--cms-pill-action-x) !important;
  border-radius: var(--cms-pill-radius) !important;
  box-sizing: border-box !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

.front.portal :where(.hero-action-btn, .detail-actions .primary-btn, .detail-actions .ghost-btn, .detail-actions .disabled-action, .detail-actions .like-button),
.stream-template :where(.stream-detail-actions .primary-btn, .stream-detail-actions .ghost-btn, .stream-detail-actions .like-button),
.tube-template :where(.tube-detail-actions .primary-btn, .tube-detail-actions .ghost-btn, .tube-detail-actions .like-button),
.player-toolbar button[data-fullscreen-toggle] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: var(--cms-pill-action-h) !important;
  padding: 0 var(--cms-pill-action-x) !important;
  border-radius: var(--cms-pill-radius) !important;
  box-sizing: border-box !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

.tpl-haoju .theme-toggle[data-theme-toggle],
.tpl-haoju .user-chip,
.tpl-haoju .language-switcher,
.tpl-haoju .stream-actions .haoju-action-menu {
  height: var(--cms-pill-control-h) !important;
  min-height: var(--cms-pill-control-h) !important;
  border-radius: var(--cms-pill-radius) !important;
  box-sizing: border-box !important;
}

.tpl-haoju .theme-toggle[data-theme-toggle] {
  width: 76px !important;
  min-width: 76px !important;
  padding: 0 var(--cms-pill-control-x) !important;
}

.tpl-haoju .user-chip {
  min-width: 54px !important;
  padding: 0 var(--cms-pill-control-x) !important;
}

.player-toolbar button {
  min-height: 30px !important;
  padding: 0 11px !important;
  border-radius: var(--cms-pill-radius) !important;
  line-height: 1 !important;
}

@media (max-width: 760px) {
  .front.portal,
  .stream-template,
  .tube-template,
  .jable-template,
  .tpl-haoju {
    --cms-pill-control-h: 32px;
    --cms-pill-search-h: 36px;
    --cms-pill-nav-h: 36px;
    --cms-pill-filter-h: 30px;
    --cms-pill-sort-h: 32px;
    --cms-pill-action-h: 32px;
    --cms-pill-control-x: 10px;
    --cms-pill-nav-x: 12px;
    --cms-pill-filter-x: 10px;
    --cms-pill-action-x: 10px;
  }

  .front.portal :where(.portal-actions .user-chip, .theme-toggle[data-theme-toggle]),
  .stream-template :where(.stream-actions .user-chip, .stream-actions .theme-toggle[data-theme-toggle]) {
    font-size: 12px !important;
  }

  .front.portal.player-page .language-switcher,
  .tpl-haoju .language-switcher {
    min-width: 48px !important;
  }

  .tpl-haoju .theme-toggle[data-theme-toggle] {
    width: 68px !important;
    min-width: 68px !important;
  }

  .tpl-haoju .user-chip {
    min-width: 42px !important;
  }

  .front.portal.player-page .language-switcher-trigger,
  .tpl-haoju .language-switcher-trigger {
    padding: 0 8px !important;
    font-size: 11px !important;
  }

  .front.portal :where(.portal-nav a, .main-nav a),
  .stream-template .stream-nav a,
  .tpl-haoju :where(.portal-nav a, .stream-nav a) {
    font-size: 13px !important;
  }

  .front.portal :where(.catalog-page .filter-values a, .catalog-page .filter-more summary),
  .stream-category :where(.stream-filter-line a, .stream-more-filters summary),
  .jable-filter-row a,
  .tube-filter-row a,
  .front.portal .catalog-page .sort-tabs a,
  .stream-category .stream-sortline a {
    font-size: 12px !important;
  }

  .front.portal :where(.detail-actions .primary-btn, .detail-actions .ghost-btn, .detail-actions .disabled-action, .detail-actions .like-button),
  .stream-template :where(.stream-detail-actions .primary-btn, .stream-detail-actions .ghost-btn, .stream-detail-actions .like-button),
  .tube-template :where(.tube-detail-actions .primary-btn, .tube-detail-actions .ghost-btn, .tube-detail-actions .like-button) {
    max-width: 108px;
  }

  .player-toolbar button {
    min-height: 28px !important;
    padding: 0 9px !important;
    font-size: 11px !important;
  }
}

@media (min-width: 761px) and (max-width: 1280px) {
  body.front.portal.tpl-haoju.stream-category .stream-filter-deck {
    max-height: none !important;
    overflow: visible !important;
    padding-bottom: 12px !important;
  }

  body.front.portal.tpl-haoju.stream-category .stream-filter-line {
    align-items: start !important;
  }

  body.front.portal.tpl-haoju.stream-category .stream-filter-line div {
    flex-wrap: wrap !important;
    overflow: visible !important;
    mask-image: none !important;
    -webkit-mask-image: none !important;
  }

  body.front.portal.tpl-haoju.stream-category .stream-more-filters {
    display: block !important;
    margin-top: 2px !important;
  }

  body.front.portal.tpl-haoju.stream-category .stream-more-filters summary {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: var(--cms-pill-filter-h) !important;
    min-height: var(--cms-pill-filter-h) !important;
    margin-left: 50px !important;
    padding: 0 var(--cms-pill-filter-x) !important;
    border: 1px solid rgba(74, 222, 128, .22) !important;
    border-radius: var(--cms-pill-radius) !important;
    color: rgba(226, 232, 240, .9) !important;
    background: rgba(15, 23, 42, .62) !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    list-style: none !important;
    cursor: pointer !important;
  }

  body.front.portal.tpl-haoju.stream-category .stream-more-filters summary::-webkit-details-marker {
    display: none;
  }

  body.front.portal.tpl-haoju.stream-category .stream-more-filters summary::after {
    content: "＋";
    margin-left: 7px;
  }

  body.front.portal.tpl-haoju.stream-category .stream-more-filters[open] summary::after {
    content: "－";
  }

  body.front.portal.tpl-haoju.stream-category .stream-more-filter-body {
    display: none !important;
    margin-top: 6px !important;
  }

  body.front.portal.tpl-haoju.stream-category .stream-more-filters[open] .stream-more-filter-body {
    display: grid !important;
    gap: 6px !important;
  }

  body.front.portal.tpl-haoju.stream-category .stream-sortline {
    position: relative !important;
    z-index: 1 !important;
    margin-top: 12px !important;
  }
}

/* tpl-iqiyi header polish: keep this template aligned without touching haoju. */
body.front.portal.tpl-iqiyi {
  --iqiyi-shell: min(1680px, calc(100vw - 72px));
  --iqiyi-pill-h: 44px;
  --iqiyi-pill-x: 18px;
  --iqiyi-pill-bg: linear-gradient(135deg, rgba(217, 255, 225, .96), rgba(112, 232, 152, .9));
  --iqiyi-pill-active: linear-gradient(135deg, rgba(54, 232, 98, .96), rgba(58, 209, 119, .92));
  --iqiyi-pill-border: rgba(76, 226, 127, .24);
  --iqiyi-panel: rgba(3, 18, 12, .76);
}

body.front.portal.tpl-iqiyi .portal-bar,
body.front.portal.tpl-iqiyi .portal-nav,
body.front.portal.tpl-iqiyi .portal-shell,
body.front.portal.tpl-iqiyi .page-shell,
body.front.portal.tpl-iqiyi .detail-main,
body.front.portal.tpl-iqiyi .breadcrumb {
  width: var(--iqiyi-shell) !important;
  max-width: var(--iqiyi-shell) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.front.portal.tpl-iqiyi .portal-top {
  background:
    linear-gradient(180deg, rgba(3, 14, 10, .96), rgba(4, 8, 12, .92)),
    rgba(4, 8, 12, .94) !important;
  border-bottom-color: rgba(74, 222, 128, .18) !important;
}

body.front.portal.tpl-iqiyi .portal-bar {
  grid-template-columns: minmax(230px, 300px) minmax(420px, 1fr) auto !important;
  gap: 20px !important;
  min-height: 78px !important;
}

body.front.portal.tpl-iqiyi .portal-brand {
  align-items: center !important;
  gap: 12px !important;
  min-width: 0 !important;
}

body.front.portal.tpl-iqiyi .portal-brand .brand-mark {
  width: 46px !important;
  height: 46px !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, rgba(29, 235, 96, .88), rgba(92, 214, 232, .74)) !important;
  box-shadow: 0 14px 34px rgba(28, 220, 107, .22) !important;
}

body.front.portal.tpl-iqiyi .portal-brand strong {
  color: #eefcf3 !important;
  font-size: 22px !important;
  line-height: 1.08 !important;
}

body.front.portal.tpl-iqiyi .portal-brand small {
  max-width: 220px !important;
  overflow: hidden !important;
  color: rgba(218, 235, 225, .78) !important;
  font-size: 12px !important;
  line-height: 1.25 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.front.portal.tpl-iqiyi .portal-search {
  min-height: var(--iqiyi-pill-h) !important;
  border-color: rgba(74, 222, 128, .22) !important;
  border-radius: 10px !important;
  background: rgba(5, 22, 16, .7) !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.02) !important;
}

body.front.portal.tpl-iqiyi .portal-search input,
body.front.portal.tpl-iqiyi .portal-search button {
  min-height: var(--iqiyi-pill-h) !important;
}

body.front.portal.tpl-iqiyi .portal-search button,
body.front.portal.tpl-iqiyi .primary-btn,
body.front.portal.tpl-iqiyi .hero-action-detail {
  background: var(--iqiyi-pill-active) !important;
  color: #052112 !important;
  font-weight: 900 !important;
}

body.front.portal.tpl-iqiyi .portal-actions {
  align-items: center !important;
  justify-content: flex-end !important;
  flex-wrap: nowrap !important;
  gap: 10px !important;
  min-width: 0 !important;
}

body.front.portal.tpl-iqiyi .portal-actions a,
body.front.portal.tpl-iqiyi .portal-actions .user-chip,
body.front.portal.tpl-iqiyi .theme-toggle,
body.front.portal.tpl-iqiyi .portal-nav a,
body.front.portal.tpl-iqiyi .nav-dropdown-trigger,
body.front.portal.tpl-iqiyi .ghost-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: var(--iqiyi-pill-h) !important;
  min-height: var(--iqiyi-pill-h) !important;
  padding: 0 var(--iqiyi-pill-x) !important;
  border: 1px solid var(--iqiyi-pill-border) !important;
  border-radius: 999px !important;
  background: rgba(7, 31, 21, .72) !important;
  color: rgba(231, 245, 237, .88) !important;
  font-size: 15px !important;
  font-weight: 850 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  box-shadow: none !important;
}

body.front.portal.tpl-iqiyi .portal-actions .user-chip,
body.front.portal.tpl-iqiyi .theme-toggle,
body.front.portal.tpl-iqiyi .ghost-btn {
  background: var(--iqiyi-pill-bg) !important;
  color: #092313 !important;
}

body.front.portal.tpl-iqiyi .portal-nav {
  align-items: center !important;
  justify-content: flex-start !important;
  flex-wrap: wrap !important;
  gap: 12px 18px !important;
  padding: 0 0 16px !important;
  overflow: visible !important;
}

body.front.portal.tpl-iqiyi .portal-nav a.active,
body.front.portal.tpl-iqiyi .portal-nav a:hover,
body.front.portal.tpl-iqiyi .nav-dropdown:hover .nav-dropdown-trigger,
body.front.portal.tpl-iqiyi .nav-dropdown:focus-within .nav-dropdown-trigger,
body.front.portal.tpl-iqiyi .nav-dropdown.open .nav-dropdown-trigger,
body.front.portal.tpl-iqiyi .nav-dropdown-trigger.active {
  background: var(--iqiyi-pill-active) !important;
  color: #04180d !important;
  border-color: rgba(104, 244, 146, .34) !important;
  transform: none !important;
}

body.front.portal.tpl-iqiyi .nav-dropdown {
  z-index: 60 !important;
}

body.front.portal.tpl-iqiyi .nav-mega {
  top: calc(100% + 12px) !important;
  left: 0 !important;
  width: min(820px, calc(100vw - 72px)) !important;
  border-color: rgba(74, 222, 128, .18) !important;
  border-radius: 20px !important;
  background: rgba(5, 19, 15, .98) !important;
  transform: translateY(8px) !important;
}

body.front.portal.tpl-iqiyi .nav-dropdown:hover .nav-mega,
body.front.portal.tpl-iqiyi .nav-dropdown:focus-within .nav-mega,
body.front.portal.tpl-iqiyi .nav-dropdown.open .nav-mega {
  transform: translateY(0) !important;
}

body.front.portal.tpl-iqiyi .nav-mega::before {
  left: 44px !important;
  border-color: rgba(74, 222, 128, .18) !important;
}

body.front.portal.tpl-iqiyi .portal-shell {
  padding-top: 26px !important;
}

body.front.portal.tpl-iqiyi .page-shell {
  padding-top: 24px !important;
}

body.front.portal.tpl-iqiyi .breadcrumb {
  margin-top: 18px !important;
  margin-bottom: 16px !important;
  padding: 0 !important;
}

body.front.portal.tpl-iqiyi .page-shell > .breadcrumb,
body.front.portal.tpl-iqiyi .portal-shell > .breadcrumb {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

body.front.portal.tpl-iqiyi .list-hero,
body.front.portal.tpl-iqiyi .detail-hero {
  border-color: rgba(74, 222, 128, .18) !important;
  background:
    radial-gradient(circle at 16% 10%, rgba(42, 216, 108, .18), transparent 34%),
    linear-gradient(135deg, rgba(7, 35, 23, .78), rgba(7, 12, 18, .94) 68%) !important;
}

:root[data-portal-theme="light"] body.front.portal.tpl-iqiyi {
  --iqiyi-pill-bg: linear-gradient(135deg, rgba(243, 255, 247, .98), rgba(181, 239, 202, .94));
  --iqiyi-pill-active: linear-gradient(135deg, rgba(190, 250, 211, .98), rgba(130, 224, 168, .95));
  --iqiyi-pill-border: rgba(34, 197, 94, .22);
}

:root[data-portal-theme="light"] body.front.portal.tpl-iqiyi .portal-top {
  background: rgba(255, 255, 255, .94) !important;
  border-bottom-color: rgba(34, 197, 94, .16) !important;
}

:root[data-portal-theme="light"] body.front.portal.tpl-iqiyi .portal-brand strong {
  color: #102316 !important;
}

:root[data-portal-theme="light"] body.front.portal.tpl-iqiyi .portal-brand small {
  color: rgba(45, 69, 58, .76) !important;
}

:root[data-portal-theme="light"] body.front.portal.tpl-iqiyi .portal-search {
  border-color: rgba(34, 197, 94, .18) !important;
  background: rgba(255, 255, 255, .92) !important;
}

:root[data-portal-theme="light"] body.front.portal.tpl-iqiyi .portal-actions a,
:root[data-portal-theme="light"] body.front.portal.tpl-iqiyi .portal-actions .user-chip,
:root[data-portal-theme="light"] body.front.portal.tpl-iqiyi .theme-toggle,
:root[data-portal-theme="light"] body.front.portal.tpl-iqiyi .portal-nav a,
:root[data-portal-theme="light"] body.front.portal.tpl-iqiyi .nav-dropdown-trigger,
:root[data-portal-theme="light"] body.front.portal.tpl-iqiyi .ghost-btn {
  background: var(--iqiyi-pill-bg) !important;
  color: #102316 !important;
}

:root[data-portal-theme="light"] body.front.portal.tpl-iqiyi .list-hero,
:root[data-portal-theme="light"] body.front.portal.tpl-iqiyi .detail-hero {
  background:
    radial-gradient(circle at 14% 6%, rgba(115, 230, 163, .34), transparent 36%),
    linear-gradient(135deg, rgba(233, 255, 241, .96), rgba(240, 248, 255, .88) 70%) !important;
}

@media (min-width: 1025px) and (max-width: 1440px) {
  body.front.portal.tpl-iqiyi {
    --iqiyi-shell: min(1320px, calc(100vw - 48px));
    --iqiyi-pill-h: 40px;
    --iqiyi-pill-x: 14px;
  }

  body.front.portal.tpl-iqiyi .portal-bar {
    grid-template-columns: minmax(190px, 240px) minmax(360px, 1fr) auto !important;
    gap: 14px !important;
  }

  body.front.portal.tpl-iqiyi .portal-brand strong {
    font-size: 18px !important;
  }

  body.front.portal.tpl-iqiyi .portal-actions a,
  body.front.portal.tpl-iqiyi .portal-actions .user-chip,
  body.front.portal.tpl-iqiyi .theme-toggle,
  body.front.portal.tpl-iqiyi .portal-nav a,
  body.front.portal.tpl-iqiyi .nav-dropdown-trigger,
  body.front.portal.tpl-iqiyi .ghost-btn {
    font-size: 14px !important;
  }
}

@media (min-width: 761px) and (max-width: 1100px) {
  body.front.portal.tpl-iqiyi {
    --iqiyi-shell: calc(100vw - 24px);
    --iqiyi-pill-h: 36px;
    --iqiyi-pill-x: 11px;
  }

  body.front.portal.tpl-iqiyi .portal-bar {
    grid-template-columns: minmax(150px, 220px) minmax(220px, 1fr) auto !important;
    gap: 10px !important;
    min-height: 64px !important;
  }

  body.front.portal.tpl-iqiyi .portal-search {
    grid-column: auto !important;
    order: initial !important;
    width: 100% !important;
    min-width: 220px !important;
  }

  body.front.portal.tpl-iqiyi .portal-brand .brand-mark {
    width: 38px !important;
    height: 38px !important;
  }

  body.front.portal.tpl-iqiyi .portal-brand strong {
    font-size: 17px !important;
  }

  body.front.portal.tpl-iqiyi .portal-brand small {
    max-width: 128px !important;
  }

  body.front.portal.tpl-iqiyi .portal-actions {
    gap: 6px !important;
  }

  body.front.portal.tpl-iqiyi .portal-actions a,
  body.front.portal.tpl-iqiyi .portal-actions .user-chip,
  body.front.portal.tpl-iqiyi .theme-toggle,
  body.front.portal.tpl-iqiyi .language-switcher,
  body.front.portal.tpl-iqiyi .nav-dropdown-trigger {
    height: 36px !important;
    min-height: 36px !important;
    padding-inline: 12px !important;
    font-size: 13px !important;
  }

  body.front.portal.tpl-iqiyi .language-switcher {
    width: auto !important;
    min-width: max-content !important;
  }

  body.front.portal.tpl-iqiyi .theme-toggle {
    width: auto !important;
    min-width: max-content !important;
  }

  body.front.portal.tpl-iqiyi .portal-nav {
    gap: 8px !important;
  }
}

@media (max-width: 760px) {
  body.front.portal.tpl-iqiyi {
    --iqiyi-shell: calc(100vw - 24px);
    --iqiyi-pill-h: 38px;
    --iqiyi-pill-x: 12px;
    padding-bottom: calc(72px + env(safe-area-inset-bottom)) !important;
  }

  body.front.portal.tpl-iqiyi .portal-top {
    position: sticky !important;
    z-index: 70 !important;
  }

  body.front.portal.tpl-iqiyi .portal-bar {
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 8px !important;
    min-height: 0 !important;
    padding: 10px 0 8px !important;
  }

  body.front.portal.tpl-iqiyi .portal-brand .brand-mark {
    width: 38px !important;
    height: 38px !important;
    border-radius: 12px !important;
  }

  body.front.portal.tpl-iqiyi .portal-brand strong {
    max-width: 136px !important;
    overflow: hidden !important;
    font-size: 20px !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  body.front.portal.tpl-iqiyi .portal-brand small {
    display: none !important;
  }

  body.front.portal.tpl-iqiyi .portal-search {
    grid-column: 1 / -1 !important;
    order: 3 !important;
    grid-template-columns: minmax(0, 1fr) 58px !important;
    border-radius: 999px !important;
  }

  body.front.portal.tpl-iqiyi .portal-actions {
    gap: 6px !important;
  }

  body.front.portal.tpl-iqiyi .portal-actions a,
  body.front.portal.tpl-iqiyi .portal-actions .user-chip,
  body.front.portal.tpl-iqiyi .theme-toggle {
    min-width: 48px !important;
    padding: 0 10px !important;
    font-size: 13px !important;
  }

  body.front.portal.tpl-iqiyi .theme-toggle {
    min-width: 72px !important;
  }

  body.front.portal.tpl-iqiyi .portal-nav {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 90 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 !important;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom)) !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    overflow-x: auto !important;
    border-top: 1px solid rgba(74, 222, 128, .16) !important;
    background: rgba(3, 8, 10, .92) !important;
    backdrop-filter: blur(16px) !important;
  }

  body.front.portal.tpl-iqiyi .portal-nav a,
  body.front.portal.tpl-iqiyi .nav-dropdown-trigger {
    flex: 0 0 auto !important;
    min-width: 66px !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 12px !important;
    font-size: 13px !important;
  }

  body.front.portal.tpl-iqiyi .nav-dropdown {
    position: static !important;
  }

  body.front.portal.tpl-iqiyi .nav-mega {
    position: fixed !important;
    left: 12px !important;
    right: 12px !important;
    bottom: calc(68px + env(safe-area-inset-bottom)) !important;
    top: auto !important;
    width: auto !important;
    max-height: min(62vh, 460px) !important;
    overflow-y: auto !important;
    transform: translateY(8px) !important;
  }

  body.front.portal.tpl-iqiyi .nav-dropdown:hover .nav-mega,
  body.front.portal.tpl-iqiyi .nav-dropdown:focus-within .nav-mega,
  body.front.portal.tpl-iqiyi .nav-dropdown.open .nav-mega {
    transform: translateY(0) !important;
  }

  body.front.portal.tpl-iqiyi .nav-mega::before {
    display: none !important;
  }

  body.front.portal.tpl-iqiyi .portal-shell,
  body.front.portal.tpl-iqiyi .page-shell {
    padding-top: 12px !important;
  }

  body.front.portal.tpl-iqiyi .breadcrumb {
    margin-top: 10px !important;
    margin-bottom: 10px !important;
  }
}

/* tpl-iqiyi language switcher: match haoju single-pill dropdown. */
body.front.portal.tpl-iqiyi .language-switcher {
  --lang-switch-line: var(--iqiyi-pill-border);
  --lang-switch-bg: var(--iqiyi-pill-bg);
  --lang-trigger-bg: var(--iqiyi-pill-bg);
  --lang-menu-bg: rgba(5, 19, 15, .98);
  --lang-menu-shadow: 0 16px 34px rgba(0, 0, 0, .28);
  --lang-muted: rgba(218, 235, 225, .82);
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: max-content !important;
  height: var(--iqiyi-pill-h) !important;
  min-height: var(--iqiyi-pill-h) !important;
  padding: 0 !important;
  border: 1px solid var(--lang-switch-line) !important;
  border-radius: 999px !important;
  background: var(--lang-switch-bg) !important;
  color: #092313 !important;
  box-shadow: none !important;
  overflow: visible !important;
  white-space: nowrap !important;
}

body.front.portal.tpl-iqiyi .language-switcher-trigger,
body.front.portal.tpl-iqiyi .language-switcher-option {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 0 !important;
  background: transparent !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  cursor: pointer !important;
}

body.front.portal.tpl-iqiyi .language-switcher-trigger {
  gap: 5px !important;
  width: 100% !important;
  height: calc(var(--iqiyi-pill-h) - 2px) !important;
  min-height: calc(var(--iqiyi-pill-h) - 2px) !important;
  padding: 0 10px !important;
  border-radius: inherit !important;
  color: #092313 !important;
  background: var(--lang-trigger-bg) !important;
}

body.front.portal.tpl-iqiyi .language-switcher-current {
  display: inline-block !important;
  max-width: none !important;
  overflow: hidden !important;
  text-align: center !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
}

body.front.portal.tpl-iqiyi .language-switcher-caret {
  width: 6px !important;
  height: 6px !important;
  border-right: 2px solid currentColor !important;
  border-bottom: 2px solid currentColor !important;
  transform: translateY(-1px) rotate(45deg) !important;
  opacity: .82 !important;
}

body.front.portal.tpl-iqiyi .language-switcher-menu {
  position: absolute !important;
  top: calc(100% + 8px) !important;
  right: 0 !important;
  z-index: 120 !important;
  display: none !important;
  min-width: 120px !important;
  padding: 7px !important;
  border: 1px solid var(--lang-switch-line) !important;
  border-radius: 14px !important;
  background: var(--lang-menu-bg) !important;
  box-shadow: var(--lang-menu-shadow) !important;
}

body.front.portal.tpl-iqiyi .language-switcher.is-open .language-switcher-menu {
  display: grid !important;
  gap: 5px !important;
}

body.front.portal.tpl-iqiyi .language-switcher-option {
  width: 100% !important;
  min-height: 32px !important;
  padding: 0 11px !important;
  border-radius: 10px !important;
  color: var(--lang-muted) !important;
  justify-content: flex-start !important;
  text-align: left !important;
}

body.front.portal.tpl-iqiyi .language-switcher-option.active,
body.front.portal.tpl-iqiyi .language-switcher-option:hover {
  background: var(--iqiyi-pill-active) !important;
  color: #04180d !important;
}

:root[data-portal-theme="light"] body.front.portal.tpl-iqiyi .language-switcher {
  --lang-menu-bg: rgba(248, 255, 250, .98);
  --lang-menu-shadow: 0 14px 28px rgba(46, 142, 73, .14);
  --lang-muted: #2d6f42;
}

@media (max-width: 760px) {
  body.front.portal.tpl-iqiyi .language-switcher {
    width: auto !important;
    min-width: max-content !important;
    height: 38px !important;
    min-height: 38px !important;
  }

  body.front.portal.tpl-iqiyi .language-switcher-trigger {
    height: 36px !important;
    min-height: 36px !important;
    padding: 0 10px !important;
  }

  body.front.portal.tpl-iqiyi .language-switcher-menu {
    top: calc(100% + 7px) !important;
    right: 0 !important;
  }
}

/* tpl-iqiyi density polish: tighter header pills, fuller poster grids, left aligned ranks. */
body.front.portal.tpl-iqiyi {
  --iqiyi-pill-h: 40px;
  --iqiyi-pill-x: 16px;
}

body.front.portal.tpl-iqiyi .portal-bar {
  min-height: 70px !important;
}

body.front.portal.tpl-iqiyi .portal-actions {
  gap: 8px !important;
}

body.front.portal.tpl-iqiyi .portal-actions a,
body.front.portal.tpl-iqiyi .portal-actions .user-chip,
body.front.portal.tpl-iqiyi .theme-toggle,
body.front.portal.tpl-iqiyi .ghost-btn,
body.front.portal.tpl-iqiyi .language-switcher {
  height: var(--iqiyi-pill-h) !important;
  min-height: var(--iqiyi-pill-h) !important;
  font-size: 14px !important;
}

body.front.portal.tpl-iqiyi .theme-toggle {
  min-width: 104px !important;
  padding: 0 12px !important;
}

body.front.portal.tpl-iqiyi .portal-actions .user-chip,
body.front.portal.tpl-iqiyi .ghost-btn {
  min-width: 58px !important;
  padding: 0 14px !important;
}

body.front.portal.tpl-iqiyi .portal-search {
  min-height: 42px !important;
  border-radius: 9px !important;
}

body.front.portal.tpl-iqiyi .portal-search input,
body.front.portal.tpl-iqiyi .portal-search button {
  min-height: 42px !important;
}

body.front.portal.tpl-iqiyi .hero-feature,
body.front.portal.tpl-iqiyi .hero-switcher {
  background:
    radial-gradient(circle at 8% 8%, rgba(39, 222, 104, .20), transparent 34%),
    linear-gradient(135deg, rgba(4, 18, 12, .88), rgba(4, 9, 13, .92) 66%) !important;
}

body.front.portal.tpl-iqiyi .hero-slide {
  background-image:
    radial-gradient(circle at 78% 18%, rgba(91, 214, 232, .18), transparent 34%),
    radial-gradient(circle at 16% 72%, rgba(39, 222, 104, .14), transparent 38%),
    linear-gradient(90deg, rgba(4, 10, 8, .97) 0%, rgba(4, 10, 8, .78) 34%, rgba(4, 10, 8, .34) 72%, rgba(4, 10, 8, .76) 100%),
    linear-gradient(0deg, rgba(4, 10, 8, .95), rgba(4, 10, 8, .16) 56%),
    var(--hero-backdrop) !important;
  background-position: center !important;
  background-size: cover !important;
}

body.front.portal.tpl-iqiyi .portal-content-grid {
  grid-template-columns: minmax(0, 1fr) clamp(286px, 20vw, 336px) !important;
  gap: 18px !important;
  align-items: start !important;
}

body.front.portal.tpl-iqiyi .portal-main-flow .poster-row {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)) !important;
  gap: 18px 16px !important;
  overflow: visible !important;
}

body.front.portal.tpl-iqiyi .portal-main-flow .portal-card {
  min-width: 0 !important;
}

body.front.portal.tpl-iqiyi .portal-main-flow .poster {
  aspect-ratio: 2 / 3 !important;
  width: 100% !important;
}

body.front.portal.tpl-iqiyi .portal-main-flow .portal-card h3 {
  margin-top: 8px !important;
  font-size: 13px !important;
  line-height: 1.32 !important;
}

body.front.portal.tpl-iqiyi .portal-main-flow .portal-card p {
  font-size: 11.5px !important;
}

body.front.portal.tpl-iqiyi .portal-sidebar {
  min-width: 0 !important;
}

body.front.portal.tpl-iqiyi .rank-list li {
  grid-template-columns: 24px minmax(0, 1fr) auto !important;
  justify-items: stretch !important;
  text-align: left !important;
}

body.front.portal.tpl-iqiyi .rank-list a {
  justify-self: start !important;
  width: 100% !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-align: left !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.front.portal.tpl-iqiyi .rank-list span {
  justify-self: end !important;
  text-align: right !important;
}

:root[data-portal-theme="light"] body.front.portal.tpl-iqiyi .hero-feature,
:root[data-portal-theme="light"] body.front.portal.tpl-iqiyi .hero-switcher {
  background:
    radial-gradient(circle at 8% 8%, rgba(74, 222, 128, .26), transparent 34%),
    linear-gradient(135deg, rgba(239, 255, 245, .96), rgba(236, 250, 255, .88) 68%) !important;
}

:root[data-portal-theme="light"] body.front.portal.tpl-iqiyi .hero-slide {
  background-image:
    radial-gradient(circle at 74% 16%, rgba(91, 214, 232, .22), transparent 34%),
    radial-gradient(circle at 18% 78%, rgba(74, 222, 128, .26), transparent 40%),
    linear-gradient(90deg, rgba(244, 255, 248, .96) 0%, rgba(244, 255, 248, .72) 38%, rgba(244, 255, 248, .28) 76%, rgba(244, 255, 248, .78) 100%),
    linear-gradient(0deg, rgba(244, 255, 248, .92), rgba(244, 255, 248, .10) 58%),
    var(--hero-backdrop) !important;
}

@media (min-width: 1500px) {
  body.front.portal.tpl-iqiyi .portal-main-flow .poster-row {
    grid-template-columns: repeat(auto-fill, minmax(126px, 1fr)) !important;
  }
}

@media (max-width: 1200px) {
  body.front.portal.tpl-iqiyi .portal-content-grid {
    grid-template-columns: 1fr !important;
  }

  body.front.portal.tpl-iqiyi .portal-main-flow .poster-row {
    grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  body.front.portal.tpl-iqiyi {
    --iqiyi-pill-h: 34px;
    --iqiyi-pill-x: 10px;
  }

  body.front.portal.tpl-iqiyi .portal-actions {
    gap: 6px !important;
  }

  body.front.portal.tpl-iqiyi .portal-actions a,
  body.front.portal.tpl-iqiyi .portal-actions .user-chip,
  body.front.portal.tpl-iqiyi .theme-toggle,
  body.front.portal.tpl-iqiyi .language-switcher {
    height: 34px !important;
    min-height: 34px !important;
    min-width: 46px !important;
    padding: 0 9px !important;
    font-size: 12.5px !important;
  }

  body.front.portal.tpl-iqiyi .theme-toggle {
    min-width: max-content !important;
  }

  body.front.portal.tpl-iqiyi .language-switcher {
    width: auto !important;
    min-width: max-content !important;
  }

  body.front.portal.tpl-iqiyi .language-switcher-trigger {
    height: 32px !important;
    min-height: 32px !important;
    padding: 0 8px !important;
  }

  body.front.portal.tpl-iqiyi .portal-search,
  body.front.portal.tpl-iqiyi .portal-search input,
  body.front.portal.tpl-iqiyi .portal-search button {
    min-height: 38px !important;
  }

  body.front.portal.tpl-iqiyi .hero-slide {
    background-image:
      radial-gradient(circle at 72% 20%, rgba(91, 214, 232, .16), transparent 36%),
      linear-gradient(90deg, rgba(4, 10, 8, .96), rgba(4, 10, 8, .78)),
      linear-gradient(0deg, rgba(4, 10, 8, .96), rgba(4, 10, 8, .20) 58%),
      var(--hero-backdrop) !important;
  }

  body.front.portal.tpl-iqiyi .portal-main-flow .poster-row {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px 10px !important;
  }

  body.front.portal.tpl-iqiyi .portal-main-flow .portal-card h3 {
    font-size: 12.5px !important;
  }

  body.front.portal.tpl-iqiyi .portal-main-flow .portal-card p {
    font-size: 11px !important;
  }
}

/* tpl-iqiyi action pill ratio: keep theme/login/lang compact across PC and H5. */
body.front.portal.tpl-iqiyi .portal-actions .theme-toggle {
  width: auto !important;
  min-width: max-content !important;
  max-width: none !important;
  gap: 5px !important;
  padding: 0 9px !important;
}

body.front.portal.tpl-iqiyi .portal-actions .theme-toggle .theme-label {
  max-width: none !important;
  min-width: max-content !important;
  overflow: hidden !important;
  font-size: 13px !important;
  text-align: center !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
}

body.front.portal.tpl-iqiyi .portal-actions .theme-toggle .theme-icon {
  flex: 0 0 16px !important;
  width: 16px !important;
  height: 16px !important;
}

body.front.portal.tpl-iqiyi .portal-actions .theme-toggle .theme-switch {
  flex: 0 0 26px !important;
  width: 26px !important;
  height: 16px !important;
}

body.front.portal.tpl-iqiyi .portal-actions .theme-toggle .theme-switch::after {
  width: 12px !important;
  height: 12px !important;
}

@media (max-width: 760px) {
  body.front.portal.tpl-iqiyi .portal-actions .theme-toggle {
    width: auto !important;
    min-width: max-content !important;
    max-width: none !important;
    padding: 0 7px !important;
    gap: 4px !important;
  }

  body.front.portal.tpl-iqiyi .portal-actions .theme-toggle .theme-label {
    max-width: none !important;
    min-width: max-content !important;
    font-size: 12px !important;
  }

  body.front.portal.tpl-iqiyi .portal-actions .theme-toggle .theme-icon {
    flex-basis: 14px !important;
    width: 14px !important;
    height: 14px !important;
  }

  body.front.portal.tpl-iqiyi .portal-actions .theme-toggle .theme-switch {
    flex-basis: 22px !important;
    width: 22px !important;
    height: 14px !important;
  }

body.front.portal.tpl-iqiyi .portal-actions .theme-toggle .theme-switch::after {
    width: 10px !important;
    height: 10px !important;
  }
}

/* tpl-iqiyi final home/nav polish: compact hero, hamburger media menu, softer backdrop edges. */
body.front.portal.tpl-iqiyi {
  --iqiyi-shell: min(1560px, calc(100vw - 96px));
  --iqiyi-inner: min(1480px, 100%);
  --iqiyi-hero-h: clamp(320px, 23vw, 380px);
}

body.front.portal.tpl-iqiyi .hot-searches,
body.front.portal.tpl-iqiyi .portal-hero,
body.front.portal.tpl-iqiyi .channel-cloud,
body.front.portal.tpl-iqiyi .portal-content-grid {
  width: var(--iqiyi-inner) !important;
  max-width: var(--iqiyi-inner) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.front.portal.tpl-iqiyi .portal-brand {
  justify-self: start !important;
}

body.front.portal.tpl-iqiyi .portal-brand .brand-mark {
  position: relative !important;
  overflow: hidden !important;
  border: 1px solid rgba(107, 246, 157, .32) !important;
  background:
    radial-gradient(circle at 30% 24%, rgba(231, 255, 236, .95), transparent 20%),
    linear-gradient(145deg, rgba(42, 235, 104, .92), rgba(20, 117, 74, .94)) !important;
}

body.front.portal.tpl-iqiyi .portal-brand .brand-mark img {
  opacity: 0 !important;
}

body.front.portal.tpl-iqiyi .portal-brand .brand-mark::before {
  content: "" !important;
  position: absolute !important;
  inset: 10px 9px 10px 12px !important;
  border-radius: 4px !important;
  background: linear-gradient(135deg, rgba(232, 255, 236, .98), rgba(142, 245, 176, .92)) !important;
  clip-path: polygon(0 0, 76% 0, 76% 34%, 100% 50%, 76% 66%, 76% 100%, 0 100%) !important;
  box-shadow: inset 0 0 0 2px rgba(5, 46, 25, .26) !important;
}

body.front.portal.tpl-iqiyi .portal-brand .brand-mark::after {
  content: "" !important;
  position: absolute !important;
  left: 14px !important;
  right: 17px !important;
  top: 17px !important;
  height: 3px !important;
  border-radius: 999px !important;
  background: rgba(6, 50, 28, .7) !important;
  box-shadow: 0 8px 0 rgba(6, 50, 28, .58) !important;
}

body.front.portal.tpl-iqiyi .nav-dropdown-trigger {
  flex-direction: column !important;
  gap: 4px !important;
  width: var(--iqiyi-pill-h) !important;
  min-width: var(--iqiyi-pill-h) !important;
  padding: 0 !important;
  font-size: 0 !important;
}

body.front.portal.tpl-iqiyi .nav-dropdown-trigger::before,
body.front.portal.tpl-iqiyi .nav-dropdown-trigger::after,
body.front.portal.tpl-iqiyi .nav-dropdown-trigger span {
  content: "" !important;
  display: block !important;
  height: 2px !important;
  min-height: 2px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: currentColor !important;
  opacity: .94 !important;
  transform: none !important;
}

body.front.portal.tpl-iqiyi .nav-dropdown-trigger::before {
  width: 18px !important;
}

body.front.portal.tpl-iqiyi .nav-dropdown-trigger span {
  width: 14px !important;
}

body.front.portal.tpl-iqiyi .nav-dropdown-trigger::after {
  width: 10px !important;
}

body.front.portal.tpl-iqiyi .nav-mega {
  width: min(540px, calc(100vw - 72px)) !important;
  max-height: min(62vh, 500px) !important;
  overflow: auto !important;
  padding: 16px !important;
  border-color: rgba(74, 222, 128, .24) !important;
  background:
    radial-gradient(circle at 12% 4%, rgba(43, 226, 104, .22), transparent 38%),
    linear-gradient(145deg, rgba(3, 22, 14, .97), rgba(3, 11, 14, .98)) !important;
}

body.front.portal.tpl-iqiyi .nav-mega-grid {
  grid-template-columns: 124px minmax(0, 1fr) !important;
  gap: 14px !important;
}

body.front.portal.tpl-iqiyi .nav-mega-primary,
body.front.portal.tpl-iqiyi .nav-mega-genres {
  gap: 8px !important;
}

body.front.portal.tpl-iqiyi .nav-mega-genres {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

body.front.portal.tpl-iqiyi .nav-mega a {
  min-height: 38px !important;
  padding: 0 14px !important;
  text-align: center !important;
}

body.front.portal.tpl-iqiyi .hero-feature,
body.front.portal.tpl-iqiyi .hero-switcher {
  min-height: var(--iqiyi-hero-h) !important;
  max-height: none !important;
  border-radius: 18px !important;
}

body.front.portal.tpl-iqiyi .hero-slide {
  position: relative !important;
  min-height: var(--iqiyi-hero-h) !important;
  padding: 0 !important;
  overflow: hidden !important;
  background-image:
    linear-gradient(90deg, rgba(2, 9, 7, .98) 0%, rgba(2, 9, 7, .84) 34%, rgba(2, 9, 7, .52) 72%, rgba(2, 9, 7, .88) 100%) !important;
}

body.front.portal.tpl-iqiyi .hero-slide::before {
  content: "" !important;
  position: absolute !important;
  inset: -24px !important;
  z-index: 0 !important;
  background-image: var(--hero-backdrop) !important;
  background-position: center !important;
  background-size: cover !important;
  filter: blur(14px) saturate(.9) brightness(.62) !important;
  opacity: .55 !important;
  transform: scale(1.05) !important;
  pointer-events: none !important;
}

body.front.portal.tpl-iqiyi .hero-slide::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  background:
    radial-gradient(circle at 10% 82%, rgba(34, 215, 97, .24), transparent 38%),
    linear-gradient(90deg, rgba(2, 9, 7, .98) 0%, rgba(2, 9, 7, .82) 38%, rgba(2, 9, 7, .48) 72%, rgba(2, 9, 7, .86) 100%),
    linear-gradient(0deg, rgba(2, 9, 7, .92), rgba(2, 9, 7, .30) 62%) !important;
  pointer-events: none !important;
}

body.front.portal.tpl-iqiyi .hero-copy,
body.front.portal.tpl-iqiyi .hero-dots {
  position: relative !important;
  z-index: 2 !important;
}

body.front.portal.tpl-iqiyi .hero-switcher {
  position: relative !important;
  overflow: hidden !important;
}

body.front.portal.tpl-iqiyi .hero-switcher-tabs {
  position: absolute !important;
  top: 18px !important;
  left: 24px !important;
  z-index: 3 !important;
  display: inline-flex !important;
  align-items: center !important;
  width: auto !important;
  max-width: calc(100% - 48px) !important;
  margin: 0 !important;
  padding: 4px !important;
  border-color: rgba(118, 232, 158, .22) !important;
  background: rgba(7, 24, 15, .58) !important;
  box-shadow: none !important;
}

body.front.portal.tpl-iqiyi .hero-switcher-tabs button {
  box-sizing: border-box !important;
  min-width: max-content !important;
  min-height: 32px !important;
  padding: 0 18px !important;
  font-size: 13px !important;
  white-space: nowrap !important;
}

body.front.portal.tpl-iqiyi .hero-switcher-panels,
body.front.portal.tpl-iqiyi .hero-panel {
  min-height: var(--iqiyi-hero-h) !important;
}

body.front.portal.tpl-iqiyi .hero-copy {
  align-items: flex-start !important;
  box-sizing: border-box !important;
  justify-content: center !important;
  height: var(--iqiyi-hero-h) !important;
  min-height: 0 !important;
  overflow: hidden !important;
  padding: clamp(66px, 4vw, 82px) clamp(30px, 4vw, 64px) clamp(46px, 3vw, 58px) !important;
  text-align: left !important;
}

body.front.portal.tpl-iqiyi .hero-copy h1,
body.front.portal.tpl-iqiyi .hero-copy p {
  max-width: min(760px, 64vw) !important;
}

body.front.portal.tpl-iqiyi .focus-title-row,
body.front.portal.tpl-iqiyi .focus-list li,
body.front.portal.tpl-iqiyi .focus-list a {
  justify-items: start !important;
  text-align: left !important;
}

body.front.portal.tpl-iqiyi .focus-list li {
  align-items: start !important;
}

body.front.portal.tpl-iqiyi .focus-list a {
  width: 100% !important;
  justify-self: start !important;
}

body.front.portal.tpl-iqiyi.catalog-body .list-hero,
body.front.portal.tpl-iqiyi .filter-panel {
  border-radius: 24px !important;
  border-color: rgba(74, 222, 128, .18) !important;
  background:
    radial-gradient(circle at 10% 6%, rgba(38, 220, 106, .18), transparent 36%),
    linear-gradient(145deg, rgba(4, 25, 16, .82), rgba(5, 12, 18, .94) 72%) !important;
}

body.front.portal.tpl-iqiyi.catalog-body .list-hero {
  min-height: 0 !important;
  padding: clamp(22px, 3vw, 38px) !important;
}

body.front.portal.tpl-iqiyi .filter-panel {
  padding: clamp(16px, 2vw, 26px) !important;
}

:root[data-portal-theme="light"] body.front.portal.tpl-iqiyi .nav-mega {
  background:
    radial-gradient(circle at 12% 4%, rgba(91, 222, 139, .24), transparent 38%),
    linear-gradient(145deg, rgba(246, 255, 249, .98), rgba(236, 250, 255, .96)) !important;
}

:root[data-portal-theme="light"] body.front.portal.tpl-iqiyi .hero-slide {
  background-image:
    linear-gradient(90deg, rgba(246, 255, 249, .98) 0%, rgba(246, 255, 249, .82) 40%, rgba(246, 255, 249, .46) 76%, rgba(246, 255, 249, .88) 100%) !important;
}

:root[data-portal-theme="light"] body.front.portal.tpl-iqiyi .hero-slide::before {
  filter: blur(15px) saturate(.82) brightness(1.04) !important;
  opacity: .34 !important;
}

:root[data-portal-theme="light"] body.front.portal.tpl-iqiyi .hero-slide::after {
  background:
    radial-gradient(circle at 10% 82%, rgba(74, 222, 128, .26), transparent 38%),
    linear-gradient(90deg, rgba(246, 255, 249, .98) 0%, rgba(246, 255, 249, .86) 40%, rgba(246, 255, 249, .56) 76%, rgba(246, 255, 249, .90) 100%),
    linear-gradient(0deg, rgba(246, 255, 249, .92), rgba(246, 255, 249, .24) 62%) !important;
}

:root[data-portal-theme="light"] body.front.portal.tpl-iqiyi .hero-copy h1,
:root[data-portal-theme="light"] body.front.portal.tpl-iqiyi .hero-copy p,
:root[data-portal-theme="light"] body.front.portal.tpl-iqiyi .hero-copy .eyebrow {
  color: #102316 !important;
}

:root[data-portal-theme="light"] body.front.portal.tpl-iqiyi.catalog-body .list-hero,
:root[data-portal-theme="light"] body.front.portal.tpl-iqiyi .filter-panel {
  background:
    radial-gradient(circle at 10% 6%, rgba(92, 229, 145, .28), transparent 36%),
    linear-gradient(145deg, rgba(246, 255, 249, .98), rgba(237, 249, 255, .94) 72%) !important;
}

/* tpl-iqiyi gradient edge blend: keep colorful panels from reading as hard boxes. */
body.front.portal.tpl-iqiyi :where(.hero-feature, .hero-switcher, .hero-slide, .focus-panel, .channel-cloud, .channel-grid a, .section-block, .rank-panel, .catalog-body .list-hero, .detail-hero, .filter-panel, .nav-mega) {
  border-color: rgba(74, 222, 128, .14) !important;
  box-shadow: inset 0 0 56px 14px var(--portal-bg) !important;
}

:root[data-portal-theme="light"] body.front.portal.tpl-iqiyi :where(.hero-feature, .hero-switcher, .hero-slide, .focus-panel, .channel-cloud, .channel-grid a, .section-block, .rank-panel, .catalog-body .list-hero, .detail-hero, .filter-panel, .nav-mega) {
  border-color: rgba(52, 168, 98, .14) !important;
  box-shadow: inset 0 0 56px 14px var(--portal-bg) !important;
}

@media (max-width: 760px) {
  body.front.portal.tpl-iqiyi .hot-searches {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
  }

  body.front.portal.tpl-iqiyi .hot-searches::-webkit-scrollbar {
    display: none !important;
  }

  body.front.portal.tpl-iqiyi .hot-searches a {
    flex: 0 0 auto !important;
    min-width: max-content !important;
    max-width: none !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
  }
}

@media (min-width: 1600px) {
  body.front.portal.tpl-iqiyi {
    --iqiyi-shell: min(1500px, calc(100vw - 120px));
    --iqiyi-inner: min(1440px, 100%);
  }
}

@media (max-width: 760px) {
  body.front.portal.tpl-iqiyi {
    --iqiyi-shell: calc(100vw - 20px);
    --iqiyi-inner: 100%;
    --iqiyi-hero-h: 390px;
  }

  body.front.portal.tpl-iqiyi .portal-brand .brand-mark {
    width: 36px !important;
    height: 36px !important;
  }

  body.front.portal.tpl-iqiyi .nav-dropdown-trigger {
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
  }

  body.front.portal.tpl-iqiyi .nav-mega {
    left: 10px !important;
    right: 10px !important;
    bottom: calc(62px + env(safe-area-inset-bottom)) !important;
    width: auto !important;
    max-height: min(56vh, 390px) !important;
    padding: 12px !important;
  }

  body.front.portal.tpl-iqiyi .nav-mega-grid {
    grid-template-columns: 96px minmax(0, 1fr) !important;
    gap: 10px !important;
  }

  body.front.portal.tpl-iqiyi .nav-mega-genres {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.front.portal.tpl-iqiyi .nav-mega a {
    min-height: 34px !important;
    padding: 0 10px !important;
    font-size: 12.5px !important;
  }

  body.front.portal.tpl-iqiyi .hero-copy h1,
  body.front.portal.tpl-iqiyi .hero-copy p {
    max-width: 100% !important;
  }

  body.front.portal.tpl-iqiyi .hero-slide::before {
    filter: blur(12px) saturate(.9) brightness(.58) !important;
  }

  body.front.portal.tpl-iqiyi.catalog-body .list-hero {
    padding: 18px !important;
  }

  body.front.portal.tpl-iqiyi .filter-panel {
    padding: 12px !important;
  }
}

/* US1 tpl-iqiyi header lock: brand left, search center, controls right, menu as icon. */
body.front.portal.tpl-iqiyi .portal-top {
  overflow: visible !important;
}

body.front.portal.tpl-iqiyi .portal-bar,
body.front.portal.tpl-iqiyi .portal-nav,
body.front.portal.tpl-iqiyi .portal-shell {
  width: var(--iqiyi-shell) !important;
  max-width: var(--iqiyi-shell) !important;
  margin-right: auto !important;
  margin-left: auto !important;
}

body.front.portal.tpl-iqiyi .portal-bar {
  display: grid !important;
  grid-template-columns: minmax(220px, 280px) minmax(320px, 1fr) minmax(260px, auto) !important;
  align-items: center !important;
  gap: 18px !important;
  padding: 14px 0 10px !important;
}

body.front.portal.tpl-iqiyi .nav-menu-toggle {
  display: none !important;
}

body.front.portal.tpl-iqiyi .portal-brand {
  grid-column: 1 !important;
  justify-self: start !important;
}

body.front.portal.tpl-iqiyi .portal-search {
  grid-column: 2 !important;
  justify-self: center !important;
  width: min(100%, 620px) !important;
}

body.front.portal.tpl-iqiyi .portal-actions {
  grid-column: 3 !important;
  justify-self: end !important;
  width: auto !important;
}

body.front.portal.tpl-iqiyi .portal-nav {
  display: flex !important;
  justify-content: flex-start !important;
  padding: 8px 0 14px !important;
}

body.front.portal.tpl-iqiyi .nav-dropdown-trigger {
  width: 44px !important;
  min-width: 44px !important;
  padding: 0 !important;
  font-size: 0 !important;
}

body.front.portal.tpl-iqiyi .nav-dropdown-trigger::before,
body.front.portal.tpl-iqiyi .nav-dropdown-trigger::after,
body.front.portal.tpl-iqiyi .nav-dropdown-trigger span {
  display: block !important;
  height: 2px !important;
  border-radius: 999px !important;
  background: currentColor !important;
  content: "" !important;
}

body.front.portal.tpl-iqiyi .nav-dropdown-trigger::before {
  width: 18px !important;
  transform: translateX(-1px);
}

body.front.portal.tpl-iqiyi .nav-dropdown-trigger span {
  width: 14px !important;
  margin: 4px 0 !important;
  transform: translateX(-3px);
}

body.front.portal.tpl-iqiyi .nav-dropdown-trigger::after {
  width: 10px !important;
  transform: translateX(-5px);
}

body.front.portal.tpl-iqiyi .nav-mega {
  max-height: min(68vh, 620px) !important;
  overflow-y: auto !important;
}

@media (max-width: 1180px) {
  body.front.portal.tpl-iqiyi .portal-bar {
    grid-template-columns: minmax(132px, 200px) minmax(160px, 1fr) max-content !important;
    gap: 8px !important;
  }

  body.front.portal.tpl-iqiyi .portal-search {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 520px !important;
  }

  body.front.portal.tpl-iqiyi .portal-search input {
    min-width: 0 !important;
  }

  body.front.portal.tpl-iqiyi .portal-brand small {
    max-width: 92px !important;
  }

  body.front.portal.tpl-iqiyi .portal-actions {
    min-width: max-content !important;
    gap: 5px !important;
  }

  body.front.portal.tpl-iqiyi .portal-actions :where(a, .user-chip, .theme-toggle, .language-switcher) {
    min-width: max-content !important;
    padding-inline: 8px !important;
    font-size: 12.5px !important;
    white-space: nowrap !important;
  }

  body.front.portal.tpl-iqiyi .portal-actions > a[href="#latest-heading"] {
    display: none !important;
  }
}

@media (max-width: 760px) {
  body.front.portal.tpl-iqiyi .portal-bar,
  body.front.portal.tpl-iqiyi .portal-nav,
  body.front.portal.tpl-iqiyi .portal-shell {
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
  }

  body.front.portal.tpl-iqiyi .portal-bar {
    grid-template-columns: minmax(0, 1fr) auto !important;
    padding: 10px 0 8px !important;
  }

  body.front.portal.tpl-iqiyi .portal-brand {
    grid-column: 1 !important;
  }

  body.front.portal.tpl-iqiyi .portal-actions {
    grid-column: 2 !important;
  }

  body.front.portal.tpl-iqiyi .portal-search {
    grid-column: 1 / -1 !important;
    justify-self: stretch !important;
    width: 100% !important;
  }

  body.front.portal.tpl-iqiyi .portal-nav {
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
  }
}

/* US1 tpl-iqiyi H5 header: search icon and full category menu live in the top bar. */
body.front.portal.tpl-iqiyi .portal-search-chip,
body.front.portal.tpl-iqiyi .portal-mobile-menu {
  display: none !important;
}

body.front.portal.tpl-iqiyi .portal-actions > a[href="#latest-heading"],
body.front.portal.tpl-iqiyi .portal-nav > a[href="#latest-heading"] {
  display: none !important;
}

body.front.portal .portal-direct-link {
  display: none !important;
}

/* tpl-iqiyi PC finish: direct channel nav, shorter focus area, no heavy text shadows. */
@media (min-width: 761px) {
  body.front.portal.tpl-iqiyi {
    --iqiyi-hero-h: clamp(320px, 23vw, 380px);
  }

  body.front.portal.tpl-iqiyi .portal-nav {
    gap: 10px !important;
    padding: 6px 0 12px !important;
  }

  body.front.portal.tpl-iqiyi .portal-nav .nav-dropdown {
    display: none !important;
  }

  body.front.portal.tpl-iqiyi .portal-nav .portal-direct-link {
    display: inline-flex !important;
  }

  body.front.portal.tpl-iqiyi .hero-feature,
  body.front.portal.tpl-iqiyi .hero-switcher,
  body.front.portal.tpl-iqiyi .hero-slide,
  body.front.portal.tpl-iqiyi .focus-panel {
    min-height: var(--iqiyi-hero-h) !important;
    max-height: var(--iqiyi-hero-h) !important;
  }

  body.front.portal.tpl-iqiyi .hero-copy {
    padding: clamp(18px, 2vw, 28px) !important;
    max-width: min(720px, 58vw) !important;
  }

  body.front.portal.tpl-iqiyi .hero-copy h1 {
    margin-bottom: 10px !important;
    font-size: clamp(24px, 2.15vw, 34px) !important;
    line-height: 1.16 !important;
  }

  body.front.portal.tpl-iqiyi .hero-copy p {
    font-size: clamp(13px, .92vw, 15px) !important;
    line-height: 1.58 !important;
  }

  body.front.portal.tpl-iqiyi .focus-panel {
    overflow: hidden !important;
  }
}

@media (max-width: 760px) {
  body.front.portal.tpl-iqiyi {
    --iqiyi-shell: calc(100vw - 16px);
    --iqiyi-inner: 100%;
    padding-bottom: env(safe-area-inset-bottom) !important;
  }

  body.front.portal.tpl-iqiyi .portal-top {
    position: sticky !important;
    top: 0 !important;
    z-index: 120 !important;
    overflow: visible !important;
  }

  body.front.portal.tpl-iqiyi .portal-bar {
    width: var(--iqiyi-shell) !important;
    max-width: var(--iqiyi-shell) !important;
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    gap: 6px !important;
    min-height: 0 !important;
    padding: 6px 0 !important;
  }

  body.front.portal.tpl-iqiyi .nav-menu-toggle {
    display: inline-grid !important;
    grid-column: 1 !important;
    place-items: center !important;
    align-content: center !important;
    width: 34px !important;
    min-width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 !important;
    border: 1px solid rgba(86, 213, 128, .32) !important;
    border-radius: 999px !important;
    color: #123421 !important;
    background: linear-gradient(135deg, rgba(235, 255, 241, .96), rgba(165, 237, 187, .9)) !important;
    box-shadow: 0 8px 22px rgba(25, 151, 83, .16) !important;
  }

  body.front.portal.tpl-iqiyi .nav-menu-toggle span {
    display: block !important;
    height: 2px !important;
    margin: 2px 0 !important;
    border-radius: 999px !important;
    background: currentColor !important;
  }

  body.front.portal.tpl-iqiyi .nav-menu-toggle span:nth-child(1) {
    width: 18px !important;
    transform: translateX(-1px) !important;
  }

  body.front.portal.tpl-iqiyi .nav-menu-toggle span:nth-child(2) {
    width: 14px !important;
    transform: translateX(-3px) !important;
  }

  body.front.portal.tpl-iqiyi .nav-menu-toggle span:nth-child(3) {
    width: 10px !important;
    transform: translateX(-5px) !important;
  }

  :root[data-portal-theme="dark"] body.front.portal.tpl-iqiyi .nav-menu-toggle {
    color: #dfffea !important;
    background: linear-gradient(135deg, rgba(9, 49, 29, .94), rgba(5, 23, 23, .96)) !important;
    box-shadow: 0 10px 24px rgba(14, 166, 85, .14) !important;
  }

  body.front.portal.tpl-iqiyi .portal-brand {
    grid-column: 2 !important;
    gap: 6px !important;
    min-width: 0 !important;
  }

  body.front.portal.tpl-iqiyi .portal-brand .brand-mark {
    width: 32px !important;
    height: 32px !important;
    border-radius: 10px !important;
  }

  body.front.portal.tpl-iqiyi .portal-brand > span:not(.brand-mark) {
    min-width: 0 !important;
  }

  body.front.portal.tpl-iqiyi .portal-brand strong {
    max-width: 96px !important;
    font-size: 17px !important;
    line-height: 1 !important;
  }

  body.front.portal.tpl-iqiyi .portal-search {
    position: absolute !important;
    width: 1px !important;
    min-width: 1px !important;
    height: 1px !important;
    min-height: 1px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  body.front.portal.tpl-iqiyi .portal-actions {
    display: flex !important;
    grid-column: 3 !important;
    align-items: center !important;
    justify-self: end !important;
    gap: 5px !important;
    min-width: 0 !important;
    overflow: visible !important;
  }

  body.front.portal.tpl-iqiyi .portal-search-chip,
  body.front.portal.tpl-iqiyi .portal-mobile-menu {
    display: inline-flex !important;
    flex: 0 0 auto !important;
  }

  body.front.portal.tpl-iqiyi .portal-mobile-menu {
    display: none !important;
  }

  body.front.portal.tpl-iqiyi .portal-search-chip,
  body.front.portal.tpl-iqiyi .portal-mobile-menu .nav-dropdown-trigger {
    width: 34px !important;
    min-width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 !important;
  }

  body.front.portal.tpl-iqiyi .portal-search-chip span[aria-hidden] {
    position: relative !important;
    width: 13px !important;
    height: 13px !important;
    border: 2px solid currentColor !important;
    border-radius: 999px !important;
  }

  body.front.portal.tpl-iqiyi .portal-search-chip span[aria-hidden]::after {
    content: "" !important;
    position: absolute !important;
    right: -6px !important;
    bottom: -4px !important;
    width: 7px !important;
    height: 2px !important;
    border-radius: 999px !important;
    background: currentColor !important;
    transform: rotate(45deg) !important;
  }

  body.front.portal.tpl-iqiyi .portal-actions .theme-toggle {
    width: auto !important;
    min-width: max-content !important;
    max-width: none !important;
    height: 32px !important;
    min-height: 32px !important;
    padding: 0 8px !important;
    font-size: 12px !important;
  }

  body.front.portal.tpl-iqiyi .language-switcher,
  body.front.portal.tpl-iqiyi .portal-actions .user-chip {
    width: auto !important;
    min-width: max-content !important;
    max-width: none !important;
    height: 32px !important;
    min-height: 32px !important;
    padding: 0 8px !important;
    font-size: 12px !important;
    white-space: nowrap !important;
  }

  body.front.portal.tpl-iqiyi .portal-nav {
    display: none !important;
  }

  body.front.portal.tpl-iqiyi .portal-nav.nav-open,
  body.front.portal.tpl-iqiyi .portal-nav.is-open {
    position: fixed !important;
    top: 48px !important;
    right: 8px !important;
    left: 8px !important;
    z-index: 125 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    width: auto !important;
    max-width: none !important;
    max-height: min(64vh, 460px) !important;
    padding: 12px !important;
    overflow-y: auto !important;
    border: 1px solid rgba(75, 221, 128, .22) !important;
    border-radius: 18px !important;
    background:
      radial-gradient(circle at 10% 0%, rgba(64, 228, 121, .20), transparent 32%),
      linear-gradient(145deg, rgba(3, 24, 15, .97), rgba(3, 12, 15, .98)) !important;
    box-shadow: 0 20px 42px rgba(0, 0, 0, .34) !important;
  }

  :root[data-portal-theme="light"] body.front.portal.tpl-iqiyi .portal-nav.nav-open,
  :root[data-portal-theme="light"] body.front.portal.tpl-iqiyi .portal-nav.is-open {
    background:
      radial-gradient(circle at 10% 0%, rgba(105, 231, 153, .28), transparent 34%),
      linear-gradient(145deg, rgba(248, 255, 250, .98), rgba(236, 249, 255, .96)) !important;
    box-shadow: 0 20px 42px rgba(47, 125, 91, .16) !important;
  }

  body.front.portal.tpl-iqiyi .portal-nav.nav-open .portal-direct-link,
  body.front.portal.tpl-iqiyi .portal-nav.is-open .portal-direct-link,
  body.front.portal.tpl-iqiyi .portal-nav.nav-open > a,
  body.front.portal.tpl-iqiyi .portal-nav.is-open > a {
    display: inline-flex !important;
    min-width: 78px !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 14px !important;
    font-size: 13px !important;
  }

  body.front.portal.tpl-iqiyi .portal-mobile-menu {
    position: relative !important;
    z-index: 130 !important;
  }

  body.front.portal.tpl-iqiyi .portal-mobile-menu .nav-mega {
    position: fixed !important;
    top: 52px !important;
    right: 8px !important;
    left: 8px !important;
    bottom: auto !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: auto !important;
    max-width: none !important;
    max-height: min(72vh, 520px) !important;
    min-height: 0 !important;
    padding: 12px !important;
    overflow-y: auto !important;
    border-radius: 18px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(-6px) !important;
  }

  body.front.portal.tpl-iqiyi .portal-mobile-menu.open .nav-mega,
  body.front.portal.tpl-iqiyi .portal-mobile-menu:focus-within .nav-mega {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
  }

  body.front.portal.tpl-iqiyi .portal-mobile-menu .nav-mega::before {
    display: none !important;
  }

  body.front.portal.tpl-iqiyi .portal-mobile-menu .nav-mega-main {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
    padding: 0 0 10px !important;
    border-bottom: 1px solid rgba(74, 222, 128, .14) !important;
  }

  body.front.portal.tpl-iqiyi .portal-mobile-menu .nav-mega-genres {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    padding-top: 10px !important;
  }

  body.front.portal.tpl-iqiyi .portal-mobile-menu .nav-mega-genres section div {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
  }

  body.front.portal.tpl-iqiyi .portal-mobile-menu .nav-mega a {
    min-height: 30px !important;
    padding: 0 9px !important;
    font-size: 12px !important;
  }

  body.front.portal.tpl-iqiyi .portal-mobile-menu .nav-mega-title {
    justify-content: flex-start !important;
    min-height: 24px !important;
    padding: 0 !important;
    color: rgba(174, 245, 198, .92) !important;
    background: transparent !important;
  }

  :root[data-portal-theme="light"] body.front.portal.tpl-iqiyi .portal-mobile-menu .nav-mega-title {
    color: #247b45 !important;
  }

  body.front.portal.tpl-iqiyi .portal-main-flow .channel-section .poster-row {
    grid-template-columns: repeat(2, minmax(0, 150px)) !important;
    justify-content: center !important;
    gap: 14px 12px !important;
  }

  body.front.portal.tpl-iqiyi .portal-main-flow .channel-section .portal-card:nth-child(n+7) {
    display: none !important;
  }
}

/* tpl-iqiyi mobile header final sizing: keep tools in the top bar without logo overlap. */
@media (min-width: 761px) {
  body.front.portal.tpl-iqiyi {
    --iqiyi-hero-h: clamp(320px, 23vw, 380px);
  }

  body.front.portal.tpl-iqiyi .portal-actions .portal-search-chip,
  body.front.portal.tpl-iqiyi .portal-actions .portal-mobile-menu {
    display: none !important;
  }

  body.front.portal.tpl-iqiyi .hero-copy h1 {
    font-size: clamp(22px, 1.9vw, 30px) !important;
  }

  body.front.portal.tpl-iqiyi .hero-copy p {
    max-height: 4.8em !important;
    overflow: hidden !important;
    font-size: clamp(12.5px, .82vw, 14px) !important;
  }
}

@media (max-width: 760px) {
  body.front.portal.tpl-iqiyi {
    --iqiyi-hero-h: clamp(286px, 72vw, 328px);
  }

  body.front.portal.tpl-iqiyi .portal-bar {
    grid-template-columns: 32px minmax(86px, 1fr) auto !important;
    gap: 5px !important;
    padding: 5px 0 !important;
  }

  body.front.portal.tpl-iqiyi .nav-menu-toggle {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 32px !important;
    min-width: 32px !important;
    max-width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
  }

  body.front.portal.tpl-iqiyi .portal-brand {
    grid-column: 2 !important;
    grid-row: 1 !important;
    gap: 6px !important;
  }

  body.front.portal.tpl-iqiyi .portal-brand .brand-mark {
    width: 30px !important;
    height: 30px !important;
    border-radius: 10px !important;
  }

  body.front.portal.tpl-iqiyi .portal-brand strong {
    max-width: 88px !important;
    font-size: 16px !important;
    line-height: 1 !important;
  }

  body.front.portal.tpl-iqiyi .portal-actions {
    grid-column: 3 !important;
    grid-row: 1 !important;
    gap: 4px !important;
  }

  body.front.portal.tpl-iqiyi .portal-actions .portal-search-chip,
  body.front.portal.tpl-iqiyi .portal-mobile-menu .nav-dropdown-trigger,
  body.front.portal.tpl-iqiyi .portal-actions .language-switcher,
  body.front.portal.tpl-iqiyi .portal-actions .user-chip,
  body.front.portal.tpl-iqiyi .portal-actions .theme-toggle {
    box-sizing: border-box !important;
    flex: 0 0 auto !important;
    padding: 0 !important;
  }

  body.front.portal.tpl-iqiyi .portal-actions .portal-search-chip,
  body.front.portal.tpl-iqiyi .portal-mobile-menu .nav-dropdown-trigger {
    width: 32px !important;
    min-width: 32px !important;
    max-width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
  }

  body.front.portal.tpl-iqiyi .portal-actions .portal-search-chip span[aria-hidden] {
    width: 12px !important;
    height: 12px !important;
  }

  body.front.portal.tpl-iqiyi .portal-actions .theme-toggle {
    width: auto !important;
    min-width: max-content !important;
    max-width: none !important;
    height: 30px !important;
    min-height: 30px !important;
    max-height: 30px !important;
    gap: 3px !important;
    padding: 0 8px !important;
    font-size: 11.5px !important;
  }

  body.front.portal.tpl-iqiyi .portal-actions .theme-toggle .theme-label {
    min-width: max-content !important;
    max-width: none !important;
    overflow: visible !important;
    white-space: nowrap !important;
  }

  body.front.portal.tpl-iqiyi .language-switcher,
  body.front.portal.tpl-iqiyi .portal-actions .user-chip {
    width: auto !important;
    min-width: max-content !important;
    max-width: none !important;
    height: 30px !important;
    min-height: 30px !important;
    max-height: 30px !important;
    padding: 0 8px !important;
    font-size: 11.5px !important;
    white-space: nowrap !important;
  }

  body.front.portal.tpl-iqiyi .portal-nav.nav-open,
  body.front.portal.tpl-iqiyi .portal-nav.is-open {
    top: 44px !important;
    max-height: min(62vh, 420px) !important;
    padding: 10px !important;
    gap: 7px !important;
  }

  body.front.portal.tpl-iqiyi .portal-nav.nav-open .nav-dropdown,
  body.front.portal.tpl-iqiyi .portal-nav.is-open .nav-dropdown {
    display: block !important;
    flex: 1 0 100% !important;
    width: 100% !important;
    min-width: 100% !important;
    margin-top: 4px !important;
    padding-top: 8px !important;
    border-top: 1px solid rgba(91, 220, 137, .16) !important;
  }

  body.front.portal.tpl-iqiyi .portal-nav.nav-open .nav-dropdown-trigger,
  body.front.portal.tpl-iqiyi .portal-nav.is-open .nav-dropdown-trigger {
    display: none !important;
  }

  body.front.portal.tpl-iqiyi .portal-nav.nav-open .nav-mega,
  body.front.portal.tpl-iqiyi .portal-nav.is-open .nav-mega {
    position: static !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
    max-width: none !important;
    max-height: none !important;
    min-height: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    opacity: 1 !important;
    background: transparent !important;
    box-shadow: none !important;
    pointer-events: auto !important;
    transform: none !important;
  }

  body.front.portal.tpl-iqiyi .portal-nav.nav-open .nav-mega-main,
  body.front.portal.tpl-iqiyi .portal-nav.is-open .nav-mega-main {
    display: none !important;
  }

  body.front.portal.tpl-iqiyi .portal-nav.nav-open .nav-mega-genres,
  body.front.portal.tpl-iqiyi .portal-nav.is-open .nav-mega-genres {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    padding: 0 !important;
  }

  body.front.portal.tpl-iqiyi .portal-nav.nav-open .nav-mega-genres section,
  body.front.portal.tpl-iqiyi .portal-nav.is-open .nav-mega-genres section {
    min-width: 0 !important;
  }

  body.front.portal.tpl-iqiyi .portal-nav.nav-open .nav-mega-title,
  body.front.portal.tpl-iqiyi .portal-nav.is-open .nav-mega-title {
    justify-content: flex-start !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 22px !important;
    padding: 0 2px !important;
    color: rgba(180, 246, 201, .92) !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body.front.portal.tpl-iqiyi .portal-nav.nav-open .nav-mega-genres section div,
  body.front.portal.tpl-iqiyi .portal-nav.is-open .nav-mega-genres section div {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
  }

  body.front.portal.tpl-iqiyi .portal-nav.nav-open .nav-mega-genres section div a,
  body.front.portal.tpl-iqiyi .portal-nav.is-open .nav-mega-genres section div a {
    min-width: 58px !important;
    height: 30px !important;
    min-height: 30px !important;
    padding: 0 9px !important;
    font-size: 12px !important;
    border-color: rgba(91, 220, 137, .22) !important;
    background: rgba(6, 32, 20, .68) !important;
  }

  :root[data-portal-theme="light"] body.front.portal.tpl-iqiyi .portal-nav.nav-open .nav-mega-title,
  :root[data-portal-theme="light"] body.front.portal.tpl-iqiyi .portal-nav.is-open .nav-mega-title {
    color: #247245 !important;
  }

  :root[data-portal-theme="light"] body.front.portal.tpl-iqiyi .portal-nav.nav-open .nav-mega-genres section div a,
  :root[data-portal-theme="light"] body.front.portal.tpl-iqiyi .portal-nav.is-open .nav-mega-genres section div a {
    color: #183724 !important;
    border-color: rgba(65, 183, 108, .22) !important;
    background: rgba(238, 255, 244, .9) !important;
  }

  body.front.portal.tpl-iqiyi .hero-copy {
    padding: 14px 14px !important;
    max-width: 100% !important;
  }

  body.front.portal.tpl-iqiyi .hero-copy .eyebrow {
    margin-bottom: 6px !important;
    font-size: 11.5px !important;
    line-height: 1.35 !important;
  }

  body.front.portal.tpl-iqiyi .hero-copy h1 {
    margin-bottom: 6px !important;
    font-size: clamp(21px, 5.7vw, 26px) !important;
    line-height: 1.12 !important;
  }

  body.front.portal.tpl-iqiyi .hero-copy p {
    max-height: none !important;
    overflow: visible !important;
    font-size: 12px !important;
    line-height: 1.42 !important;
  }

  body.front.portal.tpl-iqiyi .hero-actions {
    gap: 8px !important;
  }

  body.front.portal.tpl-iqiyi .hero-action-btn {
    min-height: 32px !important;
    padding: 0 14px !important;
    font-size: 12px !important;
  }
}

@media (max-width: 380px) {
  body.front.portal.tpl-iqiyi .portal-bar {
    grid-template-columns: 30px minmax(76px, 1fr) auto !important;
    gap: 4px !important;
  }

  body.front.portal.tpl-iqiyi .nav-menu-toggle {
    width: 30px !important;
    min-width: 30px !important;
    max-width: 30px !important;
    height: 30px !important;
    min-height: 30px !important;
    max-height: 30px !important;
  }

  body.front.portal.tpl-iqiyi .portal-brand strong {
    max-width: 76px !important;
    font-size: 15px !important;
  }

  body.front.portal.tpl-iqiyi .portal-actions {
    gap: 4px !important;
  }

  body.front.portal.tpl-iqiyi .portal-actions .portal-search-chip,
  body.front.portal.tpl-iqiyi .portal-mobile-menu .nav-dropdown-trigger {
    width: 32px !important;
    min-width: 32px !important;
    max-width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
  }

  body.front.portal.tpl-iqiyi .portal-actions .theme-toggle {
    width: auto !important;
    min-width: max-content !important;
    max-width: none !important;
  }

  body.front.portal.tpl-iqiyi .portal-actions .language-switcher,
  body.front.portal.tpl-iqiyi .portal-actions .user-chip {
    width: auto !important;
    min-width: max-content !important;
    max-width: none !important;
  }
}

/* tpl-iqiyi final text polish: no shadow haze in either theme. */
body.front.portal.tpl-iqiyi .hero-copy,
body.front.portal.tpl-iqiyi .hero-copy *,
body.front.portal.tpl-iqiyi .focus-panel,
body.front.portal.tpl-iqiyi .focus-panel *,
body.front.portal.tpl-iqiyi .channel-cloud,
body.front.portal.tpl-iqiyi .channel-cloud *,
body.front.portal.tpl-iqiyi .detail-hero,
body.front.portal.tpl-iqiyi .detail-hero *,
body.front.portal.tpl-iqiyi .portal-nav,
body.front.portal.tpl-iqiyi .portal-nav *,
:root[data-portal-theme="light"] body.front.portal.tpl-iqiyi .hero-copy,
:root[data-portal-theme="light"] body.front.portal.tpl-iqiyi .hero-copy *,
:root[data-portal-theme="light"] body.front.portal.tpl-iqiyi .detail-hero,
:root[data-portal-theme="light"] body.front.portal.tpl-iqiyi .detail-hero *,
:root[data-portal-theme="dark"] body.front.portal.tpl-iqiyi .hero-copy,
:root[data-portal-theme="dark"] body.front.portal.tpl-iqiyi .hero-copy *,
:root[data-portal-theme="dark"] body.front.portal.tpl-iqiyi .detail-hero,
:root[data-portal-theme="dark"] body.front.portal.tpl-iqiyi .detail-hero * {
  text-shadow: none !important;
}

body.front.portal.tpl-iqiyi .hero-copy .eyebrow,
body.front.portal.tpl-iqiyi .hero-copy h1,
body.front.portal.tpl-iqiyi .hero-copy p,
:root[data-portal-theme="light"] body.front.portal.tpl-iqiyi .hero-copy .eyebrow,
:root[data-portal-theme="light"] body.front.portal.tpl-iqiyi .hero-copy h1,
:root[data-portal-theme="light"] body.front.portal.tpl-iqiyi .hero-copy p,
:root[data-portal-theme="dark"] body.front.portal.tpl-iqiyi .hero-copy .eyebrow,
:root[data-portal-theme="dark"] body.front.portal.tpl-iqiyi .hero-copy h1,
:root[data-portal-theme="dark"] body.front.portal.tpl-iqiyi .hero-copy p {
  background: transparent !important;
  box-shadow: none;
}

:root[data-portal-theme="light"] body.front.portal.tpl-iqiyi .detail-hero,
:root[data-portal-theme="light"] body.front.portal.tpl-iqiyi .detail-hero h1,
:root[data-portal-theme="light"] body.front.portal.tpl-iqiyi .detail-hero p {
  color: #102316 !important;
}

:root[data-portal-theme="light"] body.front.portal.tpl-iqiyi .detail-hero .eyebrow {
  color: #2f6f49 !important;
}

.iqiyi-detail-facts {
  display: none;
}

@media (min-width: 761px) {
  body.front.portal.tpl-iqiyi .detail-layout {
    width: var(--iqiyi-shell) !important;
    max-width: var(--iqiyi-shell) !important;
    grid-template-columns: 220px minmax(0, 760px) !important;
    justify-content: start !important;
    align-items: end !important;
    gap: 24px 30px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  body.front.portal.tpl-iqiyi .detail-poster {
    justify-self: start !important;
  }

  body.front.portal.tpl-iqiyi .detail-copy {
    min-width: 0 !important;
    text-align: left !important;
  }

  body.front.portal.tpl-iqiyi .detail-actions {
    grid-column: 2 !important;
    justify-content: flex-start !important;
    margin-top: 4px !important;
  }

  body.front.portal.tpl-iqiyi .iqiyi-detail-facts {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-top: 12px !important;
  }

  body.front.portal.tpl-iqiyi .iqiyi-detail-facts span {
    display: inline-flex !important;
    max-width: min(100%, 360px) !important;
    min-height: 34px !important;
    align-items: center !important;
    gap: 7px !important;
    padding: 7px 11px !important;
    border: 1px solid rgba(119, 230, 157, .22) !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, rgba(14, 36, 25, .72), rgba(7, 16, 14, .58)) !important;
    color: rgba(235, 249, 240, .9) !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
  }

  body.front.portal.tpl-iqiyi .iqiyi-detail-facts .wide {
    max-width: min(100%, 620px) !important;
  }

  body.front.portal.tpl-iqiyi .iqiyi-detail-facts b {
    flex: 0 0 auto !important;
    color: rgba(115, 231, 153, .95) !important;
    font-weight: 900 !important;
  }

  body.front.portal.tpl-iqiyi .iqiyi-detail-facts em {
    min-width: 0 !important;
    overflow: hidden !important;
    color: inherit !important;
    font-style: normal !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  :root[data-portal-theme="light"] body.front.portal.tpl-iqiyi .iqiyi-detail-facts span {
    border-color: rgba(34, 197, 94, .22) !important;
    background: linear-gradient(135deg, rgba(248, 255, 250, .94), rgba(220, 249, 231, .82)) !important;
    color: #173523 !important;
  }

  :root[data-portal-theme="light"] body.front.portal.tpl-iqiyi .iqiyi-detail-facts b {
    color: #247844 !important;
  }
}

body.front.portal.tpl-iqiyi .focus-panel {
  border-color: rgba(78, 221, 130, .20) !important;
  background:
    radial-gradient(circle at 12% 0%, rgba(42, 225, 113, .16), transparent 36%),
    radial-gradient(circle at 92% 100%, rgba(74, 187, 230, .12), transparent 38%),
    linear-gradient(145deg, rgba(3, 21, 14, .88), rgba(4, 11, 15, .94) 72%) !important;
  overflow: hidden !important;
  scrollbar-width: none !important;
}

body.front.portal.tpl-iqiyi .focus-panel::-webkit-scrollbar,
body.front.portal.tpl-iqiyi .focus-list-panel::-webkit-scrollbar,
body.front.portal.tpl-iqiyi .focus-list::-webkit-scrollbar {
  display: none !important;
}

:root[data-portal-theme="light"] body.front.portal.tpl-iqiyi .focus-panel {
  border-color: rgba(58, 167, 105, .18) !important;
  background:
    radial-gradient(circle at 12% 0%, rgba(98, 229, 151, .22), transparent 36%),
    radial-gradient(circle at 92% 100%, rgba(116, 205, 239, .18), transparent 40%),
    linear-gradient(145deg, rgba(253, 255, 253, .98), rgba(242, 250, 255, .94) 72%) !important;
}

body.front.portal.tpl-iqiyi .focus-title-row h2 {
  color: var(--portal-strong) !important;
  font-size: clamp(17px, 1.05vw, 20px) !important;
}

body.front.portal.tpl-iqiyi .focus-title-row {
  align-items: center !important;
  gap: 12px !important;
}

body.front.portal.tpl-iqiyi .focus-title-row > div:first-child {
  display: flex !important;
  align-items: center !important;
}

body.front.portal.tpl-iqiyi .focus-title-row > div:first-child p,
body.front.portal.tpl-iqiyi .focus-title-row > span {
  display: none !important;
}

body.front.portal.tpl-iqiyi .focus-list-panel {
  max-height: none !important;
  overflow: visible !important;
}

body.front.portal.tpl-iqiyi .focus-list {
  gap: 8px !important;
  max-height: none !important;
  overflow: visible !important;
}

body.front.portal.tpl-iqiyi .focus-list li {
  padding-bottom: 9px !important;
  border-color: rgba(143, 170, 150, .16) !important;
}

body.front.portal.tpl-iqiyi .focus-list li:nth-child(n+5) {
  display: none !important;
}

body.front.portal.tpl-iqiyi .focus-list a {
  overflow: hidden !important;
  color: #d9ffe6 !important;
  font-size: clamp(13px, .86vw, 15px) !important;
  font-weight: 800 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  background: linear-gradient(90deg, #dfffea, #7ee7ff) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

body.front.portal.tpl-iqiyi .focus-list span {
  display: block !important;
  width: 100% !important;
  margin-top: 4px !important;
  overflow: hidden !important;
  color: rgba(190, 203, 195, .76) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  background: transparent !important;
  -webkit-text-fill-color: currentColor !important;
}

body.front.portal.tpl-iqiyi .focus-list li:nth-child(2n) a {
  background-image: linear-gradient(90deg, #fff4b0, #9cf7c0) !important;
}

body.front.portal.tpl-iqiyi .focus-list li:nth-child(3n) a {
  background-image: linear-gradient(90deg, #ffc0df, #96e6ff) !important;
}

body.front.portal.tpl-iqiyi .focus-list li:nth-child(4n) a {
  background-image: linear-gradient(90deg, #bfffd0, #d7f29a) !important;
}

/* tpl-iqiyi responsive lock: keep the PC header in one row and let capsule text breathe. */
@media (min-width: 761px) and (max-width: 1180px) {
  body.front.portal.tpl-iqiyi {
    --iqiyi-shell: calc(100% - 24px);
    --iqiyi-pill-h: 36px;
    --iqiyi-pill-x: 12px;
  }

  body.front.portal.tpl-iqiyi .portal-bar {
    grid-template-columns: minmax(132px, 200px) minmax(150px, 1fr) max-content !important;
    grid-auto-flow: column !important;
    align-items: center !important;
    gap: 8px !important;
    min-height: 54px !important;
  }

  body.front.portal.tpl-iqiyi .portal-brand,
  body.front.portal.tpl-iqiyi .portal-search,
  body.front.portal.tpl-iqiyi .portal-actions {
    grid-row: 1 !important;
    order: 0 !important;
  }

  body.front.portal.tpl-iqiyi .portal-search {
    grid-column: 2 !important;
    justify-self: stretch !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
  }

  body.front.portal.tpl-iqiyi .portal-actions {
    grid-column: 3 !important;
    min-width: max-content !important;
    gap: 5px !important;
  }

  body.front.portal.tpl-iqiyi .portal-brand .brand-mark {
    width: 36px !important;
    height: 36px !important;
  }

  body.front.portal.tpl-iqiyi .portal-brand strong {
    font-size: 17px !important;
  }

  body.front.portal.tpl-iqiyi .portal-brand small {
    max-width: 92px !important;
  }

  body.front.portal.tpl-iqiyi :where(.portal-actions a, .portal-actions .user-chip, .theme-toggle, .language-switcher, .portal-nav a, .nav-dropdown-trigger, .hero-switcher-tabs button, .focus-tabs button) {
    box-sizing: border-box !important;
    min-width: max-content !important;
    padding-inline: 8px !important;
    white-space: nowrap !important;
  }

  body.front.portal.tpl-iqiyi .language-switcher {
    width: auto !important;
    min-width: max-content !important;
  }

  body.front.portal.tpl-iqiyi .theme-toggle {
    width: auto !important;
    min-width: max-content !important;
  }

  body.front.portal.tpl-iqiyi .portal-main-flow,
  body.front.portal.tpl-iqiyi .portal-sidebar {
    width: var(--iqiyi-shell) !important;
    max-width: var(--iqiyi-shell) !important;
    margin-right: auto !important;
    margin-left: auto !important;
  }

  body.front.portal.tpl-iqiyi .portal-main-flow .section-block,
  body.front.portal.tpl-iqiyi .portal-sidebar .rank-box {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  body.front.portal.tpl-iqiyi .channel-section-head {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    align-items: start !important;
  }

  body.front.portal.tpl-iqiyi .channel-genre-tabs {
    display: flex !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding-bottom: 2px !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
  }

  body.front.portal.tpl-iqiyi .channel-genre-tabs::-webkit-scrollbar {
    display: none !important;
  }
}

@media (max-width: 760px) {
  body.front.portal.tpl-iqiyi :where(.portal-actions .user-chip, .language-switcher, .hero-switcher-tabs button, .focus-tabs button, .hero-action-btn, .portal-nav.nav-open > a, .portal-nav.is-open > a) {
    width: auto !important;
    max-width: none !important;
    min-width: max-content !important;
    padding-inline: 10px !important;
    white-space: nowrap !important;
  }

  body.front.portal.tpl-iqiyi .portal-actions .theme-toggle {
    width: auto !important;
    max-width: none !important;
    min-width: 42px !important;
    padding-inline: 8px !important;
  }

  body.front.portal.tpl-iqiyi .portal-actions .language-switcher,
  body.front.portal.tpl-iqiyi .portal-actions .user-chip {
    min-width: 34px !important;
  }
}

:root[data-portal-theme="light"] body.front.portal.tpl-iqiyi .focus-list a {
  color: #14351f !important;
  background-image: linear-gradient(90deg, #0f5c33, #0d6f7d) !important;
}

:root[data-portal-theme="light"] body.front.portal.tpl-iqiyi .focus-list li:nth-child(2n) a {
  background-image: linear-gradient(90deg, #866800, #13824a) !important;
}

:root[data-portal-theme="light"] body.front.portal.tpl-iqiyi .focus-list li:nth-child(3n) a {
  background-image: linear-gradient(90deg, #9d3361, #0f6d82) !important;
}

:root[data-portal-theme="light"] body.front.portal.tpl-iqiyi .focus-list li:nth-child(4n) a {
  background-image: linear-gradient(90deg, #236c34, #6a7d12) !important;
}

:root[data-portal-theme="light"] body.front.portal.tpl-iqiyi .focus-list span {
  color: rgba(61, 76, 65, .72) !important;
}

/* tpl-iqiyi final channel cards: soft category gradients under channel navigation. */
body.front.portal.tpl-iqiyi .channel-cloud {
  background:
    radial-gradient(circle at 12% 0%, rgba(38, 224, 112, .14), transparent 34%),
    linear-gradient(145deg, rgba(3, 18, 12, .78), rgba(3, 10, 13, .9) 72%) !important;
}

body.front.portal.tpl-iqiyi .channel-grid a {
  position: relative !important;
  overflow: hidden !important;
  border-color: rgba(90, 230, 140, .22) !important;
  background:
    radial-gradient(circle at 12% 10%, rgba(83, 245, 143, .25), transparent 35%),
    radial-gradient(circle at 88% 92%, rgba(80, 194, 238, .16), transparent 38%),
    linear-gradient(135deg, rgba(11, 42, 28, .86) 0%, rgba(6, 22, 22, .93) 66%, rgba(5, 13, 18, .96) 100%) !important;
}

body.front.portal.tpl-iqiyi .channel-grid a:nth-child(2n) {
  background:
    radial-gradient(circle at 88% 14%, rgba(96, 213, 241, .24), transparent 34%),
    radial-gradient(circle at 12% 88%, rgba(80, 234, 132, .14), transparent 38%),
    linear-gradient(135deg, rgba(7, 34, 30, .88) 0%, rgba(6, 22, 30, .94) 68%, rgba(5, 13, 18, .96) 100%) !important;
}

body.front.portal.tpl-iqiyi .channel-grid a:nth-child(3n) {
  background:
    radial-gradient(circle at 18% 88%, rgba(203, 244, 123, .22), transparent 34%),
    radial-gradient(circle at 84% 14%, rgba(86, 230, 180, .16), transparent 38%),
    linear-gradient(135deg, rgba(17, 42, 25, .88) 0%, rgba(8, 22, 29, .94) 68%, rgba(5, 13, 18, .96) 100%) !important;
}

:root[data-portal-theme="light"] body.front.portal.tpl-iqiyi .channel-cloud {
  background:
    radial-gradient(circle at 12% 0%, rgba(100, 231, 151, .26), transparent 34%),
    linear-gradient(145deg, rgba(248, 255, 250, .96), rgba(238, 250, 255, .92) 72%) !important;
}

:root[data-portal-theme="light"] body.front.portal.tpl-iqiyi .channel-grid a {
  border-color: rgba(69, 188, 112, .2) !important;
  background:
    radial-gradient(circle at 12% 10%, rgba(110, 235, 157, .34), transparent 35%),
    radial-gradient(circle at 88% 92%, rgba(116, 205, 239, .22), transparent 38%),
    linear-gradient(135deg, rgba(251, 255, 252, .99) 0%, rgba(238, 251, 244, .96) 58%, rgba(236, 248, 255, .94) 100%) !important;
}

:root[data-portal-theme="light"] body.front.portal.tpl-iqiyi .channel-grid a:nth-child(2n) {
  background:
    radial-gradient(circle at 88% 14%, rgba(126, 213, 241, .28), transparent 34%),
    radial-gradient(circle at 12% 88%, rgba(113, 235, 154, .2), transparent 38%),
    linear-gradient(135deg, rgba(252, 255, 253, .99) 0%, rgba(238, 251, 255, .96) 62%, rgba(237, 249, 244, .94) 100%) !important;
}

:root[data-portal-theme="light"] body.front.portal.tpl-iqiyi .channel-grid a:nth-child(3n) {
  background:
    radial-gradient(circle at 18% 88%, rgba(202, 236, 126, .3), transparent 34%),
    radial-gradient(circle at 84% 14%, rgba(111, 230, 184, .22), transparent 38%),
    linear-gradient(135deg, rgba(252, 255, 248, .99) 0%, rgba(241, 252, 244, .96) 60%, rgba(237, 248, 255, .94) 100%) !important;
}

@media (max-width: 760px) {
  body.front.portal.tpl-iqiyi {
    --iqiyi-hero-h: clamp(252px, 64vw, 286px);
  }

  body.front.portal.tpl-iqiyi .hero-feature,
  body.front.portal.tpl-iqiyi .hero-switcher,
  body.front.portal.tpl-iqiyi .hero-slide {
    min-height: var(--iqiyi-hero-h) !important;
    max-height: var(--iqiyi-hero-h) !important;
  }

  body.front.portal.tpl-iqiyi .portal-actions .theme-toggle {
    width: auto !important;
    min-width: max-content !important;
    max-width: none !important;
    height: 30px !important;
    min-height: 30px !important;
    max-height: 30px !important;
    gap: 2px !important;
    padding: 0 8px !important;
  }

  body.front.portal.tpl-iqiyi .portal-actions .theme-toggle .theme-switch {
    display: none !important;
  }

  body.front.portal.tpl-iqiyi .portal-actions .theme-toggle .theme-label {
    max-width: none !important;
    min-width: max-content !important;
  }
}
/* tpl-iqiyi final mobile menu: hamburger opens the full category sheet; PC keeps direct nav. */
@media (max-width: 760px) {
  html body.front.portal.tpl-iqiyi .portal-top.nav-open {
    z-index: 10000 !important;
  }

  html body.front.portal.tpl-iqiyi .portal-top.nav-open .portal-nav.is-open > .nav-dropdown,
  html body.front.portal.tpl-iqiyi .portal-top.nav-open .portal-nav.nav-open > .nav-dropdown {
    position: static !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    z-index: 10001 !important;
    display: block !important;
    flex: 1 0 100% !important;
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin-top: 6px !important;
    padding: 12px !important;
    overflow: visible !important;
    border: 1px solid rgba(72, 221, 128, .22) !important;
    border-radius: 18px !important;
    background:
      radial-gradient(circle at 10% 0%, rgba(72, 224, 132, .2), transparent 34%),
      linear-gradient(145deg, rgba(3, 24, 15, .97), rgba(3, 12, 15, .98)) !important;
    box-shadow: 0 18px 42px rgba(0, 0, 0, .28) !important;
  }

  html body.front.portal.tpl-iqiyi .portal-top.nav-open .portal-nav.is-open,
  html body.front.portal.tpl-iqiyi .portal-top.nav-open .portal-nav.nav-open {
    position: static !important;
    display: flex !important;
    height: auto !important;
    min-height: 0 !important;
    width: auto !important;
    max-height: min(52vh, 430px) !important;
    margin: 6px 8px 0 !important;
    overflow-y: auto !important;
    z-index: 10000 !important;
  }

  html body.front.portal.tpl-iqiyi .portal-top.nav-open .portal-nav.is-open > .nav-dropdown > .nav-dropdown-trigger,
  html body.front.portal.tpl-iqiyi .portal-top.nav-open .portal-nav.nav-open > .nav-dropdown > .nav-dropdown-trigger {
    display: none !important;
  }

  html body.front.portal.tpl-iqiyi .portal-top.nav-open .portal-nav.is-open > .nav-dropdown > .nav-mega,
  html body.front.portal.tpl-iqiyi .portal-top.nav-open .portal-nav.nav-open > .nav-dropdown > .nav-mega {
    position: static !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
    max-width: none !important;
    max-height: none !important;
    min-height: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  html body.front.portal.tpl-iqiyi .portal-top.nav-open .portal-actions .portal-mobile-menu {
    display: none !important;
  }

  html body.front.portal.tpl-iqiyi .portal-top.nav-open .nav-mega-main {
    display: none !important;
  }

  html body.front.portal.tpl-iqiyi .portal-top.nav-open .nav-mega-genres {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    padding: 2px 0 0 !important;
  }

  html body.front.portal.tpl-iqiyi .portal-top.nav-open .nav-mega-genres section div {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
  }

  html body.front.portal.tpl-iqiyi .portal-top.nav-open .nav-mega-title {
    justify-content: flex-start !important;
    height: auto !important;
    min-height: 22px !important;
    padding: 0 2px !important;
    color: rgba(180, 246, 201, .92) !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  html body.front.portal.tpl-iqiyi .portal-top.nav-open .nav-mega-genres section div a {
    min-width: 58px !important;
    height: 30px !important;
    min-height: 30px !important;
    padding: 0 9px !important;
    font-size: 12px !important;
    border-color: rgba(91, 220, 137, .22) !important;
    background: rgba(6, 32, 20, .68) !important;
  }

  :root[data-portal-theme="light"] html body.front.portal.tpl-iqiyi .portal-top.nav-open .nav-mega-title {
    color: #247245 !important;
  }

  :root[data-portal-theme="light"] html body.front.portal.tpl-iqiyi .portal-top.nav-open .portal-nav.is-open > .nav-dropdown,
  :root[data-portal-theme="light"] html body.front.portal.tpl-iqiyi .portal-top.nav-open .portal-nav.nav-open > .nav-dropdown {
    border-color: rgba(65, 183, 108, .2) !important;
    background:
      radial-gradient(circle at 10% 0%, rgba(105, 231, 153, .26), transparent 34%),
      linear-gradient(145deg, rgba(248, 255, 250, .98), rgba(236, 249, 255, .96)) !important;
    box-shadow: 0 18px 42px rgba(47, 125, 91, .16) !important;
  }

  :root[data-portal-theme="light"] html body.front.portal.tpl-iqiyi .portal-top.nav-open .nav-mega-genres section div a {
    color: #183724 !important;
    border-color: rgba(65, 183, 108, .22) !important;
    background: rgba(238, 255, 244, .9) !important;
  }
}

/* tpl-iqiyi H5 final sync: compact header tools, tap-to-toggle menu, two full posters per row. */
@media (max-width: 760px) {
  body.front.portal.tpl-iqiyi .nav-menu-toggle,
  body.front.portal.tpl-iqiyi .portal-actions .portal-search-chip {
    width: 30px !important;
    min-width: 30px !important;
    max-width: 30px !important;
    height: 30px !important;
    min-height: 30px !important;
    max-height: 30px !important;
    padding: 0 !important;
  }

  body.front.portal.tpl-iqiyi .portal-actions .portal-search-chip span[aria-hidden] {
    width: 11px !important;
    height: 11px !important;
    border-width: 2px !important;
  }

  body.front.portal.tpl-iqiyi .portal-actions .portal-search-chip span[aria-hidden]::after {
    right: -5px !important;
    bottom: -4px !important;
    width: 6px !important;
  }

  body.front.portal.tpl-iqiyi .portal-actions .theme-toggle {
    width: auto !important;
    min-width: 42px !important;
    max-width: none !important;
    height: 30px !important;
    min-height: 30px !important;
    max-height: 30px !important;
    padding: 0 8px !important;
  }

  body.front.portal.tpl-iqiyi .portal-actions .theme-toggle .theme-icon {
    width: 12px !important;
    height: 12px !important;
  }

  body.front.portal.tpl-iqiyi .portal-actions .theme-toggle .theme-label {
    max-width: none !important;
    min-width: max-content !important;
    overflow: visible !important;
    color: inherit !important;
    font-size: 0 !important;
  }

  body.front.portal.tpl-iqiyi .portal-actions .theme-toggle .theme-label::after {
    content: "黑";
    color: currentColor;
    font-size: 11.5px;
    font-weight: 900;
    line-height: 1;
  }

  :root[data-portal-theme="light"] body.front.portal.tpl-iqiyi .portal-actions .theme-toggle .theme-label::after {
    content: "白";
  }

  body.front.portal.tpl-iqiyi .language-switcher,
  body.front.portal.tpl-iqiyi .portal-actions .user-chip {
    width: auto !important;
    min-width: max-content !important;
    max-width: none !important;
    height: 30px !important;
    min-height: 30px !important;
    max-height: 30px !important;
    padding: 0 10px !important;
    font-size: 11.5px !important;
    white-space: nowrap !important;
  }

  body.front.portal.tpl-iqiyi .hero-feature,
  body.front.portal.tpl-iqiyi .hero-switcher,
  body.front.portal.tpl-iqiyi .hero-slide {
    min-height: var(--iqiyi-hero-h) !important;
    max-height: var(--iqiyi-hero-h) !important;
  }

  body.front.portal.tpl-iqiyi .hero-copy {
    padding: 56px 14px 18px !important;
  }

  body.front.portal.tpl-iqiyi .hero-switcher-tabs {
    top: 14px !important;
    left: 14px !important;
    max-width: calc(100% - 28px) !important;
    padding: 3px !important;
  }

  body.front.portal.tpl-iqiyi .hero-switcher-tabs button {
    min-height: 28px !important;
    padding: 0 13px !important;
    font-size: 12px !important;
  }

  body.front.portal.tpl-iqiyi .hero-copy h1 {
    font-size: clamp(21px, 5.7vw, 26px) !important;
    line-height: 1.12 !important;
  }

  body.front.portal.tpl-iqiyi .hero-copy p {
    max-height: none !important;
    overflow: visible !important;
    font-size: 12px !important;
    line-height: 1.42 !important;
  }

  body.front.portal.tpl-iqiyi .portal-nav.nav-open,
  body.front.portal.tpl-iqiyi .portal-nav.is-open {
    top: 42px !important;
    max-height: min(58vh, 420px) !important;
    gap: 7px !important;
    padding: 10px !important;
  }

  body.front.portal.tpl-iqiyi .portal-nav.nav-open > a,
  body.front.portal.tpl-iqiyi .portal-nav.is-open > a,
  body.front.portal.tpl-iqiyi .portal-nav.nav-open .portal-direct-link,
  body.front.portal.tpl-iqiyi .portal-nav.is-open .portal-direct-link,
  html body.front.portal.tpl-iqiyi .portal-top.nav-open .nav-mega-genres section div a {
    min-width: max-content !important;
    height: 28px !important;
    min-height: 28px !important;
    padding: 0 10px !important;
    font-size: 11.5px !important;
    white-space: nowrap !important;
  }

  body.front.portal.tpl-iqiyi .portal-main-flow .channel-section .poster-row,
  body.front.portal.tpl-iqiyi.search-page .poster-row.search-results,
  body.front.portal.tpl-iqiyi.player-page .movie-grid.related-grid,
  body.front.portal.tpl-iqiyi.catalog-body #catalog-results.movie-grid,
  body.front.portal.tpl-iqiyi .detail-related-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    justify-content: stretch !important;
    gap: 16px 12px !important;
    overflow: visible !important;
  }

  body.front.portal.tpl-iqiyi .portal-card,
  body.front.portal.tpl-iqiyi .movie-card {
    min-width: 0 !important;
  }

  body.front.portal.tpl-iqiyi .poster {
    width: 100% !important;
    aspect-ratio: 2 / 3 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
  }

  body.front.portal.tpl-iqiyi .poster img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
}

/* tpl-iqiyi final closure: compact hero/focus without leaking into haoju. */
body.front.portal.tpl-iqiyi {
  --iqiyi-hero-h: clamp(276px, 20vw, 320px);
}

body.front.portal.tpl-iqiyi,
body.front.portal.tpl-iqiyi * {
  text-shadow: none !important;
}

body.front.portal.tpl-iqiyi .portal-hero {
  align-items: stretch !important;
}

body.front.portal.tpl-iqiyi .hero-feature,
body.front.portal.tpl-iqiyi .hero-switcher,
body.front.portal.tpl-iqiyi .hero-switcher-panels,
body.front.portal.tpl-iqiyi .hero-panel,
body.front.portal.tpl-iqiyi .hero-slide {
  min-height: var(--iqiyi-hero-h) !important;
  height: var(--iqiyi-hero-h) !important;
  max-height: var(--iqiyi-hero-h) !important;
}

body.front.portal.tpl-iqiyi .hero-switcher,
body.front.portal.tpl-iqiyi .hero-slide {
  overflow: hidden !important;
  background:
    radial-gradient(circle at 0% 0%, rgba(68, 242, 126, .24), transparent 34%),
    radial-gradient(circle at 72% 16%, rgba(77, 189, 255, .16), transparent 32%),
    linear-gradient(115deg, rgba(5, 20, 14, .96), rgba(8, 13, 18, .9) 48%, rgba(3, 8, 8, .98)) !important;
}

body.front.portal.tpl-iqiyi .hero-slide::before {
  filter: blur(10px) saturate(.9) !important;
  opacity: .36 !important;
  transform: scale(1.035) !important;
}

body.front.portal.tpl-iqiyi .hero-slide::after {
  background:
    linear-gradient(90deg, rgba(3, 12, 8, .96) 0%, rgba(4, 16, 11, .78) 34%, rgba(4, 12, 12, .42) 62%, rgba(3, 8, 8, .88) 100%),
    radial-gradient(circle at 12% 8%, rgba(70, 243, 132, .24), transparent 34%),
    linear-gradient(180deg, rgba(3, 8, 8, .08), rgba(3, 8, 8, .76)) !important;
}

body.front.portal.tpl-iqiyi .hero-switcher::after {
  display: none !important;
}

body.front.portal.tpl-iqiyi .hero-switcher-tabs {
  top: 16px !important;
  left: 26px !important;
  z-index: 5 !important;
  border: 1px solid rgba(128, 235, 164, .24) !important;
  background: rgba(5, 22, 15, .48) !important;
  box-shadow: none !important;
}

body.front.portal.tpl-iqiyi .hero-switcher-tabs button {
  min-width: 64px !important;
  min-height: 32px !important;
  padding: 0 18px !important;
  font-size: 14px !important;
  line-height: 1 !important;
}

body.front.portal.tpl-iqiyi .hero-copy {
  justify-content: center !important;
  min-height: 0 !important;
  height: 100% !important;
  padding: 64px clamp(26px, 4vw, 54px) 28px !important;
  overflow: hidden !important;
}

body.front.portal.tpl-iqiyi .hero-copy .eyebrow {
  margin: 0 0 10px !important;
  font-size: clamp(13px, .95vw, 16px) !important;
  line-height: 1.35 !important;
  max-width: min(760px, 72%) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

body.front.portal.tpl-iqiyi .hero-copy h1 {
  margin: 0 0 10px !important;
  max-width: min(780px, 74%) !important;
  font-size: clamp(30px, 2.8vw, 44px) !important;
  line-height: 1.08 !important;
  overflow-wrap: anywhere !important;
}

body.front.portal.tpl-iqiyi .hero-copy p:not(.eyebrow) {
  max-width: min(820px, 76%) !important;
  margin: 0 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  font-size: clamp(14px, 1vw, 17px) !important;
  line-height: 1.62 !important;
}

body.front.portal.tpl-iqiyi .hero-actions {
  margin-top: 14px !important;
  flex-wrap: nowrap !important;
  gap: 12px !important;
}

body.front.portal.tpl-iqiyi .hero-action-btn {
  min-width: 112px !important;
  min-height: 36px !important;
  height: 36px !important;
  padding: 0 20px !important;
  font-size: 14px !important;
}

body.front.portal.tpl-iqiyi .hero-dots {
  left: 26px !important;
  bottom: 14px !important;
}

body.front.portal.tpl-iqiyi .focus-panel {
  overflow: hidden !important;
  padding: 16px 20px !important;
  background:
    radial-gradient(circle at 8% 0%, rgba(71, 235, 123, .18), transparent 42%),
    linear-gradient(145deg, rgba(4, 21, 14, .94), rgba(5, 14, 16, .9) 58%, rgba(3, 10, 12, .95)) !important;
}

body.front.portal.tpl-iqiyi .focus-title-row {
  align-items: center !important;
  margin-bottom: 8px !important;
}

body.front.portal.tpl-iqiyi .focus-title-row h2 {
  font-size: clamp(18px, 1.35vw, 22px) !important;
  line-height: 1.16 !important;
}

body.front.portal.tpl-iqiyi .focus-tabs button {
  min-width: 58px !important;
  min-height: 30px !important;
  padding: 0 14px !important;
  font-size: 13px !important;
  white-space: nowrap !important;
}

body.front.portal.tpl-iqiyi .focus-title-row > div:first-child p,
body.front.portal.tpl-iqiyi .focus-title-row > span {
  display: none !important;
}

body.front.portal.tpl-iqiyi .focus-list,
body.front.portal.tpl-iqiyi .focus-list-panel {
  max-height: none !important;
  overflow: hidden !important;
  scrollbar-width: none !important;
}

body.front.portal.tpl-iqiyi .focus-list::-webkit-scrollbar,
body.front.portal.tpl-iqiyi .focus-list-panel::-webkit-scrollbar {
  display: none !important;
}

body.front.portal.tpl-iqiyi .focus-list li:nth-child(n+5) {
  display: none !important;
}

body.front.portal.tpl-iqiyi .focus-list li {
  display: block !important;
  padding: 4px 0 !important;
}

body.front.portal.tpl-iqiyi .focus-list a {
  display: block !important;
  max-width: 100% !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  text-align: left !important;
  line-height: 1.16 !important;
  font-size: clamp(14px, 1vw, 16px) !important;
}

body.front.portal.tpl-iqiyi .focus-list span {
  display: block !important;
  margin-top: 2px !important;
  text-align: left !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  color: rgba(203, 215, 208, .72) !important;
  font-size: 11.5px !important;
  line-height: 1.1 !important;
}

body.front.portal.tpl-iqiyi .focus-list li:nth-child(4n+1) a {
  color: #eafff1 !important;
}

body.front.portal.tpl-iqiyi .focus-list li:nth-child(4n+2) a {
  color: #e7f8c8 !important;
}

body.front.portal.tpl-iqiyi .focus-list li:nth-child(4n+3) a {
  color: #ffd5ea !important;
}

body.front.portal.tpl-iqiyi .focus-list li:nth-child(4n) a {
  color: #d7fff7 !important;
}

body.front.portal.tpl-iqiyi .portal-main-flow .channel-section .poster-row,
body.front.portal.tpl-iqiyi .portal-main-flow .poster-row {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(138px, 1fr)) !important;
  gap: 18px 18px !important;
  overflow: visible !important;
}

body.front.portal.tpl-iqiyi .portal-card .poster,
body.front.portal.tpl-iqiyi .movie-card .poster {
  aspect-ratio: 2 / 3 !important;
  background: rgba(5, 16, 20, .96) !important;
}

body.front.portal.tpl-iqiyi .portal-card .poster img,
body.front.portal.tpl-iqiyi .movie-card .poster img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

:root[data-portal-theme="light"] body.front.portal.tpl-iqiyi .hero-switcher,
:root[data-portal-theme="light"] body.front.portal.tpl-iqiyi .hero-slide {
  background:
    radial-gradient(circle at 0% 0%, rgba(108, 238, 153, .4), transparent 36%),
    radial-gradient(circle at 74% 8%, rgba(104, 204, 255, .28), transparent 34%),
    linear-gradient(115deg, #f5fff8, #eefbf9 52%, #f8fff8) !important;
}

:root[data-portal-theme="light"] body.front.portal.tpl-iqiyi .hero-slide::after {
  background:
    linear-gradient(90deg, rgba(245, 255, 248, .96) 0%, rgba(238, 252, 245, .78) 42%, rgba(239, 249, 248, .42) 68%, rgba(249, 255, 249, .9) 100%),
    radial-gradient(circle at 10% 10%, rgba(106, 238, 152, .34), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .7)) !important;
}

:root[data-portal-theme="light"] body.front.portal.tpl-iqiyi .hero-copy,
:root[data-portal-theme="light"] body.front.portal.tpl-iqiyi .hero-copy h1,
:root[data-portal-theme="light"] body.front.portal.tpl-iqiyi .hero-copy p,
:root[data-portal-theme="light"] body.front.portal.tpl-iqiyi .hero-copy .eyebrow {
  color: #12291d !important;
}

:root[data-portal-theme="light"] body.front.portal.tpl-iqiyi .focus-panel {
  background:
    radial-gradient(circle at 8% 0%, rgba(105, 236, 149, .26), transparent 42%),
    linear-gradient(145deg, rgba(255, 255, 255, .94), rgba(241, 251, 248, .9) 58%, rgba(247, 255, 250, .96)) !important;
}

:root[data-portal-theme="light"] body.front.portal.tpl-iqiyi .focus-list span {
  color: rgba(43, 62, 54, .7) !important;
}

:root[data-portal-theme="light"] body.front.portal.tpl-iqiyi .focus-list li a {
  color: #153325 !important;
}

@media (min-width: 1280px) {
  body.front.portal.tpl-iqiyi .portal-main-flow .channel-section .poster-row,
  body.front.portal.tpl-iqiyi .portal-main-flow .poster-row {
    grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)) !important;
  }
}

@media (min-width: 761px) and (max-width: 1180px) {
  body.front.portal.tpl-iqiyi {
    --iqiyi-hero-h: clamp(276px, 28vw, 314px);
  }

  body.front.portal.tpl-iqiyi .hero-copy {
    padding-top: 62px !important;
  }

  body.front.portal.tpl-iqiyi .hero-copy h1 {
    font-size: clamp(28px, 4vw, 42px) !important;
  }

  body.front.portal.tpl-iqiyi .hero-copy p:not(.eyebrow) {
    -webkit-line-clamp: 2 !important;
  }
}

@media (max-width: 760px) {
  body.front.portal.tpl-iqiyi {
    --iqiyi-hero-h: clamp(300px, 75vw, 340px);
  }

  body.front.portal.tpl-iqiyi .hero-feature,
  body.front.portal.tpl-iqiyi .hero-switcher,
  body.front.portal.tpl-iqiyi .hero-switcher-panels,
  body.front.portal.tpl-iqiyi .hero-panel,
  body.front.portal.tpl-iqiyi .hero-slide {
    min-height: var(--iqiyi-hero-h) !important;
    height: var(--iqiyi-hero-h) !important;
    max-height: var(--iqiyi-hero-h) !important;
  }

  body.front.portal.tpl-iqiyi .hero-switcher-tabs {
    top: 12px !important;
    left: 14px !important;
    padding: 3px !important;
  }

  body.front.portal.tpl-iqiyi .hero-switcher-tabs button {
    min-width: 58px !important;
    min-height: 28px !important;
    padding: 0 12px !important;
    font-size: 12px !important;
  }

  body.front.portal.tpl-iqiyi .hero-copy {
    justify-content: center !important;
    padding: 50px 14px 16px !important;
  }

  body.front.portal.tpl-iqiyi .hero-copy .eyebrow,
  body.front.portal.tpl-iqiyi .hero-copy h1,
  body.front.portal.tpl-iqiyi .hero-copy p:not(.eyebrow) {
    max-width: 100% !important;
  }

  body.front.portal.tpl-iqiyi .hero-copy .eyebrow {
    font-size: 12px !important;
  }

  body.front.portal.tpl-iqiyi .hero-copy h1 {
    font-size: clamp(20px, 5.5vw, 25px) !important;
    margin-bottom: 8px !important;
  }

  body.front.portal.tpl-iqiyi .hero-copy p:not(.eyebrow) {
    -webkit-line-clamp: 3 !important;
    font-size: 12px !important;
    line-height: 1.42 !important;
  }

  body.front.portal.tpl-iqiyi .hero-actions {
    margin-top: 12px !important;
    gap: 10px !important;
  }

  body.front.portal.tpl-iqiyi .hero-action-btn {
    min-width: 104px !important;
    min-height: 34px !important;
    height: 34px !important;
    padding: 0 16px !important;
    font-size: 13px !important;
  }

  body.front.portal.tpl-iqiyi .hero-dots {
    left: 16px !important;
    bottom: 14px !important;
  }

  body.front.portal.tpl-iqiyi .portal-main-flow .channel-section .poster-row,
  body.front.portal.tpl-iqiyi.search-page .poster-row.search-results,
  body.front.portal.tpl-iqiyi.player-page .movie-grid.related-grid,
  body.front.portal.tpl-iqiyi.player-page .player-related .related-grid,
  body.front.portal.tpl-iqiyi.catalog-body #catalog-results.movie-grid,
  body.front.portal.tpl-iqiyi .detail-related-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-flow: row !important;
    grid-auto-columns: unset !important;
    gap: 18px 12px !important;
    overflow: visible !important;
    padding: 0 !important;
    scroll-snap-type: none !important;
  }

  body.front.portal.tpl-iqiyi.player-page .player-related .related-grid .movie-card {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    flex: none !important;
    scroll-snap-align: unset !important;
  }

  body.front.portal.tpl-iqiyi.player-page .player-related .related-grid .poster {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 2 / 3 !important;
  }
}

/* tpl-iqiyi detail synopsis: compact by default, expandable without JS. */
body.front.portal.tpl-iqiyi .synopsis-panel {
  overflow: hidden !important;
  padding: clamp(16px, 1.8vw, 22px) !important;
  border-color: rgba(72, 220, 128, .16) !important;
  background:
    radial-gradient(circle at 0% 0%, rgba(61, 221, 118, .16), transparent 34%),
    linear-gradient(120deg, rgba(6, 22, 16, .86), rgba(6, 16, 22, .78) 58%, rgba(5, 9, 13, .88)) !important;
  box-shadow: none !important;
}

body.front.portal.tpl-iqiyi .synopsis-panel h2 {
  margin: 0 0 8px !important;
  color: #f2fff6 !important;
  font-size: clamp(18px, 1.35vw, 24px) !important;
  line-height: 1.25 !important;
}

body.front.portal.tpl-iqiyi .synopsis-panel .synopsis-excerpt,
body.front.portal.tpl-iqiyi .synopsis-panel .synopsis-body p {
  color: rgba(226, 239, 232, .78) !important;
  font-size: clamp(13px, .95vw, 15px) !important;
  line-height: 1.62 !important;
}

body.front.portal.tpl-iqiyi .synopsis-panel .synopsis-excerpt {
  display: -webkit-box !important;
  margin: 0 !important;
  overflow: hidden !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
}

body.front.portal.tpl-iqiyi .synopsis-details {
  margin-top: 12px !important;
}

body.front.portal.tpl-iqiyi .synopsis-details > summary {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 34px !important;
  padding: 0 16px !important;
  border: 1px solid rgba(122, 239, 161, .42) !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, rgba(225, 255, 234, .96), rgba(147, 232, 176, .9)) !important;
  color: #082417 !important;
  cursor: pointer !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  list-style: none !important;
}

body.front.portal.tpl-iqiyi .synopsis-details > summary::-webkit-details-marker {
  display: none !important;
}

body.front.portal.tpl-iqiyi .synopsis-details > summary::after {
  content: "+";
  margin-left: 8px;
  font-weight: 900;
}

body.front.portal.tpl-iqiyi .synopsis-details[open] > summary::after {
  content: "-";
}

body.front.portal.tpl-iqiyi .synopsis-details .synopsis-collapse-text,
body.front.portal.tpl-iqiyi .synopsis-details[open] .synopsis-expand-text {
  display: none !important;
}

body.front.portal.tpl-iqiyi .synopsis-details[open] .synopsis-collapse-text {
  display: inline !important;
}

body.front.portal.tpl-iqiyi .synopsis-body {
  margin-top: 12px !important;
}

body.front.portal.tpl-iqiyi .synopsis-body p + p,
body.front.portal.tpl-iqiyi .synopsis-body .site-content-layer {
  margin-top: 10px !important;
}

:root[data-portal-theme="light"] body.front.portal.tpl-iqiyi .synopsis-panel {
  border-color: rgba(92, 216, 137, .24) !important;
  background:
    radial-gradient(circle at 0% 0%, rgba(122, 238, 158, .22), transparent 36%),
    linear-gradient(120deg, rgba(246, 255, 250, .96), rgba(238, 251, 248, .9) 58%, rgba(255, 255, 255, .96)) !important;
}

:root[data-portal-theme="light"] body.front.portal.tpl-iqiyi .synopsis-panel h2 {
  color: #11281a !important;
}

:root[data-portal-theme="light"] body.front.portal.tpl-iqiyi .synopsis-panel .synopsis-excerpt,
:root[data-portal-theme="light"] body.front.portal.tpl-iqiyi .synopsis-panel .synopsis-body p {
  color: rgba(29, 48, 38, .78) !important;
}

@media (max-width: 760px) {
  body.front.portal.tpl-iqiyi .synopsis-panel {
    padding: 14px !important;
  }

  body.front.portal.tpl-iqiyi .synopsis-panel h2 {
    font-size: 17px !important;
  }

  body.front.portal.tpl-iqiyi .synopsis-panel .synopsis-excerpt,
  body.front.portal.tpl-iqiyi .synopsis-panel .synopsis-body p {
    font-size: 13px !important;
    line-height: 1.55 !important;
  }

body.front.portal.tpl-iqiyi .synopsis-details > summary {
    min-height: 32px !important;
    padding: 0 14px !important;
    font-size: 12px !important;
  }
}

/* tpl-iqiyi final pass: shared mobile dock, compact focus hero, and readable capsules. */
body.front.portal.tpl-iqiyi,
body.front.portal.tpl-iqiyi * {
  text-shadow: none !important;
}

@media (min-width: 761px) {
  body.front.portal.tpl-iqiyi {
    --iqiyi-hero-h: clamp(228px, 17.5vw, 268px);
  }

  body.front.portal.tpl-iqiyi .portal-hero {
    grid-template-columns: minmax(0, 1fr) minmax(250px, 310px) !important;
    gap: clamp(12px, 1.2vw, 18px) !important;
    align-items: stretch !important;
  }

  body.front.portal.tpl-iqiyi .hero-feature,
  body.front.portal.tpl-iqiyi .hero-switcher,
  body.front.portal.tpl-iqiyi .hero-switcher-panels,
  body.front.portal.tpl-iqiyi .hero-panel,
  body.front.portal.tpl-iqiyi .hero-slide {
    min-height: var(--iqiyi-hero-h) !important;
    height: var(--iqiyi-hero-h) !important;
    max-height: var(--iqiyi-hero-h) !important;
  }

  body.front.portal.tpl-iqiyi .hero-switcher-tabs {
    top: 10px !important;
    left: 12px !important;
    border-color: rgba(94, 224, 139, .2) !important;
    background: rgba(8, 28, 18, .42) !important;
    box-shadow: none !important;
  }

  :root[data-portal-theme="light"] body.front.portal.tpl-iqiyi .hero-switcher-tabs {
    background: rgba(235, 253, 242, .66) !important;
  }

  body.front.portal.tpl-iqiyi .hero-switcher-tabs button {
    min-width: max-content !important;
    height: 28px !important;
    min-height: 28px !important;
    padding: 0 14px !important;
    white-space: nowrap !important;
  }

  body.front.portal.tpl-iqiyi .hero-copy {
    padding: 58px 26px 12px !important;
  }

  body.front.portal.tpl-iqiyi .hero-copy h1 {
    margin: 4px 0 6px !important;
    font-size: clamp(22px, 2.55vw, 34px) !important;
    line-height: 1.08 !important;
  }

  body.front.portal.tpl-iqiyi .hero-copy p:not(.eyebrow) {
    -webkit-line-clamp: 2 !important;
    max-width: 760px !important;
    font-size: clamp(12px, .82vw, 13.5px) !important;
    line-height: 1.42 !important;
  }

  body.front.portal.tpl-iqiyi .hero-actions {
    margin-top: 8px !important;
  }

  body.front.portal.tpl-iqiyi .focus-panel {
    min-height: 0 !important;
    max-height: var(--iqiyi-hero-h) !important;
    padding: 16px 18px !important;
  }

  body.front.portal.tpl-iqiyi .focus-title-row {
    margin-bottom: 10px !important;
  }

  body.front.portal.tpl-iqiyi .focus-title-row h2 {
    max-width: 6em !important;
    line-height: 1.08 !important;
  }

  body.front.portal.tpl-iqiyi .focus-tabs {
    gap: 4px !important;
    padding: 3px !important;
  }

  body.front.portal.tpl-iqiyi .focus-tabs button {
    height: 30px !important;
    min-height: 30px !important;
    min-width: max-content !important;
    padding: 0 13px !important;
    white-space: nowrap !important;
  }

  body.front.portal.tpl-iqiyi .focus-list {
    gap: 4px !important;
  }

  body.front.portal.tpl-iqiyi .focus-list li {
    padding: 4px 0 !important;
  }

  body.front.portal.tpl-iqiyi .focus-list a {
    font-size: clamp(13px, .9vw, 15px) !important;
  }

  body.front.portal.tpl-iqiyi .focus-list span {
    font-size: 11px !important;
  }

  body.front.portal.tpl-iqiyi .ds3-bottom-nav {
    display: none !important;
  }
}

@media (max-width: 760px) {
  body.front.portal.tpl-iqiyi {
    --iqiyi-hero-h: clamp(214px, 56vw, 252px);
    padding-bottom: 78px !important;
  }

  body.front.portal.tpl-iqiyi .portal-top {
    min-height: 50px !important;
  }

  body.front.portal.tpl-iqiyi .portal-bar {
    grid-template-columns: 30px minmax(96px, 1fr) max-content !important;
    gap: 5px !important;
    align-items: center !important;
    min-height: 44px !important;
    padding: 6px 8px !important;
  }

  body.front.portal.tpl-iqiyi .nav-menu-toggle {
    grid-column: 1 !important;
    width: 30px !important;
    min-width: 30px !important;
    max-width: 30px !important;
    height: 30px !important;
    min-height: 30px !important;
    max-height: 30px !important;
  }

  body.front.portal.tpl-iqiyi .portal-brand {
    grid-column: 2 !important;
    min-width: 0 !important;
    gap: 6px !important;
  }

  body.front.portal.tpl-iqiyi .portal-brand .brand-mark {
    width: 30px !important;
    height: 30px !important;
    border-radius: 10px !important;
  }

  body.front.portal.tpl-iqiyi .portal-brand strong {
    max-width: 98px !important;
    overflow: hidden !important;
    font-size: 16px !important;
    line-height: 1 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  body.front.portal.tpl-iqiyi .portal-actions {
    grid-column: 3 !important;
    justify-self: end !important;
    gap: 4px !important;
  }

  body.front.portal.tpl-iqiyi .portal-actions > a:not(.portal-search-chip):not(.user-chip),
  body.front.portal.tpl-iqiyi .portal-actions > a[href="#latest-heading"] {
    display: none !important;
  }

  body.front.portal.tpl-iqiyi .portal-actions :where(.portal-search-chip, .theme-toggle, .language-switcher, .user-chip),
  body.front.portal.tpl-iqiyi .portal-mobile-menu .nav-dropdown-trigger {
    box-sizing: border-box !important;
    height: 30px !important;
    min-height: 30px !important;
    max-height: 30px !important;
    border-radius: 999px !important;
    white-space: nowrap !important;
  }

  body.front.portal.tpl-iqiyi .portal-actions .portal-search-chip,
  body.front.portal.tpl-iqiyi .portal-mobile-menu .nav-dropdown-trigger {
    width: 30px !important;
    min-width: 30px !important;
    max-width: 30px !important;
    padding: 0 !important;
  }

  body.front.portal.tpl-iqiyi .portal-actions .theme-toggle,
  body.front.portal.tpl-iqiyi .language-switcher,
  body.front.portal.tpl-iqiyi .portal-actions .user-chip {
    width: auto !important;
    min-width: max-content !important;
    max-width: none !important;
    padding: 0 8px !important;
    font-size: 11.5px !important;
  }

  body.front.portal.tpl-iqiyi .portal-actions .theme-toggle .theme-switch {
    display: none !important;
  }

  body.front.portal.tpl-iqiyi .portal-top:not(.nav-open) .portal-nav {
    display: none !important;
  }

  body.front.portal.tpl-iqiyi.search-page .portal-search {
    display: grid !important;
    visibility: visible !important;
    opacity: 1 !important;
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    height: 40px !important;
    min-height: 40px !important;
    margin-top: 6px !important;
    padding: 0 4px 0 14px !important;
    border-radius: 999px !important;
    overflow: hidden !important;
  }

  body.front.portal.tpl-iqiyi.search-page .portal-search input,
  body.front.portal.tpl-iqiyi.search-page .portal-search button {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 32px !important;
  }

  body.front.portal.tpl-iqiyi.search-page .portal-search input {
    min-width: 0 !important;
    padding: 0 8px 0 0 !important;
    font-size: 14px !important;
  }

  body.front.portal.tpl-iqiyi.search-page .portal-search button {
    min-width: 64px !important;
    padding: 0 14px !important;
    border-radius: 999px !important;
    font-size: 14px !important;
    white-space: nowrap !important;
  }

  body.front.portal.tpl-iqiyi.search-page .portal-actions .portal-search-chip {
    display: none !important;
  }

  body.front.portal.tpl-iqiyi .portal-hero {
    gap: 10px !important;
  }

  body.front.portal.tpl-iqiyi .hero-feature,
  body.front.portal.tpl-iqiyi .hero-switcher,
  body.front.portal.tpl-iqiyi .hero-switcher-panels,
  body.front.portal.tpl-iqiyi .hero-panel,
  body.front.portal.tpl-iqiyi .hero-slide {
    min-height: var(--iqiyi-hero-h) !important;
    height: var(--iqiyi-hero-h) !important;
    max-height: var(--iqiyi-hero-h) !important;
  }

  body.front.portal.tpl-iqiyi .hero-switcher {
    border-radius: 18px !important;
  }

  body.front.portal.tpl-iqiyi .hero-switcher-tabs {
    top: 7px !important;
    left: 9px !important;
    padding: 2px !important;
    border-color: rgba(99, 229, 145, .18) !important;
    background: rgba(7, 26, 17, .36) !important;
    box-shadow: none !important;
  }

  body.front.portal.tpl-iqiyi .hero-switcher-tabs button {
    height: 23px !important;
    min-height: 23px !important;
    min-width: max-content !important;
    padding: 0 10px !important;
    font-size: 11px !important;
    white-space: nowrap !important;
  }

  body.front.portal.tpl-iqiyi .hero-copy {
    justify-content: center !important;
    padding: 40px 12px 8px !important;
  }

  body.front.portal.tpl-iqiyi .hero-copy .eyebrow {
    font-size: 11px !important;
    line-height: 1.3 !important;
  }

  body.front.portal.tpl-iqiyi .hero-copy h1 {
    margin: 4px 0 !important;
    font-size: clamp(17px, 4.6vw, 21px) !important;
    line-height: 1.12 !important;
  }

  body.front.portal.tpl-iqiyi .hero-copy p:not(.eyebrow) {
    -webkit-line-clamp: 2 !important;
    font-size: 11.3px !important;
    line-height: 1.32 !important;
  }

  body.front.portal.tpl-iqiyi .hero-actions {
    margin-top: 8px !important;
    gap: 7px !important;
  }

  body.front.portal.tpl-iqiyi .hero-action-btn {
    height: 28px !important;
    min-height: 28px !important;
    min-width: 82px !important;
    padding: 0 10px !important;
    font-size: 11.5px !important;
  }

  body.front.portal.tpl-iqiyi .ds3-bottom-nav {
    position: fixed !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    z-index: 9000 !important;
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 3px !important;
    padding: 6px max(8px, env(safe-area-inset-left)) calc(6px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-right)) !important;
    border-top: 1px solid rgba(86, 224, 132, .22) !important;
    background: rgba(4, 14, 10, .88) !important;
    box-shadow: 0 -14px 30px rgba(0, 0, 0, .26) !important;
    backdrop-filter: blur(16px) !important;
  }

  :root[data-portal-theme="light"] body.front.portal.tpl-iqiyi .ds3-bottom-nav {
    border-top-color: rgba(78, 188, 112, .24) !important;
    background: rgba(247, 255, 250, .9) !important;
    box-shadow: 0 -14px 28px rgba(50, 118, 82, .14) !important;
  }

  body.front.portal.tpl-iqiyi .ds3-bottom-nav a {
    display: flex !important;
    min-width: 0 !important;
    height: 42px !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    border-radius: 14px !important;
    color: rgba(229, 243, 234, .82) !important;
    font-size: 11.5px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
  }

  :root[data-portal-theme="light"] body.front.portal.tpl-iqiyi .ds3-bottom-nav a {
    color: rgba(18, 49, 31, .76) !important;
  }

  body.front.portal.tpl-iqiyi .ds3-bottom-nav a:first-child,
  body.front.portal.tpl-iqiyi .ds3-bottom-nav .current {
    color: #071e12 !important;
    background: linear-gradient(135deg, #dcffe7, #73df9b) !important;
  }

  body.front.portal.tpl-iqiyi .ds3-bottom-nav span {
    font-size: 14px !important;
    line-height: 1 !important;
  }

  body.front.portal.tpl-iqiyi .portal-main-flow .channel-section .poster-row,
  body.front.portal.tpl-iqiyi.search-page .poster-row.search-results,
  body.front.portal.tpl-iqiyi.player-page .movie-grid.related-grid,
  body.front.portal.tpl-iqiyi.catalog-body #catalog-results.movie-grid,
  body.front.portal.tpl-iqiyi .detail-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px 12px !important;
  }
}

@media (max-width: 760px) {
  body.front.portal.tpl-iqiyi.portal-search-open .portal-search,
  body.front.portal.tpl-iqiyi.search-page .portal-search {
    position: static !important;
    display: grid !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    margin: 6px 0 0 !important;
    padding: 0 4px 0 12px !important;
    border: 1px solid rgba(75, 213, 127, .34) !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, rgba(10, 32, 22, .96), rgba(5, 17, 13, .88)) !important;
    box-shadow: none !important;
    clip: auto !important;
    overflow: hidden !important;
    transform: none !important;
  }

  :root[data-portal-theme="light"] body.front.portal.tpl-iqiyi.portal-search-open .portal-search,
  :root[data-portal-theme="light"] body.front.portal.tpl-iqiyi.search-page .portal-search {
    border-color: rgba(77, 198, 117, .32) !important;
    background: linear-gradient(135deg, rgba(246, 255, 249, .98), rgba(229, 255, 239, .9)) !important;
  }

  body.front.portal.tpl-iqiyi.portal-search-open .portal-search input,
  body.front.portal.tpl-iqiyi.portal-search-open .portal-search button,
  body.front.portal.tpl-iqiyi.search-page .portal-search input,
  body.front.portal.tpl-iqiyi.search-page .portal-search button {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  body.front.portal.tpl-iqiyi.portal-search-open .portal-search input,
  body.front.portal.tpl-iqiyi.search-page .portal-search input {
    min-width: 0 !important;
    height: 100% !important;
    padding: 0 8px 0 0 !important;
    color: rgba(234, 248, 238, .95) !important;
    font-size: 13px !important;
    line-height: 1 !important;
  }

  :root[data-portal-theme="light"] body.front.portal.tpl-iqiyi.portal-search-open .portal-search input,
  :root[data-portal-theme="light"] body.front.portal.tpl-iqiyi.search-page .portal-search input {
    color: #183322 !important;
  }

  body.front.portal.tpl-iqiyi.portal-search-open .portal-search button,
  body.front.portal.tpl-iqiyi.search-page .portal-search button {
    width: auto !important;
    min-width: 56px !important;
    height: 30px !important;
    min-height: 30px !important;
    padding: 0 12px !important;
    border-radius: 999px !important;
    font-size: 12px !important;
    white-space: nowrap !important;
  }
}

/* Actor topic column */
body.front.portal.actor-page .actor-shell {
  display: grid;
  gap: 18px;
  padding-top: 22px;
}

body.front.portal.actor-page .actor-shell > .breadcrumb {
  margin-bottom: -2px;
}

body.front.portal.actor-page .actor-region-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(132px, 168px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 14px 16px;
  overflow: hidden;
  border: 1px solid rgba(126, 220, 145, .2);
  border-radius: 18px;
  background:
    radial-gradient(circle at 0 0, rgba(84, 217, 125, .15), transparent 34%),
    radial-gradient(circle at 86% 0, rgba(101, 188, 225, .08), transparent 34%),
    linear-gradient(135deg, rgba(17, 35, 28, .88), rgba(8, 13, 17, .9));
  box-shadow: 0 18px 42px rgba(0, 0, 0, .14);
}

body.front.portal.actor-page .actor-region-heading {
  display: grid;
  gap: 4px;
  min-width: 0;
  color: var(--portal-text, #f7f9fc);
}

body.front.portal.actor-page .actor-region-heading strong {
  color: var(--portal-strong, #fff);
  font-size: 15px;
  font-weight: 950;
  line-height: 1.2;
}

body.front.portal.actor-page .actor-region-heading span {
  color: var(--portal-muted, #a5afbf);
  font-size: 12px;
  font-weight: 780;
  line-height: 1.35;
}

body.front.portal.actor-page .actor-region-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  scrollbar-width: none;
}

body.front.portal.actor-page .actor-region-tabs::-webkit-scrollbar {
  display: none;
}

body.front.portal.actor-page .actor-region-tabs a {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 52px;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(150, 180, 170, .24);
  border-radius: 999px;
  background: rgba(255, 255, 255, .055);
  color: rgba(241, 248, 244, .86);
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}

body.front.portal.actor-page .actor-region-tabs a:hover {
  border-color: rgba(145, 230, 166, .42);
  background: rgba(255, 255, 255, .09);
  transform: translateY(-1px);
}

body.front.portal.actor-page .actor-region-tabs a.active {
  border-color: var(--haoju-chip-border, rgba(133, 238, 170, .66));
  background: var(--haoju-chip-gradient, linear-gradient(135deg, rgba(216, 255, 230, .96), rgba(111, 226, 151, .74)));
  color: var(--haoju-chip-text, #0b2a18);
  box-shadow: var(--haoju-chip-shadow, 0 10px 26px rgba(64, 219, 118, .18));
}

body.front.portal.actor-page .actor-region-tabs a.is-empty:not(.active) {
  opacity: .56;
}

body.front.portal.actor-page .actor-region-tabs a span {
  color: inherit;
  font-size: .82em;
  opacity: .7;
}

body.front.portal.actor-page .actor-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: clamp(18px, 3vw, 34px);
  min-height: 236px;
  padding: clamp(24px, 3.2vw, 40px);
  overflow: hidden;
  border: 1px solid rgba(116, 218, 151, .22);
  border-radius: 24px;
  background:
    radial-gradient(circle at 12% 12%, rgba(79, 218, 120, .22), transparent 34%),
    radial-gradient(circle at 92% 6%, rgba(100, 190, 226, .12), transparent 38%),
    linear-gradient(135deg, rgba(20, 43, 33, .96), rgba(6, 13, 15, .94));
  box-shadow: 0 22px 54px rgba(0, 0, 0, .18);
}

body.front.portal.actor-page .actor-index-hero {
  grid-template-columns: minmax(0, 1fr) minmax(250px, 360px);
  align-items: center;
}

body.front.portal.actor-page .actor-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .04), transparent 36%),
    linear-gradient(180deg, transparent 62%, rgba(0, 0, 0, .18));
}

body.front.portal.actor-page .actor-hero > * {
  position: relative;
  z-index: 1;
}

body.front.portal.actor-page .actor-profile-hero {
  grid-template-columns: minmax(128px, 188px) minmax(0, 1fr);
  align-items: center;
}

body.front.portal.actor-page .actor-avatar,
body.front.portal.actor-page .actor-card-avatar {
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .035)),
    rgba(255, 255, 255, .06);
  color: var(--portal-strong, #fff);
  font-weight: 950;
  text-align: center;
}

body.front.portal.actor-page .actor-avatar {
  border-radius: 18px;
  box-shadow: 0 18px 32px rgba(0, 0, 0, .22);
}

body.front.portal.actor-page .actor-card-avatar {
  width: 100%;
  border-radius: 12px;
}

body.front.portal.actor-page .actor-avatar img,
body.front.portal.actor-page .actor-card-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.front.portal.actor-page .actor-avatar span,
body.front.portal.actor-page .actor-card-avatar > span {
  padding: 16px;
  overflow-wrap: anywhere;
}

body.front.portal.actor-page .actor-portrait-block {
  display: grid;
  gap: 10px;
  align-content: start;
  justify-items: center;
}

body.front.portal.actor-page .actor-avatar-note {
  margin: 0;
  color: var(--portal-muted, #a5afbf);
  font-size: 13px;
  font-weight: 850;
  text-align: center;
}

body.front.portal.actor-page .actor-hero-copy {
  display: grid;
  gap: 14px;
  min-width: 0;
  justify-items: start;
}

body.front.portal.actor-page .actor-hero-copy .eyebrow {
  margin: 0;
  color: #f0bb52;
}

body.front.portal.actor-page .actor-hero-copy h1 {
  margin: 0;
  color: var(--portal-strong, #fff);
  font-size: clamp(34px, 3.8vw, 54px);
  line-height: 1.08;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

body.front.portal.actor-page .actor-hero-copy p:not(.eyebrow) {
  max-width: 760px;
  margin: 0;
  color: rgba(227, 235, 231, .82);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.85;
}

body.front.portal.actor-page .actor-profile-title span {
  color: var(--portal-muted, #a5afbf);
  font-size: .74em;
  font-weight: 800;
}

body.front.portal.actor-page .actor-hero-panel {
  display: grid;
  gap: 10px;
  align-self: stretch;
}

body.front.portal.actor-page .actor-hero-panel span {
  display: grid;
  gap: 4px;
  align-content: center;
  min-height: 58px;
  padding: 12px 14px;
  border: 1px solid rgba(150, 180, 170, .18);
  border-radius: 14px;
  background: rgba(255, 255, 255, .055);
}

body.front.portal.actor-page .actor-hero-panel strong {
  color: var(--portal-strong, #fff);
  font-size: 15px;
  font-weight: 950;
}

body.front.portal.actor-page .actor-hero-panel small {
  color: var(--portal-muted, #a5afbf);
  font-size: 12px;
  font-weight: 780;
}

body.front.portal.actor-page .actor-basic-info {
  display: grid;
  gap: 10px;
  width: 100%;
  margin: 6px 0 0;
}

body.front.portal.actor-page .actor-info-row {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

body.front.portal.actor-page .actor-info-row dt {
  color: var(--portal-muted, #a5afbf);
  font-weight: 850;
}

body.front.portal.actor-page .actor-info-row dd {
  margin: 0;
  color: var(--portal-text, #f7f9fc);
  font-weight: 820;
  overflow-wrap: anywhere;
}

body.front.portal.actor-page .actor-bio p {
  max-width: 980px;
  line-height: 1.9;
}

body.front.portal.actor-page .actor-meta-chips,
body.front.portal.actor-page .actor-candidate-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

body.front.portal.actor-page .actor-meta-chips span,
body.front.portal.actor-page .actor-source-link,
body.front.portal.actor-page .actor-candidate-grid a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(150, 180, 170, .26);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  color: var(--portal-text, #f7f9fc);
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
}

body.front.portal.actor-page .actor-source-link {
  margin-top: 14px;
}

body.front.portal.actor-page .actor-index-section {
  padding: clamp(16px, 2vw, 22px);
}

body.front.portal.actor-page .actor-index-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

body.front.portal.actor-page .actor-card {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 11px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(150, 180, 170, .18);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .035));
  color: var(--portal-text, #f7f9fc);
  text-decoration: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

body.front.portal.actor-page .actor-card:hover {
  border-color: rgba(145, 230, 166, .36);
  box-shadow: 0 18px 36px rgba(0, 0, 0, .2);
  transform: translateY(-2px);
}

body.front.portal.actor-page .actor-card-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

body.front.portal.actor-page .actor-card-copy strong,
body.front.portal.actor-page .actor-candidate-grid strong {
  overflow: hidden;
  color: var(--portal-strong, #fff);
  font-weight: 950;
  line-height: 1.28;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.front.portal.actor-page .actor-card-copy > span,
body.front.portal.actor-page .actor-card-copy em,
body.front.portal.actor-page .actor-candidate-grid span {
  color: var(--portal-muted, #a5afbf);
  font-style: normal;
  font-size: 13px;
  line-height: 1.45;
}

body.front.portal.actor-page .actor-card-copy > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.front.portal.actor-page .actor-card-copy em {
  display: -webkit-box;
  min-height: 2.9em;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

body.front.portal.actor-page .actor-candidate-grid a.profiled {
  border-color: rgba(96, 217, 139, .36);
  background: linear-gradient(135deg, rgba(196, 255, 216, .2), rgba(96, 217, 139, .11));
}

body.front.portal.actor-page .actor-work-grid {
  grid-template-columns: repeat(8, minmax(0, 1fr));
}

@media (min-width: 761px) and (max-width: 1439px) {
  body.front.portal.actor-page .actor-work-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

body.front.portal.actor-page .actor-work-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
}

body.front.portal.actor-page .actor-work-pager > :where(a, span, strong),
body.front.portal.actor-page .actor-page-jump {
  margin: 0;
}

body.front.portal.actor-page .actor-page-total {
  border-color: transparent;
  background: transparent;
  color: var(--portal-muted, #a5afbf);
  box-shadow: none;
}

body.front.portal.actor-page .actor-page-control.is-disabled {
  opacity: .42;
  cursor: not-allowed;
}

body.front.portal.actor-page .actor-page-numbers {
  display: inline-flex;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.front.portal.actor-page .actor-page-numbers :where(a, strong) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  border: 1px solid var(--portal-line);
  border-radius: 8px;
  color: var(--portal-text, #edf4ef);
  background: rgba(255, 255, 255, .045);
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

body.front.portal.actor-page .actor-page-numbers a:hover,
body.front.portal.actor-page .actor-page-numbers strong {
  border-color: var(--haoju-chip-border, rgba(133, 238, 170, .66));
  color: var(--haoju-chip-text, #0b2a18);
  background: var(--haoju-chip-gradient, linear-gradient(135deg, #f2fff5, #9fdeaf));
}

body.front.portal.actor-page .actor-page-jump select {
  height: 28px;
  min-width: 82px;
  padding: 0 26px 0 9px;
  border: 1px solid var(--portal-line);
  border-radius: 6px;
  color: var(--portal-strong, #fff);
  background: var(--portal-surface, #141820);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

body.front.portal.actor-page .actor-mobile-more {
  display: none;
}

:root[data-portal-theme="light"] body.front.portal.actor-page .actor-region-card {
  border-color: rgba(76, 177, 111, .24);
  background:
    radial-gradient(circle at 0 0, rgba(111, 230, 150, .22), transparent 38%),
    radial-gradient(circle at 86% 0, rgba(111, 195, 235, .16), transparent 36%),
    linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(240, 250, 246, .9));
  box-shadow: 0 18px 40px rgba(79, 112, 92, .08);
}

:root[data-portal-theme="light"] body.front.portal.actor-page .actor-region-tabs a {
  border-color: rgba(49, 70, 92, .14);
  background: rgba(255, 255, 255, .78);
  color: rgba(18, 34, 48, .86);
}

:root[data-portal-theme="light"] body.front.portal.actor-page .actor-region-tabs a.active {
  color: var(--haoju-chip-text, #0b2a18);
  background: var(--haoju-chip-gradient, linear-gradient(135deg, #f2fff5, #9fdeaf));
}

:root[data-portal-theme="light"] body.front.portal.actor-page .actor-hero {
  border-color: rgba(76, 177, 111, .24);
  background:
    radial-gradient(circle at 12% 10%, rgba(111, 230, 150, .3), transparent 38%),
    radial-gradient(circle at 88% 0, rgba(111, 195, 235, .2), transparent 40%),
    linear-gradient(135deg, rgba(250, 255, 252, .98), rgba(236, 247, 241, .92));
  box-shadow: 0 18px 44px rgba(79, 112, 92, .1);
}

:root[data-portal-theme="light"] body.front.portal.actor-page .actor-hero-copy p:not(.eyebrow),
:root[data-portal-theme="light"] body.front.portal.actor-page .actor-avatar-note,
:root[data-portal-theme="light"] body.front.portal.actor-page .actor-info-row dt,
:root[data-portal-theme="light"] body.front.portal.actor-page .actor-region-heading span,
:root[data-portal-theme="light"] body.front.portal.actor-page .actor-card-copy > span,
:root[data-portal-theme="light"] body.front.portal.actor-page .actor-card-copy em,
:root[data-portal-theme="light"] body.front.portal.actor-page .actor-candidate-grid span,
:root[data-portal-theme="light"] body.front.portal.actor-page .actor-hero-panel small {
  color: rgba(43, 57, 73, .7);
}

:root[data-portal-theme="light"] body.front.portal.actor-page .actor-card,
:root[data-portal-theme="light"] body.front.portal.actor-page .actor-hero-panel span {
  border-color: rgba(49, 70, 92, .12);
  background: linear-gradient(145deg, rgba(255, 255, 255, .96), rgba(242, 251, 246, .9));
  box-shadow: 0 12px 26px rgba(73, 120, 88, .06);
}

:root[data-portal-theme="light"] body.front.portal.actor-page .actor-card-avatar,
:root[data-portal-theme="light"] body.front.portal.actor-page .actor-avatar {
  background: linear-gradient(145deg, rgba(232, 244, 238, .96), rgba(255, 255, 255, .9));
}

:root[data-portal-theme="light"] body.front.portal.actor-page .actor-page-numbers :where(a, strong),
:root[data-portal-theme="light"] body.front.portal.actor-page .actor-page-jump select {
  color: #1b2c24;
  background-color: rgba(255, 255, 255, .94);
}

:root[data-portal-theme="light"] body.front.portal.actor-page .actor-page-numbers a:hover,
:root[data-portal-theme="light"] body.front.portal.actor-page .actor-page-numbers strong {
  color: var(--haoju-chip-text, #0b2a18);
  background: var(--haoju-chip-gradient, linear-gradient(135deg, #f2fff5, #9fdeaf));
}

@media (min-width: 961px) and (max-width: 1180px) {
  body.front.portal.actor-page .actor-index-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
  }

  body.front.portal.actor-page .actor-index-hero {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  }
}

@media (min-width: 761px) and (max-width: 960px) {
  body.front.portal.actor-page .actor-region-card {
    grid-template-columns: 1fr;
  }

  body.front.portal.actor-page .actor-region-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  body.front.portal.actor-page .actor-index-hero {
    grid-template-columns: 1fr;
  }

  body.front.portal.actor-page .actor-hero-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.front.portal.actor-page .actor-index-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (max-width: 960px) {
  body.front.portal.actor-page .actor-work-pager-desktop {
    display: none;
  }

  body.front.portal.actor-page .actor-mobile-more {
    display: grid;
    gap: 8px;
    justify-items: stretch;
    margin-top: 16px;
  }

  body.front.portal.actor-page .actor-load-more,
  body.front.portal.actor-page .actor-load-more-complete {
    display: grid;
    gap: 3px;
    place-items: center;
    min-height: 48px;
    padding: 8px 16px;
    border: 1px solid var(--haoju-chip-border, rgba(133, 238, 170, .54));
    border-radius: 12px;
    color: var(--haoju-chip-text, #0b2a18);
    background: var(--haoju-chip-gradient, linear-gradient(135deg, #f2fff5, #9fdeaf));
    box-shadow: var(--haoju-chip-shadow, 0 8px 20px rgba(64, 219, 118, .15));
    font-size: 14px;
    font-weight: 900;
    text-align: center;
    text-decoration: none;
  }

  body.front.portal.actor-page .actor-load-more small {
    color: inherit;
    font-size: 11px;
    font-weight: 720;
    opacity: .68;
  }

  body.front.portal.actor-page .actor-load-more.is-loading {
    opacity: .72;
    pointer-events: none;
  }

  body.front.portal.actor-page .actor-load-more-status {
    min-height: 18px;
    margin: 0;
    color: var(--portal-muted, #a5afbf);
    font-size: 12px;
    text-align: center;
  }
}

@media (max-width: 760px) {
  body.front.portal.actor-page .actor-shell {
    gap: 14px;
    padding-top: 12px;
    padding-bottom: calc(92px + env(safe-area-inset-bottom));
  }

  body.front.portal.actor-page .actor-shell > .breadcrumb {
    margin-bottom: 0;
  }

  body.front.portal.actor-page .actor-region-card {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
    border-radius: 16px;
  }

  body.front.portal.actor-page .actor-region-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  body.front.portal.actor-page .actor-region-heading span {
    text-align: right;
  }

  body.front.portal.actor-page .actor-region-tabs {
    flex-wrap: nowrap;
    gap: 7px;
    margin-inline: -2px;
    overflow-x: auto;
    padding: 0 2px 1px;
  }

  body.front.portal.actor-page .actor-region-tabs a {
    min-width: auto;
    min-height: 30px;
    padding: 0 11px;
    font-size: 12px;
  }

  body.front.portal.actor-page .actor-hero {
    min-height: 0;
    padding: 16px;
    border-radius: 18px;
  }

  body.front.portal.actor-page .actor-index-hero {
    grid-template-columns: 1fr;
  }

  body.front.portal.actor-page .actor-profile-hero {
    grid-template-columns: 92px minmax(0, 1fr);
    align-items: start;
    gap: 14px;
  }

  body.front.portal.actor-page .actor-hero-copy {
    gap: 10px;
  }

  body.front.portal.actor-page .actor-hero-copy h1 {
    font-size: clamp(26px, 8vw, 34px);
  }

  body.front.portal.actor-page .actor-profile-title span {
    display: block;
    margin-top: 3px;
  }

  body.front.portal.actor-page .actor-hero-copy p:not(.eyebrow) {
    font-size: 13px;
    line-height: 1.65;
  }

  body.front.portal.actor-page .actor-hero-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  body.front.portal.actor-page .actor-hero-panel span {
    min-height: 48px;
    padding: 9px 8px;
    border-radius: 12px;
  }

  body.front.portal.actor-page .actor-hero-panel strong {
    font-size: 12px;
  }

  body.front.portal.actor-page .actor-hero-panel small {
    overflow: hidden;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.front.portal.actor-page .actor-index-section {
    padding: 12px;
  }

  body.front.portal.actor-page .actor-index-section .section-title {
    align-items: flex-start;
    margin-bottom: 12px;
  }

  body.front.portal.actor-page .actor-index-section .section-title h2 {
    font-size: 20px;
  }

  body.front.portal.actor-page .actor-index-section .section-title > span {
    display: none;
  }

  body.front.portal.actor-page .actor-index-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  body.front.portal.actor-page .actor-card {
    gap: 8px;
    padding: 8px;
    border-radius: 13px;
  }

  body.front.portal.actor-page .actor-card-avatar {
    border-radius: 10px;
  }

  body.front.portal.actor-page .actor-card-copy {
    gap: 3px;
  }

  body.front.portal.actor-page .actor-card-copy strong {
    font-size: 14px;
  }

  body.front.portal.actor-page .actor-card-copy > span,
  body.front.portal.actor-page .actor-card-copy em {
    font-size: 12px;
    line-height: 1.4;
  }

  body.front.portal.actor-page .actor-card-copy em {
    min-height: 2.8em;
  }

  body.front.portal.actor-page .actor-work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.front.portal.actor-page .actor-meta-chips span,
  body.front.portal.actor-page .actor-source-link,
  body.front.portal.actor-page .actor-candidate-grid a {
    min-height: 30px;
    padding: 0 10px;
    font-size: 12px;
  }

  body.front.portal.actor-page .actor-basic-info {
    gap: 8px;
    margin-top: 4px;
  }

  body.front.portal.actor-page .actor-info-row {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}

@media (max-width: 360px) {
  body.front.portal.actor-page .actor-profile-hero {
    grid-template-columns: 1fr;
  }

  body.front.portal.actor-page .actor-portrait-block {
    justify-items: start;
  }

  body.front.portal.actor-page .actor-avatar {
    width: min(142px, 46vw);
  }
}

@media (max-width: 760px) {
  body.front.portal.tpl-iqiyi {
    padding-bottom: calc(112px + env(safe-area-inset-bottom)) !important;
  }
}

/* Homepage poster cards show one centered title below the poster. */
body.front .portal-card h3,
body.front .ds3-card h3,
body.front .baxt-card h3,
body.front .friday-card h3,
body.front .jable-video-card h3,
body.front .jable-card h3,
body.front .nnyy-card h3,
body.front .stream-poster-card h3,
body.front .tube-mini-video h3,
body.front .tube-video-card h3 {
  text-align: center;
}
