:root {
  --ink: #1a1714;
  --ink-2: #26211c;
  --ink-3: #3a322b;
  --paper: #f3efe8;
  --paper-2: #faf7f2;
  --line: #e3d9cd;
  --muted: #7a7168;
  --text: #2c2722;
  --accent: #c45a38;
  --accent-deep: #9a4328;
  --soft: #f1e2d4;
  --radius: 10px;
  --wrap: 1120px;
}

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

body.site-body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  overflow-x: clip;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", ui-sans-serif, system-ui, sans-serif;
}

body.site-body a {
  text-decoration: none;
}

/* ========== Header ========== */
body.site-body .topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(26, 23, 20, 0.94) !important;
  backdrop-filter: blur(16px) !important;
  border-bottom: 1px solid rgba(196, 90, 56, 0.45) !important;
  box-shadow: none !important;
}

body.site-body .topbar-inner {
  max-width: var(--wrap);
  margin: auto;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

body.site-body .brand,
body.site-body .footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  color: #f7f2eb !important;
  letter-spacing: 0.02em;
}

body.site-body .brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 6px !important;
  background: var(--accent) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  font-size: 10px;
  box-shadow: none !important;
}

body.site-body .desktop-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

body.site-body .nav-link {
  padding: 8px 14px;
  border-radius: 0 !important;
  color: #d8cfc4 !important;
  font-weight: 600;
  font-size: 14px;
  background: transparent !important;
  box-shadow: none !important;
  border-bottom: 2px solid transparent;
}

body.site-body .nav-link:hover,
body.site-body .nav-link.active {
  background: transparent !important;
  color: #fff !important;
  box-shadow: none !important;
  border-bottom-color: var(--accent);
}

body.site-body .menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--ink-2);
  border: 1px solid #4a4038;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}

body.site-body .menu-toggle span {
  width: 16px;
  height: 1.5px;
  background: #f3efe8;
  border-radius: 2px;
}

body.site-body .mobile-nav {
  display: none;
  background: var(--ink-2);
  border-top: 1px solid #3a322b;
  padding: 8px 16px 14px;
}

body.site-body .mobile-nav a,
body.site-body .mobile-nav a.is-active {
  display: block;
  padding: 11px 8px;
  border-radius: 8px;
  font-weight: 600;
  color: #ebe4da !important;
  background: transparent !important;
}

body.site-body .mobile-nav a:hover,
body.site-body .mobile-nav a.is-active {
  color: #fff !important;
  background: var(--ink-3) !important;
}

body.site-body .mobile-nav.is-open {
  display: block !important;
}

body.site-body main,
body.site-body .page-main,
body.site-body .detail-main,
body.site-body .home-main {
  padding-top: calc(60px + env(safe-area-inset-top, 0px));
}

/* ========== Hero ========== */
body.site-body .hero,
body.site-body .home-hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: var(--ink);
}

body.site-body .hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}

body.site-body .hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

body.site-body .hero-bg,
body.site-body .detail-bg,
body.site-body .category-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(0.92) brightness(0.58);
  transform: none;
  opacity: 1;
}

body.site-body .hero-slide:after,
body.site-body .detail-hero:after,
body.site-body .category-hero:after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(26, 23, 20, 0.92) 0%, rgba(26, 23, 20, 0.55) 48%, rgba(26, 23, 20, 0.72) 100%),
    linear-gradient(180deg, transparent 58%, var(--paper) 100%) !important;
}

body.site-body .hero-inner,
body.site-body .home-hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--wrap);
  margin: auto;
  min-height: 560px;
  display: grid;
  grid-template-columns: 1.15fr 0.72fr;
  align-items: center;
  gap: 48px;
  padding: 72px 24px 80px;
}

