:root {
  color-scheme: light;
  --site-bg: #f8faf7;
  --site-text: #292524;
  --site-muted: #78716c;
  --site-soft: #f5f5f4;
  --site-line: #e7e5e4;
  --site-green: #16a34a;
  --site-green-dark: #15803d;
  --site-emerald: #047857;
  --site-amber: #f59e0b;
  --site-card: #ffffff;
  --site-shadow: 0 18px 45px rgba(41, 37, 36, 0.10);
  --site-radius: 22px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.site-body {
  margin: 0;
  min-height: 100vh;
  color: var(--site-text);
  background: linear-gradient(180deg, #fafaf9 0%, #ffffff 52%, #f7fee7 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.90);
  border-bottom: 1px solid rgba(231, 229, 228, 0.88);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 28px;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--site-green), var(--site-emerald));
  color: #ffffff;
  display: grid;
  place-items: center;
  font-weight: 900;
  box-shadow: 0 14px 24px rgba(22, 163, 74, 0.25);
}

.brand-text strong {
  display: block;
  font-size: 20px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #1c1917;
}

.brand-text small {
  display: block;
  margin-top: 4px;
  color: var(--site-muted);
  font-size: 12px;
}

.header-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  flex: 1;
}

.header-nav a {
  color: #57534e;
  font-weight: 650;
  font-size: 15px;
  transition: color 0.2s ease;
}

.header-nav a:hover {
  color: var(--site-green);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-form input,
.filter-input,
.filter-select {
  min-height: 42px;
  border: 1px solid var(--site-line);
  border-radius: 14px;
  background: #ffffff;
  color: #292524;
  padding: 0 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-form input {
  width: 220px;
}

.search-form input:focus,
.filter-input:focus,
.filter-select:focus {
  border-color: rgba(22, 163, 74, 0.72);
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.11);
}

.search-form button,
.primary-btn,
.secondary-btn,
.ghost-btn,
.mobile-toggle {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.search-form button,
.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--site-green), var(--site-emerald));
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(22, 163, 74, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.search-form button:hover,
.primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 32px rgba(22, 163, 74, 0.28);
}

.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 14px;
  color: #166534;
  background: #dcfce7;
  font-weight: 800;
  transition: background 0.2s ease;
}

.secondary-btn:hover {
  background: #bbf7d0;
}

.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 14px;
  color: #57534e;
  background: #f5f5f4;
  font-weight: 750;
  transition: color 0.2s ease, background 0.2s ease;
}

.ghost-btn:hover {
  color: var(--site-green);
  background: #ecfccb;
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #f5f5f4;
  color: #292524;
  font-size: 22px;
}

.mobile-panel {
  display: none;
  padding: 0 0 18px;
}

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

.mobile-panel nav {
  display: grid;
  gap: 10px;
}

.mobile-panel a {
  padding: 12px 4px;
  font-weight: 700;
  color: #57534e;
  border-bottom: 1px solid var(--site-line);
}

.hero {
  position: relative;
  min-height: 70vh;
  background: #1c1917;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-image {
  position: absolute;
  inset: 0;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 34%, rgba(22, 163, 74, 0.26), transparent 30%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.58) 43%, rgba(0, 0, 0, 0.18) 100%),
    linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.55) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: 72px 0;
}

.hero-copy {
  max-width: 680px;
  color: #ffffff;
}

.hero-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.pill-green {
  background: var(--site-green);
}

.hero-title {
  margin: 0 0 16px;
  font-size: clamp(40px, 6vw, 74px);
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.hero-desc {
  margin: 0 0 24px;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.75;
  color: #e7e5e4;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
  color: #d6d3d1;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.20);
  backdrop-filter: blur(12px);
  cursor: pointer;
  font-size: 32px;
  line-height: 1;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.32);
  transform: translateY(-50%) scale(1.06);
}

.hero-prev {
  left: 24px;
  transform: translateY(-50%);
}

.hero-next {
  right: 24px;
  transform: translateY(-50%);
}

.hero-dots {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 30px;
  display: flex;
  gap: 9px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 32px;
  background: #ffffff;
}

