* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #111827;
  background: #f9fafb;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-nav {
  position: sticky;
  top: 0;
  z-index: 80;
  color: #ffffff;
  background: linear-gradient(90deg, #047857 0%, #16a34a 48%, #059669 100%);
  box-shadow: 0 18px 35px rgba(4, 120, 87, 0.24);
}

.nav-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

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

.brand-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.62);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.18);
}

.nav-links,
.nav-search {
  display: flex;
  align-items: center;
}

.nav-links {
  gap: 28px;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 650;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: #dcfce7;
  transform: translateY(-1px);
}

.nav-search {
  position: relative;
  width: 250px;
}

.nav-search input {
  width: 100%;
  height: 40px;
  border: 0;
  border-radius: 999px;
  padding: 0 46px 0 18px;
  color: #ffffff;
  outline: none;
  background: rgba(6, 95, 70, 0.68);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

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

.nav-search button {
  position: absolute;
  top: 4px;
  right: 5px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  color: #047857;
  background: #ffffff;
  font-weight: 800;
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: #ffffff;
  background: rgba(6, 95, 70, 0.55);
  font-size: 22px;
}

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

.mobile-panel a {
  display: block;
  padding: 12px 0;
  color: rgba(255, 255, 255, 0.94);
  font-weight: 650;
}

.hero-carousel {
  position: relative;
  min-height: 600px;
  color: #ffffff;
  overflow: hidden;
  background: linear-gradient(135deg, #16a34a 0%, #047857 48%, #0f766e 100%);
}

.hero-carousel::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background-image: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.24) 0 2px, transparent 3px), radial-gradient(circle at 70% 75%, rgba(255, 255, 255, 0.17) 0 2px, transparent 3px);
  background-size: 62px 62px, 88px 88px;
}

.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-backdrop {
  position: absolute;
  inset: 0;
}

.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  filter: saturate(1.2) contrast(1.05);
  transform: scale(1.04);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4, 120, 87, 0.96) 0%, rgba(22, 163, 74, 0.8) 46%, rgba(6, 78, 59, 0.72) 100%);
}

.hero-content {
  position: relative;
  z-index: 3;
  min-height: 600px;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(300px, 0.72fr);
  align-items: center;
  gap: 48px;
  padding: 54px 0;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #dcfce7;
  background: rgba(6, 95, 70, 0.45);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.hero-title {
  max-width: 760px;
  margin: 0 0 18px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-title span {
  color: #fde047;
}

.hero-copy h2 {
  margin: 0 0 14px;
  font-size: clamp(25px, 3.4vw, 42px);
  line-height: 1.15;
}

.hero-description {
  max-width: 690px;
  margin: 0 0 28px;
  color: #ecfdf5;
  font-size: clamp(17px, 2vw, 22px);
}

.hero-actions,
.section-actions,
.pagination {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  border: 0;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
}

.btn-primary {
  color: #047857;
  background: #ffffff;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}

.btn-primary:hover {
  background: #f0fdf4;
}

.btn-ghost {
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.58);
  background: rgba(6, 95, 70, 0.42);
  backdrop-filter: blur(10px);
}

.btn-green {
  color: #ffffff;
  background: linear-gradient(135deg, #16a34a, #059669);
  box-shadow: 0 14px 24px rgba(5, 150, 105, 0.25);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 580px;
  margin-top: 40px;
}

.hero-stat {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
}

.hero-stat strong {
  display: block;
  font-size: 28px;
  line-height: 1;
}

.hero-stat span {
  display: block;
  margin-top: 8px;
  color: #dcfce7;
}

.hero-poster-card {
  position: relative;
  min-height: 440px;
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.28);
  transform: rotate(1.2deg);
}

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

.hero-card-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(17, 24, 39, 0.7);
  backdrop-filter: blur(14px);
}

.hero-card-caption b {
  display: block;
  font-size: 19px;
}

.hero-card-caption span {
  display: block;
  margin-top: 6px;
  color: #bbf7d0;
}

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

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

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

.section {
  padding: 64px 0;
}

.section-white {
  background: #ffffff;
}

.section-soft {
  background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
}

.section-green {
  background: #ecfdf5;
}

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

.section-title {
  margin: 0;
  color: #1f2937;
  font-size: clamp(27px, 4vw, 38px);
  line-height: 1.15;
  font-weight: 900;
}

.section-subtitle {
  margin: 8px 0 0;
  color: #6b7280;
}

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

.category-tile {
  min-height: 178px;
  padding: 24px;
  border-radius: 24px;
  color: #ffffff;
  background: linear-gradient(135deg, #22c55e 0%, #059669 100%);
  box-shadow: 0 18px 34px rgba(22, 163, 74, 0.22);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-tile:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 26px 44px rgba(22, 163, 74, 0.28);
}

.category-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 24px;
}

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

.category-tile p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
}

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

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

.movie-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 100%;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.16);
}

.movie-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #bbf7d0, #059669);
}

.movie-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.32s ease;
}

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

.badge,
.corner-badge,
.score-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.corner-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  min-height: 28px;
  padding: 0 10px;
  color: #ffffff;
  background: #16a34a;
  box-shadow: 0 10px 22px rgba(22, 163, 74, 0.35);
}

.score-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  min-height: 28px;
  padding: 0 10px;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.76);
  backdrop-filter: blur(6px);
}

.movie-body {
  flex: 1;
  padding: 18px;
}

.movie-title {
  margin: 0 0 9px;
  color: #1f2937;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 850;
  transition: color 0.2s ease;
}

.movie-card:hover .movie-title {
  color: #16a34a;
}