body.site-body .home-hero-panel {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

body.site-body .hero-copy h1,
body.site-body .home-hero-title {
  font-size: clamp(34px, 4.6vw, 52px);
  line-height: 1.18;
  font-weight: 750;
  color: #fffaf4 !important;
  margin: 10px 0 14px;
  letter-spacing: 0.01em;
}

body.site-body .hero-copy p,
body.site-body .home-hero-desc {
  font-size: 15px;
  line-height: 1.8;
  color: #ddd4c8 !important;
  max-width: 560px;
}

body.site-body .eyebrow,
body.site-body .home-hero-cat,
body.site-body .home-hero-year,
body.site-body .home-hero-heat {
  display: inline-flex;
  align-items: center;
  color: #f0c2ae !important;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: none;
  font-size: 12px;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 12px 0 0;
}

body.site-body .home-hero-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-bottom: 8px;
}

body.site-body .home-hero-accent {
  display: block;
  width: 36px;
  height: 2px;
  background: var(--accent);
  margin: 0 0 14px;
}

body.site-body .hero-tags,
body.site-body .tag-row,
body.site-body .home-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0;
}

body.site-body .hero-tags span,
body.site-body .home-hero-tags span {
  border-radius: 6px !important;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.08) !important;
  color: #efe6db !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  font-size: 12px;
  font-weight: 600;
}

body.site-body .tag-row span {
  background: var(--soft) !important;
  color: var(--accent-deep) !important;
  border: 0 !important;
  border-radius: 6px !important;
}

body.site-body .hero-actions,
body.site-body .home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

body.site-body .primary-btn,
body.site-body .home-hero-play,
body.site-body .ghost-btn,
body.site-body .ghost-dark,
body.site-body .home-hero-channel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px !important;
  padding: 11px 20px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: none !important;
  transform: none !important;
}

body.site-body .primary-btn,
body.site-body .home-hero-play,
body.site-body .quick-search button,
body.site-body .reset-filter {
  background: var(--accent) !important;
  color: #fff !important;
}

body.site-body .primary-btn:hover,
body.site-body .home-hero-play:hover {
  background: #d46844 !important;
}

body.site-body .ghost-btn,
body.site-body .home-hero-channel {
  background: transparent !important;
  color: #f4ece3 !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  backdrop-filter: none !important;
}

body.site-body .ghost-dark {
  background: var(--ink) !important;
  color: #f4ece3 !important;
  border: 1px solid var(--ink) !important;
}

body.site-body .ghost-dark:hover {
  background: var(--ink-2) !important;
}

body.site-body .hero-poster,
body.site-body .home-hero-poster {
  display: block;
  position: relative;
  justify-self: end;
  width: min(280px, 100%);
  border-radius: 12px !important;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28) !important;
  transform: none !important;
  border: 0 !important;
  background: var(--ink-2) !important;
}

body.site-body .hero-poster img,
body.site-body .home-hero-poster img,
body.site-body .home-hero-poster__media img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}

body.site-body .hero-poster span,
body.site-body .home-hero-poster__badge,
body.site-body .home-hero-poster__year,
body.site-body .home-hero-poster__genre,
body.site-body .home-hero-poster__play {
  position: absolute;
  border-radius: 6px !important;
  background: rgba(26, 23, 20, 0.78) !important;
  color: #f7f2eb !important;
  font-weight: 700;
  backdrop-filter: none !important;
  padding: 4px 8px;
  font-size: 11px;
}

body.site-body .home-hero-poster__badge {
  left: 10px;
  top: 10px;
  background: var(--accent) !important;
  color: #fff !important;
}

body.site-body .home-hero-poster__year {
  right: 10px;
  top: 10px;
}

body.site-body .home-hero-poster__genre {
  left: 10px;
  right: 10px;
  bottom: 10px;
}

body.site-body .home-hero-poster__play {
  display: none;
}

body.site-body .hero-controls,
body.site-body .home-hero-controls {
  position: absolute;
  z-index: 5;
  left: max(24px, calc(50% - 560px + 24px));
  right: auto;
  bottom: 22px;
  transform: none !important;
  display: flex;
  align-items: center;
  gap: 10px;
}

