/* 成品4 · 石墨灯箱：深石墨底 + 灯金描边。区别成品1霓虹夜市、成品2青瓷海栏、成品3赤陶暖沙 */
:root {
  --p4-void: #0e1016;
  --p4-ink: #151821;
  --p4-panel: #1c212c;
  --p4-card: #232833;
  --p4-line: rgba(230, 179, 37, 0.22);
  --p4-gold: #e6b325;
  --p4-gold2: #c49214;
  --p4-ice: #9ec9e4;
  --p4-text: #eef1f6;
  --p4-muted: #97a0b3;
  --p4-page: 1240px;
  --p4-pad: 20px;
  --p4-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

html {
  color-scheme: dark;
  box-sizing: border-box;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

html.pack4-graphite,
body.site-body.pack4-graphite {
  color-scheme: dark;
}

body.site-body.pack4-graphite {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
  font-family: ui-sans-serif, system-ui, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--p4-ink) !important;
  color: var(--p4-text) !important;
  overflow-x: hidden;
  word-break: break-word;
  -webkit-overflow-scrolling: touch;
}

body.site-body.pack4-graphite .topbar,
body.site-body.pack4-graphite .page-main,
body.site-body.pack4-graphite .footer {
  position: relative;
  z-index: 1;
}

body.site-body.pack4-graphite img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

body.site-body.pack4-graphite video {
  max-width: 100%;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #000;
  -webkit-touch-callout: none;
}

body.site-body.pack4-graphite a,
body.site-body.pack4-graphite button,
body.site-body.pack4-graphite input,
body.site-body.pack4-graphite select {
  touch-action: manipulation;
}

body.site-body.pack4-graphite input,
body.site-body.pack4-graphite select,
body.site-body.pack4-graphite textarea {
  font-size: 16px;
}

/* —— 头部：左侧灯箱立牌 + 右侧导航/搜索，不是居中票根也不是整条海栏 —— */
body.site-body.pack4-graphite .topbar {
  position: sticky !important;
  top: 0;
  z-index: 80;
  background: var(--p4-void) !important;
  border-bottom: 1px solid var(--p4-line) !important;
  backdrop-filter: none !important;
  padding-top: env(safe-area-inset-top, 0px);
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}

body.site-body.pack4-graphite .topbar-inner,
body.site-body.pack4-graphite .pack4-frame {
  max-width: var(--p4-page);
  margin: 0 auto;
  min-height: 64px;
  height: auto !important;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) 44px;
  align-items: center;
  gap: 16px;
  padding: 10px var(--p4-pad) !important;
}

.pack4-mast {
  display: flex;
  align-items: center;
  border-right: 0;
  padding: 0;
}

body.site-body.pack4-graphite .brand,
body.site-body.pack4-graphite .footer-brand {
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  color: var(--p4-text) !important;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  gap: 10px;
}

body.site-body.pack4-graphite .brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 2px !important;
  background: var(--p4-gold) !important;
  color: #16120a !important;
  box-shadow: none !important;
  display: grid;
  place-items: center;
  font-size: 12px;
}

.pack4-stage {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0;
  min-width: 0;
}

body.site-body.pack4-graphite .desktop-nav {
  display: flex !important;
  flex-wrap: nowrap;
  gap: 4px 22px;
  justify-content: flex-start !important;
  flex: 1;
  min-width: 0;
}

body.site-body.pack4-graphite .nav-link {
  color: var(--p4-muted) !important;
  background: transparent !important;
  border-radius: 0 !important;
  padding: 4px 0 !important;
  box-shadow: none !important;
  border-bottom: 2px solid transparent;
  font-weight: 700;
  letter-spacing: 0.04em;
}

body.site-body.pack4-graphite .nav-link:hover,
body.site-body.pack4-graphite .nav-link.active {
  color: var(--p4-gold) !important;
  background: transparent !important;
  box-shadow: none !important;
  border-bottom-color: var(--p4-gold);
}

.pack4-find {
  display: flex;
  width: min(320px, 100%);
  flex-shrink: 0;
  border: 1px solid var(--p4-line);
  background: var(--p4-ink);
}