.movie-desc {
  display: -webkit-box;
  min-height: 46px;
  margin: 0 0 14px;
  overflow: hidden;
  color: #6b7280;
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #6b7280;
  font-size: 13px;
}

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

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 9px;
  border-radius: 8px;
  color: #047857;
  background: #dcfce7;
  font-size: 12px;
  font-weight: 700;
}

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

.rank-card {
  display: grid;
  grid-template-columns: 58px 96px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 118px;
  padding: 14px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 42px rgba(15, 23, 42, 0.14);
}

.rank-number {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  font-size: 20px;
  font-weight: 900;
}

.rank-card img {
  width: 96px;
  height: 78px;
  object-fit: cover;
  border-radius: 14px;
}

.rank-card h3 {
  margin: 0 0 6px;
  font-size: 17px;
  line-height: 1.35;
}

.rank-card p {
  margin: 0;
  color: #6b7280;
  font-size: 13px;
}

.page-hero {
  color: #ffffff;
  padding: 56px 0;
  background: linear-gradient(90deg, #16a34a 0%, #059669 100%);
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1.1;
  font-weight: 900;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: #dcfce7;
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
  color: #6b7280;
  font-size: 14px;
}

.breadcrumb a {
  color: #047857;
  font-weight: 700;
}

.category-detail-card {
  margin-bottom: 28px;
  padding: 28px;
  border-radius: 24px;
  color: #ffffff;
  background: linear-gradient(135deg, #22c55e, #059669);
  box-shadow: 0 20px 44px rgba(22, 163, 74, 0.22);
}

.category-detail-card h1 {
  margin: 0 0 10px;
  font-size: 36px;
}

.category-detail-card p {
  max-width: 780px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}

.detail-wrap {
  padding: 36px 0 64px;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  gap: 30px;
  align-items: start;
  margin-bottom: 34px;
}

.player-card,
.detail-card,
.search-panel {
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.movie-video {
  width: 100%;
  height: 100%;
  background: #020617;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.08), rgba(2, 6, 23, 0.52));
  transition: opacity 0.18s ease, visibility 0.18s ease;
}

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

.play-icon {
  width: 88px;
  height: 88px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #047857;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
  font-size: 32px;
  transform: translateZ(0);
}

.player-title {
  padding: 18px 22px;
  color: #1f2937;
  font-weight: 800;
  background: #ffffff;
}

.detail-card {
  padding: 28px;
}

.detail-card h1 {
  margin: 0 0 14px;
  color: #111827;
  font-size: clamp(30px, 4.2vw, 46px);
  line-height: 1.12;
  font-weight: 900;
}

.detail-lead {
  margin: 0 0 20px;
  color: #4b5563;
  font-size: 18px;
}

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

.detail-meta span {
  padding: 12px 14px;
  border-radius: 14px;
  color: #374151;
  background: #f3f4f6;
}

.content-block {
  margin-top: 28px;
  padding: 26px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
}

.content-block h2 {
  margin: 0 0 14px;
  color: #1f2937;
  font-size: 25px;
}

.content-block p {
  margin: 0;
  color: #4b5563;
  font-size: 16px;
  line-height: 1.9;
}

.search-panel {
  padding: 24px;
}

.search-box-large {
  position: relative;
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.search-box-large input {
  flex: 1;
  min-height: 54px;
  border: 0;
  border-radius: 999px;
  padding: 0 20px;
  outline: none;
  color: #1f2937;
  background: #f3f4f6;
  box-shadow: inset 0 0 0 1px #e5e7eb;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chip {
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  color: #047857;
  background: #dcfce7;
  font-weight: 750;
}

.filter-chip.is-active {
  color: #ffffff;
  background: #16a34a;
}

.search-results {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.search-result-card {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.search-result-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.13);
}

.search-result-card img {
  width: 170px;
  height: 142px;
  object-fit: cover;
}

.search-result-body {
  padding: 18px;
}

.search-result-body h3 {
  margin: 0 0 8px;
  color: #111827;
  font-size: 20px;
}

.search-result-body p {
  margin: 0 0 12px;
  color: #6b7280;
}

.empty-state {
  padding: 28px;
  border-radius: 18px;
  color: #6b7280;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.pagination {
  justify-content: center;
  margin-top: 34px;
}

.page-link {
  min-width: 42px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 12px;
  color: #047857;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  font-weight: 800;
}

.page-link.is-current {
  color: #ffffff;
  background: #16a34a;
}

.site-footer {
  color: #d1d5db;
  background: linear-gradient(180deg, #1f2937 0%, #111827 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding: 46px 0;
}

.footer-grid h3 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: 17px;
}

.footer-grid p,
.footer-grid a {
  color: #d1d5db;
}

.footer-grid a {
  display: block;
  margin: 8px 0;
  transition: color 0.2s ease;
}

.footer-grid a:hover {
  color: #4ade80;
}

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

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

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

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

  .hero-poster-card {
    display: none;
  }
}

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

  .mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

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

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

  .hero-stats,
  .category-grid,
  .movie-grid,
  .movie-grid.compact,
  .rank-list,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: block;
  }

  .section-actions {
    margin-top: 16px;
  }

  .rank-card {
    grid-template-columns: 48px 88px minmax(0, 1fr);
  }

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

  .search-result-card {
    grid-template-columns: 1fr;
  }

  .search-result-card img {
    width: 100%;
    height: 220px;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(100% - 22px, 1180px);
  }

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

  .hero-actions,
  .search-box-large {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .section {
    padding: 46px 0;
  }

  .detail-card,
  .content-block,
  .search-panel,
  .category-detail-card {
    padding: 20px;
  }
}