body.site-body .home-hero-index {
  color: #f0c2ae;
  font-size: 13px;
  letter-spacing: 0.06em;
}

body.site-body .hero-prev,
body.site-body .hero-next {
  width: 32px;
  height: 32px;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  color: #f4ece3 !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  font-size: 20px;
  line-height: 1;
  backdrop-filter: none !important;
}

body.site-body .hero-dots {
  display: flex;
  gap: 5px;
}

body.site-body .hero-dot {
  width: 16px;
  height: 3px;
  border-radius: 99px !important;
  background: rgba(255, 255, 255, 0.28) !important;
}

body.site-body .hero-dot.is-active {
  width: 28px;
  background: var(--accent) !important;
}

body.site-body .hero-progress,
body.site-body .hero-progress__bar {
  height: 2px;
  background: var(--accent);
}

/* ========== Search / filters ========== */
body.site-body .quick-search {
  max-width: var(--wrap);
  margin: 0 auto;
  position: relative;
  z-index: 8;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  padding: 20px 24px 0;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 16px;
  align-items: center;
  border: 0;
}

body.site-body .quick-search input,
body.site-body .filter-panel input,
body.site-body .filter-panel select {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 11px 13px;
  outline: none;
  color: var(--text);
}

body.site-body .quick-search button,
body.site-body .reset-filter {
  border-radius: 8px;
  padding: 0 18px;
  white-space: nowrap;
  font-weight: 700;
}

/* ========== Sections ========== */
body.site-body .content-section,
body.site-body .band-section,
body.site-body .category-section {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 48px 24px;
}

body.site-body .content-section.wide {
  max-width: var(--wrap);
}

body.site-body .section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  border-bottom: 0;
  padding-bottom: 0;
}

body.site-body .section-head h2,
body.site-body .featured-card h2,
body.site-body .channel-row h2,
body.site-body .detail-content h2,
body.site-body .page-hero h1,
body.site-body .category-hero h1,
body.site-body .rank-card h2,
body.site-body .quick-search h2 {
  font-family: inherit;
  font-weight: 750;
}

body.site-body .section-head h2 {
  font-size: 24px;
  line-height: 1.2;
  margin: 0;
  color: var(--ink);
}

body.site-body .section-head p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
}

body.site-body .section-icon {
  width: 4px !important;
  height: 22px !important;
  border-radius: 99px !important;
  background: var(--accent) !important;
  color: transparent !important;
  font-size: 0 !important;
  box-shadow: none !important;
}

body.site-body .home-section-more {
  margin-left: auto;
  color: var(--accent-deep) !important;
  font-weight: 700;
  font-size: 13px;
  border-bottom: 0;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  height: auto !important;
}

/* ========== Cards ========== */
body.site-body .movie-grid,
body.site-body .home-recommend-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

body.site-body .movie-card {
  background: #fff;
  border: 1px solid var(--line) !important;
  border-left: 1px solid var(--line) !important;
  border-radius: var(--radius) !important;
  overflow: hidden;
  box-shadow: none !important;
  transition: border-color 0.2s, transform 0.2s;
}

body.site-body .movie-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 10px 24px rgba(42, 38, 34, 0.08) !important;
  border-color: #d2c6b8 !important;
}

body.site-body .movie-card[data-hidden="true"] {
  display: none;
}

body.site-body .movie-link {
  display: block;
  height: 100%;
}

body.site-body .poster-wrap {
  position: relative;
  background: var(--ink);
  overflow: hidden;
}

body.site-body .poster-wrap img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}

body.site-body .movie-card:hover .poster-wrap img {
  transform: none !important;
}

body.site-body .poster-wrap:after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 34%;
  background: linear-gradient(0deg, rgba(26, 23, 20, 0.55), transparent);
}

