/* 站 2 · forest-moss 苔原纪录片 · 浅绿灰底 + 苔绿主色 + 琥珀高光 */
:root {
  --s2-bg: #e8ece4;
  --s2-surface: #f2f5ef;
  --s2-surface-2: #ffffff;
  --s2-paper: #fafbf8;
  --s2-paper-dim: #e4ebe0;
  --s2-moss: #3d6b4f;
  --s2-moss-dark: #2f5540;
  --s2-moss-light: #5a8f6a;
  --s2-amber: #d4a054;
  --s2-amber-dim: rgba(212, 160, 84, 0.16);
  --s2-moss-dim: rgba(61, 107, 79, 0.12);
  --s2-text: #2a3328;
  --s2-muted: #5a6b58;
  --s2-line: rgba(61, 107, 79, 0.18);
  --s2-radius: 10px;
  --s2-radius-lg: 14px;
  --s2-shadow: 0 10px 36px rgba(42, 51, 40, 0.1);
  --s2-container: min(1180px, calc(100% - 32px));
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

html { scroll-behavior: smooth; }

body.body-tpl-s2,
body.body-tpl-portal.body-tpl-s2,
body.body-forest-moss {
  background:
    radial-gradient(ellipse 80% 55% at 15% -5%, rgba(90, 143, 106, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 45% at 90% 100%, rgba(212, 160, 84, 0.08), transparent 50%),
    linear-gradient(180deg, var(--s2-bg) 0%, var(--s2-surface) 48%, var(--s2-bg) 100%) !important;
  color: var(--s2-text) !important;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

.container {
  width: var(--s2-container);
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
}

.page-main {
  flex: 1;
  min-width: 0;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.s2-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: 10px 16px;
  background: var(--s2-moss);
  color: #fff;
  font-weight: 700;
  border-radius: 0 0 8px 0;
}
.s2-skip:focus { left: 0; }

/* ── 顶栏 ── */
.s2-head {
  position: sticky;
  top: 0;
  z-index: 80;
  background: color-mix(in srgb, var(--s2-surface) 96%, #fff) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--s2-line);
  box-shadow: 0 2px 16px rgba(42, 51, 40, 0.06);
}

.s2-head__tip {
  background: linear-gradient(90deg, var(--s2-moss-dark), var(--s2-moss), var(--s2-moss-dark));
  border-bottom: 2px solid var(--s2-amber);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.92);
}

.s2-head__tip-inner {
  padding: 7px 0;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.s2-head__bar-inner {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 16px 20px;
  min-height: 4rem;
  padding: 10px 0;
}

.s2-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}
.s2-brand:hover { opacity: 0.88; }

.s2-brand__mark {
  flex-shrink: 0;
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(145deg, var(--s2-moss-light), var(--s2-moss) 55%, var(--s2-moss-dark));
  box-shadow: 0 3px 12px rgba(61, 107, 79, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.s2-brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.s2-brand__text strong {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--s2-moss-dark);
  line-height: 1.25;
}
.s2-brand__text em {
  font-style: normal;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--s2-muted);
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 14rem;
}

.s2-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px 6px;
  flex-wrap: wrap;
}
.s2-nav a {
  padding: 8px 13px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--s2-text);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.s2-nav a:hover {
  color: var(--s2-moss);
  background: var(--s2-moss-dim);
}

.s2-search {
  display: flex;
  align-items: stretch;
  min-width: 0;
  max-width: 260px;
  width: 100%;
  min-height: 2.5rem;
  border-radius: 8px;
  border: 1px solid var(--s2-line);
  background: var(--s2-surface-2);
  overflow: hidden;
}
.s2-search:focus-within {
  border-color: color-mix(in srgb, var(--s2-moss-light) 55%, transparent);
  box-shadow: 0 0 0 3px var(--s2-moss-dim);
}
.s2-search input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 0 12px;
  font-size: 0.875rem;
  color: var(--s2-text);
  outline: none;
}
.s2-search input::placeholder { color: var(--s2-muted); }
.s2-search button {
  flex-shrink: 0;
  border: none;
  padding: 0 16px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(180deg, var(--s2-moss-light), var(--s2-moss));
}
.s2-search button:hover { filter: brightness(1.05); }

.s2-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--s2-line);
  border-radius: 8px;
  background: var(--s2-surface-2);
  cursor: pointer;
}
.s2-burger span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--s2-moss);
  border-radius: 1px;
}

