:root {
  --green-950: #052e16;
  --green-900: #14532d;
  --green-800: #166534;
  --green-700: #15803d;
  --green-600: #16a34a;
  --green-500: #22c55e;
  --green-100: #dcfce7;
  --green-50: #f0fdf4;
  --gray-950: #030712;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(3, 7, 18, 0.12);
  --soft-shadow: 0 10px 28px rgba(3, 7, 18, 0.10);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--gray-800);
  background: linear-gradient(180deg, var(--green-50) 0%, #ffffff 36%, #f8fafc 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,
video {
  display: block;
  max-width: 100%;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(90deg, var(--green-700), var(--green-950));
  color: var(--white);
  box-shadow: 0 12px 28px rgba(5, 46, 22, 0.25);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 15px;
  font-weight: 600;
}

.nav-links a {
  opacity: 0.92;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.nav-links a:hover {
  color: var(--green-100);
  opacity: 1;
}

.nav-search {
  position: relative;
  width: min(280px, 30vw);
}

.nav-search input,
.page-search input,
.filter-select {
  width: 100%;
  border: 0;
  outline: 0;
  border-radius: 999px;
  padding: 11px 44px 11px 18px;
  color: var(--white);
  background: rgba(5, 46, 22, 0.58);
  box-shadow: inset 0 0 0 1px rgba(220, 252, 231, 0.22);
}

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

.nav-search button,
.page-search button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: var(--green-600);
  cursor: pointer;
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
  font-size: 22px;
}

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

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

.mobile-panel a {
  display: block;
  padding: 10px 0;
  color: var(--green-50);
  font-weight: 600;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  color: var(--white);
  background: var(--green-950);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.32;
  pointer-events: none;
}

.hero::before {
  width: 340px;
  height: 340px;
  left: 6%;
  top: 11%;
  background: var(--green-500);
}

.hero::after {
  width: 460px;
  height: 460px;
  right: 3%;
  bottom: -120px;
  background: #0ea5e9;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s 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;
  transform: scale(1.04);
  opacity: 0.42;
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 46, 22, 0.96), rgba(20, 83, 45, 0.76) 47%, rgba(3, 7, 18, 0.45));
}

.hero-inner {
  position: relative;
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.62fr);
  gap: 46px;
  align-items: center;
  padding: 68px 0;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(220, 252, 231, 0.12);
  box-shadow: inset 0 0 0 1px rgba(220, 252, 231, 0.22);
  color: var(--green-100);
  font-size: 14px;
  font-weight: 700;
}

.hero h1 {
  margin: 18px 0 16px;
  font-size: clamp(38px, 6vw, 70px);
  line-height: 1.06;
  letter-spacing: -1.4px;
}

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

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

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

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(22, 163, 74, 0.25);
}

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--green-500), var(--green-700));
}

.btn-soft {
  color: var(--green-50);
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.2);
}

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

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

.hero-poster-info {
  padding: 20px;
  background: rgba(5, 46, 22, 0.68);
  backdrop-filter: blur(16px);
}

.hero-poster-info strong {
  display: block;
  margin-bottom: 4px;
  font-size: 20px;
}

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

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

.hero-dot.is-active {
  width: 34px;
  background: var(--green-100);
}

.main {
  padding: 54px 0 80px;
}

.section {
  margin-top: 54px;
}

.section:first-child {
  margin-top: 0;
}

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

.section-title {
  margin: 0;
  color: var(--gray-900);
  font-size: clamp(26px, 3.5vw, 38px);
  line-height: 1.2;
}

.section-desc {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--gray-600);
}

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

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

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

.movie-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--green-900);
}

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

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

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 10px;
  border-radius: 999px;
  color: var(--white);
  background: var(--green-600);
  font-size: 12px;
  font-weight: 800;
}

.cover-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  box-shadow: 0 8px 20px rgba(5, 46, 22, 0.3);
}

.movie-body {
  padding: 16px;
}

.movie-title {
  margin: 0 0 8px;
  color: var(--gray-900);
  font-size: 17px;
  line-height: 1.35;
  font-weight: 800;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-desc {
  margin: 0 0 14px;
  color: var(--gray-600);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--gray-500);
  font-size: 12px;
}

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