body.site-body .poster-badge,
body.site-body .poster-time {
  position: absolute;
  z-index: 2;
  border-radius: 6px !important;
  padding: 3px 7px;
  font-size: 11px;
  font-weight: 700;
  backdrop-filter: none !important;
}

body.site-body .poster-badge {
  top: 8px;
  left: 8px;
  background: var(--accent) !important;
  color: #fff !important;
}

body.site-body .poster-time {
  right: 8px;
  bottom: 8px;
  background: rgba(26, 23, 20, 0.72) !important;
  color: #f7f2eb !important;
}

body.site-body .movie-info {
  padding: 12px 12px 14px;
}

body.site-body .movie-info h3 {
  font-size: 15px;
  line-height: 1.4;
  font-weight: 750;
  margin: 0 0 6px;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.site-body .movie-info p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.site-body .movie-meta,
body.site-body .heat-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12px;
}

body.site-body .movie-meta span {
  background: var(--paper) !important;
  border-radius: 6px !important;
  padding: 2px 6px;
}

body.site-body .heat-row {
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 8px;
  margin-top: 8px;
}

body.site-body .featured-card,
body.site-body .home-featured-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  align-items: center;
  background: #fff !important;
  border: 1px solid var(--line) !important;
  border-left: 1px solid var(--line) !important;
  border-radius: 14px !important;
  padding: 16px;
  box-shadow: none !important;
  margin-bottom: 22px;
}

body.site-body .featured-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 10px !important;
  box-shadow: none !important;
}

body.site-body .featured-card h2,
body.site-body .featured-card h3,
body.site-body .home-featured-card h2,
body.site-body .home-featured-card h3 {
  font-size: 26px;
  font-weight: 750;
  margin: 6px 0 10px;
}

body.site-body .featured-card p {
  font-size: 14px;
  line-height: 1.75;
  color: #5c544c;
}

/* ========== Rank band ========== */
body.site-body .band-section,
body.site-body .home-rank-section {
  max-width: none;
  background: var(--ink) !important;
  padding-left: max(24px, calc(50% - 560px + 24px));
  padding-right: max(24px, calc(50% - 560px + 24px));
}

body.site-body .band-section .section-head h2,
body.site-body .home-rank-section .section-head h2,
body.site-body .band-section .section-head p,
body.site-body .home-rank-section .home-section-more {
  color: #f4ece3 !important;
}

body.site-body .rank-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

body.site-body .rank-item {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--ink-2) !important;
  border-radius: 10px !important;
  padding: 0;
  border: 1px solid #3a322b !important;
  box-shadow: none !important;
  overflow: hidden;
  color: #f4ece3;
}

body.site-body .rank-item strong {
  position: absolute;
  z-index: 3;
  top: 8px;
  left: 8px;
  width: 26px;
  height: 26px;
  border-radius: 6px !important;
  background: var(--accent) !important;
  color: #fff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

body.site-body .rank-item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 0 !important;
}

body.site-body .rank-item span {
  font-weight: 700;
  margin: 10px 10px 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.site-body .rank-item em {
  font-style: normal;
  color: #f0c2ae !important;
  font-weight: 700;
  margin: 0 10px 12px;
}

body.site-body .center-line {
  text-align: center;
  margin-top: 22px;
}

body.site-body .center-line .ghost-dark {
  background: transparent !important;
  color: #f4ece3 !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
}

/* ========== Category tiles ========== */
body.site-body .category-section {
  background: transparent;
  border-radius: 0;
}

body.site-body .category-section.solo {
  padding-top: 32px;
}

body.site-body .category-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

body.site-body .category-card {
  position: relative;
  min-height: 188px;
  border-radius: 12px !important;
  overflow: hidden;
  color: #fff;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: none !important;
  isolation: isolate;
  border: 0;
}

body.site-body .category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  filter: brightness(0.72);
}

body.site-body .category-card:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(26, 23, 20, 0.86), rgba(26, 23, 20, 0.12));
  z-index: -1;
}

