:root {
  --green-950: #052e1a;
  --green-900: #064e2f;
  --green-800: #166534;
  --green-700: #15803d;
  --green-600: #16a34a;
  --green-500: #22c55e;
  --green-200: #bbf7d0;
  --emerald-600: #059669;
  --gray-950: #0f172a;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50: #f9fafb;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
  --soft-shadow: 0 10px 24px rgba(15, 23, 42, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--gray-800);
  background: linear-gradient(180deg, #f0fdf4 0%, var(--gray-50) 18%, #ffffff 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

img {
  display: block;
  max-width: 100%;
  background: linear-gradient(135deg, #dcfce7, #ecfdf5);
}

button,
input,
select {
  font: inherit;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--white);
  background: linear-gradient(90deg, var(--green-800), var(--green-600), var(--emerald-600));
  box-shadow: 0 10px 30px rgba(5, 46, 26, 0.25);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--green-800);
  background: linear-gradient(135deg, #ffffff, var(--green-200));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7), 0 8px 18px rgba(5, 46, 26, 0.2);
}

.brand-text {
  font-size: 1.22rem;
  white-space: nowrap;
}

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

.nav-link,
.mobile-link {
  position: relative;
  color: rgba(255, 255, 255, 0.86);
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.mobile-link:hover,
.nav-link.active,
.mobile-link.active {
  color: var(--green-200);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 3px;
  border-radius: 999px;
  background: var(--green-200);
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 4px;
}

.nav-search input,
.mobile-search input,
.hero-search input,
.page-filter input {
  border: 0;
  outline: 0;
  border-radius: 999px;
}

.nav-search input {
  width: 210px;
  padding: 10px 14px;
  color: var(--white);
  background: rgba(6, 78, 47, 0.78);
}

.nav-search input::placeholder,
.mobile-search input::placeholder {
  color: rgba(220, 252, 231, 0.9);
}

.nav-search button,
.mobile-search button,
.hero-search button,
.page-filter button,
.primary-btn,
.secondary-btn {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-search button {
  padding: 10px 16px;
  color: var(--green-900);
  background: var(--green-200);
  font-weight: 700;
}

.nav-search button:hover,
.mobile-search button:hover,
.hero-search button:hover,
.primary-btn:hover,
.secondary-btn:hover {
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: var(--white);
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

.mobile-panel.open {
  display: grid;
  gap: 12px;
}

.mobile-search {
  display: flex;
  gap: 8px;
}

.mobile-search input {
  flex: 1;
  padding: 12px 14px;
  color: var(--white);
  background: rgba(6, 78, 47, 0.78);
}

.mobile-search button {
  padding: 12px 18px;
  color: var(--green-900);
  background: var(--green-200);
  font-weight: 700;
}

.site-main {
  min-height: 70vh;
}

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

.hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  color: var(--white);
  background: radial-gradient(circle at 20% 20%, rgba(34, 197, 94, 0.34), transparent 34%), linear-gradient(135deg, var(--green-950), var(--green-800));
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.01);
  transition: opacity 0.7s ease, transform 0.7s ease;
  background-size: cover;
  background-position: center;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 46, 26, 0.92), rgba(5, 46, 26, 0.72) 42%, rgba(5, 46, 26, 0.35)), linear-gradient(0deg, rgba(5, 46, 26, 0.88), transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 620px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 360px;
  gap: 42px;
  align-items: center;
  padding: 72px 0 54px;
}

.hero-kicker,
.page-kicker,
.detail-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--green-200);
  background: rgba(187, 247, 208, 0.12);
  box-shadow: inset 0 0 0 1px rgba(187, 247, 208, 0.22);
  font-weight: 700;
}

