/* 影单铺 · site-24 · sunset-brick 砖红黄昏 · 暖沙底 + 砖红主色 + 深褐字 */
:root {
  --accent: #b5453a;
  --accent-hover: #963830;
  --accent-soft: rgba(181, 69, 58, 0.12);
  --accent-light: #d4896a;
  --ink-accent: #8b4513;
  --bg: #f5ebe0;
  --surface: #fff8f0;
  --surface-2: #f0e4d6;
  --text: #3d2914;
  --text-muted: #6b5344;
  --text-dim: #8a7262;
  --line: rgba(61, 41, 20, 0.12);
  --shadow: 0 8px 28px rgba(61, 41, 20, 0.1);
  --radius: 0.5rem;
  color-scheme: light;
}

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

.sunset-shell__glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 45% at 50% -5%, rgba(181, 69, 58, 0.14), transparent 58%),
    radial-gradient(ellipse 40% 30% at 90% 20%, rgba(212, 137, 106, 0.1), transparent 50%),
    linear-gradient(180deg, #faf3ea 0%, var(--bg) 40%, #ede0d0 100%);
}

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 {
  backdrop-filter: blur(12px);
}

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

.brand-text {
  color: var(--accent);
  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(--accent) 45%, transparent);
  box-shadow: 0 0 0 3px var(--accent-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);
}

/* ── 首页 Hero 大图感首屏 ── */
.home-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 2.5rem;
}

.home-hero__backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(181, 69, 58, 0.88) 0%, rgba(201, 106, 82, 0.82) 45%, rgba(212, 137, 106, 0.75) 100%),
    url("../img/1.jpg") center/cover no-repeat;
  filter: saturate(1.05);
}

.home-hero__backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(61, 41, 20, 0.35) 100%);
}

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

.home-hero h1 {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 800;
  margin: 0 0 1rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
  letter-spacing: -0.02em;
}

.hero-eyebrow {
  display: inline-block;
  margin-bottom: 0.85rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 0.8125rem;
  font-weight: 700;
  color: rgba(255, 248, 240, 0.95);
}

.hero-intro {
  max-width: 42rem;
  margin: 0 auto 0.75rem;
  line-height: 1.75;
  color: rgba(255, 248, 240, 0.92);
  font-size: 1rem;
}

.hero-lead {
  max-width: 36rem;
  margin: 0 auto 1.75rem;
  font-size: 1.125rem;
  color: rgba(255, 248, 240, 0.88);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  font-weight: 700;
  background: #fff;
  color: var(--accent);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.btn-cta:hover {
  background: #fff8f0;
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  font-weight: 700;
  border: 2px solid rgba(255, 255, 255, 0.75);
  color: #fff;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
}

/* ── 内容区 ── */
.home-grids {
  background: var(--bg);
}

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

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

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

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

.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-weight: 800;
  font-size: 0.875rem;
}

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

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

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

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

@media (min-width: 640px) {
  .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 {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem;
  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 {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
  box-shadow: var(--shadow);
}

.category-tile strong {
  color: var(--text);
  font-size: 0.9375rem;
}

.category-tile span {
  color: var(--text-muted);
  font-size: 0.75rem;
  line-height: 1.5;
}

.daphne-cat-grid a {
  background: var(--surface) !important;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* ── 影片卡片 ── */
.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(-3px);
  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__poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.wythy-vcard:hover .wythy-vcard__poster {
  transform: scale(1.04);
}

.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(61, 41, 20, 0.72);
  color: #fde68a;
  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;
}

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

/* ── 骨架页：搜索/榜单/分类 ── */
.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: 999px;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 700;
}

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

.overview-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.25rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  min-height: 8rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

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

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

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

.overview-links {
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--accent);
  font-weight: 600;
}

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

/* ── 播放页 ── */
.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;
}

.video-error {
  padding: 1rem;
  text-align: center;
  color: #fff;
  background: rgba(181, 69, 58, 0.9);
}

.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(--accent-soft);
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 600;
}

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

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

/* ── Tailwind 覆写（浅色砖红） ── */
.body-mother-adopt .bg-white { background-color: var(--surface) !important; }
.body-mother-adopt .bg-gray-50,
.body-mother-adopt .bg-gray-100 { background-color: var(--surface-2) !important; }
.body-mother-adopt .bg-gray-900 { background-color: var(--surface-2) !important; }
.body-mother-adopt .bg-blue-50,
.body-mother-adopt .bg-blue-100 { background-color: var(--accent-soft) !important; }
.body-mother-adopt .bg-blue-600 { background-color: var(--accent) !important; }
.body-mother-adopt .bg-red-600 { background-color: var(--accent) !important; }

.body-mother-adopt .text-gray-900,
.body-mother-adopt .text-gray-800,
.body-mother-adopt .text-gray-700 { color: var(--text) !important; }
.body-mother-adopt .text-gray-600,
.body-mother-adopt .text-gray-500 { color: var(--text-muted) !important; }
.body-mother-adopt .text-blue-600,
.body-mother-adopt .text-blue-400 { color: var(--accent) !important; }

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

.body-mother-adopt .from-blue-50,
.body-mother-adopt .to-purple-50,
.body-mother-adopt .bg-gradient-to-br.from-blue-50 {
  background: var(--surface) !important;
  background-image: none !important;
}

.body-mother-adopt .bg-gradient-to-r.from-blue-600,
.body-mother-adopt .bg-gradient-to-r.from-blue-600.via-purple-600 {
  background: linear-gradient(135deg, #b5453a 0%, #c96a52 55%, #d4896a 100%) !important;
}

.body-mother-adopt .daphne-grid-3 > div,
.body-mother-adopt .daphne-grid-4 > div {
  background: var(--surface) !important;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* ── 页脚 ── */
.site-footer {
  margin-top: 2rem;
}

.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);
  font-size: 0.875rem;
  line-height: 1.65;
}

.footer-heading {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

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

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

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

/* ── 滚动条 ── */
.body-mother-adopt ::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

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

.body-mother-adopt ::-webkit-scrollbar-thumb {
  background: #c9b8a8;
  border-radius: 4px;
}

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

/* ── 移动端 ── */
@media (max-width: 768px) {
  .home-hero__inner {
    padding: 3rem 1rem 2.75rem;
  }

  .home-hero h1 {
    font-size: 1.625rem;
  }

  .hero-intro,
  .hero-lead {
    font-size: 0.9375rem;
  }

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

  .page-hero,
  .compact-hero {
    padding: 1.75rem 1.25rem;
    margin-left: 1rem;
    margin-right: 1rem;
  }

  .section-block {
    padding: 0;
  }

  .play-title {
    font-size: 1.375rem;
  }

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

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

@media (prefers-reduced-motion: reduce) {
  .wythy-vcard:hover {
    transform: none;
  }

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