.s2-head__cats {
  background: color-mix(in srgb, var(--s2-paper) 88%, var(--s2-surface));
  border-top: 1px solid var(--s2-line);
}
.s2-head__cats-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0 9px;
  overflow: hidden;
}
.s2-head__cats-label {
  flex-shrink: 0;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--s2-amber);
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--s2-amber-dim);
  border: 1px solid rgba(212, 160, 84, 0.25);
}
.s2-cats {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  flex-wrap: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding: 2px 0;
}
.s2-cats a {
  flex: 0 0 auto;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--s2-muted);
  text-decoration: none;
  background: var(--s2-surface-2);
  border: 1px solid var(--s2-line);
  white-space: nowrap;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.s2-cats a:hover {
  color: var(--s2-moss);
  border-color: color-mix(in srgb, var(--s2-moss-light) 45%, transparent);
  background: var(--s2-moss-dim);
}

.s2-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(42, 51, 40, 0.35);
}
.s2-overlay.open { display: block; }

/* ── Hero：左文右海报 ── */
.s2-hero {
  position: relative;
  padding: 2.5rem 0 2.75rem;
  border-bottom: 1px solid var(--s2-line);
  overflow: hidden;
}
.s2-hero__wash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 50% 65% at 5% 40%, rgba(90, 143, 106, 0.1), transparent 60%),
    radial-gradient(ellipse 40% 50% at 95% 70%, rgba(212, 160, 84, 0.07), transparent 55%);
}
.s2-hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 2rem 2.5rem;
  align-items: center;
}
.s2-hero__kicker {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--s2-amber);
}
.s2-hero__title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.65rem, 4vw, 2.2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--s2-moss-dark);
}
.s2-hero__intro,
.s2-hero__lead {
  margin: 0 0 0.75rem;
  font-size: clamp(0.9375rem, 1.8vw, 1.0625rem);
  line-height: 1.7;
  color: var(--s2-muted);
  max-width: 36rem;
}
.s2-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 1.25rem;
}

.s2-hero__poster {
  display: flex;
  justify-content: flex-end;
}
.s2-hero__poster-frame {
  position: relative;
  width: min(100%, 300px);
  aspect-ratio: 3 / 4;
  border-radius: var(--s2-radius-lg);
  background:
    linear-gradient(165deg, var(--s2-moss-dark) 0%, var(--s2-moss) 45%, var(--s2-moss-light) 100%);
  box-shadow: var(--s2-shadow), 0 0 0 1px rgba(61, 107, 79, 0.15);
  overflow: hidden;
}
.s2-hero__poster-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      -35deg,
      transparent,
      transparent 18px,
      rgba(255, 255, 255, 0.03) 18px,
      rgba(255, 255, 255, 0.03) 19px
    );
  pointer-events: none;
}
.s2-hero__poster-frame::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--s2-amber), var(--s2-moss-light));
}
.s2-hero__poster-inner {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.35rem 1.25rem;
  background: linear-gradient(0deg, rgba(47, 85, 64, 0.92) 0%, transparent 100%);
}
.s2-hero__poster-tag {
  display: inline-block;
  margin-bottom: 0.5rem;
  padding: 3px 9px;
  border-radius: 4px;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--s2-moss-dark);
  background: var(--s2-amber);
}
.s2-hero__poster-title {
  margin: 0 0 0.3rem;
  font-size: 1.125rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
}
.s2-hero__poster-desc {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
}

