:root {
  --green-900: #064e3b;
  --green-800: #065f46;
  --green-700: #047857;
  --green-600: #16a34a;
  --green-500: #22c55e;
  --green-100: #dcfce7;
  --green-50: #f0fdf4;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --card: #ffffff;
  --gold: #fde047;
  --shadow: 0 18px 45px rgba(6, 95, 70, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #f8fafc 0%, #f0fdf4 38%, #ffffff 100%);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, var(--green-600), var(--green-800));
  box-shadow: 0 12px 30px rgba(4, 120, 87, 0.2);
}

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

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

.brand-icon {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: var(--green-700);
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(255, 255, 255, 0.24);
}

.brand-text {
  font-size: 22px;
}

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

.nav-link {
  padding: 8px 0;
  color: rgba(255, 255, 255, 0.88);
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link-active {
  color: #ffffff;
  transform: translateY(-1px);
}

.nav-link-active {
  font-weight: 700;
}

.top-search {
  width: 280px;
  display: flex;
  align-items: center;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(6, 95, 70, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.top-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  color: #ffffff;
  background: transparent;
  padding: 10px 14px;
}

.top-search input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.top-search button {
  border: 0;
  cursor: pointer;
  color: var(--green-800);
  background: #ffffff;
  padding: 10px 16px;
  font-weight: 700;
}

.mobile-menu-button {
  display: none;
  margin-left: auto;
  border: 0;
  border-radius: 10px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  padding: 8px 12px;
  cursor: pointer;
}

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

.mobile-nav a {
  display: block;
  padding: 10px 0;
}

.page-main,
.home-main {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  color: #ffffff;
  background: radial-gradient(circle at 15% 20%, rgba(253, 224, 71, 0.24), transparent 32%), linear-gradient(135deg, var(--green-600), var(--green-800) 55%, #052e25);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 38px 38px;
  opacity: 0.16;
}

.hero-inner {
  position: relative;
  width: min(1200px, calc(100% - 32px));
  min-height: 680px;
  margin: 0 auto;
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 48px;
  padding: 72px 0;
}

.hero-copy {
  position: relative;
  z-index: 3;
}

.hero-eyebrow,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 7px 14px;
  border-radius: 999px;
  color: #ecfdf5;
  background: rgba(6, 95, 70, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.hero h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero h1 span {
  color: var(--gold);
}

.hero-lead {
  width: min(680px, 100%);
  margin: 24px 0 0;
  color: #ecfdf5;
  font-size: clamp(18px, 2vw, 24px);
}

.hero-actions,
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button,
.button-light,
.button-ghost,
.button-green {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button-light {
  color: var(--green-700);
  background: #ffffff;
  box-shadow: 0 16px 32px rgba(255, 255, 255, 0.2);
}

.button-green,
.button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--green-600), var(--green-800));
  box-shadow: 0 12px 28px rgba(22, 163, 74, 0.24);
}

.button-ghost {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.button:hover,
.button-light:hover,
.button-ghost:hover,
.button-green:hover {
  transform: translateY(-2px) scale(1.01);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 52px;
  width: min(560px, 100%);
}

.hero-stats div {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.hero-stats b {
  display: block;
  font-size: 28px;
  color: #ffffff;
}

.hero-stats span {
  color: #d1fae5;
  font-size: 14px;
}

.hero-stage {
  position: relative;
  z-index: 2;
  min-height: 540px;
}

.hero-slider {
  position: relative;
  min-height: 540px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: minmax(260px, 1fr) auto;
  border-radius: 32px;
  overflow: hidden;
  opacity: 0;
  transform: translateX(40px) scale(0.96);
  transition: opacity 0.55s ease, transform 0.55s ease;
  background: #052e25;
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.28);
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.hero-slide-body {
  position: relative;
  padding: 26px;
  background: linear-gradient(180deg, rgba(5, 46, 37, 0.78), rgba(5, 46, 37, 0.98));
}

.hero-slide-body h2 {
  margin: 10px 0 8px;
  font-size: 30px;
}

.hero-slide-body p {
  margin: 0;
  color: #d1fae5;
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
}

.hero-tags span {
  color: #064e3b;
  background: var(--gold);
}

.tag-row span {
  color: var(--green-800);
  background: var(--green-100);
}

.hero-dots {
  display: flex;
  gap: 8px;
  margin-top: 22px;
  justify-content: center;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.45);
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dots button.is-active {
  width: 34px;
  background: #ffffff;
}

.section {
  padding: 60px 0;
}

.section-soft {
  background: linear-gradient(180deg, rgba(240, 253, 244, 0.65), rgba(255, 255, 255, 0));
}

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

.section-heading h2,
.page-title h1,
.detail-title h1 {
  margin: 0;
  color: #1f2937;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.03em;
}

.section-heading p,
.page-title p,
.detail-title p {
  margin: 8px 0 0;
  color: var(--muted);
}

.section-more {
  color: var(--green-700);
  font-weight: 800;
}

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

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

.movie-card,
.category-card,
.info-card,
.rank-list-item,
.detail-panel {
  background: var(--card);
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 22px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.movie-card {
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--green-700), #052e25);
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.45));
}

.poster-play {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--green-600);
  font-weight: 800;
  box-shadow: 0 10px 25px rgba(22, 163, 74, 0.35);
}

.rank-badge {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 2;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #052e25;
  background: var(--gold);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

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

.movie-card-body h3 {
  margin: 8px 0;
  font-size: 20px;
  line-height: 1.35;
}

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

.movie-card-body p {
  min-height: 66px;
  margin: 0 0 14px;
  color: var(--muted);
}

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

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 188px;
  padding: 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card::after {
  content: "";
  position: absolute;
  right: -45px;
  bottom: -55px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.12);
}

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

.category-card h3 {
  margin: 0 0 10px;
  font-size: 24px;
}

.category-card p {
  margin: 0 0 22px;
  color: var(--muted);
}

.category-card span {
  color: var(--green-700);
  font-weight: 800;
}

.page-hero {
  position: relative;
  overflow: hidden;
  margin: 34px 0 28px;
  padding: 48px;
  border-radius: 32px;
  color: #ffffff;
  background: radial-gradient(circle at top right, rgba(253, 224, 71, 0.35), transparent 30%), linear-gradient(135deg, var(--green-600), var(--green-900));
  box-shadow: var(--shadow);
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing: -0.04em;
}

.page-hero p {
  width: min(760px, 100%);
  margin: 16px 0 0;
  color: #dcfce7;
  font-size: 18px;
}

.filter-panel {
  margin: 0 0 28px;
  padding: 22px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.05);
}

.filter-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr;
  gap: 16px;
}

