/* 站点皮肤 · midnight-gold · 深夜影厅 · 近黑底 + 字幕金 + 冷蓝点缀 */
:root {
  --gold: #d4af37;
  --gold-soft: rgba(212, 175, 55, 0.14);
  --gold-dim: #b8942e;
  --accent: #5b9fd4;
  --accent-ice: #7eb8e8;
  --accent-deep: #3d7ab8;
  --accent-soft: rgba(91, 159, 212, 0.12);
  --bg: #0a0a0f;
  --surface: #111118;
  --surface-elevated: #181820;
  --header-bg: #060608;
  --text: #f0f0f2;
  --muted: #8a8a96;
  --graphite: #2a2a34;
  --line: rgba(138, 138, 150, 0.16);
  --shadow: 0 20px 56px rgba(0, 0, 0, 0.55);
}

html {
  scroll-behavior: smooth;
}

body.body-mother-adopt {
  min-height: 100vh;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(ellipse 80% 50% at 50% -8%, rgba(91, 159, 212, 0.06), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(212, 175, 55, 0.03), transparent 50%),
    var(--bg) !important;
}

body.body-mother-adopt::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(138, 138, 150, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(138, 138, 150, 0.025) 1px, transparent 1px);
  background-size: 52px 52px;
}

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

.text-emerald-400 {
  color: var(--accent) !important;
}

.vod-logo-icon {
  color: var(--accent-ice);
}

.page-main {
  min-height: calc(100vh - 12rem);
}

/* ── 顶栏移动端 ── */
.mobile-nav-panel {
  display: none;
  position: absolute;
  left: 1rem;
  right: 1rem;
  top: calc(100% + 0.5rem);
  z-index: 60;
  padding: 0.75rem;
  border-radius: 0.75rem;
  background: var(--surface-elevated);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.mobile-nav-panel.open {
  display: block;
}

.mobile-nav-panel a {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
}

.mobile-nav-panel a:hover {
  background: var(--accent-soft);
  color: var(--accent-ice);
}

/* ── 首屏单海报焦点 Hero ── */
.vod-hero-focus__frame {
  position: relative;
  overflow: hidden;
  border-radius: 0.875rem;
  border: 1px solid var(--line);
  background: var(--header-bg);
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
  max-height: min(72vh, 520px);
}

@media (max-width: 640px) {
  .vod-hero-focus__frame {
    aspect-ratio: 4 / 5;
    max-height: none;
  }
}

.vod-hero-focus__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.vod-hero-focus__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(6, 6, 8, 0.92) 0%, rgba(6, 6, 8, 0.45) 45%, rgba(6, 6, 8, 0.15) 100%),
    linear-gradient(to right, rgba(6, 6, 8, 0.75) 0%, transparent 55%);
}

.vod-hero-focus__content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 1.5rem 1.25rem 3.25rem;
}

@media (min-width: 768px) {
  .vod-hero-focus__content {
    max-width: 62%;
    padding: 2.5rem 2.5rem 3.5rem;
  }
}

.vod-hero-focus__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ice);
  font-size: 0.8125rem;
  font-weight: 700;
}

.vod-hero-focus__eyebrow::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--accent);
  animation: vodPulse 2.4s ease-in-out infinite;
}

@keyframes vodPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}

.vod-hero-focus h1 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.5rem, 4.5vw, 2.5rem);
  line-height: 1.15;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: -0.02em;
}

.vod-hero-focus__lead {
  margin: 0 0 1.1rem;
  max-width: 36rem;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

@media (min-width: 768px) {
  .vod-hero-focus__lead {
    font-size: 1rem;
  }
}

.vod-hero-focus__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.vod-hero-focus__cap {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 2;
  padding: 0.35rem 0.75rem;
  border-radius: 0.375rem;
  background: rgba(6, 6, 8, 0.72);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
}

.vod-btn-primary,
.vod-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.25rem;
  border-radius: 0.5rem;
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.vod-btn-primary {
  background: linear-gradient(135deg, var(--accent-deep), var(--accent));
  color: #fff;
}

.vod-btn-primary:hover {
  transform: translateY(-1px);
  color: #fff;
}

.vod-btn-ghost {
  background: rgba(6, 6, 8, 0.55);
  color: var(--accent-ice);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
}

.vod-btn-ghost:hover {
  background: var(--accent-soft);
  color: #fff;
}

/* ── 频道入口 ── */
.vod-section-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
}

