:root {
  --green-900: #064e3b;
  --green-800: #065f46;
  --green-700: #047857;
  --green-600: #059669;
  --green-500: #10b981;
  --emerald-50: #ecfdf5;
  --emerald-100: #d1fae5;
  --yellow-300: #fde047;
  --orange-500: #f97316;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--gray-800);
  background: linear-gradient(180deg, var(--emerald-50), #ffffff 42%, var(--gray-50));
  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%;
}

button,
input,
select {
  font: inherit;
}

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

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

.nav-inner {
  display: flex;
  align-items: center;
  min-height: 64px;
  gap: 24px;
}

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

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: var(--green-800);
  background: #ffffff;
  box-shadow: inset 0 0 0 2px rgba(16, 185, 129, 0.22);
}

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

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

.nav-links a:hover,
.nav-links a.active,
.mobile-panel a:hover,
.mobile-panel a.active {
  color: #d9f99d;
}

.nav-search {
  position: relative;
  display: flex;
  align-items: center;
  width: 300px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(6, 78, 59, 0.64);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.nav-search input,
.mobile-panel input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #ffffff;
  background: transparent;
  padding: 10px 14px;
}

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

.nav-search button,
.mobile-panel button {
  border: 0;
  color: var(--green-800);
  background: #ffffff;
  padding: 8px 14px;
  border-radius: 999px;
  margin-right: 4px;
  cursor: pointer;
  font-weight: 750;
}

.mobile-menu {
  display: none;
  border: 0;
  color: #ffffff;
  background: rgba(6, 78, 59, 0.5);
  border-radius: 12px;
  padding: 8px 12px;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  padding: 0 16px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

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

.mobile-panel form {
  display: flex;
  background: rgba(6, 78, 59, 0.64);
  border-radius: 999px;
  overflow: hidden;
}

.hero {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, var(--green-700), var(--green-500), #0f766e);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 20%, rgba(253, 224, 71, 0.32), transparent 24%),
              radial-gradient(circle at 82% 12%, rgba(255, 255, 255, 0.22), transparent 18%),
              linear-gradient(90deg, rgba(0, 0, 0, 0.54), rgba(0, 0, 0, 0.18));
  z-index: 1;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image: radial-gradient(rgba(255, 255, 255, 0.42) 1px, transparent 1px);
  background-size: 24px 24px;
  z-index: 2;
}

.hero-track {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 1.2s ease;
  background-position: center;
  background-size: cover;
}

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

.hero-content {
  position: relative;
  z-index: 3;
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  padding: 80px 0;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  border-radius: 999px;
  color: #ecfdf5;
  background: rgba(6, 78, 59, 0.56);
  padding: 8px 14px;
  font-weight: 750;
  backdrop-filter: blur(8px);
}

.hero h1,
.hero h2 {
  margin: 22px 0 18px;
  max-width: 780px;
  font-size: clamp(2.4rem, 6vw, 4.7rem);
  line-height: 1.06;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.hero strong {
  color: var(--yellow-300);
}

.hero p {
  max-width: 660px;
  margin: 0 0 28px;
  color: #ecfdf5;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

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

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

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn.primary {
  color: var(--green-700);
  background: #ffffff;
}

.btn.ghost {
  color: #ffffff;
  background: rgba(6, 78, 59, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
}

.btn.green {
  color: #ffffff;
  background: var(--green-600);
}

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

.hero-dots button {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}

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

.section {
  padding: 72px 0;
}

.section.white {
  background: #ffffff;
}

.section.soft {
  background: linear-gradient(180deg, #ffffff, var(--emerald-50));
}

.section.green-soft {
  background: var(--emerald-50);
}

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

.section-title {
  margin: 0;
  color: var(--gray-800);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  line-height: 1.16;
  font-weight: 900;
}

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

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

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

.category-card:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 18px 38px rgba(4, 120, 87, 0.24);
}

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

.category-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.92rem;
}

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

.movie-card {
  overflow: hidden;
  color: var(--gray-800);
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.09);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.15);
}

.poster-frame {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, var(--green-700), var(--green-500));
}

.poster-card {
  aspect-ratio: 16 / 10;
}

.poster-thumb {
  width: 116px;
  min-width: 116px;
  height: 104px;
  border-radius: 12px;
}

.poster-related {
  width: 88px;
  min-width: 88px;
  height: 88px;
  border-radius: 14px;
}

.poster-frame::after {
  content: attr(data-title);
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  text-align: center;
  font-weight: 850;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
}

.poster-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.movie-card:hover .poster-frame img,
.media-row:hover .poster-frame img,
.related-link:hover .poster-frame img {
  transform: scale(1.08);
}

.card-body {
  padding: 18px;
}

.card-topline,
.meta-line,
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--gray-500);
  font-size: 0.88rem;
}

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

.movie-card p,
.media-row p {
  margin: 0;
  color: var(--gray-600);
  font-size: 0.94rem;
}

.pill,
.tag-row span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 0.78rem;
  font-weight: 750;
}