.category-card {
  min-height: 156px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border-radius: var(--radius);
  color: var(--white);
  background: linear-gradient(135deg, var(--green-700), var(--green-950));
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

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

.category-card p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 64px 96px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.rank-number {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--white);
  background: linear-gradient(135deg, var(--green-500), var(--green-800));
  font-weight: 900;
}

.rank-thumb {
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 4 / 3;
}

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

.rank-title {
  margin: 0 0 6px;
  color: var(--gray-900);
  font-size: 18px;
  font-weight: 850;
}

.rank-desc {
  margin: 0;
  color: var(--gray-600);
  font-size: 14px;
}

.page-hero {
  padding: 56px 0;
  color: var(--white);
  background: radial-gradient(circle at 12% 20%, rgba(34, 197, 94, 0.42), transparent 28%), linear-gradient(135deg, var(--green-800), var(--gray-950));
}

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

.page-hero p {
  max-width: 820px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
}

.controls {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 180px;
  gap: 14px;
  margin-bottom: 26px;
}

.page-search {
  position: relative;
}

.page-search input,
.filter-select {
  min-height: 46px;
  color: var(--gray-900);
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--gray-200), var(--soft-shadow);
}

.page-search input::placeholder {
  color: var(--gray-500);
}

.filter-select {
  padding: 0 16px;
  border-radius: 999px;
  appearance: none;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
  color: var(--gray-500);
  font-size: 14px;
}

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

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

.player-card,
.info-card,
.article-card {
  overflow: hidden;
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow);
}

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

.player-wrap video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(180deg, rgba(3, 7, 18, 0.05), rgba(3, 7, 18, 0.55));
  cursor: pointer;
  transition: opacity 0.22s ease;
}

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

.play-button {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--green-500), var(--green-800));
  box-shadow: 0 18px 40px rgba(22, 163, 74, 0.38);
  font-size: 36px;
  padding-left: 4px;
}

.detail-title-box {
  padding: 24px;
}

.detail-title-box h1 {
  margin: 0 0 12px;
  color: var(--gray-900);
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.15;
}

.detail-title-box p {
  margin: 0;
  color: var(--gray-600);
}

.info-card {
  padding: 22px;
}

.poster-large {
  overflow: hidden;
  border-radius: 20px;
  margin-bottom: 18px;
  aspect-ratio: 4 / 3;
}

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

.info-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.info-list div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--gray-200);
}

.info-list dt {
  color: var(--gray-500);
  font-weight: 700;
}

.info-list dd {
  margin: 0;
  color: var(--gray-900);
  text-align: right;
  font-weight: 800;
}

.article-card {
  padding: 28px;
}

.article-card h2 {
  margin: 0 0 14px;
  color: var(--gray-900);
  font-size: 24px;
}

.article-card p {
  margin: 0 0 20px;
  color: var(--gray-700);
}

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

.tags span,
.tags a {
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--green-800);
  background: var(--green-100);
  font-size: 13px;
  font-weight: 800;
}

.footer {
  color: rgba(255, 255, 255, 0.78);
  background: linear-gradient(90deg, var(--gray-950), var(--gray-800));
  padding: 42px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 28px;
}

.footer h2,
.footer h3 {
  margin: 0 0 12px;
  color: var(--white);
}

.footer p {
  margin: 0;
}

.footer a {
  display: inline-block;
  margin: 0 14px 10px 0;
  color: var(--green-100);
}

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

.empty-state.is-visible {
  display: block;
}

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

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

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

  .hero-poster {
    max-width: 420px;
    transform: none;
  }
}

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

  .navbar {
    min-height: 62px;
  }

  .nav-links,
  .nav-search {
    display: none;
  }

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

  .hero,
  .hero-slider,
  .hero-inner {
    min-height: 690px;
  }

  .hero-inner {
    padding: 44px 0 84px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero p {
    font-size: 16px;
  }

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

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

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

  .rank-item .btn {
    grid-column: 2 / -1;
    justify-self: start;
  }

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

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

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

@media (max-width: 480px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }

  .movie-body {
    padding: 14px;
  }
}
