: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;
}

* {
  box-sizing: border-box;
}

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;
}

.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-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: 14px;
  right: 14px;
  z-index: 2;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

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

.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);
}

.domain-list-table .table-head,
.domain-list-table article {
  grid-template-columns: minmax(110px, 1fr) minmax(160px, 1.7fr) minmax(160px, 1.7fr) 72px 110px 110px 64px;
}

.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;
}

.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;
}

.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;
}

.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;
}

.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;
}

.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: 760px) {
  .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::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 28px;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(7,10,16,0), var(--portal-bg) 76%);
}

:root[data-portal-theme="light"] .front .breadcrumb::after {
  background: linear-gradient(90deg, rgba(246,247,250,0), var(--portal-bg) 76%);
}

.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 {
  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;
}

.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: 760px) {
  .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-icon {
    width: 15px;
    height: 15px;
  }

  .front .theme-label {
    min-width: 48px;
  }

  .front .theme-switch {
    width: 34px;
    height: 20px;
  }

  .front .theme-switch::after {
    left: 16px;
    width: 16px;
    height: 16px;
  }

  :root[data-portal-theme="light"] .front .theme-switch::after {
    left: 2px;
  }

  .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::-webkit-scrollbar {
    display: none;
  }

  .front .sort-tabs a {
    min-width: 96px;
    padding: 10px 12px;
  }

  .front .portal-main-flow {
    gap: 14px;
  }

  .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;
    content-visibility: visible;
    contain-intrinsic-size: auto;
  }

  .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));
}

@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(3, 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: space-between;
}

.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;
}

.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 {
    grid-template-columns: 1fr;
  }

  .admin-list-table {
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .domain-list-table .table-head,
  .domain-list-table article {
    min-width: 960px;
  }

  .traffic-list-table .table-head,
  .traffic-list-table article {
    min-width: 1180px;
  }

  .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;
  }

  .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;
  }
}

.front .section-block,
.front .rank-box,
.front .info-panel,
.front .channel-cloud,
.front .movie-card,
.front .portal-card {
  content-visibility: auto;
  contain-intrinsic-size: 280px 420px;
}

@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 .section-block,
  .front .rank-box,
  .front .info-panel,
  .front .channel-cloud,
  .front .movie-card,
  .front .portal-card {
    content-visibility: visible;
    contain-intrinsic-size: auto;
  }

  .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;
    content-visibility: visible;
    contain-intrinsic-size: auto;
  }

  .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 .movie-card,
  .front .portal-card {
    content-visibility: visible;
    contain-intrinsic-size: auto;
  }

  .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 {
    padding: 12px;
  }

  .front .comment-form-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .front .rating-field {
    width: 100%;
  }

  .front .rating-select {
    width: 100%;
  }

  .front .comment-form textarea {
    min-height: 112px;
    font-size: 13px;
  }

  .front .comment-item {
    padding: 12px;
  }

  .front .section-head {
    margin-top: 18px;
  }

  .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 .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;
  }
}