.pill.green,
.tag-row span:first-child {
  color: var(--green-700);
  background: var(--emerald-100);
}

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

.tag-row span,
.detail-tags span {
  color: var(--gray-600);
  background: var(--gray-100);
}

.dual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
}

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

.media-row {
  display: flex;
  align-items: center;
  gap: 16px;
  overflow: hidden;
  background: #ffffff;
  border-radius: 18px;
  padding: 12px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.media-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.13);
}

.media-row-body {
  flex: 1;
  min-width: 0;
}

.media-row h3,
.media-row p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
}

.media-row h3 {
  -webkit-line-clamp: 1;
}

.media-row p {
  -webkit-line-clamp: 2;
}

.views {
  color: var(--gray-600);
  font-size: 0.88rem;
  font-weight: 750;
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--orange-500);
  font-weight: 900;
}

.cta-band {
  color: #ffffff;
  background: linear-gradient(90deg, var(--green-700), var(--green-500));
  text-align: center;
}

.cta-band p {
  max-width: 820px;
  margin: 16px auto 0;
  color: #ecfdf5;
  font-size: 1.08rem;
}

.page-hero {
  color: #ffffff;
  background: linear-gradient(90deg, var(--green-700), var(--green-500));
  padding: 58px 0;
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.12;
}

.page-hero p {
  max-width: 780px;
  margin: 0;
  color: #dcfce7;
  font-size: 1.08rem;
}

.panel {
  background: #ffffff;
  border-radius: 22px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.09);
  padding: 24px;
}

.filter-panel {
  margin: 26px 0 30px;
}

.filter-row input,
.filter-row select,
.search-box input {
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  color: var(--gray-800);
  background: #ffffff;
  padding: 12px 16px;
  outline: 0;
}

.filter-row input,
.search-box input {
  flex: 1 1 260px;
}

.filter-row input:focus,
.filter-row select:focus,
.search-box input:focus {
  border-color: var(--green-500);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.14);
}

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

.player-zone {
  color: #ffffff;
  background: #030712;
  padding: 18px 0 28px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 14px;
  color: #d1fae5;
  font-weight: 750;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #000000;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.38);
  aspect-ratio: 16 / 9;
}

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

.center-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 82px;
  height: 82px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(5, 150, 105, 0.92);
  transform: translate(-50%, -50%);
  cursor: pointer;
  font-size: 2rem;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.34);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.center-play:hover {
  transform: translate(-50%, -50%) scale(1.06);
}

.video-shell.playing .center-play {
  opacity: 0;
  pointer-events: none;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  padding: 36px 0 72px;
}

.detail-main,
.detail-side {
  display: grid;
  gap: 22px;
  align-content: start;
}

.detail-title {
  margin: 12px 0 18px;
  color: var(--gray-800);
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.15;
}

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

.info-cell {
  border-radius: 16px;
  background: var(--gray-50);
  padding: 14px;
}

.info-cell span {
  display: block;
  color: var(--gray-500);
  font-size: 0.82rem;
}

.info-cell strong {
  display: block;
  margin-top: 4px;
  color: var(--gray-800);
}

.prose h2 {
  margin: 26px 0 10px;
  font-size: 1.35rem;
}

.prose p {
  margin: 0 0 14px;
  color: var(--gray-700);
  line-height: 1.85;
  text-align: justify;
}

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

.related-link {
  display: flex;
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
  transition: background 0.2s ease;
}

.related-link:hover {
  background: var(--gray-50);
}

.related-link h4 {
  margin: 0 0 6px;
  color: var(--gray-800);
  line-height: 1.35;
}

.related-link p {
  margin: 0;
  color: var(--gray-500);
  font-size: 0.86rem;
}

.search-box {
  display: flex;
  gap: 12px;
  max-width: 800px;
  margin-top: 26px;
}

.search-box button {
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: var(--green-700);
  padding: 12px 24px;
  font-weight: 800;
  cursor: pointer;
}

.empty-state {
  padding: 42px;
  color: var(--gray-500);
  text-align: center;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 28px;
  padding: 48px 0;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: #ffffff;
}

.site-footer p {
  margin: 12px 0 0;
  color: #d1d5db;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: 8px;
}

.site-footer a:hover {
  color: #86efac;
}

.footer-brand .brand-mark {
  background: #10b981;
  color: #ffffff;
}

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

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

  .mobile-menu {
    display: inline-flex;
    margin-left: auto;
  }

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

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

  .detail-side {
    position: static;
  }
}

@media (max-width: 760px) {
  .hero {
    min-height: 560px;
  }

  .hero-content {
    padding: 62px 0 86px;
  }

  .section {
    padding: 50px 0;
  }

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

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

  .media-row {
    align-items: flex-start;
  }

  .views {
    display: none;
  }

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

  .search-box {
    flex-direction: column;
  }
}

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

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

  .poster-thumb {
    width: 96px;
    min-width: 96px;
    height: 92px;
  }

  .rank-badge {
    display: none;
  }
}