/* 兼容旧 panel 类名 */
.s2-hero__panel { display: flex; justify-content: flex-end; }
.s2-hero__panel-inner {
  position: relative;
  width: min(100%, 300px);
  padding: 1.75rem 1.5rem;
  border-radius: var(--s2-radius-lg);
  background: linear-gradient(165deg, var(--s2-moss-dark), var(--s2-moss));
  border: 1px solid rgba(61, 107, 79, 0.2);
  box-shadow: var(--s2-shadow);
  color: #fff;
}
.s2-hero__stamp {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.75rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 900;
  color: var(--s2-moss-dark);
  background: var(--s2-amber);
}
.s2-hero__panel-t {
  margin: 0 0 0.35rem;
  font-size: 1.125rem;
  font-weight: 800;
  color: #fff;
}
.s2-hero__panel-p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
}

/* ── 按钮 ── */
.s2-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1.35rem;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, filter 0.15s ease, background 0.15s ease;
}
.s2-btn--solid {
  color: #fff;
  background: linear-gradient(135deg, var(--s2-moss-light), var(--s2-moss) 55%, var(--s2-moss-dark));
  box-shadow: 0 4px 16px rgba(61, 107, 79, 0.28);
}
.s2-btn--solid:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}
.s2-btn--line {
  color: var(--s2-moss);
  background: var(--s2-surface-2);
  border-color: var(--s2-line);
}
.s2-btn--line:hover {
  border-color: var(--s2-moss-light);
  background: var(--s2-moss-dim);
}

/* ── 首页区块 · 分章节列表感 ── */
.s2-home {
  padding: 2.25rem 0 3.25rem;
}
.s2-block {
  margin-bottom: 2.5rem;
  padding: 1.25rem 0 0;
  border-top: 1px dashed color-mix(in srgb, var(--s2-moss) 20%, transparent);
}
.s2-block:first-of-type { border-top: none; padding-top: 0; }
.s2-block__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 1.15rem;
  padding-left: 14px;
  border-left: 4px solid var(--s2-moss);
  position: relative;
}
.s2-block__head::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--s2-amber), var(--s2-moss));
  border-radius: 2px 0 0 2px;
}
.s2-block__title {
  margin: 0 0 0.3rem;
  font-size: clamp(1.125rem, 2.2vw, 1.35rem);
  font-weight: 800;
  color: var(--s2-moss-dark);
  letter-spacing: -0.02em;
}
.s2-block__sub {
  margin: 0;
  font-size: 0.875rem;
  color: var(--s2-muted);
  line-height: 1.5;
}
.s2-block__more {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--s2-moss);
  text-decoration: none;
  white-space: nowrap;
}
.s2-block__more:hover { color: var(--s2-amber); }

.s2-home .section-block {
  margin-bottom: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px dashed color-mix(in srgb, var(--s2-moss) 20%, transparent);
}
.s2-home .section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 1.15rem;
  padding-left: 14px;
  border-left: 4px solid var(--s2-moss);
  text-align: left;
}
.s2-home .section-head h2 {
  margin: 0;
  font-size: clamp(1.125rem, 2.2vw, 1.35rem);
  font-weight: 800;
  color: var(--s2-moss-dark);
}
.s2-home .section-head a {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--s2-moss);
}
.s2-home .section-icon { display: none; }
.s2-home .movie-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

/* ── 卡片 ── */
.s2-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
.s2-grid--dense { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.s2-grid--channel,
.s2-grid--related { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.s2-grid--rank { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.s2-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-radius: var(--s2-radius);
  background: var(--s2-surface-2);
  border: 1px solid var(--s2-line);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.s2-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--s2-amber), var(--s2-moss));
  opacity: 0;
  transition: opacity 0.18s ease;
  z-index: 2;
}
.s2-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--s2-moss-light) 40%, transparent);
  box-shadow: var(--s2-shadow);
}
.s2-card:hover::before { opacity: 1; }

.s2-card__media {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--s2-paper-dim);
}
.s2-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.s2-card:hover .s2-card__media img { transform: scale(1.04); }
.s2-card__media .image-off { opacity: 0.35; }

.s2-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 4px 9px;
  border-radius: 5px;
  font-size: 0.6875rem;
  font-weight: 800;
  color: var(--s2-moss-dark);
  background: var(--s2-amber);
  box-shadow: 0 2px 8px rgba(212, 160, 84, 0.3);
}
.s2-card__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(47, 85, 64, 0.35);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}
.s2-card:hover .s2-card__play { opacity: 1; }