body.site-body .category-card:hover img {
  transform: none !important;
  filter: brightness(0.82);
}

body.site-body .cat-icon {
  font-size: 18px;
  margin-bottom: auto;
}

body.site-body .category-card h3 {
  font-size: 17px;
  font-weight: 750;
  margin: 8px 0 4px;
}

body.site-body .category-card p {
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

body.site-body .home-hot-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

body.site-body .home-hot-tag {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
}

body.site-body .home-hot-tag:hover {
  border-color: var(--accent);
  color: var(--accent-deep);
}

/* ========== Inner pages ========== */
body.site-body .page-hero,
body.site-body .category-hero {
  position: relative;
  overflow: hidden;
  background: var(--ink) !important;
  min-height: 240px;
  display: flex;
  align-items: center;
  padding: 64px max(24px, calc(50% - 560px + 24px));
  border-bottom: 0 !important;
  color: #f4ece3;
}

body.site-body .page-hero h1,
body.site-body .category-hero h1 {
  font-size: clamp(32px, 4.4vw, 48px);
  font-weight: 750;
  margin: 8px 0;
  color: #fffaf4 !important;
}

body.site-body .page-hero p,
body.site-body .category-hero p {
  max-width: 640px;
  color: #cfc4b6 !important;
  font-size: 15px;
  line-height: 1.75;
}

body.site-body .page-hero.rank,
body.site-body .page-hero.slim {
  background: var(--ink) !important;
  min-height: 220px;
}

body.site-body .filter-panel {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.7fr 0.65fr auto;
  gap: 10px;
  margin-bottom: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  box-shadow: none;
}

body.site-body .search-box span {
  color: var(--accent) !important;
}

body.site-body .empty-note {
  display: none;
  text-align: center;
  color: var(--muted);
  font-weight: 700;
  padding: 24px;
}

body.site-body .empty-note.is-visible {
  display: block;
}

body.site-body .spotlight-list {
  display: grid;
  gap: 14px;
}

body.site-body .channel-row {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 18px;
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  box-shadow: none;
}

body.site-body .channel-row h2 {
  font-size: 20px;
  font-weight: 750;
  margin: 0 0 6px;
}

body.site-body .channel-row p {
  color: var(--muted);
  line-height: 1.7;
}

body.site-body .channel-row a {
  font-weight: 700;
  color: var(--accent-deep) !important;
}

body.site-body .small-card-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

body.site-body .small-card {
  display: flex;
  gap: 8px;
  align-items: center;
  background: var(--paper) !important;
  border-radius: 8px !important;
  padding: 8px;
  border: 0;
}

body.site-body .small-card img {
  width: 48px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px !important;
  flex: none;
}

body.site-body .small-card strong {
  display: block;
  font-size: 13px;
  line-height: 1.3;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.site-body .small-card em {
  display: block;
  font-style: normal;
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

body.site-body .category-hero {
  min-height: 340px;
  color: #fff;
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 28px;
}

body.site-body .category-hero > *:not(.category-hero-bg) {
  position: relative;
  z-index: 2;
}

body.site-body .category-cover {
  position: relative;
  z-index: 2;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: none;
}

body.site-body .category-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}

body.site-body .category-cover span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(26, 23, 20, 0.78);
  border-radius: 0;
  padding: 10px 12px;
  color: #fff;
  font-weight: 700;
}

body.site-body .rank-board {
  display: grid;
  gap: 10px;
}

body.site-body .rank-card a {
  display: grid;
  grid-template-columns: 48px 80px 1fr auto;
  gap: 14px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line) !important;
  border-radius: 12px !important;
  padding: 12px;
  box-shadow: none !important;
}

body.site-body .rank-card strong {
  font-size: 24px;
  font-weight: 750;
  color: var(--accent) !important;
  text-align: center;
}

body.site-body .rank-card img {
  width: 80px;
  height: 106px;
  border-radius: 8px !important;
  object-fit: cover;
}