.pack4-find input,
body.site-body.pack4-graphite .topbar-search input {
  flex: 1;
  min-width: 0;
  height: 38px;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--p4-text) !important;
  padding: 0 12px !important;
  font-size: 16px;
  -webkit-appearance: none;
  appearance: none;
}

.pack4-find button,
body.site-body.pack4-graphite .topbar-search button {
  border: 0 !important;
  border-radius: 0 !important;
  min-height: 38px;
  min-width: 64px;
  background: var(--p4-gold) !important;
  color: #16120a !important;
  font-weight: 800;
  box-shadow: none !important;
  cursor: pointer;
}

body.site-body.pack4-graphite .menu-toggle {
  justify-self: end;
  align-self: center;
  width: 44px;
  height: 44px;
  background: transparent !important;
  border: 1px solid var(--p4-line) !important;
  border-radius: 2px !important;
}

body.site-body.pack4-graphite .menu-toggle span {
  background: var(--p4-gold) !important;
}

body.site-body.pack4-graphite .mobile-nav {
  background: var(--p4-void) !important;
  border-top: 1px solid var(--p4-line);
  display: none;
}

body.site-body.pack4-graphite .mobile-nav.is-open {
  display: flex !important;
  flex-direction: column;
  padding: 8px 16px 16px;
}

body.site-body.pack4-graphite .mobile-nav a {
  color: var(--p4-text) !important;
  border-bottom: 1px solid var(--p4-line);
  padding: 12px 0;
  min-height: 44px;
}

body.pack4-nav-open {
  overflow: hidden;
}

/* —— 中部：文案在左、海报在右；分区带 01 序号 —— */
body.site-body.pack4-graphite .page-main {
  min-height: calc(100vh - 64px);
  padding-top: 0 !important;
  background: transparent;
  counter-reset: p4sec;
}

body.site-body.pack4-graphite .hero {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  max-width: none;
  min-height: 0 !important;
  overflow: visible;
  background: var(--p4-void) !important;
  border-bottom: 2px solid var(--p4-gold);
}

.pack4-hero-stage {
  position: relative;
  width: 100%;
  overflow: hidden;
}

body.site-body.pack4-graphite .hero-bg {
  position: absolute;
  inset: 0;
  width: auto !important;
  height: auto !important;
  max-width: none;
  transform: none !important;
  left: 0 !important;
  right: 0 !important;
}

body.site-body.pack4-graphite .hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

body.site-body.pack4-graphite .hero-slide.is-active {
  position: relative;
  inset: auto;
  opacity: 1;
  pointer-events: auto;
}

body.site-body.pack4-graphite .hero-inner {
  max-width: var(--p4-page);
  margin: 0 auto;
  min-height: 0 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 220px;
  grid-template-areas: "copy poster";
  align-items: start;
  column-gap: 40px;
  row-gap: 16px;
  padding: 28px var(--p4-pad) 20px !important;
}

body.site-body.pack4-graphite .hero-copy {
  grid-area: copy;
  text-align: left !important;
  max-width: none;
}

body.site-body.pack4-graphite .hero-poster {
  grid-area: poster;
  display: block !important;
  position: relative;
  width: 100%;
  max-width: 220px;
  justify-self: end;
  line-height: 0;
  transform: none !important;
  border-radius: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: hidden;
}

body.site-body.pack4-graphite .hero-poster img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 0;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: 1px solid var(--p4-line);
  outline-offset: -1px;
}

body.site-body.pack4-graphite .hero-poster span {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 1;
  padding: 5px 10px;
  background: var(--p4-gold);
  color: #16120a;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.2;
}

body.site-body.pack4-graphite .hero-copy h1,
body.site-body.pack4-graphite .hero-copy h2 {
  color: var(--p4-text) !important;
  letter-spacing: 0.02em;
  font-size: clamp(1.5rem, 2.5vw, 2.4rem) !important;
  line-height: 1.3;
  margin: 0 0 10px;
}