.s2-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 12px 14px 14px;
  min-height: 0;
}
.s2-card__title {
  margin: 0 0 6px;
  font-size: 0.9375rem;
  font-weight: 800;
  line-height: 1.35;
  min-height: 2.65em;
}
.s2-card__title a {
  color: var(--s2-text);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.s2-card__title a:hover { color: var(--s2-moss); }
.s2-card__meta {
  margin: 0 0 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--s2-muted);
}
.s2-card__desc {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--s2-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.s2-card--compact {
  flex-direction: row;
  min-height: 120px;
}
.s2-card--compact .s2-card__media {
  flex-shrink: 0;
  width: 100px;
  aspect-ratio: auto;
  height: 100%;
  min-height: 120px;
}
.s2-card--compact .s2-card__body {
  padding: 12px 14px;
  justify-content: center;
}
.s2-card--compact .s2-card__title { min-height: auto; margin-bottom: 4px; }
.s2-card--compact .s2-card__desc { display: none; }

/* ── 子页 ── */
.s2-sub {
  padding: 2rem 0 3rem;
}
.s2-sub__head {
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--s2-line);
}
.s2-sub__kicker {
  margin: 0 0 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--s2-amber);
}
.s2-sub__head h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 2.8vw, 1.75rem);
  font-weight: 900;
  color: var(--s2-moss-dark);
}
.s2-sub__lead {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--s2-muted);
  max-width: 40rem;
}

.s2-crumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--s2-muted);
}
.s2-crumb a {
  color: var(--s2-moss);
  text-decoration: none;
}
.s2-crumb a:hover { color: var(--s2-amber); }
.s2-crumb span { opacity: 0.5; }

/* 分类页 */
.s2-cat {
  padding: 2rem 0 3rem;
}
.s2-cat__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--s2-line);
}
.s2-cat__head h1 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.35rem, 2.8vw, 1.75rem);
  font-weight: 900;
  color: var(--s2-moss-dark);
  padding-left: 14px;
  border-left: 4px solid var(--s2-moss);
}
.s2-cat__desc {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--s2-muted);
  max-width: 36rem;
}
.s2-cat__sort {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.s2-cat__sort button {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--s2-line);
  background: var(--s2-surface-2);
  color: var(--s2-muted);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.s2-cat__sort button.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--s2-moss-light), var(--s2-moss));
}

.s2-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 2.5rem;
}
.s2-cat-grid .overview-card,
.s2-cat-grid .category-tile {
  display: block;
  padding: 1.2rem 1.1rem;
  border-radius: var(--s2-radius);
  background: var(--s2-surface-2);
  border: 1px solid var(--s2-line);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.s2-cat-grid .overview-card:hover,
.s2-cat-grid .category-tile:hover {
  border-color: color-mix(in srgb, var(--s2-moss-light) 45%, transparent);
  transform: translateY(-2px);
  box-shadow: var(--s2-shadow);
}
.s2-cat-grid .overview-main strong,
.s2-cat-grid .category-tile strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--s2-moss-dark);
}
.s2-cat-grid .overview-main span,
.s2-cat-grid .category-tile span {
  display: block;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--s2-muted);
}
.s2-cat-grid .overview-links {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--s2-moss);
}

.s2-filter__bar {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 1.5rem;
  padding: 16px;
  border-radius: var(--s2-radius);
  background: var(--s2-surface-2);
  border: 1px solid var(--s2-line);
}
.s2-filter__bar input,
.s2-filter__bar select {
  width: 100%;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid var(--s2-line);
  background: var(--s2-paper);
  color: var(--s2-text);
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  outline: none;
}
.s2-filter__bar input:focus,
.s2-filter__bar select:focus {
  border-color: var(--s2-moss-light);
  box-shadow: 0 0 0 3px var(--s2-moss-dim);
}
.s2-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--s2-muted);
  font-weight: 700;
}