body.site-body .rank-card h2 {
  font-size: 18px;
  font-weight: 750;
  margin: 0 0 4px;
}

body.site-body .rank-card p {
  margin: 0 0 6px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.site-body .rank-card em {
  font-style: normal;
  font-size: 15px;
  font-weight: 750;
  color: var(--accent) !important;
}

/* ========== Play / detail ========== */
body.site-body .breadcrumb {
  max-width: var(--wrap);
  margin: 0 auto 10px;
  padding: 0 24px;
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

body.site-body .breadcrumb a {
  color: var(--accent-deep) !important;
  font-weight: 700;
}

body.site-body .detail-hero,
body.site-body .detail-play-hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  min-height: 520px;
}

body.site-body .detail-hero > *:not(.detail-bg) {
  position: relative;
  z-index: 2;
}

body.site-body .detail-grid,
body.site-body .detail-play-grid {
  max-width: var(--wrap);
  margin: auto;
  display: grid;
  grid-template-columns: 1.4fr 0.75fr;
  gap: 18px;
  padding: 28px 24px;
}

body.site-body .player-shell,
body.site-body .detail-play-player {
  background: #0c0a09;
  border-radius: 12px !important;
  overflow: hidden;
  box-shadow: none !important;
  border: 1px solid #3a322b !important;
}

body.site-body .player-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #000;
}

body.site-body .detail-info {
  background: var(--ink-2) !important;
  border: 1px solid #3a322b !important;
  border-radius: 12px !important;
  padding: 16px;
  color: #f4ece3;
  backdrop-filter: none !important;
  display: grid;
  gap: 12px;
}

body.site-body .detail-info img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px !important;
}

body.site-body .detail-info h1 {
  font-size: 26px;
  font-weight: 750;
  margin: 6px 0;
}

body.site-body .detail-info p {
  color: #d8cfc4;
  line-height: 1.7;
}

body.site-body .detail-info dl {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
}

body.site-body .detail-info dl div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid #3a322b;
  padding-top: 8px;
}

body.site-body .detail-content {
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 18px;
  padding: 32px 24px;
}

body.site-body .detail-content article,
body.site-body .detail-content aside {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  box-shadow: none;
}

body.site-body .detail-content h2 {
  font-size: 20px;
  font-weight: 750;
  margin: 0 0 10px;
}

body.site-body .detail-content p {
  color: #5c544c;
  line-height: 1.85;
  margin: 0 0 16px;
}

body.site-body .detail-content ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

body.site-body .detail-content li {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
  color: var(--muted);
}

body.site-body .detail-content li strong {
  color: var(--ink);
}

body.site-body .related {
  padding-top: 0;
}

body.site-body .movie-card.compact .movie-info p {
  display: none;
}

/* ========== Footer ========== */
body.site-body .footer {
  background: var(--ink) !important;
  color: #cfc4b6 !important;
  margin-top: 0;
  border-top: 0;
}

body.site-body .footer-grid {
  max-width: var(--wrap);
  margin: auto;
  padding: 40px 24px;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 1fr;
  gap: 28px;
}

body.site-body .footer p {
  color: #9a9086;
  line-height: 1.75;
}

body.site-body .footer h3 {
  color: #f7f2eb !important;
  font-weight: 750;
  margin: 0 0 10px;
}

body.site-body .footer a {
  display: block;
  color: #cfc4b6 !important;
  margin: 6px 0;
}

body.site-body .footer a:hover {
  color: #f0c2ae !important;
}

body.site-body .footer-bottom,
body.site-body .copyright {
  border-top: 1px solid #3a322b;
  text-align: center;
  padding: 14px;
  padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  color: #8a8178;
}

body.site-body .au-abab-badge {
  color: #8a8178;
}