body.site-body.pack4-graphite .hero-copy p {
  color: var(--p4-muted) !important;
  margin: 0 0 8px;
  max-width: 46rem;
  line-height: 1.65;
}

body.site-body.pack4-graphite .hero-copy p:first-of-type:not(:last-of-type) {
  display: none;
}

body.site-body.pack4-graphite .hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 16px;
}

body.site-body.pack4-graphite .hero-tags span {
  background: transparent !important;
  border: 1px solid var(--p4-gold) !important;
  border-radius: 0 !important;
  color: var(--p4-gold) !important;
  padding: 4px 10px;
}

body.site-body.pack4-graphite .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

body.site-body.pack4-graphite .hero-controls {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  transform: none;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: var(--p4-page);
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--p4-pad) 18px;
  justify-content: flex-start;
  background: transparent !important;
}

body.site-body.pack4-graphite .hero-prev,
body.site-body.pack4-graphite .hero-next {
  width: 36px;
  height: 36px;
  border-radius: 0 !important;
  background: transparent !important;
  border: 1px solid var(--p4-line) !important;
  color: var(--p4-gold) !important;
  font-size: 22px;
  line-height: 1;
}

body.site-body.pack4-graphite .hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(238, 241, 246, 0.28);
}

body.site-body.pack4-graphite .eyebrow {
  color: var(--p4-gold) !important;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

body.site-body.pack4-graphite .hero-slide::after,
body.site-body.pack4-graphite .category-hero::after,
body.site-body.pack4-graphite .watch-stage::after {
  background:
    linear-gradient(90deg, rgba(14, 16, 22, 0.88) 0%, rgba(14, 16, 22, 0.55) 46%, rgba(14, 16, 22, 0.92) 100%) !important;
}

body.site-body.pack4-graphite .hero-dot.is-active {
  background: var(--p4-gold) !important;
}

body.site-body.pack4-graphite .primary-btn,
body.site-body.pack4-graphite .reset-filter,
body.site-body.pack4-graphite .quick-search button {
  background: var(--p4-gold) !important;
  color: #16120a !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  min-height: 44px;
  font-weight: 800;
}

body.site-body.pack4-graphite .ghost-btn {
  background: transparent !important;
  border: 1px solid var(--p4-gold) !important;
  color: var(--p4-gold) !important;
  border-radius: 0 !important;
  min-height: 44px;
}

body.site-body.pack4-graphite .quick-search {
  max-width: calc(var(--p4-page) - 2 * var(--p4-pad));
  width: calc(100% - 2 * var(--p4-pad));
  margin: 20px auto !important;
  background: var(--p4-panel) !important;
  border: 1px solid var(--p4-line) !important;
  border-left: 6px solid var(--p4-gold) !important;
  border-radius: 0 !important;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 380px);
  align-items: center;
  gap: 16px 24px;
  padding: 18px 20px;
  box-sizing: border-box;
}

body.site-body.pack4-graphite .quick-search form {
  display: flex;
  width: 100%;
  gap: 0;
}

body.site-body.pack4-graphite .quick-search h2,
body.site-body.pack4-graphite .quick-search p {
  color: var(--p4-text) !important;
  margin: 0;
}

body.site-body.pack4-graphite .quick-search input {
  background: var(--p4-ink) !important;
  color: var(--p4-text) !important;
  border: 1px solid var(--p4-line) !important;
  border-radius: 0 !important;
  min-height: 44px;
  font-size: 16px;
}

body.site-body.pack4-graphite .content-section,
body.site-body.pack4-graphite .band-section,
body.site-body.pack4-graphite .category-section,
body.site-body.pack4-graphite .section-block {
  max-width: var(--p4-page);
  margin-left: auto;
  margin-right: auto;
  padding: 40px var(--p4-pad) !important;
  background: transparent !important;
  counter-increment: p4sec;
}

body.site-body.pack4-graphite .section-block {
  counter-increment: none;
}

body.site-body.pack4-graphite .section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--p4-line);
  padding-bottom: 10px;
  margin-bottom: 18px;
}

body.site-body.pack4-graphite .section-icon {
  display: none !important;
}

