/* site-33 · steel-mono · 工业冷感 · 冷灰底 + 钢蓝主色 + 高对比白 */
:root {
  --accent: #5b8db8;
  --accent-hover: #7aa8cc;
  --accent-soft: rgba(91, 141, 184, 0.14);
  --steel: #5b8db8;
  --steel-soft: rgba(91, 141, 184, 0.12);
  --bg: #1e2124;
  --surface: #2a2e33;
  --surface-2: #353a40;
  --text: #ffffff;
  --text-muted: #b0b8c0;
  --text-dim: #7a828a;
  --line: rgba(255, 255, 255, 0.08);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  --radius: 4px;
  color-scheme: dark;
}

html {
  scroll-behavior: smooth;
}

body.body-mother-adopt {
  min-height: 100vh;
  background: var(--bg) !important;
  color: var(--text) !important;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.steel-shell__grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(91, 141, 184, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 141, 184, 0.035) 1px, transparent 1px);
  background-size: 24px 24px;
}

img {
  display: block;
  max-width: 100%;
}

a {
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

/* ── 极简顶栏 ── */
.site-header {
  background: var(--bg) !important;
  backdrop-filter: none;
  border-bottom: 2px solid var(--steel);
  box-shadow: none;
}

.brand-icon {
  color: var(--steel);
}

.brand-text {
  color: var(--text);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.nav-link {
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.nav-link:hover {
  color: var(--accent);
  background: var(--accent-soft);
}

.nav-toggle {
  color: var(--text);
  border-radius: var(--radius);
}

.nav-toggle:hover {
  background: var(--accent-soft);
}

.daphne-header-search {
  position: relative;
}

.daphne-header-search input {
  width: 14rem;
  padding: 0.5rem 0.85rem 0.5rem 2.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.875rem;
}

.daphne-header-search input::placeholder {
  color: var(--text-dim);
}

.daphne-header-search input:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--steel) 55%, transparent);
  box-shadow: 0 0 0 3px var(--steel-soft);
}

.daphne-header-search__icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  color: var(--text-dim);
  pointer-events: none;
}

.site-mobile-nav {
  display: none;
  position: absolute;
  left: 1rem;
  right: 1rem;
  top: 4.25rem;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  z-index: 60;
}

.site-mobile-nav.open {
  display: flex;
}

.site-mobile-nav a {
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius);
  color: var(--text);
  font-weight: 600;
}

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

.mobile-search-form {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
}

.mobile-search-form input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font-size: 0.875rem;
}

.mobile-search-form input:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--accent) 50%, transparent);
}

.page-main {
  max-width: 80rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

/* ── 首页 Hero · 单海报焦点 ── */
.home-hero {
  position: relative;
  overflow: hidden;
  margin: -1.5rem -1rem 2rem;
  border-radius: 0 0 var(--radius) var(--radius);
}

@media (min-width: 640px) {
  .home-hero {
    margin-left: 0;
    margin-right: 0;
    border-radius: var(--radius);
  }
}

.home-hero__backdrop {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1e2124 0%, #2a2e33 55%, #353a40 100%);
}

.home-hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(30, 33, 36, 0.92) 0%, rgba(30, 33, 36, 0.65) 45%, rgba(30, 33, 36, 0.25) 100%),
    linear-gradient(180deg, transparent 60%, rgba(30, 33, 36, 0.9) 100%);
}

.home-hero__inner {
  position: relative;
  z-index: 1;
  padding: 2.5rem 1rem 2rem;
  color: #fff;
}

.home-hero__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .home-hero__layout {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
    gap: 2rem;
  }
}

.home-hero__copy {
  text-align: center;
}

@media (min-width: 900px) {
  .home-hero__copy {
    text-align: left;
  }
}