@media (min-width: 640px) {
  .vod-section-title {
    font-size: 1.5rem;
  }
}

.vod-star-icon {
  width: 1.35rem;
  height: 1.35rem;
  color: var(--gold);
  flex-shrink: 0;
}

.vod-link-more {
  color: var(--accent-ice);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.vod-link-more:hover {
  color: var(--accent);
}

.vod-channel-tile {
  display: block;
  padding: 1rem 0.75rem;
  border-radius: 0.625rem;
  background: var(--surface);
  border: 1px solid var(--line);
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.vod-channel-tile:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  background: var(--surface-elevated);
  transform: translateY(-2px);
}

.vod-channel-tile__icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0 auto 0.65rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ice);
}

@media (min-width: 640px) {
  .vod-channel-tile__icon {
    width: 3.25rem;
    height: 3.25rem;
  }
}

.vod-channel-tile h3 {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text);
  transition: color 0.2s ease;
}

@media (min-width: 640px) {
  .vod-channel-tile h3 {
    font-size: 0.9375rem;
  }
}

.vod-channel-tile:hover h3 {
  color: var(--accent-ice);
}

.vod-stat__num {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent-ice);
  margin-bottom: 0.35rem;
}

@media (min-width: 768px) {
  .vod-stat__num {
    font-size: 2.25rem;
  }
}

.vod-stat__label {
  color: var(--muted);
  font-size: 0.8125rem;
}

/* ── 卡片 ── */
.vod-card {
  border-radius: 0.5rem;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.vod-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
}

.vod-card a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.vod-card__poster {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--header-bg);
}

.vod-card__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.vod-card:hover .vod-card__poster img {
  transform: scale(1.04);
}

.vod-card__badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.15rem 0.45rem;
  border-radius: 0.25rem;
  background: rgba(61, 122, 184, 0.9);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
}

.vod-card__year {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  padding: 0.15rem 0.45rem;
  border-radius: 0.25rem;
  background: rgba(6, 6, 8, 0.78);
  color: var(--gold);
  font-size: 0.6875rem;
  font-weight: 700;
}

.vod-card__body {
  padding: 0.85rem;
}

.vod-card__title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.vod-card:hover .vod-card__title {
  color: var(--gold);
}

.vod-card__meta {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.75rem;
}

.mother-cards {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1rem;
}

.mother-cards--related {
  grid-template-columns: 1fr;
}

.wythy-vcard {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 0.5rem;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  color: inherit;
  text-decoration: none;
}

.wythy-vcard:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
}

.wythy-vcard__poster-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--header-bg);
  overflow: hidden;
}

.wythy-vcard__poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wythy-vcard__tag {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.15rem 0.45rem;
  border-radius: 0.25rem;
  background: rgba(61, 122, 184, 0.9);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
}

.wythy-vcard__score {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  padding: 0.15rem 0.45rem;
  border-radius: 0.25rem;
  background: rgba(6, 6, 8, 0.78);
  color: var(--gold);
  font-size: 0.6875rem;
  font-weight: 700;
}

.wythy-vcard__body {
  padding: 0.85rem;
}

.wythy-vcard__title {
  margin: 0 0 0.35rem;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wythy-vcard:hover .wythy-vcard__title {
  color: var(--gold);
}

.wythy-vcard__meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
}

/* ── 辅页 ── */
.page-hero,
.compact-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 1.75rem;
  padding: 2rem 1.5rem;
  border-radius: 0.875rem;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-elevated) 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  color: var(--text);
}

.eyebrow,
.eyebrow.solo {
  display: inline-flex;
  margin-bottom: 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ice);
  font-size: 0.8125rem;
  font-weight: 700;
}

.page-hero h1,
.compact-hero h1 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--gold);
}

.page-hero p,
.compact-hero p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.section-block {
  margin-bottom: 2.5rem;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.section-head h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
}

.section-head a {
  color: var(--accent-ice);
  font-weight: 700;
  text-decoration: none;
}

.section-icon {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-right: 0.5rem;
  border-radius: 0.5rem;
  background: var(--gold-soft);
  color: var(--gold);
  font-weight: 800;
}