/* ========== Responsive ========== */
@media (max-width: 1100px) {
  body.site-body .movie-grid,
  body.site-body .home-recommend-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  body.site-body .hero-inner,
  body.site-body .home-hero-inner,
  body.site-body .detail-grid,
  body.site-body .detail-play-grid,
  body.site-body .detail-content,
  body.site-body .category-hero,
  body.site-body .featured-card,
  body.site-body .home-featured-card,
  body.site-body .channel-row {
    grid-template-columns: 1fr;
  }

  body.site-body .hero-poster,
  body.site-body .home-hero-poster {
    justify-self: start;
    max-width: 220px;
  }

  body.site-body .category-grid,
  body.site-body .rank-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.site-body .filter-panel {
    grid-template-columns: 1fr 1fr;
  }

  body.site-body .rank-card a {
    grid-template-columns: 40px 68px 1fr;
  }

  body.site-body .rank-card em {
    display: none;
  }

  body.site-body .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  body.site-body .desktop-nav {
    display: none;
  }

  body.site-body .menu-toggle {
    display: flex;
  }

  body.site-body .topbar-inner {
    height: 56px;
  }

  body.site-body main,
  body.site-body .page-main,
  body.site-body .detail-main,
  body.site-body .home-main {
    padding-top: calc(56px + env(safe-area-inset-top, 0px));
  }

  body.site-body .hero,
  body.site-body .home-hero,
  body.site-body .hero-inner,
  body.site-body .home-hero-inner {
    min-height: 520px;
  }

  body.site-body .hero-poster,
  body.site-body .home-hero-poster {
    display: none;
  }

  body.site-body .quick-search {
    grid-template-columns: 1fr;
  }

  body.site-body .movie-grid,
  body.site-body .home-recommend-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  body.site-body .content-section,
  body.site-body .band-section,
  body.site-body .category-section {
    padding: 32px 16px;
  }

  body.site-body .section-head h2 {
    font-size: 20px;
  }

  body.site-body .featured-card,
  body.site-body .home-featured-card {
    padding: 12px;
  }

  body.site-body .rank-strip,
  body.site-body .category-grid,
  body.site-body .small-card-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.site-body .filter-panel {
    grid-template-columns: 1fr;
  }

  body.site-body .page-hero,
  body.site-body .category-hero {
    padding: 36px 16px;
  }

  body.site-body .category-cover {
    display: none;
  }

  body.site-body .footer-grid {
    grid-template-columns: 1fr;
    padding: 28px 16px;
  }
}

@media (max-width: 430px) {
  body.site-body .movie-grid,
  body.site-body .home-recommend-grid,
  body.site-body .rank-strip,
  body.site-body .category-grid {
    grid-template-columns: 1fr;
  }

  body.site-body .hero-actions,
  body.site-body .home-hero-actions {
    flex-direction: column;
  }

  body.site-body .primary-btn,
  body.site-body .ghost-btn {
    width: 100%;
  }
}

/* ========== Alignment + clutter cleanup ========== */
body.site-body .topbar-inner,
body.site-body .hero-inner,
body.site-body .home-hero-inner,
body.site-body .content-section,
body.site-body .category-section,
body.site-body .detail-content,
body.site-body .detail-grid,
body.site-body .detail-play-grid,
body.site-body .footer-grid,
body.site-body .breadcrumb {
  max-width: 1120px;
  box-sizing: border-box;
}

body.site-body .topbar-inner,
body.site-body .hero-inner,
body.site-body .home-hero-inner,
body.site-body .content-section,
body.site-body .category-section,
body.site-body .footer-grid {
  padding-left: 24px;
  padding-right: 24px;
}

body.site-body .hero-controls,
body.site-body .home-hero-controls {
  left: max(24px, calc(50% - 560px + 24px)) !important;
  right: auto !important;
  bottom: 22px !important;
  transform: none !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  gap: 10px !important;
}

body.site-body .hero-progress {
  display: none !important;
}