.hero h1 {
  max-width: 760px;
  margin: 22px 0 16px;
  font-size: clamp(2.5rem, 7vw, 5.3rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero p {
  max-width: 710px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.08rem;
}

.hero-tags,
.detail-tags,
.card-tags,
.inline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags {
  margin-top: 22px;
}

.hero-tags span,
.detail-tags span,
.card-tags span,
.inline-tags span {
  display: inline-flex;
  border-radius: 999px;
  color: var(--green-900);
  background: var(--green-200);
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-tags span {
  padding: 8px 12px;
}

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

.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  font-weight: 800;
}

.primary-btn {
  color: var(--green-900);
  background: linear-gradient(135deg, #ffffff, var(--green-200));
  box-shadow: 0 14px 28px rgba(5, 46, 26, 0.24);
}

.secondary-btn {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.hero-side {
  display: grid;
  gap: 16px;
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow);
  aspect-ratio: 3 / 4;
  background: rgba(255, 255, 255, 0.12);
}

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

.hero-search {
  display: flex;
  gap: 10px;
  padding: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.hero-search input {
  min-width: 0;
  flex: 1;
  padding: 12px 16px;
  color: var(--gray-900);
  background: var(--white);
}

.hero-search button {
  padding: 0 20px;
  color: var(--green-900);
  background: var(--green-200);
  font-weight: 800;
}

.hero-controls {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 42px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
}

.hero-dot.active {
  background: var(--green-200);
}

.section {
  padding: 64px 0;
}

.section.alt {
  background: linear-gradient(180deg, #ffffff, #f0fdf4);
}

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

.section-title h2,
.page-hero h1,
.detail-title h1 {
  margin: 0;
  color: var(--gray-900);
  line-height: 1.15;
}

.section-title h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.section-title p,
.page-hero p,
.detail-title p {
  margin: 10px 0 0;
  color: var(--gray-600);
}

.view-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--green-800);
  background: #dcfce7;
  font-weight: 800;
}

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  border-radius: 24px;
  color: var(--white);
  background: linear-gradient(135deg, var(--green-800), var(--emerald-600));
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover,
.movie-card:hover,
.rank-card:hover,
.mini-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
}

.category-tile div {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  background: linear-gradient(180deg, transparent, rgba(5, 46, 26, 0.78));
}

.category-tile h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.category-tile p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.95rem;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #dcfce7;
}

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

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

.poster-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--green-900);
  background: rgba(220, 252, 231, 0.92);
  font-size: 0.76rem;
  font-weight: 800;
}

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

.movie-meta-line {
  display: flex;
  gap: 8px;
  color: var(--green-700);
  font-size: 0.78rem;
  font-weight: 800;
}

.movie-meta-line span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.movie-card h3 {
  margin: 8px 0 8px;
  color: var(--gray-900);
  font-size: 1.06rem;
  line-height: 1.35;
}

.movie-card h3 a:hover {
  color: var(--green-700);
}

.movie-card p {
  min-height: 3.1em;
  margin: 0 0 12px;
  color: var(--gray-600);
  font-size: 0.9rem;
}

.card-tags span {
  padding: 5px 8px;
  color: var(--green-800);
  background: #ecfdf5;
  font-size: 0.73rem;
}

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

.rank-card {
  display: grid;
  grid-template-columns: 82px 110px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-num {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 20px;
  color: var(--green-900);
  background: linear-gradient(135deg, var(--green-200), #ffffff);
  font-weight: 900;
  font-size: 1.3rem;
}

.rank-card img {
  width: 110px;
  height: 146px;
  border-radius: 16px;
  object-fit: cover;
}

.rank-card h3 {
  margin: 0 0 8px;
  color: var(--gray-900);
}

.rank-card p {
  margin: 0 0 10px;
  color: var(--gray-600);
}

.rank-score {
  color: var(--green-700);
  font-weight: 800;
}

.page-hero {
  color: var(--white);
  background: radial-gradient(circle at 80% 0%, rgba(187, 247, 208, 0.25), transparent 26%), linear-gradient(105deg, var(--green-900), var(--green-700), var(--emerald-600));
  padding: 58px 0;
}

.page-hero h1,
.page-hero p {
  color: var(--white);
}

.page-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.86);
}

.page-filter {
  display: flex;
  gap: 12px;
  width: min(760px, 100%);
  margin-top: 26px;
  padding: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.page-filter input {
  min-width: 0;
  flex: 1;
  padding: 13px 18px;
  background: var(--white);
}

.page-filter button {
  padding: 0 22px;
  color: var(--green-900);
  background: var(--green-200);
  font-weight: 800;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
  color: var(--gray-600);
  font-size: 0.92rem;
}

.breadcrumb a {
  color: var(--green-700);
  font-weight: 700;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background-size: cover;
  background-position: center;
}

.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 46, 26, 0.94), rgba(5, 46, 26, 0.74) 48%, rgba(5, 46, 26, 0.45)), linear-gradient(0deg, rgba(5, 46, 26, 0.92), transparent 70%);
}