body.site-body.pack4-graphite .section-head h2 {
  color: var(--p4-text) !important;
  letter-spacing: 0.16em;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

body.site-body.pack4-graphite .content-section .section-head h2::before,
body.site-body.pack4-graphite .category-section .section-head h2::before {
  content: counter(p4sec, decimal-leading-zero);
  color: var(--p4-gold);
  font-size: 0.7em;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

body.site-body.pack4-graphite .section-head p {
  color: var(--p4-muted) !important;
}

body.site-body.pack4-graphite .section-head > div {
  min-width: 0;
  flex: 1;
}

body.site-body.pack4-graphite .featured-card {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 200px;
  align-items: stretch;
  gap: 0;
  background: var(--p4-card) !important;
  border: 1px solid var(--p4-line) !important;
  border-left: 6px solid var(--p4-gold) !important;
  border-radius: 0 !important;
  box-shadow: none;
  padding: 0;
  margin-bottom: 20px;
  overflow: hidden;
}

body.site-body.pack4-graphite .featured-poster {
  order: 2;
  width: 100%;
  align-self: stretch;
  line-height: 0;
}

body.site-body.pack4-graphite .featured-card > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 22px 24px 24px 24px;
}

body.site-body.pack4-graphite .featured-card .eyebrow {
  display: inline-flex;
  align-self: flex-start;
  margin: 0;
  padding: 2px 8px;
  border: 1px solid var(--p4-gold);
  color: var(--p4-gold) !important;
  letter-spacing: 0.12em;
}

body.site-body.pack4-graphite .featured-card h2,
body.site-body.pack4-graphite .featured-card p {
  color: var(--p4-text) !important;
}

body.site-body.pack4-graphite .featured-card h2 {
  font-size: clamp(1.2rem, 2vw, 1.55rem) !important;
  line-height: 1.35;
  margin: 10px 0 10px;
}

body.site-body.pack4-graphite .featured-card p {
  display: -webkit-box !important;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--p4-muted) !important;
  line-height: 1.7;
  margin: 0 0 14px;
  max-width: none;
}

body.site-body.pack4-graphite .featured-poster img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 260px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 0;
  border-left: 1px solid var(--p4-line);
  border-radius: 0 !important;
  box-shadow: none !important;
}

body.site-body.pack4-graphite .movie-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px !important;
}

@media (min-width: 720px) {
  body.site-body.pack4-graphite .movie-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  body.site-body.pack4-graphite .hero-inner {
    grid-template-columns: minmax(0, 1fr) 280px;
    column-gap: 48px;
  }

  body.site-body.pack4-graphite .hero-poster {
    max-width: 280px;
  }

  body.site-body.pack4-graphite .featured-card {
    grid-template-columns: minmax(0, 1fr) 240px;
  }

  body.site-body.pack4-graphite .movie-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

body.site-body.pack4-graphite .movie-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--p4-card) !important;
  border: 1px solid var(--p4-line) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: hidden;
  transform: none !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.site-body.pack4-graphite .movie-card:hover {
  border-color: var(--p4-gold) !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35) !important;
  transform: none !important;
}

body.site-body.pack4-graphite .movie-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

body.site-body.pack4-graphite .poster-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  background: #0a0c12 !important;
  border-radius: 0;
  overflow: hidden;
}

body.site-body.pack4-graphite .poster-wrap::after {
  height: 32%;
  background: linear-gradient(0deg, rgba(14, 16, 22, 0.78), transparent) !important;
}

body.site-body.pack4-graphite .poster-wrap img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  display: block;
  transform: none !important;
  transition: transform 0.35s ease;
}

body.site-body.pack4-graphite .movie-card:hover .poster-wrap img {
  transform: scale(1.05) !important;
}

body.site-body.pack4-graphite .poster-badge,
body.site-body.pack4-graphite .poster-time {
  position: absolute;
  z-index: 2;
  border-radius: 0 !important;
  padding: 3px 8px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  backdrop-filter: none !important;
  box-shadow: none !important;
}

body.site-body.pack4-graphite .poster-badge {
  top: 0;
  left: 0;
  background: var(--p4-gold) !important;
  color: #16120a !important;
}