body.site-body .band-section,
body.site-body .home-rank-section {
  padding-left: max(24px, calc(50% - 560px + 24px)) !important;
  padding-right: max(24px, calc(50% - 560px + 24px)) !important;
}

body.site-body .movie-grid,
body.site-body .home-recommend-grid {
  align-items: stretch;
}

body.site-body .movie-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

body.site-body .movie-link {
  display: flex;
  flex-direction: column;
  height: 100%;
}

body.site-body .movie-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 12px 12px 14px;
  min-height: 0;
}

body.site-body .movie-info h3 {
  -webkit-line-clamp: 1;
  min-height: 1.4em;
  margin-bottom: 6px;
}

body.site-body .movie-info p {
  -webkit-line-clamp: 2;
  min-height: 2.6em;
  margin: 0 0 10px;
}

body.site-body .movie-card .tag-row {
  display: none !important;
}

body.site-body .movie-card .heat-row {
  margin-top: auto;
}

body.site-body .featured-card,
body.site-body .home-featured-card {
  align-items: stretch;
}

body.site-body .featured-card > div:last-child,
body.site-body .home-featured-card > div:last-child {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  align-items: center;
  column-gap: 10px;
}

body.site-body .featured-card > div:last-child > :not(.primary-btn):not(.ghost-dark):not(.home-featured-channel),
body.site-body .home-featured-card > div:last-child > :not(.primary-btn):not(.ghost-dark):not(.home-featured-channel) {
  width: 100%;
}

body.site-body .featured-card h2,
body.site-body .home-featured-card h2 {
  margin: 8px 0 10px;
}

body.site-body .featured-card p,
body.site-body .home-featured-card p {
  margin: 0 0 12px;
}

body.site-body .featured-card .tag-row,
body.site-body .home-featured-card .tag-row {
  margin: 0 0 16px;
}

body.site-body .featured-card .primary-btn,
body.site-body .home-featured-card .primary-btn,
body.site-body .featured-card .ghost-dark,
body.site-body .home-featured-channel {
  margin-top: 0;
  margin-left: 0;
  width: auto;
}

body.site-body .section-head {
  align-items: center;
}

body.site-body .section-head > div {
  min-width: 0;
}

body.site-body .primary-btn,
body.site-body .home-hero-play,
body.site-body .ghost-btn,
body.site-body .ghost-dark,
body.site-body .home-hero-channel {
  box-sizing: border-box !important;
  height: 42px !important;
  padding: 0 20px !important;
  line-height: 1 !important;
}

body.site-body .home-section-more {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  height: auto !important;
  color: var(--accent-deep) !important;
}

body.site-body .home-rank-section .home-section-more,
body.site-body .band-section .home-section-more {
  color: #f0c2ae !important;
}

body.site-body .page-hero,
body.site-body .category-hero {
  max-width: none !important;
  width: 100%;
  box-sizing: border-box;
  padding-left: max(24px, calc(50% - 560px + 24px)) !important;
  padding-right: max(24px, calc(50% - 560px + 24px)) !important;
}

body.site-body .rank-item span {
  margin: 12px 12px 4px;
}

body.site-body .rank-item em {
  margin: 0 12px 14px;
}

body.site-body .category-card p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
}

body.site-body .home-hot-tag {
  border-radius: 8px !important;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: 8px;
  z-index: 80;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: none;
}

body.site-body button,
body.site-body a {
  touch-action: manipulation;
}

body.site-body img {
  max-width: 100%;
  height: auto;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  body.site-body .hero-slide,
  body.site-body .movie-card {
    transition: none;
  }
}

@media (max-width: 760px) {
  body.site-body .hero-controls,
  body.site-body .home-hero-controls {
    left: 16px !important;
  }

  body.site-body .featured-card .ghost-dark,
  body.site-body .home-featured-channel {
    margin-left: 0;
    margin-top: 10px;
  }

  body.site-body .page-hero,
  body.site-body .category-hero {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}