.detail-hero-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 38px;
  align-items: center;
  padding: 56px 0;
}

.detail-poster {
  overflow: hidden;
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.detail-title h1 {
  color: var(--white);
  margin-top: 18px;
  font-size: clamp(2.1rem, 5vw, 4.3rem);
}

.detail-title p {
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.05rem;
}

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

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
}

.detail-tags {
  margin-top: 18px;
}

.detail-tags span {
  padding: 7px 10px;
}

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

.content-card,
.player-card,
.sidebar-card {
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.content-card,
.sidebar-card {
  padding: 26px;
}

.content-card + .content-card {
  margin-top: 24px;
}

.content-card h2,
.player-card h2,
.sidebar-card h2 {
  margin: 0 0 14px;
  color: var(--gray-900);
  font-size: 1.5rem;
}

.content-card p {
  color: var(--gray-700);
  text-align: justify;
}

.player-card {
  overflow: hidden;
  margin-bottom: 24px;
}

.player-title {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 22px 24px;
}

.player-title h2 {
  margin: 0;
}

.player-frame {
  position: relative;
  overflow: hidden;
  background: var(--gray-950);
  aspect-ratio: 16 / 9;
}

.player-frame video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--white);
  background: radial-gradient(circle at center, rgba(34, 197, 94, 0.12), rgba(5, 46, 26, 0.78));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-button {
  width: 90px;
  height: 90px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--green-900);
  background: linear-gradient(135deg, #ffffff, var(--green-200));
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
  font-size: 2rem;
  font-weight: 900;
}

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

.mini-card {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: #f9fafb;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mini-card img {
  width: 74px;
  height: 92px;
  border-radius: 13px;
  object-fit: cover;
}

.mini-card strong,
.mini-card em {
  display: block;
}

.mini-card strong {
  color: var(--gray-900);
  line-height: 1.35;
}

.mini-card em {
  margin-top: 6px;
  color: var(--gray-500);
  font-style: normal;
  font-size: 0.86rem;
}

.empty-message {
  display: none;
  margin: 28px 0 0;
  padding: 24px;
  border-radius: 20px;
  color: var(--gray-600);
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.site-footer {
  margin-top: 64px;
  color: #d1d5db;
  background: linear-gradient(180deg, var(--gray-800), var(--gray-900));
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) 1fr 1fr;
  gap: 32px;
}

.brand-footer .brand-mark {
  color: var(--green-900);
}

.footer-brand p {
  max-width: 440px;
  margin: 16px 0 0;
}

.footer-col h2 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 1.05rem;
}

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

.footer-col a:hover {
  color: var(--green-200);
}

.footer-bottom {
  padding: 18px;
  text-align: center;
  color: #9ca3af;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

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

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

@media (max-width: 920px) {
  .nav-links,
  .nav-search {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

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

  .hero-side {
    grid-row: 1;
    max-width: 360px;
  }

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

  .rank-list {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .hero,
  .hero-track,
  .hero-content {
    min-height: 720px;
  }

  .hero-content {
    padding-top: 42px;
  }

  .hero-search,
  .page-filter {
    border-radius: 24px;
    flex-direction: column;
  }

  .hero-search button,
  .page-filter button {
    min-height: 46px;
  }

  .section {
    padding: 44px 0;
  }

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

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

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

  .rank-card {
    grid-template-columns: 52px 84px minmax(0, 1fr);
    gap: 12px;
  }

  .rank-num {
    width: 46px;
    height: 46px;
    border-radius: 16px;
  }

  .rank-card img {
    width: 84px;
    height: 112px;
  }

  .content-card,
  .sidebar-card {
    padding: 20px;
  }
}

@media (max-width: 430px) {
  .nav-inner,
  .container,
  .footer-inner,
  .detail-hero-inner,
  .hero-content,
  .mobile-panel {
    width: min(100% - 24px, 1180px);
  }

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

  .brand-text {
    font-size: 1.04rem;
  }
}