.filter-panel {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 0.75rem;
  padding: 1rem;
  margin-bottom: 1.25rem;
  border-radius: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--line);
  background: var(--surface-elevated);
  color: var(--text);
  outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: color-mix(in srgb, var(--accent) 50%, transparent);
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.movie-card {
  border-radius: 0.5rem;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
}

.poster-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--header-bg);
}

.poster-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.movie-card-body {
  padding: 0.85rem;
}

.movie-card h3 {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
}

.rank-badge {
  position: absolute;
  left: 0.5rem;
  top: 0.5rem;
  min-width: 1.75rem;
  height: 1.75rem;
  display: grid;
  place-items: center;
  border-radius: 0.375rem;
  background: linear-gradient(135deg, var(--gold-dim), var(--gold));
  color: #0a0a0f;
  font-weight: 800;
  font-size: 0.8125rem;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

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

.category-tile,
.overview-card {
  display: block;
  padding: 1.25rem;
  border-radius: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-tile:hover,
.overview-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
}

.category-tile strong,
.overview-main strong {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
}

.category-tile span,
.overview-main span {
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.875rem;
}

.rank-panel {
  padding: 1rem;
  border-radius: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
}

.empty-state {
  padding: 2rem;
  border-radius: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-weight: 600;
}

.image-off {
  opacity: 0;
}

/* ── 播放页 ── */
.watch-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
}

.watch-breadcrumb a {
  color: var(--accent-ice);
  text-decoration: none;
}

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

.watch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 1.5rem;
  align-items: start;
}

.watch-player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  background: #000;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

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

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

.video-error {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  text-align: center;
  color: #fff;
  background: rgba(6, 6, 8, 0.88);
  font-weight: 700;
}

.watch-info {
  margin-top: 1.25rem;
  padding: 1.25rem;
  border-radius: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
}

.watch-info__kicker {
  margin: 0 0 0.5rem;
  color: var(--accent-ice);
  font-size: 0.8125rem;
  font-weight: 700;
}

.watch-info h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 800;
  color: var(--gold);
}

.watch-info__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}

.watch-info__tags span,
.watch-info__tags a {
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ice);
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
}

.watch-info__desc,
.mother-play-desc {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
  font-size: 0.9375rem;
}

.watch-info__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.watch-info__meta div {
  text-align: center;
}

.watch-info__meta dt {
  margin: 0 0 0.25rem;
  color: var(--muted);
  font-size: 0.75rem;
}

.watch-info__meta dd {
  margin: 0;
  color: var(--text);
  font-weight: 700;
  font-size: 0.9375rem;
}

.watch-info__meta div:first-child dd {
  color: var(--gold);
}

.watch-sidebar {
  position: sticky;
  top: 5rem;
  padding: 1rem;
  border-radius: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
}

.watch-sidebar__title {
  margin: 0 0 0.85rem;
  padding-left: 0.65rem;
  border-left: 3px solid var(--accent);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
}

.watch-sidebar__more {
  display: block;
  margin-top: 0.85rem;
  text-align: center;
  padding: 0.65rem;
  border-radius: 0.5rem;
  border: 1px solid var(--line);
  color: var(--accent-ice);
  font-weight: 700;
  text-decoration: none;
}

.watch-sidebar__more:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.seo-brand-block {
  margin: 0 0 1.25rem;
  padding: 1.1rem 1.25rem;
  border-radius: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
}

.seo-brand-block h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  font-weight: 800;
  color: var(--gold);
}

.seo-brand-block p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
  font-size: 0.9375rem;
}

body.body-mother-adopt ::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

body.body-mother-adopt ::-webkit-scrollbar-track {
  background: var(--bg);
}

body.body-mother-adopt ::-webkit-scrollbar-thumb {
  background: var(--graphite);
  border-radius: 4px;
}

body.body-mother-adopt ::-webkit-scrollbar-thumb:hover {
  background: color-mix(in srgb, var(--accent) 35%, var(--graphite));
}

@media (max-width: 1024px) {
  .movie-grid,
  .filter-panel {
    grid-template-columns: 1fr 1fr;
  }

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

  .watch-sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .movie-grid,
  .category-grid,
  .category-grid.large {
    grid-template-columns: 1fr 1fr;
  }

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

  .watch-info__meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .watch-info__meta dd {
    font-size: 0.8125rem;
  }

  .vod-hero-focus__content {
    padding: 1.25rem 1rem 3rem;
  }

  .vod-hero-focus__cap {
    display: none;
  }
}
