:root {
  color-scheme: light;
  --bg: #f7faf8;
  --paper: #ffffff;
  --ink: #111827;
  --muted: #64748b;
  --line: #e5e7eb;
  --green: #16a34a;
  --green-dark: #15803d;
  --green-soft: #dcfce7;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top left, rgba(34, 197, 94, 0.12), transparent 34rem), var(--bg);
  line-height: 1.65;
}

body.no-scroll {
  overflow: hidden;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-weight: 900;
  border-radius: 14px;
  background: linear-gradient(135deg, #22c55e, #15803d);
  box-shadow: 0 14px 34px rgba(22, 163, 74, 0.32);
}

.brand-text {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

.desktop-nav a,
.mobile-panel a {
  color: #374151;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-panel a:hover,
.mobile-panel a.active {
  color: var(--green-dark);
}

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

.site-search input,
.toolbar input {
  width: 245px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 15px;
  outline: none;
  background: #ffffff;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.site-search input:focus,
.toolbar input:focus {
  border-color: #86efac;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.16);
}

.site-search button,
.toolbar a,
.primary-btn,
.secondary-btn {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.site-search button,
.primary-btn {
  color: #ffffff;
  background: linear-gradient(135deg, #22c55e, #15803d);
  box-shadow: 0 12px 30px rgba(22, 163, 74, 0.25);
}

.secondary-btn,
.toolbar a {
  color: var(--green-dark);
  background: var(--green-soft);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  border-radius: 14px;
  padding: 9px 12px;
  background: #eef2f7;
}

.mobile-panel {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 18px;
  padding: 18px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.mobile-panel nav {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.hero {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  min-height: 620px;
  margin: 30px auto 24px;
  overflow: hidden;
  border-radius: 34px;
  background: #052e16;
  box-shadow: var(--shadow);
}

.hero-track {
  position: relative;
  min-height: 620px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(270px, 0.7fr);
  gap: 38px;
  align-items: center;
  padding: 70px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s ease, transform 0.65s ease;
  transform: scale(1.02);
  background-image: linear-gradient(100deg, rgba(5, 46, 22, 0.96), rgba(5, 46, 22, 0.73) 52%, rgba(5, 46, 22, 0.34)), var(--hero-image);
  background-size: cover;
  background-position: center;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

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

.hero-kicker,
.page-hero span,
.detail-copy .tag-row span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 6px 12px;
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.16);
  border: 1px solid rgba(187, 247, 208, 0.28);
  font-weight: 800;
}

.hero h1 {
  margin: 18px 0 16px;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.hero p {
  margin: 0 0 22px;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 11px;
  color: #166534;
  background: #dcfce7;
  font-size: 13px;
  font-weight: 800;
}

.hero .hero-tags span {
  color: #dcfce7;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-poster {
  position: relative;
  justify-self: end;
  width: min(340px, 100%);
  aspect-ratio: 2 / 3;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.hero-poster img,
.poster-wrap img,
.detail-poster img,
.rank-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #052e16, #16a34a);
}

.hero-nav {
  position: absolute;
  left: 70px;
  bottom: 36px;
  display: flex;
  gap: 9px;
  z-index: 4;
}

.hero-dot {
  width: 32px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
}

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

.quick-categories,
.content-section,
.page-hero,
.detail-content,
.player-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.quick-categories {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 46px;
}

.category-chip,
.category-panel,
.article-card {
  display: block;
  border-radius: var(--radius);
  padding: 20px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.96);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.category-chip:hover,
.category-panel:hover,
.movie-card:hover,
.rank-item:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 197, 94, 0.42);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

.category-chip strong,
.category-panel h2 {
  display: block;
  font-size: 18px;
  color: var(--ink);
  margin-bottom: 6px;
}

.category-chip span,
.category-panel p,
.section-title p,
.movie-card p,
.movie-card small,
.rank-copy small,
.footer-inner span {
  color: var(--muted);
}

.content-section {
  margin-bottom: 56px;
}

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

.section-title h2,
.page-hero h1,
.detail-copy h1,
.article-card h2 {
  margin: 0;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.section-title h2 {
  font-size: clamp(26px, 3vw, 38px);
}

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

.movie-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(210px, 1fr);
  gap: 16px;
  overflow-x: auto;
  padding: 2px 2px 18px;
  scroll-snap-type: x mandatory;
}

.movie-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.96);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.07);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  scroll-snap-align: start;
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #052e16, #16a34a);
}

.poster-wrap em {
  position: absolute;
  top: 12px;
  right: 12px;
  border-radius: 999px;
  padding: 4px 9px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.62);
  font-style: normal;
  font-weight: 900;
  font-size: 12px;
}

.movie-card-body {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.movie-card strong {
  font-size: 17px;
  line-height: 1.35;
}

.movie-card p {
  margin: 0;
  font-size: 14px;
}

.page-hero {
  position: relative;
  margin-top: 30px;
  margin-bottom: 28px;
  border-radius: 32px;
  padding: 56px;
  color: #ffffff;
  background: radial-gradient(circle at top right, rgba(187, 247, 208, 0.3), transparent 24rem), linear-gradient(135deg, #052e16, #166534 58%, #16a34a);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.page-hero.slim {
  min-height: 245px;
}

.page-hero h1 {
  margin: 14px 0 12px;
  color: #ffffff;
  font-size: clamp(34px, 5vw, 56px);
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.category-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 56px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.category-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.7fr);
  gap: 22px;
}

.mini-list {
  display: grid;
  gap: 8px;
  align-content: start;
}

.mini-list a {
  color: var(--green-dark);
  font-weight: 700;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.toolbar input {
  width: min(520px, 100%);
  border-radius: 18px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 60px 92px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(226, 232, 240, 0.96);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.rank-number {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: #ffffff;
  border-radius: 16px;
  background: linear-gradient(135deg, #22c55e, #15803d);
  font-weight: 900;
}

.rank-item img {
  width: 92px;
  height: 128px;
  border-radius: 16px;
}

.rank-copy {
  display: grid;
  gap: 8px;
}

.rank-copy strong {
  font-size: 19px;
}

.rank-item em {
  color: var(--green-dark);
  font-style: normal;
  font-weight: 900;
}

.detail-hero {
  position: relative;
  margin-top: 0;
  background-image: linear-gradient(110deg, rgba(5, 46, 22, 0.96), rgba(5, 46, 22, 0.72), rgba(5, 46, 22, 0.44)), var(--detail-cover);
  background-size: cover;
  background-position: center;
}

.detail-hero-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 54px;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.78);
}

.crumbs a:hover {
  color: #ffffff;
}

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

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  aspect-ratio: 2 / 3;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.detail-copy {
  color: #ffffff;
}

.detail-copy h1 {
  color: #ffffff;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.08;
}

.detail-copy p {
  max-width: 800px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.detail-meta span {
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.13);
  color: #ffffff;
  font-weight: 800;
}

.detail-copy .primary-btn {
  display: inline-flex;
  margin-top: 24px;
}

.player-section {
  margin-top: 34px;
  margin-bottom: 28px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #000000;
  box-shadow: var(--shadow);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 14px;
  align-content: center;
  color: #ffffff;
  border: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.66));
  cursor: pointer;
  z-index: 2;
}

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

.play-icon {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  padding-left: 6px;
  border-radius: 999px;
  color: #16a34a;
  background: #ffffff;
  font-size: 34px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

.player-cover strong {
  max-width: min(760px, calc(100% - 48px));
  font-size: clamp(22px, 4vw, 40px);
  text-align: center;
}

.detail-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 48px;
}

.article-card h2 {
  margin-bottom: 12px;
  font-size: 26px;
}

.article-card p {
  margin: 0;
  color: #334155;
}

.site-footer {
  margin-top: 60px;
  padding: 32px 0;
  border-top: 1px solid rgba(226, 232, 240, 0.96);
  background: #ffffff;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

[data-movie-card][hidden] {
  display: none;
}

@media (max-width: 1020px) {
  .desktop-nav,
  .header-inner > .site-search {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    padding: 46px;
  }

  .hero-poster {
    display: none;
  }

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

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

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

@media (max-width: 680px) {
  .brand-text {
    font-size: 18px;
  }

  .hero,
  .hero-track {
    min-height: 560px;
  }

  .hero-slide {
    padding: 34px 24px;
  }

  .hero-nav {
    left: 24px;
    bottom: 22px;
  }

  .quick-categories,
  .movie-grid {
    grid-template-columns: 1fr;
  }

  .movie-row {
    grid-auto-columns: minmax(210px, 82vw);
  }

  .page-hero {
    padding: 34px 24px;
  }

  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .rank-item {
    grid-template-columns: 46px 74px minmax(0, 1fr);
  }

  .rank-item img {
    width: 74px;
    height: 104px;
  }

  .rank-item em {
    grid-column: 3;
  }

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

  .detail-poster {
    width: min(230px, 78vw);
  }
}