body.site-body.pack4-graphite .poster-time {
  right: 0;
  bottom: 0;
  left: auto;
  top: auto;
  background: rgba(14, 16, 22, 0.88) !important;
  color: var(--p4-gold) !important;
  border: 0;
}

body.site-body.pack4-graphite .movie-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 10px 11px;
  flex: 1;
}

body.site-body.pack4-graphite .movie-info h3 {
  color: var(--p4-text) !important;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
  min-height: 2.5em;
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.site-body.pack4-graphite .movie-info h3 a {
  color: inherit !important;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  display: inline;
  overflow: visible;
}

body.site-body.pack4-graphite .movie-card:hover .movie-info h3 {
  color: var(--p4-gold) !important;
}

body.site-body.pack4-graphite .movie-info p,
body.site-body.pack4-graphite .heat-row {
  display: none !important;
}

body.site-body.pack4-graphite .movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

body.site-body.pack4-graphite .movie-meta span {
  background: transparent;
  color: var(--p4-muted);
  border: 1px solid var(--p4-line);
  border-radius: 0;
  padding: 1px 6px;
  font-size: 0.68rem;
  line-height: 1.5;
}

body.site-body.pack4-graphite .rank-item {
  background: var(--p4-card) !important;
  border: 1px solid var(--p4-line) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: var(--p4-text);
  padding: 0 0 10px;
  gap: 0;
  transition: border-color 0.2s ease;
}

body.site-body.pack4-graphite .rank-item:hover {
  border-color: var(--p4-gold) !important;
}

body.site-body.pack4-graphite .rank-item strong {
  top: 0;
  left: 0;
  width: 26px;
  height: 26px;
  background: var(--p4-gold) !important;
  color: #16120a !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-size: 0.75rem;
}

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

body.site-body.pack4-graphite .rank-item span {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin: 8px 10px 2px;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.35;
  min-height: 2.7em;
}

body.site-body.pack4-graphite .rank-item em {
  display: block;
  margin: 0 10px;
  color: var(--p4-gold) !important;
  font-size: 0.72rem;
}

body.site-body.pack4-graphite .rank-strip {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px !important;
}

@media (min-width: 720px) {
  body.site-body.pack4-graphite .rank-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  body.site-body.pack4-graphite .rank-strip {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

body.site-body.pack4-graphite .ghost-dark {
  background: transparent !important;
  color: var(--p4-gold) !important;
  border: 1px solid var(--p4-gold) !important;
  border-radius: 0 !important;
}

body.site-body.pack4-graphite .ghost-dark:hover {
  background: rgba(230, 179, 37, 0.12) !important;
}

body.site-body.pack4-graphite .category-grid {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 10px !important;
}

@media (min-width: 800px) {
  body.site-body.pack4-graphite .category-grid {
    grid-template-columns: 1fr 1fr;
  }
}

body.site-body.pack4-graphite .category-card {
  display: grid !important;
  grid-template-columns: 84px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  align-items: start;
  column-gap: 14px;
  row-gap: 4px;
  min-height: 84px;
  background: var(--p4-card) !important;
  border: 1px solid var(--p4-line) !important;
  border-left: 4px solid var(--p4-gold) !important;
  border-radius: 0 !important;
  overflow: hidden;
  padding: 0 14px 0 0;
  isolation: auto;
  box-shadow: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

body.site-body.pack4-graphite .category-card:hover {
  border-color: var(--p4-gold) !important;
  background: #272d3a !important;
}

body.site-body.pack4-graphite .category-card img {
  position: static;
  inset: auto;
  grid-row: 1 / span 2;
  width: 84px;
  height: 100%;
  min-height: 84px;
  object-fit: cover;
  z-index: auto;
  transform: none !important;
}

body.site-body.pack4-graphite .category-card::after {
  display: none !important;
}

body.site-body.pack4-graphite .category-card h3,
body.site-body.pack4-graphite .category-card p {
  color: var(--p4-text) !important;
  position: static;
  grid-column: 2;
  margin: 0;
}

body.site-body.pack4-graphite .category-card h3 {
  font-size: 1rem;
  margin: 12px 0 0;
}

body.site-body.pack4-graphite .category-card p {
  color: var(--p4-muted) !important;
  font-size: 0.8rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 12px;
}

body.site-body.pack4-graphite .cat-icon {
  display: none !important;
}

body.site-body.pack4-graphite .tag-row {
  margin: 0 0 16px;
}

body.site-body.pack4-graphite .tag-row span {
  background: transparent !important;
  color: var(--p4-gold) !important;
  border: 1px solid var(--p4-gold) !important;
  border-radius: 0 !important;
  padding: 4px 10px;
}

body.site-body.pack4-graphite .featured-card .primary-btn {
  align-self: flex-start;
  margin-top: auto;
}

/* —— 播放页：播放器通栏在上，信息条在下，相关横向滑动 —— */
body.site-body.pack4-graphite .breadcrumb {
  max-width: var(--p4-page);
  margin: 12px auto 8px;
  padding: 0 var(--p4-pad);
  color: var(--p4-muted);
}

body.site-body.pack4-graphite .breadcrumb a {
  color: var(--p4-ice) !important;
}

body.site-body.pack4-graphite .watch-stage {
  background: var(--p4-void) !important;
  padding: 0 0 20px;
  overflow: hidden;
}

body.site-body.pack4-graphite .watch-layout,
body.site-body.pack4-graphite .watch-layout--portrait {
  max-width: var(--p4-page);
  margin: 0 auto;
  display: flex !important;
  flex-direction: column !important;
  gap: 16px;
  padding: 0 var(--p4-pad);
}

body.site-body.pack4-graphite .watch-player,
body.site-body.pack4-graphite .watch-player--portrait {
  width: 100% !important;
  max-width: none !important;
  aspect-ratio: 16 / 9;
  background: #000 !important;
  border: 1px solid var(--p4-line) !important;
  border-radius: 0 !important;
  overflow: hidden;
  position: relative;
}

body.site-body.pack4-graphite .watch-player video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

body.site-body.pack4-graphite .watch-panel {
  width: 100% !important;
  background: var(--p4-panel) !important;
  border: 1px solid var(--p4-line) !important;
  border-left: 6px solid var(--p4-gold) !important;
  border-radius: 0 !important;
  padding: 16px 18px;
}

body.site-body.pack4-graphite .watch-panel-head {
  display: flex;
  gap: 14px;
  align-items: center;
}

body.site-body.pack4-graphite .watch-poster {
  width: 64px;
  height: 86px;
  object-fit: cover;
  border-radius: 0;
}

body.site-body.pack4-graphite .watch-panel h1,
body.site-body.pack4-graphite .watch-lead {
  color: var(--p4-text) !important;
}

body.site-body.pack4-graphite .watch-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 8px 0 0;
}

body.site-body.pack4-graphite .tag-row span::after,
body.site-body.pack4-graphite .watch-meta-row span::after {
  content: none !important;
}

body.site-body.pack4-graphite .watch-meta-sep {
  border: 0 !important;
  padding: 0 !important;
  color: var(--p4-muted) !important;
  background: none !important;
}

body.site-body.pack4-graphite .watch-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

body.site-body.pack4-graphite .watch-stats div {
  background: var(--p4-ink);
  border: 1px solid var(--p4-line);
  padding: 10px 12px;
}

body.site-body.pack4-graphite .detail-content {
  max-width: var(--p4-page);
  margin: 0 auto 24px;
  padding: 0 var(--p4-pad);
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 860px) {
  body.site-body.pack4-graphite .detail-content {
    grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.7fr);
  }
}

body.site-body.pack4-graphite .detail-content article,
body.site-body.pack4-graphite .detail-content aside {
  background: var(--p4-panel) !important;
  border: 1px solid var(--p4-line) !important;
  color: var(--p4-text) !important;
  border-radius: 0 !important;
}

body.site-body.pack4-graphite .related .movie-grid {
  display: flex !important;
  overflow-x: auto;
  gap: 12px !important;
  padding-bottom: 8px;
  grid-template-columns: none !important;
}

body.site-body.pack4-graphite .related .movie-card {
  flex: 0 0 148px;
}

.video-error {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.72);
  font-weight: 700;
}

.video-error[hidden] {
  display: none !important;
}

.mother-play-desc {
  display: none !important;
}

/* —— 分类页：左侧筛选条 + 右侧海报墙 —— */
body.site-body.pack4-graphite .page-hero,
body.site-body.pack4-graphite .category-hero,
body.site-body.pack4-graphite .compact-hero {
  max-width: none;
  margin: 0;
  display: block !important;
  background: var(--p4-panel) !important;
  border-bottom: 1px solid var(--p4-line) !important;
  border-left: 0;
  border-radius: 0 !important;
  padding: 28px 0 !important;
}

body.site-body.pack4-graphite .page-hero > *,
body.site-body.pack4-graphite .compact-hero > *,
body.site-body.pack4-graphite .category-hero > :not(.category-hero-bg) {
  display: block;
  width: 100%;
  max-width: var(--p4-page);
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: var(--p4-pad);
  padding-right: var(--p4-pad);
  box-sizing: border-box;
}

body.site-body.pack4-graphite .category-hero {
  position: relative;
  border-left: 0;
  text-align: left;
}

body.site-body.pack4-graphite .page-hero h1,
body.site-body.pack4-graphite .category-hero h1,
body.site-body.pack4-graphite .page-hero p,
body.site-body.pack4-graphite .category-hero p {
  color: var(--p4-text) !important;
}

@media (min-width: 900px) {
  body.site-body.pack4-graphite .content-section.wide {
    display: grid !important;
    grid-template-columns: 220px minmax(0, 1fr);
    align-items: start;
    gap: 22px;
    padding-top: 24px !important;
  }

  body.site-body.pack4-graphite .filter-panel {
    position: sticky;
    top: 76px;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px;
    align-self: start;
    margin-top: 0;
  }
}

body.site-body.pack4-graphite .search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

body.site-body.pack4-graphite .search-box input {
  flex: 1;
  min-width: 0;
}

body.site-body.pack4-graphite .filter-panel {
  background: var(--p4-panel) !important;
  border: 1px solid var(--p4-line) !important;
  border-radius: 0 !important;
  padding: 12px;
}

body.site-body.pack4-graphite .filter-panel input,
body.site-body.pack4-graphite .filter-panel select,
body.site-body.pack4-graphite .movie-search,
body.site-body.pack4-graphite .filter-select,
body.site-body.pack4-graphite .sort-select {
  background: var(--p4-ink) !important;
  color: var(--p4-text) !important;
  border: 1px solid var(--p4-line) !important;
  border-radius: 0 !important;
  min-height: 44px;
  font-size: 16px;
}

body.site-body.pack4-graphite .overview-card {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: var(--p4-card) !important;
  border: 1px solid var(--p4-line) !important;
  border-left: 4px solid var(--p4-gold) !important;
  border-radius: 0 !important;
  padding: 16px 18px;
  color: var(--p4-text) !important;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

body.site-body.pack4-graphite .overview-card:hover {
  border-color: var(--p4-gold) !important;
  background: #272d3a !important;
}

body.site-body.pack4-graphite .overview-links {
  color: var(--p4-gold) !important;
  white-space: nowrap;
}

body.site-body.pack4-graphite .category-grid.large {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 8px !important;
}

@media (min-width: 800px) {
  body.site-body.pack4-graphite .category-grid.large {
    grid-template-columns: 1fr 1fr;
  }
}

/* —— 尾部：灯金顶线 + 链接做成灯牌碎片 —— */
body.site-body.pack4-graphite .footer {
  margin-top: 28px;
  background: var(--p4-void) !important;
  border-top: 4px solid var(--p4-gold);
  color: var(--p4-text);
  padding: 28px 0 env(safe-area-inset-bottom, 16px);
}

body.site-body.pack4-graphite .footer-grid {
  max-width: var(--p4-page);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  padding: 0 var(--p4-pad) !important;
  box-sizing: border-box;
}

@media (min-width: 800px) {
  body.site-body.pack4-graphite .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr;
  }
}

body.site-body.pack4-graphite .footer p,
body.site-body.pack4-graphite .copyright {
  color: var(--p4-muted) !important;
}

body.site-body.pack4-graphite .footer h3 {
  color: var(--p4-gold) !important;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
}

body.site-body.pack4-graphite .footer-grid > div:nth-child(2) a,
body.site-body.pack4-graphite .footer-grid > div:nth-child(3) a {
  display: inline-block;
  margin: 0 8px 8px 0;
  padding: 6px 10px;
  border: 1px solid var(--p4-line);
  color: var(--p4-text) !important;
  text-decoration: none;
}

body.site-body.pack4-graphite .footer a:hover {
  color: var(--p4-gold) !important;
  border-color: var(--p4-gold);
}

body.site-body.pack4-graphite .copyright {
  max-width: var(--p4-page);
  margin: 22px auto 0;
  border-top: 1px solid var(--p4-line);
  padding: 12px var(--p4-pad) 0 !important;
  box-sizing: border-box;
}

a, button, [role="button"] {
  touch-action: manipulation;
}

@media (min-width: 761px) {
  body.site-body.pack4-graphite .menu-toggle {
    display: none !important;
  }

  body.site-body.pack4-graphite .topbar-inner,
  body.site-body.pack4-graphite .pack4-frame {
    grid-template-columns: auto minmax(0, 1fr);
  }
}

@media (min-width: 761px) and (max-width: 980px) {
  .pack4-find {
    width: min(220px, 100%);
  }

  body.site-body.pack4-graphite .desktop-nav {
    gap: 4px 14px;
  }
}

@media (max-width: 760px) {
  body.site-body.pack4-graphite .topbar-inner,
  body.site-body.pack4-graphite .pack4-frame {
    grid-template-columns: 1fr 44px;
    grid-template-areas:
      "mast toggle"
      "stage stage";
    min-height: 64px;
  }

  .pack4-mast {
    grid-area: mast;
    border-right: 0;
    padding-right: 8px;
  }

  body.site-body.pack4-graphite .menu-toggle {
    grid-area: toggle;
    display: flex !important;
  }

  .pack4-stage {
    grid-area: stage;
    display: flex;
    flex-direction: row;
    padding: 0 0 10px;
  }

  body.site-body.pack4-graphite .pack4-stage .desktop-nav {
    display: none !important;
  }

  .pack4-find {
    width: 100%;
  }

  body.site-body.pack4-graphite .hero-inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "poster"
      "copy";
    min-height: 0 !important;
    padding: 20px var(--p4-pad) 16px !important;
    column-gap: 0;
  }

  body.site-body.pack4-graphite .hero-poster {
    max-width: 140px;
    justify-self: start;
  }

  body.site-body.pack4-graphite .hero-controls {
    padding: 0 var(--p4-pad) 16px;
  }

  body.site-body.pack4-graphite .featured-card {
    grid-template-columns: 140px minmax(0, 1fr);
  }

  body.site-body.pack4-graphite .featured-poster {
    order: 0;
    max-width: none;
  }

  body.site-body.pack4-graphite .featured-poster img {
    min-height: 0;
    height: 100%;
    border-left: 0;
    border-right: 1px solid var(--p4-line);
  }

  body.site-body.pack4-graphite .featured-card > div {
    padding: 14px 14px 16px;
  }

  body.site-body.pack4-graphite .quick-search {
    width: calc(100% - 2 * var(--p4-pad));
    max-width: none;
    margin: 16px auto !important;
    grid-template-columns: 1fr;
  }

  body.site-body.pack4-graphite .content-section,
  body.site-body.pack4-graphite .band-section,
  body.site-body.pack4-graphite .category-section,
  body.site-body.pack4-graphite .section-block {
    padding: 28px var(--p4-pad) !important;
  }
}

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

  body.site-body.pack4-graphite *,
  body.site-body.pack4-graphite *::before,
  body.site-body.pack4-graphite *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