.main-section {
  padding: 72px 0;
}

.section-stack {
  display: grid;
  gap: 64px;
}

.section-block {
  border-radius: 30px;
}

.section-soft {
  padding: clamp(24px, 4vw, 44px);
  background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
}

.section-warm {
  padding: clamp(24px, 4vw, 44px);
  background: linear-gradient(135deg, #fffbeb, #fff7ed);
}

.section-muted {
  padding: clamp(24px, 4vw, 44px);
  background: #f5f5f4;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.section-title {
  margin: 0;
  color: #292524;
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.section-lead {
  margin: 8px 0 0;
  color: var(--site-muted);
  line-height: 1.7;
}

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

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

.movie-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(231, 229, 228, 0.95);
  border-radius: var(--site-radius);
  background: var(--site-card);
  box-shadow: 0 8px 22px rgba(41, 37, 36, 0.06);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(22, 163, 74, 0.30);
  box-shadow: var(--site-shadow);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #1c1917, #166534);
}

.poster-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.34s ease, filter 0.34s ease;
}

.movie-card:hover .poster-link img {
  transform: scale(1.06);
  filter: saturate(1.12);
}

.poster-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(22, 163, 74, 0.90);
  font-size: 12px;
  font-weight: 850;
  backdrop-filter: blur(10px);
}

.poster-year {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.56);
  font-size: 12px;
  font-weight: 850;
  backdrop-filter: blur(10px);
}

.movie-card-body {
  padding: 18px;
}

.movie-title {
  margin: 0 0 8px;
  color: #292524;
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.movie-title a:hover {
  color: var(--site-green);
}

.movie-desc {
  margin: 0 0 14px;
  min-height: 48px;
  color: var(--site-muted);
  font-size: 14px;
  line-height: 1.7;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #57534e;
  font-size: 13px;
  font-weight: 700;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  color: #166534;
  background: #dcfce7;
  font-size: 12px;
  font-weight: 800;
}

.category-card-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.category-card {
  padding: 24px;
  border: 1px solid rgba(231, 229, 228, 0.96);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(41, 37, 36, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--site-shadow);
}

.category-card h2,
.category-card h3 {
  margin: 0 0 10px;
  font-size: 23px;
  letter-spacing: -0.03em;
}

.category-card p {
  margin: 0 0 18px;
  color: var(--site-muted);
  line-height: 1.7;
  font-size: 14px;
}

.page-hero {
  padding: 72px 0 52px;
  background:
    radial-gradient(circle at 78% 25%, rgba(22, 163, 74, 0.18), transparent 30%),
    linear-gradient(135deg, #f0fdf4, #ffffff 55%, #fafaf9);
  border-bottom: 1px solid var(--site-line);
}

.page-hero h1 {
  max-width: 880px;
  margin: 0;
  color: #1c1917;
  font-size: clamp(36px, 6vw, 64px);
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.page-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--site-muted);
  font-size: 18px;
  line-height: 1.8;
}

.filter-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 26px;
  padding: 18px;
  border: 1px solid var(--site-line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 24px rgba(41, 37, 36, 0.04);
}

.filter-input {
  flex: 1 1 280px;
}

.filter-select {
  flex: 0 1 180px;
}

.detail-hero {
  padding: 54px 0;
  background:
    radial-gradient(circle at 72% 22%, rgba(22, 163, 74, 0.20), transparent 32%),
    linear-gradient(135deg, #1c1917, #292524);
  color: #ffffff;
}

.detail-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 28px;
  background: linear-gradient(135deg, #14532d, #1c1917);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.32);
}

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

.breadcrumb {
  margin-bottom: 18px;
  color: #d6d3d1;
  font-size: 14px;
  font-weight: 700;
}

.breadcrumb a:hover {
  color: #86efac;
}

.detail-title {
  margin: 0 0 18px;
  font-size: clamp(36px, 5vw, 66px);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.detail-one {
  margin: 0 0 24px;
  color: #e7e5e4;
  font-size: 18px;
  line-height: 1.85;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.detail-meta span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.watch-panel {
  padding: 56px 0 18px;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #000000;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

.player-box video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  cursor: pointer;
}

.play-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background:
    radial-gradient(circle at center, rgba(22, 163, 74, 0.18), transparent 30%),
    rgba(0, 0, 0, 0.34);
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.play-cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-cover span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--site-green), var(--site-emerald));
  font-size: 34px;
  box-shadow: 0 18px 42px rgba(22, 163, 74, 0.36);
}

.detail-content {
  padding: 42px 0 72px;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 34px;
  align-items: start;
}

.copy-card,
.side-card {
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--site-line);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(41, 37, 36, 0.04);
}

