/* site-23 · copper-studio · 深褐底 + 铜金强调 + 米灰字 · 影视站栅格 */
:root {
  --copper: #b87333;
  --copper-light: #c9956a;
  --copper-dark: #8b5a2b;
  --copper-muted: rgba(184, 115, 51, 0.14);
  --bg: #1a1410;
  --surface: #2a2118;
  --surface-hover: #352a20;
  --text: #d4cfc4;
  --muted: #9a9288;
  --line: rgba(201, 149, 106, 0.14);
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.42);
  --cta: #b87333;
  --cta-hover: #9a6128;
}

html {
  scroll-behavior: smooth;
}

body.body-mother-adopt {
  min-height: 100vh;
  font-family: "Noto Sans SC", Inter, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ── 顶栏移动端菜单 ── */
.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: 0.75rem;
  background: color-mix(in srgb, var(--surface) 96%, #000);
  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: 0.5rem;
  color: var(--text);
  font-weight: 600;
}

.site-mobile-nav a:hover {
  background: var(--copper-muted);
  color: var(--copper-light);
}

/* ── 品牌与顶栏 ── */
.brand-icon {
  color: var(--copper);
}

.brand-text {
  color: var(--copper-light);
  letter-spacing: 0.02em;
}

.brand:hover .brand-text {
  color: var(--copper);
}

.footer-heading {
  color: var(--copper-light);
}

.text-copper-light {
  color: var(--copper-light);
}

.hover\:text-copper-light:hover {
  color: var(--copper-light);
}

.focus\:border-copper\/50:focus {
  border-color: color-mix(in srgb, var(--copper) 55%, transparent);
}

/* ── 首页 Hero ── */
.hero-eyebrow {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background: var(--copper-muted);
  border: 1px solid color-mix(in srgb, var(--copper) 28%, transparent);
  color: var(--copper-light);
  font-size: 0.8125rem;
  font-weight: 700;
}

.hero-lead {
  color: var(--muted);
  font-size: 1.125rem;
  line-height: 1.75;
  max-width: 42rem;
  margin: 0 auto 1.75rem;
}

.hero-intro {
  color: var(--muted);
  line-height: 1.7;
  max-width: 48rem;
  margin: 0 auto 1rem;
}

.hero-actions {
  margin-top: 0.5rem;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-weight: 700;
  background: var(--copper);
  color: #fff;
  box-shadow: 0 6px 18px rgba(184, 115, 51, 0.22);
}

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

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-weight: 700;
  border: 1px solid color-mix(in srgb, var(--copper) 40%, transparent);
  color: var(--text);
}

.btn-ghost:hover {
  background: var(--copper-muted);
  border-color: var(--copper);
  color: var(--copper-light);
}

/* ── 中区推荐栅格 ── */
.home-grids {
  max-width: 1280px;
}

.home-grid-center {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* ── 骨架页：搜索/榜单/分类 ── */
.page-hero,
.compact-hero {
  position: relative;
  overflow: hidden;
  margin: 0 auto 2rem;
  max-width: 1280px;
  padding: 2.5rem 1.75rem;
  border-radius: 0.75rem;
  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.75rem);
  font-weight: 800;
  color: var(--text);
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

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

.eyebrow,
.eyebrow.solo {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  margin-bottom: 0.85rem;
  border-radius: 9999px;
  background: var(--copper-muted);
  border: 1px solid color-mix(in srgb, var(--copper) 30%, transparent);
  color: var(--copper-light);
  font-size: 0.8125rem;
  font-weight: 700;
}

.section-block {
  max-width: 1280px;
  margin: 0 auto 3rem;
  padding: 0 1rem;
}

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

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

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

.section-icon {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background: var(--copper-muted);
  color: var(--copper);
  font-weight: 800;
  font-size: 0.875rem;
}

.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: color-mix(in srgb, var(--bg) 80%, transparent);
  color: var(--text);
  font-weight: 600;
  outline: none;
}

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

.filter-panel option {
  color: #111;
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--copper) 35%, transparent);
}

.poster-frame {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #0f0c09;
}

.poster-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.movie-card:hover .poster-frame img {
  transform: scale(1.04);
}

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

.movie-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card p,
.movie-meta-line {
  color: var(--muted);
  font-size: 0.8125rem;
}

.rank-badge {
  position: absolute;
  left: 0.65rem;
  top: 0.65rem;
  z-index: 2;
  min-width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 0.375rem;
  background: var(--copper);
  color: #fff;
  font-weight: 800;
  font-size: 0.8125rem;
}

.card-actions a {
  display: inline-flex;
  padding: 0.45rem 0.85rem;
  border-radius: 0.375rem;
  background: var(--copper);
  color: #fff;
  font-weight: 700;
  font-size: 0.8125rem;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 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);
  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(--copper) 40%, transparent);
}

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

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

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

.image-off {
  opacity: 0;
}

/* ── 卡片 partial ── */
.wythy-vcard {
  display: block;
  border-radius: 0.75rem;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

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

.wythy-vcard__poster-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  background: #0f0c09;
}

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

.wythy-vcard__tag {
  position: absolute;
  left: 0.5rem;
  top: 0.5rem;
  padding: 0.2rem 0.5rem;
  border-radius: 0.25rem;
  background: var(--copper);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
}

.wythy-vcard__score {
  position: absolute;
  right: 0.5rem;
  top: 0.5rem;
  padding: 0.2rem 0.5rem;
  border-radius: 0.25rem;
  background: rgba(0, 0, 0, 0.72);
  color: var(--text);
  font-size: 0.6875rem;
}

.wythy-vcard__body {
  padding: 0.85rem;
}

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

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

.wythy-vcard__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.75rem;
  margin: 0;
}

.wythy-vcard__meta span {
  padding: 0.15rem 0.45rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
}

/* ── 播放页 ── */
.play-head {
  max-width: 1280px;
}

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

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

.play-crumb a:hover {
  color: var(--copper-light);
}

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

.play-title {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  color: var(--text);
  margin: 0 0 0.75rem;
}

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

.play-meta-tags span {
  padding: 0.25rem 0.65rem;
  border-radius: 0.375rem;
  background: var(--copper-muted);
  border: 1px solid color-mix(in srgb, var(--copper) 25%, transparent);
  color: var(--copper-light);
  font-size: 0.8125rem;
  font-weight: 600;
}

.video-error {
  display: grid;
  place-items: center;
  padding: 2rem;
  color: var(--muted);
  background: var(--surface);
}

/* ── SEO 品牌区块 ── */
.seo-brand-block {
  max-width: 1280px;
  margin: 0 auto 0.5rem;
  padding: 1.25rem 1.5rem;
  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.125rem, 3vw, 1.5rem);
  font-weight: 800;
  color: var(--text);
}

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

/* ── 分页 ── */
.shiyue-pagination a {
  border-radius: 0.375rem;
}

/* ── 响应式 ── */
@media (max-width: 1100px) {
  .movie-grid,
  .home-grid-center {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .filter-panel {
    grid-template-columns: 1fr 1fr;
  }
  .movie-grid,
  .home-grid-center {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .category-grid,
  .category-grid.large {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .filter-panel {
    grid-template-columns: 1fr;
  }
  .movie-grid,
  .home-grid-center {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }
  .page-hero,
  .compact-hero {
    padding: 1.75rem 1.25rem;
  }
  .home-hero {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }
  .btn-cta,
  .btn-ghost {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .movie-card:hover,
  .wythy-vcard:hover,
  .btn-cta:hover {
    transform: none;
  }
}