/* iQIYI-inspired original template: green video-platform rhythm without copying brand assets. */
.front.tpl-iqiyi {
  --accent: #18d866;
  --accent-2: #d7ff66;
  --portal-bg: #050807;
  --portal-surface: #0b1110;
  --portal-surface-2: #101915;
  --portal-card: rgba(10, 18, 16, .88);
  --portal-elevated: #101915;
  --portal-pill: #12211b;
  --portal-line: rgba(149, 255, 174, .14);
  --portal-muted: #9db0a5;
  --portal-shadow: 0 28px 80px rgba(0, 0, 0, .46);
  background-image:
    radial-gradient(circle at 12% 0%, rgba(24, 216, 102, .16), transparent 34vw),
    radial-gradient(circle at 86% 12%, rgba(215, 255, 102, .08), transparent 30vw),
    linear-gradient(180deg, #050807 0%, #070b0b 48%, #050807 100%);
}

:root[data-portal-theme="light"] .front.tpl-iqiyi {
  --portal-bg: #f5f8f5;
  --portal-surface: #ffffff;
  --portal-surface-2: #edf5ee;
  --portal-card: rgba(255, 255, 255, .94);
  --portal-elevated: #ffffff;
  --portal-pill: #f1f8f0;
  --portal-line: rgba(26, 90, 50, .14);
  --portal-muted: #637266;
  background-image:
    radial-gradient(circle at 9% 0%, rgba(24, 216, 102, .13), transparent 34vw),
    linear-gradient(180deg, #f7fbf7 0%, #eef6ef 48%, #f6f8f5 100%);
}

.front.tpl-iqiyi .portal-top {
  border-bottom-color: rgba(149, 255, 174, .12);
  background:
    linear-gradient(180deg, rgba(5, 8, 7, .96), rgba(5, 8, 7, .88)),
    radial-gradient(circle at 0 0, rgba(24, 216, 102, .16), transparent 420px);
  box-shadow: 0 10px 36px rgba(0, 0, 0, .32);
}

:root[data-portal-theme="light"] .front.tpl-iqiyi .portal-top {
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 10px 30px rgba(26, 90, 50, .08);
}

.front.tpl-iqiyi .brand-mark {
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(24, 216, 102, .95), rgba(215, 255, 102, .72)),
    #0b1110;
  box-shadow: 0 18px 38px rgba(24, 216, 102, .22);
}

.front.tpl-iqiyi .portal-brand strong {
  letter-spacing: .01em;
}

.front.tpl-iqiyi .portal-search {
  border-color: rgba(149, 255, 174, .18);
  background: rgba(14, 24, 21, .86);
}

.front.tpl-iqiyi .portal-search:focus-within {
  border-color: rgba(24, 216, 102, .56);
  box-shadow: 0 0 0 3px rgba(24, 216, 102, .12);
}

.front.tpl-iqiyi .portal-search button,
.front.tpl-iqiyi .primary-btn,
.front.tpl-iqiyi .hero-action-detail,
.front.tpl-iqiyi .comment-form .primary-btn,
.front.tpl-iqiyi .pager button {
  border-color: rgba(24, 216, 102, .76);
  background: linear-gradient(135deg, #18d866, #69ef57);
  color: #06100a;
  box-shadow: 0 14px 34px rgba(24, 216, 102, .22);
}

.front.tpl-iqiyi .ghost-btn,
.front.tpl-iqiyi .hero-action-play,
.front.tpl-iqiyi .detail-actions .like-button,
.front.tpl-iqiyi .theme-toggle,
.front.tpl-iqiyi .user-chip {
  border-color: rgba(149, 255, 174, .18);
  background: rgba(255, 255, 255, .055);
}

.front.tpl-iqiyi .portal-nav {
  gap: 8px;
}

.front.tpl-iqiyi .portal-nav > a,
.front.tpl-iqiyi .nav-dropdown-trigger {
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
}

.front.tpl-iqiyi .portal-nav > a.active,
.front.tpl-iqiyi .portal-nav > a:hover,
.front.tpl-iqiyi .nav-dropdown-trigger.active,
.front.tpl-iqiyi .nav-dropdown-trigger:hover {
  border-color: rgba(24, 216, 102, .24);
  background: rgba(24, 216, 102, .12);
  color: #f8fff8;
}

: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-trigger.active,
:root[data-portal-theme="light"] .front.tpl-iqiyi .nav-dropdown-trigger:hover {
  color: #102116;
}

.front.tpl-iqiyi .nav-mega {
  border-color: rgba(149, 255, 174, .18);
  background: rgba(10, 18, 16, .96);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .46);
}

.front.tpl-iqiyi .nav-mega a:hover,
.front.tpl-iqiyi .nav-mega a.active,
.front.tpl-iqiyi .nav-mega-title {
  color: #7dff8b;
}

.front.tpl-iqiyi .hot-searches {
  border-bottom: 1px solid rgba(149, 255, 174, .10);
}

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

.front.tpl-iqiyi .hot-searches a {
  border: 1px solid rgba(149, 255, 174, .16);
  background: rgba(18, 33, 27, .68);
}

.front.tpl-iqiyi .portal-hero {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 292px);
  gap: 12px;
}

.front.tpl-iqiyi .hero-switcher,
.front.tpl-iqiyi .hero-feature {
  overflow: hidden;
  border-color: rgba(149, 255, 174, .14);
  border-radius: 22px;
  background: #060908;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .48);
}

.front.tpl-iqiyi .hero-switcher-tabs {
  position: absolute;
  top: 22px;
  left: 28px;
  z-index: 5;
  margin: 0;
  border: 1px solid rgba(149, 255, 174, .18);
  background: rgba(6, 12, 10, .72);
  backdrop-filter: blur(16px);
}