.copy-card + .copy-card {
  margin-top: 22px;
}

.copy-card h2,
.side-card h2 {
  margin: 0 0 16px;
  color: #292524;
  font-size: 26px;
  letter-spacing: -0.03em;
}

.copy-card p {
  margin: 0;
  color: #57534e;
  font-size: 16px;
  line-height: 1.95;
}

.info-list {
  display: grid;
  gap: 12px;
}

.info-item {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--site-line);
  color: #57534e;
  font-size: 14px;
}

.info-item strong {
  color: #292524;
}

.rank-list {
  display: grid;
  gap: 14px;
}

.rank-row {
  display: grid;
  grid-template-columns: 42px 76px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--site-line);
  border-radius: 18px;
  background: #ffffff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-row:hover {
  transform: translateX(4px);
  box-shadow: 0 12px 26px rgba(41, 37, 36, 0.08);
}

.rank-number {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--site-green), var(--site-emerald));
  font-weight: 900;
}

.rank-thumb {
  overflow: hidden;
  aspect-ratio: 16 / 11;
  border-radius: 12px;
  background: #1c1917;
}

.rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-title {
  margin: 0 0 4px;
  font-weight: 850;
  color: #292524;
}

.rank-meta {
  margin: 0;
  color: var(--site-muted);
  font-size: 13px;
}

.site-footer {
  color: #d6d3d1;
  background: linear-gradient(135deg, #292524, #1c1917);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1fr;
  gap: 28px;
  padding: 50px 0 34px;
}

.footer-title {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 18px;
}

.footer-text,
.footer-list a,
.footer-list span {
  color: #a8a29e;
  font-size: 14px;
  line-height: 1.8;
}

.footer-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-list a:hover {
  color: #86efac;
}

.footer-bottom {
  padding: 20px 0 28px;
  border-top: 1px solid rgba(214, 211, 209, 0.14);
  color: #a8a29e;
  font-size: 13px;
}

.is-hidden {
  display: none !important;
}

@media (max-width: 1080px) {
  .header-nav,
  .header-actions .search-form {
    display: none;
  }

  .mobile-toggle {
    display: grid;
    place-items: center;
  }

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

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

  .detail-layout,
  .content-layout {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    max-width: 420px;
  }

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

@media (max-width: 720px) {
  .site-container {
    width: min(100% - 24px, 1180px);
  }

  .brand-text strong {
    font-size: 18px;
  }

  .brand-text small {
    display: none;
  }

  .hero,
  .hero-content {
    min-height: 620px;
  }

  .hero-content {
    align-items: end;
    padding: 110px 0 82px;
  }

  .hero-arrow {
    top: auto;
    bottom: 92px;
    width: 42px;
    height: 42px;
    font-size: 28px;
  }

  .hero-prev {
    left: 18px;
    transform: none;
  }

  .hero-next {
    right: 18px;
    transform: none;
  }

  .hero-arrow:hover {
    transform: scale(1.05);
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .primary-btn,
  .secondary-btn,
  .ghost-btn {
    width: 100%;
  }

  .section-head {
    display: grid;
    align-items: start;
  }

  .movie-grid,
  .movie-grid.grid-3,
  .category-card-grid {
    grid-template-columns: 1fr;
  }

  .main-section {
    padding: 48px 0;
  }

  .page-hero {
    padding: 52px 0 38px;
  }

  .filter-panel {
    display: grid;
  }

  .filter-select {
    width: 100%;
  }

  .rank-row {
    grid-template-columns: 36px 72px minmax(0, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