/* ── 播放页 ── */
.s2-play {
  padding: 2rem 0 3rem;
}
.s2-detail {
  display: grid;
  grid-template-columns: minmax(120px, 200px) minmax(0, 1fr);
  gap: 1.5rem 2rem;
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  border-radius: var(--s2-radius-lg);
  background: var(--s2-surface-2);
  border: 1px solid var(--s2-line);
}
.s2-detail__cover {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--s2-line);
  box-shadow: var(--s2-shadow);
}
.s2-detail__cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}
.s2-detail__badge {
  display: inline-flex;
  margin-bottom: 0.5rem;
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--s2-moss-dark);
  background: var(--s2-amber);
}
.s2-detail h1 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 900;
  color: var(--s2-moss-dark);
  line-height: 1.25;
}
.s2-detail__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 0.75rem;
}
.s2-detail__tags span {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--s2-muted);
  background: var(--s2-moss-dim);
  border: 1px solid var(--s2-line);
}
.s2-detail__desc {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--s2-muted);
}
.s2-detail__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.s2-player {
  position: relative;
  margin-bottom: 1.5rem;
  border-radius: var(--s2-radius);
  overflow: hidden;
  background: #1a241c;
  border: 1px solid var(--s2-line);
  box-shadow: var(--s2-shadow);
}
.s2-player__video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: min(56.25vw, calc(100dvh - 220px));
  object-fit: contain;
  background: #1a241c;
}
.s2-player__err {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  color: #fff;
  font-weight: 800;
  background: rgba(26, 36, 28, 0.82);
}
.s2-player__err[hidden] { display: none !important; }

.s2-facts {
  margin-bottom: 2rem;
  padding: 1.25rem 1.35rem;
  border-radius: var(--s2-radius);
  background: var(--s2-surface-2);
  border: 1px solid var(--s2-line);
}
.s2-facts h2 {
  margin: 0 0 1rem;
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--s2-moss-dark);
  padding-left: 10px;
  border-left: 3px solid var(--s2-amber);
}
.s2-facts__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 0;
}
.s2-facts__grid div {
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--s2-paper);
  border: 1px solid var(--s2-line);
}
.s2-facts__grid dt {
  margin: 0 0 4px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--s2-muted);
}
.s2-facts__grid dd {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--s2-text);
  line-height: 1.45;
}

.s2-related { margin-bottom: 1rem; }

/* ── 页脚 ── */
.s2-foot {
  margin-top: auto;
  border-top: 3px solid var(--s2-amber);
  background: linear-gradient(180deg, var(--s2-moss-dark), #243d30) !important;
}
.s2-foot__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2rem;
  padding: 2.25rem 0 1.75rem;
}
.s2-foot__brand {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.s2-foot__logo {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: var(--s2-moss-dark);
  background: var(--s2-amber);
}
.s2-foot__brand strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.0625rem;
  color: #fff;
}
.s2-foot__brand p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
  max-width: 28rem;
}
.s2-foot__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-content: flex-start;
  justify-content: flex-end;
}
.s2-foot__nav a {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}
.s2-foot__nav a:hover { color: var(--s2-amber); }
.s2-foot__bar {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 14px 0;
}
.s2-foot__bar p {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}