.front.tpl-iqiyi .hero-switcher-tabs button {
  color: rgba(238, 248, 240, .82);
}

.front.tpl-iqiyi .hero-switcher-tabs button.active,
.front.tpl-iqiyi .hero-switcher-tabs button:hover {
  background: linear-gradient(135deg, rgba(24, 216, 102, .96), rgba(92, 238, 88, .92));
  color: #06100a;
}

.front.tpl-iqiyi .hero-slide {
  min-height: 316px;
  padding: 72px 32px 36px;
  background-image:
    linear-gradient(90deg, rgba(5, 8, 7, .96) 0%, rgba(5, 8, 7, .74) 44%, rgba(5, 8, 7, .28) 100%),
    linear-gradient(0deg, rgba(5, 8, 7, .92), transparent 44%),
    var(--hero-backdrop);
  background-position: center;
  background-size: cover;
}

.front.tpl-iqiyi .hero-panel h1 {
  max-width: 720px;
  font-size: clamp(30px, 2.8vw, 40px);
  line-height: 1.1;
}

.front.tpl-iqiyi .hero-panel p {
  max-width: 720px;
  color: rgba(242, 248, 244, .88);
}

.front.tpl-iqiyi .hero-dots {
  left: 36px;
  bottom: 22px;
  gap: 10px;
}

.front.tpl-iqiyi .hero-dots button {
  width: 28px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .22);
}

.front.tpl-iqiyi .hero-dots button.active {
  width: 50px;
  background: #18d866;
  box-shadow: 0 0 20px rgba(24, 216, 102, .46);
}

.front.tpl-iqiyi .focus-panel,
.front.tpl-iqiyi .rank-box,
.front.tpl-iqiyi .section-block,
.front.tpl-iqiyi .channel-cloud,
.front.tpl-iqiyi .info-panel,
.front.tpl-iqiyi .player-context-card,
.front.tpl-iqiyi .comment-panel {
  border-color: rgba(149, 255, 174, .13);
  background:
    linear-gradient(180deg, rgba(16, 25, 21, .94), rgba(9, 15, 14, .92));
  box-shadow: 0 16px 48px rgba(0, 0, 0, .25);
}

:root[data-portal-theme="light"] .front.tpl-iqiyi .focus-panel,
:root[data-portal-theme="light"] .front.tpl-iqiyi .rank-box,
:root[data-portal-theme="light"] .front.tpl-iqiyi .section-block,
:root[data-portal-theme="light"] .front.tpl-iqiyi .channel-cloud,
:root[data-portal-theme="light"] .front.tpl-iqiyi .info-panel,
:root[data-portal-theme="light"] .front.tpl-iqiyi .player-context-card,
:root[data-portal-theme="light"] .front.tpl-iqiyi .comment-panel {
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 14px 38px rgba(26, 90, 50, .08);
}

.front.tpl-iqiyi .channel-cloud {
  padding: 18px;
}

.front.tpl-iqiyi .channel-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.front.tpl-iqiyi .channel-grid a {
  min-height: 90px;
  border-color: rgba(149, 255, 174, .14);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(24, 216, 102, .12), rgba(255, 255, 255, .035));
}

.front.tpl-iqiyi .channel-grid a:hover {
  border-color: rgba(24, 216, 102, .48);
  transform: translateY(-2px);
}

.front.tpl-iqiyi .channel-section-head {
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(149, 255, 174, .10);
}