.filter-grid label {
  display: grid;
  gap: 8px;
  color: #374151;
  font-weight: 800;
}

.filter-grid input,
.filter-grid select,
.search-hero-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: 0;
  padding: 12px 14px;
  background: #f9fafb;
}

.filter-grid input:focus,
.filter-grid select:focus,
.search-hero-form input:focus {
  border-color: var(--green-500);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
}

.no-results {
  display: none;
  padding: 32px;
  border-radius: 20px;
  color: var(--muted);
  background: #ffffff;
  border: 1px dashed var(--line);
  text-align: center;
}

.rank-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: start;
}

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

.rank-list-item {
  display: grid;
  grid-template-columns: 52px 96px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-list-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow);
}

.rank-number {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #052e25;
  background: var(--gold);
  font-weight: 900;
}

.rank-list-item img {
  width: 96px;
  height: 64px;
  object-fit: cover;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--green-700), #052e25);
}

.rank-list-item h3 {
  margin: 0 0 4px;
  font-size: 19px;
}

.rank-list-item p {
  margin: 0;
  color: var(--muted);
}

.search-hero-form {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  max-width: 720px;
}

.search-hero-form input {
  background: rgba(255, 255, 255, 0.96);
}

.search-hero-form button {
  border: 0;
  border-radius: 14px;
  color: var(--green-800);
  background: var(--gold);
  padding: 0 24px;
  font-weight: 900;
  cursor: pointer;
}

.detail-hero {
  background: #050505;
  color: #ffffff;
}

.detail-hero-inner {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 40px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #d1d5db;
}

.breadcrumb a:hover {
  color: var(--green-500);
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
  aspect-ratio: 16 / 9;
}

.player-shell video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
  z-index: 1;
}

.player-start {
  position: absolute;
  inset: 0;
  z-index: 4;
  border: 0;
  cursor: pointer;
  color: #ffffff;
  background: radial-gradient(circle at center, rgba(22, 163, 74, 0.18), rgba(0, 0, 0, 0.58));
  display: grid;
  place-items: center;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-start span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 26px;
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.95);
  font-size: 20px;
  font-weight: 900;
  box-shadow: 0 18px 48px rgba(22, 163, 74, 0.4);
}

.player-shell.player-ready .player-start {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.detail-content {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 38px 0 66px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
}

.detail-title {
  margin-bottom: 22px;
}

.detail-panel {
  padding: 26px;
  margin-bottom: 22px;
}

.detail-panel h2,
.detail-side h2 {
  margin: 0 0 16px;
  font-size: 24px;
}

.detail-panel p {
  color: #374151;
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.detail-meta div {
  padding: 14px;
  border-radius: 16px;
  background: var(--green-50);
}

.detail-meta b {
  display: block;
  color: var(--green-800);
}

.detail-side {
  position: sticky;
  top: 96px;
  align-self: start;
}

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

.side-card {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.side-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.side-card img {
  width: 82px;
  height: 58px;
  object-fit: cover;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--green-700), #052e25);
}

.side-card b {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.side-card span {
  color: var(--muted);
  font-size: 13px;
}

.site-footer {
  color: #d1fae5;
  background: #052e25;
}

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

.footer-inner p {
  margin: 8px 0 0;
  color: #a7f3d0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}

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

@media (max-width: 1080px) {
  .desktop-nav,
  .top-search {
    display: none;
  }

  .mobile-menu-button {
    display: inline-flex;
  }

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

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

  .hero-stage,
  .hero-slider {
    min-height: 520px;
  }

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

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

  .detail-side {
    position: static;
  }
}

@media (max-width: 680px) {
  .site-header-inner {
    min-height: 64px;
  }

  .brand-text {
    font-size: 19px;
  }

  .hero,
  .hero-inner {
    min-height: auto;
  }

  .hero-inner {
    padding: 48px 0;
  }

  .hero-stats,
  .filter-grid,
  .detail-meta,
  .movie-grid,
  .movie-grid.three,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .hero-stage,
  .hero-slider {
    min-height: 500px;
  }

  .hero-slide {
    border-radius: 24px;
  }

  .hero-slide-body h2 {
    font-size: 24px;
  }

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

  .search-hero-form,
  .footer-inner {
    flex-direction: column;
  }

  .search-hero-form button {
    min-height: 46px;
  }

  .rank-list-item {
    grid-template-columns: 42px 78px minmax(0, 1fr);
  }

  .rank-list-item img {
    width: 78px;
    height: 54px;
  }
}