.home-hero h1 {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 800;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.hero-eyebrow {
  display: inline-block;
  margin-bottom: 0.85rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius);
  background: var(--steel-soft);
  border: 1px solid rgba(91, 141, 184, 0.35);
  color: var(--steel);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero-intro,
.hero-lead {
  max-width: 42rem;
  margin: 0 auto 0.75rem;
  line-height: 1.75;
  color: rgba(232, 234, 237, 0.88);
  font-size: 1rem;
}

@media (min-width: 900px) {
  .hero-intro,
  .hero-lead {
    margin-left: 0;
    margin-right: 0;
  }
}

.hero-lead {
  color: rgba(139, 149, 165, 0.95);
  font-size: 0.9375rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

@media (min-width: 900px) {
  .hero-actions {
    justify-content: flex-start;
  }
}

.hero-cat-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

@media (min-width: 900px) {
  .hero-cat-nav {
    justify-content: flex-start;
  }
}

.hero-cat-nav a {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(14, 18, 24, 0.55);
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 600;
}

.hero-cat-nav a:hover {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
  background: var(--accent-soft);
}

.mother-cards--spotlight {
  display: block;
  max-width: 320px;
  margin: 0 auto;
}

.mother-cards--spotlight .wythy-vcard:not(:first-child) {
  display: none;
}

.mother-cards--spotlight .wythy-vcard:first-child {
  border-color: rgba(91, 141, 184, 0.35);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.mother-cards--spotlight .wythy-vcard__title {
  color: var(--text);
}

.btn-cta,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9375rem;
}

.btn-cta {
  background: var(--steel);
  color: #fff;
  box-shadow: none;
  border-radius: var(--radius);
}

.btn-cta:hover {
  transform: translateY(-1px);
  background: var(--accent-hover);
  box-shadow: 0 4px 16px rgba(91, 141, 184, 0.3);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
}

/* ── 区块标题 ── */
.section-block {
  margin-bottom: 2.75rem;
}

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

.section-head > div {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.section-head h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.section-head a {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.875rem;
}

.section-head a:hover {
  color: var(--accent-hover);
}

.section-icon {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 800;
}
.wythy-vcard {
  display: block;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.wythy-vcard:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 38%, transparent);
  box-shadow: var(--shadow);
}

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

.wythy-vcard--compact {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
}

.wythy-vcard--compact .wythy-vcard__poster-wrap {
  aspect-ratio: auto;
  height: 100%;
  min-height: 9rem;
}

.wythy-vcard__poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.wythy-vcard:hover .wythy-vcard__poster {
  transform: none;
}

.wythy-vcard__tag {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
}

.wythy-vcard__score {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(30, 33, 36, 0.9);
  color: var(--steel);
  font-size: 0.6875rem;
  font-weight: 700;
}

.wythy-vcard__body {
  padding: 14px;
}

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

.wythy-vcard__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  margin: 0;
}

.mother-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .mother-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .mother-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .mother-cards--featured {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.mother-cards .wythy-vcard {
  height: 100%;
}

/* ── 分类栅格 ── */
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media (min-width: 768px) {
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .category-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

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

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

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

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

/* ── 搜索/榜单/分类页 ── */
.page-hero,
.compact-hero {
  max-width: 80rem;
  margin: 0 auto 2rem;
  padding: 2.5rem 1.75rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.page-hero h1,
.compact-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--text);
  margin: 0 0 0.75rem;
}

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

.eyebrow,
.eyebrow.solo {
  display: inline-flex;
  padding: 0.35rem 0.85rem;
  margin-bottom: 0.85rem;
  border-radius: var(--radius);
  background: var(--steel-soft);
  border: 1px solid rgba(91, 141, 184, 0.3);
  color: var(--steel);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

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

@media (min-width: 768px) {
  .filter-panel {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.filter-panel input,
.filter-panel select {
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font-size: 0.875rem;
}

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

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

@media (min-width: 768px) {
  .movie-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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

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

.empty-state {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* ── 播放页 ── */
.daphne-video-body {
  background: var(--bg) !important;
}

.daphne-player-card {
  background: #000 !important;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}

.daphne-player-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-error {
  padding: 1rem;
  text-align: center;
  color: #fff;
  background: rgba(59, 130, 246, 0.88);
}

.play-info-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.play-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.play-crumb a {
  color: var(--accent);
}

.play-crumb-current {
  color: var(--text);
  font-weight: 600;
}

.play-title {
  font-size: 1.625rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 1rem;
}

.play-meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.play-meta-tags span {
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: var(--steel-soft);
  color: var(--steel);
  font-size: 0.8125rem;
  font-weight: 600;
}

.play-meta-tags span:last-child {
  background: var(--steel-soft);
  color: var(--steel);
}

.play-desc-block h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.65rem;
}

.play-desc-block p {
  color: var(--text-muted);
  line-height: 1.75;
  margin: 0;
}

.mother-related {
  padding-bottom: 3rem;
}

/* ── SEO 品牌块 ── */
.seo-brand-block {
  margin: 0 0 1.5rem;
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.seo-brand-block h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.375rem, 3vw, 1.875rem);
  font-weight: 800;
  color: var(--text);
}

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

/* ── 页脚 ── */
.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
}

.daphne-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .daphne-footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-about {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.875rem;
  max-width: 28rem;
}

.footer-heading {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 0.75rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--accent);
}

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

@media (min-width: 640px) {
  .category-grid--compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .category-grid--compact {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.home-categories {
  margin-bottom: 2rem;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 0.8125rem;
}

.image-off {
  opacity: 0;
}

/* steel-mono 覆写母版紫粉渐变，禁止发光特效 */
.body-mother-adopt .gradient-text {
  background: linear-gradient(135deg, #ffffff, #5b8db8) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

.body-mother-adopt .btn-primary {
  background: var(--steel) !important;
  border-radius: var(--radius) !important;
}

.body-mother-adopt .btn-primary:hover {
  background: var(--accent-hover) !important;
  box-shadow: 0 4px 16px rgba(91, 141, 184, 0.28) !important;
}

.body-mother-adopt .card-hover:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35) !important;
  transform: translateY(-2px) !important;
}

/* ── Tailwind 覆写（m27 深色） ── */
.body-mother-adopt .bg-white,
.body-mother-adopt .bg-dark-800,
.body-mother-adopt .bg-dark-900 {
  background-color: var(--surface) !important;
}

.body-mother-adopt .bg-gray-50,
.body-mother-adopt .bg-gray-100,
.body-mother-adopt .bg-gray-900 {
  background-color: var(--surface-2) !important;
}

.body-mother-adopt .text-white {
  color: var(--text) !important;
}

.body-mother-adopt .text-gray-900,
.body-mother-adopt .text-gray-800,
.body-mother-adopt .text-gray-700,
.body-mother-adopt .text-dark-900 {
  color: var(--text) !important;
}

.body-mother-adopt .text-gray-600,
.body-mother-adopt .text-gray-500,
.body-mother-adopt .text-white\/40,
.body-mother-adopt .text-white\/60 {
  color: var(--text-muted) !important;
}

.body-mother-adopt .text-blue-600,
.body-mother-adopt .text-blue-400,
.body-mother-adopt .text-brand-400 {
  color: var(--accent) !important;
}

.body-mother-adopt .border-gray-200,
.body-mother-adopt .border-gray-300,
.body-mother-adopt .border-white\/5,
.body-mother-adopt .border-white\/20 {
  border-color: var(--line) !important;
}

.body-mother-adopt ::-webkit-scrollbar {
  width: 0.5rem;
  height: 0.5rem;
}

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

.body-mother-adopt ::-webkit-scrollbar-thumb {
  background: #454b52;
  border-radius: 999px;
}

.body-mother-adopt ::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  .wythy-vcard:hover,
  .btn-cta:hover,
  .category-tile:hover {
    transform: none;
  }

  .wythy-vcard:hover .wythy-vcard__poster {
    transform: none;
  }
}

@media (max-width: 820px) {
  .page-main {
    padding: 1rem 0.875rem 2.5rem;
  }

  .home-hero__inner {
    padding: 2rem 1rem 1.75rem;
  }

  .home-hero__layout {
    gap: 1.25rem;
  }

  .mother-cards--spotlight {
    max-width: 200px;
  }

  .daphne-header-search input {
    width: 100%;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .wythy-vcard--compact {
    grid-template-columns: 5.5rem minmax(0, 1fr);
  }

  .filter-panel input,
  .filter-panel select {
    width: 100%;
  }
}