.front.tpl-iqiyi .channel-mark {
  border-radius: 6px;
  background: linear-gradient(135deg, #18d866, #d7ff66);
  box-shadow: 0 0 22px rgba(24, 216, 102, .30);
}

.front.tpl-iqiyi .channel-genre-tabs a,
.front.tpl-iqiyi .filter-values a,
.front.tpl-iqiyi .sort-tabs a,
.front.tpl-iqiyi .facts span {
  border-color: rgba(149, 255, 174, .14);
  background: rgba(255, 255, 255, .045);
}

.front.tpl-iqiyi .channel-genre-tabs a:hover,
.front.tpl-iqiyi .filter-values a.active,
.front.tpl-iqiyi .filter-values a:hover,
.front.tpl-iqiyi .sort-tabs a.active,
.front.tpl-iqiyi .sort-tabs a:hover {
  border-color: rgba(24, 216, 102, .56);
  background: rgba(24, 216, 102, .18);
  color: #effff2;
}

:root[data-portal-theme="light"] .front.tpl-iqiyi .channel-genre-tabs 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-iqiyi .sort-tabs a.active,
:root[data-portal-theme="light"] .front.tpl-iqiyi .sort-tabs a:hover {
  color: #102116;
}

.front.tpl-iqiyi .poster,
.front.tpl-iqiyi .movie-card .poster {
  border-color: rgba(149, 255, 174, .13);
  border-radius: 13px;
  background: #020403;
}

.front.tpl-iqiyi .poster span,
.front.tpl-iqiyi .movie-card .poster span {
  background: rgba(6, 16, 10, .82);
  color: #d7ff66;
}

.front.tpl-iqiyi .movie-card:hover,
.front.tpl-iqiyi .portal-card:hover {
  transform: translateY(-3px);
}

.front.tpl-iqiyi .rank-list li:first-child::before,
.front.tpl-iqiyi .rank-list li:nth-child(2)::before,
.front.tpl-iqiyi .rank-list li:nth-child(3)::before {
  border-color: rgba(24, 216, 102, .36);
  background: rgba(24, 216, 102, .16);
  color: #7dff8b;
}

.front.tpl-iqiyi .rank-list li span:not(.score-empty) {
  background: rgba(215, 255, 102, .12);
  color: #d7ff66;
}

.front.tpl-iqiyi .list-hero {
  padding: 24px 0 18px;
  border-bottom-color: rgba(149, 255, 174, .12);
}

.front.tpl-iqiyi .filter-panel {
  border-color: rgba(149, 255, 174, .13);
  background: rgba(10, 18, 16, .74);
}

.front.tpl-iqiyi .content-count-badge,
.front.tpl-iqiyi .page-jump,
.front.tpl-iqiyi .pager a,
.front.tpl-iqiyi .pager strong {
  border-color: rgba(149, 255, 174, .16);
  background: rgba(255, 255, 255, .045);
}

.front.tpl-iqiyi .detail-hero {
  min-height: 404px;
  background-color: #050807;
}

.front.tpl-iqiyi .detail-hero::after {
  background:
    linear-gradient(90deg, rgba(5, 8, 7, .94), rgba(5, 8, 7, .68) 42%, rgba(5, 8, 7, .32)),
    linear-gradient(0deg, rgba(5, 8, 7, .95), transparent 52%);
}

.front.tpl-iqiyi .detail-copy h1 {
  font-size: clamp(30px, 2.7vw, 40px);
}

.front.tpl-iqiyi .detail-actions {
  gap: 10px;
}

.front.tpl-iqiyi .meta-links a {
  border: 1px solid rgba(149, 255, 174, .16);
  border-radius: 999px;
  padding: 4px 9px;
  text-decoration: none;
  background: rgba(255, 255, 255, .045);
}

.front.tpl-iqiyi .meta-links a:hover {
  border-color: rgba(24, 216, 102, .50);
  color: #7dff8b;
}

@media (max-width: 1180px) {
  .front.tpl-iqiyi .channel-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .front.tpl-iqiyi {
    background-image:
      radial-gradient(circle at 0 0, rgba(24, 216, 102, .13), transparent 280px),
      linear-gradient(180deg, #050807 0%, #060a09 100%);
  }

  .front.tpl-iqiyi .portal-top {
    background: rgba(5, 8, 7, .96);
  }

  .front.tpl-iqiyi .portal-nav {
    gap: 8px;
    padding-bottom: 8px;
  }

  .front.tpl-iqiyi .portal-nav > a,
  .front.tpl-iqiyi .nav-dropdown-trigger {
    min-height: 34px;
    padding: 0 13px;
    border-radius: 999px;
  }

  .front.tpl-iqiyi .portal-hero {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .front.tpl-iqiyi .hero-switcher,
  .front.tpl-iqiyi .hero-feature {
    border-radius: 16px;
  }

  .front.tpl-iqiyi .hero-switcher-tabs {
    top: 12px;
    left: 12px;
    right: auto;
    height: 36px;
  }

  .front.tpl-iqiyi .hero-switcher-tabs button {
    min-width: 62px;
    padding: 0 13px;
    font-size: 13px;
  }

  .front.tpl-iqiyi .hero-slide {
    min-height: 318px;
    padding: 62px 16px 44px;
    background-image:
      linear-gradient(90deg, rgba(5, 8, 7, .96), rgba(5, 8, 7, .72)),
      linear-gradient(0deg, rgba(5, 8, 7, .96), transparent 58%),
      var(--hero-backdrop);
  }

  .front.tpl-iqiyi .hero-panel h1 {
    max-width: 92%;
    font-size: 28px;
    line-height: 1.1;
  }

  .front.tpl-iqiyi .hero-panel p {
    max-height: 72px;
    font-size: 13px;
    line-height: 1.55;
    overflow: hidden;
  }

  .front.tpl-iqiyi .hero-dots {
    left: 16px;
    bottom: 17px;
  }

  .front.tpl-iqiyi .hero-dots button {
    width: 24px;
    height: 6px;
  }

  .front.tpl-iqiyi .hero-dots button.active {
    width: 42px;
  }

  .front.tpl-iqiyi .focus-panel {
    display: none;
  }

  .front.tpl-iqiyi .channel-cloud {
    margin: 0 calc(var(--h5-edge) * -1) 12px;
    padding: 12px var(--h5-edge);
    border-width: 1px 0;
    border-radius: 0;
  }

  .front.tpl-iqiyi .channel-grid {
    display: flex;
    gap: 8px;
    margin: 0 calc(var(--h5-edge) * -1);
    padding: 0 var(--h5-edge) 4px;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .front.tpl-iqiyi .channel-grid a {
    flex: 0 0 118px;
    min-height: 64px;
    padding: 10px;
    border-radius: 13px;
  }

  .front.tpl-iqiyi .channel-grid a span {
    display: none;
  }

  .front.tpl-iqiyi .section-block,
  .front.tpl-iqiyi .info-panel,
  .front.tpl-iqiyi .comment-panel,
  .front.tpl-iqiyi .rank-box {
    border-radius: 15px;
  }

  .front.tpl-iqiyi .catalog-page .filter-panel {
    max-height: 178px;
    gap: 6px;
    padding-top: 8px;
    padding-bottom: 8px;
    background: rgba(10, 18, 16, .86);
  }

  .front.tpl-iqiyi .catalog-page .filter-row {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 6px;
  }

  .front.tpl-iqiyi .catalog-page .filter-row strong {
    width: 34px;
    min-height: 20px;
    font-size: 10.5px;
    color: rgba(157, 176, 165, .82);
  }

  .front.tpl-iqiyi .catalog-page .filter-values {
    gap: 5px;
  }

  .front.tpl-iqiyi .catalog-page .filter-values a {
    min-height: 26px;
    max-width: 84px;
    padding: 4px 8px;
    font-size: 11.5px;
  }

  .front.tpl-iqiyi .catalog-page .result-toolbar {
    gap: 6px;
    margin-bottom: 10px;
  }

  .front.tpl-iqiyi .catalog-page .sort-tabs a {
    min-width: 78px;
    min-height: 28px;
    padding: 6px 9px;
    border-radius: 999px;
  }

  .front.tpl-iqiyi .detail-hero {
    min-height: 0;
  }

  .front.tpl-iqiyi .detail-copy h1 {
    font-size: 24px;
    line-height: 1.16;
  }

  .front.tpl-iqiyi .detail-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .not-found-page {
    padding-top: 16px;
  }

  .not-found-hero {
    min-height: 0;
    padding: 24px 18px;
  }

  .not-found-hero h1 {
    font-size: 28px;
    line-height: 1.12;
  }

  .not-found-hero p {
    font-size: 14px;
    line-height: 1.65;
  }

  .public-good-panel {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 18px;
  }

  .not-found-card-row {
    grid-auto-flow: column;
    grid-auto-columns: 118px;
    grid-template-columns: none;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }

  .not-found-card-row .movie-card {
    min-width: 118px;
    scroll-snap-align: start;
  }

  .front.tpl-iqiyi .hero-slide {
    min-height: 280px;
    padding: 60px 16px 42px;
  }

  .front.tpl-iqiyi .hero-panel h1 {
    font-size: 25px;
    line-height: 1.12;
  }
}