/* ── BBAASEO 飞标（替代 ABABSEO） ── */
.bbaseo-fly {
  position: fixed;
  left: max(14px, env(safe-area-inset-left, 0));
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  pointer-events: none;
  user-select: none;
  color: var(--s2-moss);
}
.bbaseo-fly__mark {
  filter: drop-shadow(0 6px 12px rgba(61, 107, 79, 0.25));
  animation: bbaseo-bob 4.8s ease-in-out infinite;
}
.bbaseo-fly i {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--s2-amber);
  opacity: 0;
  animation: bbaseo-dot 4.8s ease-in-out infinite;
}
.bbaseo-fly i:nth-child(2) { left: 2px; top: 28px; animation-delay: 0.4s; }
.bbaseo-fly i:nth-child(3) { left: 10px; top: 34px; animation-delay: 1s; }
.bbaseo-fly i:nth-child(4) { left: 18px; top: 26px; animation-delay: 1.6s; }
.bbaseo-fly__text {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  background: linear-gradient(92deg, var(--s2-amber), var(--s2-moss));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@keyframes bbaseo-bob {
  0%, 100% { transform: translate(0, 0) rotate(-12deg); }
  50% { transform: translate(8px, -12px) rotate(-4deg); }
}
@keyframes bbaseo-dot {
  0%, 100% { opacity: 0; transform: translate(0, 0); }
  40% { opacity: 0.75; transform: translate(-6px, 6px); }
}

/* ── 移动端导航 ── */
@media (max-width: 960px) {
  .s2-head__bar-inner {
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
  }
  .s2-brand { grid-column: 1; grid-row: 1; }
  .s2-burger {
    display: flex;
    grid-column: 3;
    grid-row: 1;
  }
  .s2-search {
    grid-column: 1 / -1;
    grid-row: 2;
    max-width: none;
  }
  .s2-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 85;
    width: min(280px, 88vw);
    flex-direction: column;
    align-items: stretch;
    padding: 4.5rem 1.25rem 1.5rem;
    background: color-mix(in srgb, var(--s2-surface) 98%, #fff);
    border-left: 1px solid var(--s2-line);
    box-shadow: -8px 0 32px rgba(42, 51, 40, 0.12);
    transform: translateX(100%);
    transition: transform 0.25s ease;
  }
  .s2-nav.open { transform: translateX(0); }
  .s2-nav a {
    padding: 13px 14px;
    border-radius: 8px;
    font-size: 1rem;
  }
  .s2-grid,
  .s2-grid--dense,
  .s2-grid--channel,
  .s2-grid--related,
  .s2-grid--rank,
  .s2-home .movie-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .s2-hero__grid {
    grid-template-columns: 1fr;
  }
  .s2-hero__poster,
  .s2-hero__panel {
    justify-content: flex-start;
  }
  .s2-cat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .s2-filter__bar {
    grid-template-columns: 1fr 1fr;
  }
  .s2-foot__inner {
    grid-template-columns: 1fr;
  }
  .s2-foot__nav {
    justify-content: flex-start;
  }
  .bbaseo-fly {
    left: max(10px, env(safe-area-inset-left, 0));
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    transform: scale(0.88);
    transform-origin: left bottom;
  }
}

@media (max-width: 640px) {
  .s2-grid,
  .s2-grid--dense,
  .s2-grid--channel,
  .s2-grid--related,
  .s2-grid--rank,
  .s2-home .movie-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .s2-grid--dense {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .s2-detail {
    grid-template-columns: 1fr;
  }
  .s2-detail__cover {
    max-width: 220px;
  }
  .s2-cat-grid {
    grid-template-columns: 1fr;
  }
  .s2-filter__bar {
    grid-template-columns: 1fr;
  }
  .s2-cat__head {
    flex-direction: column;
  }
  .s2-block__head {
    flex-direction: column;
    align-items: flex-start;
  }
  .s2-hero__poster-frame {
    width: min(100%, 260px);
  }
}

@media (max-width: 400px) {
  .s2-grid,
  .s2-home .movie-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bbaseo-fly__mark,
  .bbaseo-fly i {
    animation: none !important;
  }
}

/* === LAYOUT ALIGN v3 === */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: hidden; }
html, body { min-height: 100%; }
body { margin: 0; min-width: 0; overflow-x: hidden; display: flex; flex-direction: column; }
img, video { max-width: 100%; height: auto; }
a { min-width: 0; }
.container,
.nx-container,
.jx-container {
  width: min(1180px, calc(100% - 32px)) !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.bbaseo-fly,
.bbaaseo-fly,
[class*="bbaseo-fly"],
[class*="bbaaseo-fly"] { display: none !important; }

.dsj-header__bar,
.mzy-header__inner,
.header-inner,
.m68-header__inner,
.vlt-header__inner,
.jx-header__row,
.yzz-site-header__top-inner,
.nav-inner,
.nx-header__bar,
.site-head__top,
.paper-head__top {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 10px 16px !important;
  min-width: 0 !important;
  width: 100% !important;
}
.s2-head__bar-inner {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto auto !important;
  align-items: center !important;
  gap: 10px 16px !important;
  min-width: 0 !important;
  width: 100% !important;
}
@media (max-width: 960px) {
  .s2-head__bar-inner {
    grid-template-columns: auto 1fr auto !important;
    grid-template-rows: auto auto !important;
  }
  .s2-brand { grid-column: 1 !important; grid-row: 1 !important; }
  .s2-nav { grid-column: unset !important; grid-row: unset !important; }
  .s2-burger {
    display: flex !important;
    grid-column: 3 !important;
    grid-row: 1 !important;
  }
  .s2-search {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    max-width: none !important;
  }
}

.s2-grid,
.s2-grid--dense,
.s2-grid--channel,
.s2-grid--related,
.s2-grid--rank,
.s2-home .movie-grid,
.movie-grid,
.mother-cards,
.paper-card-grid,
.cq-card-grid,
.cq-card-grid--dense,
.nx-poster-grid,
.nx-poster-grid--feat,
.nx-poster-grid--std,
.mzy-grid,
.dsj-grid,
.pop-grid,
.yzz-grid,
.arctic-grid,
.vod-grid,
.category-grid,
.home-section .mother-cards {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 14px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  list-style: none !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
}
ul.mother-cards > li,
ul.paper-card-grid > li {
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}

.tuy-card,
.fsp-hl-card,
.mzy-card,
.s2-card,
.paper-vcard,
.wythy-vcard,
.vod-poster-card,
.yzz-poster-card,
.arctic-card,
.movie-card,
.nx-card,
.overview-card,
.dsj-card,
.vlt-card,
.m68-card,
.jx-card,
[data-card] {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  grid-template-columns: none !important;
}
.tuy-card__media,
.fsp-hl-card__media,
.mzy-card__media,
.s2-card__media,
.paper-vcard__poster,
.wythy-vcard__poster-wrap,
.poster-frame,
.nx-card__poster,
.vod-poster-card__link .poster-frame {
  width: 100% !important;
  display: block !important;
  position: relative !important;
}
.tuy-card img,
.fsp-hl-card img,
.mzy-card__img,
.s2-card__media img,
.paper-vcard__poster img,
.wythy-vcard__poster,
.poster-frame img,
.nx-card__poster img,
.arctic-card img,
.movie-card img,
.vod-poster-card img,
.overview-card img,
[data-card] img {
  width: 100% !important;
  aspect-ratio: 2 / 3 !important;
  height: auto !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
}

.s2-hero__grid,
.hero-portal__inner,
.paper-hero__inner,
.nx-hero__grid,
.dsj-hero,
.mzy-hero,
.vlt-hero {
  min-width: 0 !important;
}

.page-main,
.s2-home,
.s2-cat,
.s2-play,
.home-wrap,
.paper-home {
  min-width: 0 !important;
  max-width: 100% !important;
}

@media (max-width: 1080px) {
  .s2-grid,
  .s2-grid--dense,
  .movie-grid,
  .mother-cards,
  .paper-card-grid,
  .cq-card-grid,
  .nx-poster-grid,
  .category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 900px) {
  .s2-grid,
  .s2-grid--dense,
  .s2-grid--channel,
  .s2-grid--related,
  .s2-grid--rank,
  .s2-home .movie-grid,
  .movie-grid,
  .mother-cards,
  .paper-card-grid,
  .cq-card-grid,
  .nx-poster-grid,
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  .s2-hero__grid,
  .hero-portal__inner,
  .paper-hero__inner,
  .nx-hero__grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }
  .s2-burger,
  .mzy-burger,
  .header-nav-toggle,
  .paper-nav-toggle,
  .dsj-nav-toggle,
  .m68-header__menu,
  .vlt-header__menu,
  .jx-header__toggle,
  .yzz-site-header__toggle,
  .mobile-toggle,
  .nx-header__toggle,
  [data-nav-toggle] {
    display: inline-flex !important;
  }
}
@media (max-width: 640px) {
  .s2-grid,
  .s2-grid--dense,
  .s2-grid--channel,
  .s2-grid--related,
  .s2-grid--rank,
  .s2-home .movie-grid,
  .movie-grid,
  .mother-cards,
  .paper-card-grid,
  .cq-card-grid,
  .nx-poster-grid,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
}


/* === SKIN HARDEN v1 === */
img, video { max-width: 100%; height: auto; display: block; }
img { object-fit: cover; background: #1a2234; }
[hidden] { display: none !important; }

[data-mobile-menu]:not(.is-open):not(.open),
[data-nav-drawer]:not(.is-open):not(.open),
.m68-header__drawer:not(.is-open),
.vlt-header__drawer:not(.is-open),
.jx-header__drawer:not(.is-open),
.s2-drawer:not(.is-open),
.dsj-drawer:not(.is-open),
.paper-drawer:not(.is-open),
.header-drawer:not(.is-open) {
  display: none !important;
}

.m68-header__overlay:not(.is-open),
.jx-header__backdrop[hidden],
.jx-header__backdrop:not(.is-open),
[data-sidebar-overlay]:not(.is-open):not(.open) {
  display: none !important;
}

@media (min-width: 901px) {
  .m68-header__inner,
  .vlt-header__inner,
  .dsj-header__bar,
  .mzy-header__inner,
  .header-inner,
  .jx-header__row,
  .s2-head__bar-inner,
  .paper-head__top,
  .site-head__top,
  .yzz-site-header__top-inner,
  .nx-header__bar,
  .nav-inner,
  .s8-head__bar,
  .arctic-header__inner {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 12px 20px !important;
    width: 100% !important;
  }
  .m68-header__menu,
  .vlt-header__menu,
  .jx-header__toggle,
  [data-nav-toggle] {
    display: none !important;
  }
}

@media (max-width: 900px) {
  .m68-header__nav,
  .vlt-header__nav,
  .dsj-header__nav,
  .mzy-nav,
  .s2-nav,
  .paper-nav,
  .jx-header__nav,
  .s8-nav {
    display: none !important;
  }
  .m68-header__search,
  .vlt-header__search {
    order: 3;
    width: 100%;
    max-width: 100%;
  }
  .m68-header__menu,
  .vlt-header__menu,
  [data-nav-toggle] {
    display: inline-flex !important;
  }
  .m68-hero__grid,
  .vlt-hero__grid,
  .paper-hero__inner,
  .s2-hero__grid,
  .hero-cq__grid,
  .dsj-hero,
  .jx-hero__grid {
    grid-template-columns: 1fr !important;
  }
  .m68-hero__stats,
  .vlt-hero__stats {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  .m68-grid,
  .vlt-grid,
  .s2-grid,
  .paper-card-grid,
  .cq-card-grid,
  .mzy-grid,
  .dsj-grid,
  .jx-card-grid,
  .movie-grid,
  .mother-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 560px) {
  .m68-hero__stats,
  .vlt-hero__stats {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
  .m68-hero__stats dt, .vlt-hero__stats dt { font-size: 11px !important; }
  .m68-hero__stats dd, .vlt-hero__stats dd { font-size: 16px !important; }
  .m68-hero__title, .vlt-hero__title { font-size: clamp(22px, 6.4vw, 30px) !important; line-height: 1.25 !important; }
  .m68-spotlight, .vlt-spotlight { max-height: 300px; overflow: hidden; }
  .m68-spotlight__img, .vlt-spotlight__img { max-height: 300px; object-fit: cover; }
}

.m68-card__frame,
.vlt-card__frame,
.s2-card__media,
.paper-vcard__poster,
.jx-card__poster,
.cq-card__poster,
.poster-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: #1a2234;
}
.m68-card__img,
.vlt-card__img,
.m68-spotlight__img,
.vlt-spotlight__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* === PLATFORM + SEO POLISH === */
html { -webkit-text-size-adjust:100%; text-size-adjust:100%; }
img, video { max-width:100%; height:auto; }
video { width:100%; }
input, select, textarea, button { font-size:16px; }
a, button, [data-nav-toggle] { -webkit-tap-highlight-color:transparent; touch-action:manipulation; }
body.nav-open { overflow:hidden; }
[hidden] { display:none !important; }
img.image-off { visibility:hidden; }
