:root {
  --green-950: #052e16;
  --green-900: #064e3b;
  --green-800: #065f46;
  --green-700: #047857;
  --green-600: #059669;
  --green-500: #10b981;
  --green-100: #d1fae5;
  --green-50: #ecfdf5;
  --blue: #2563eb;
  --red: #ef4444;
  --text: #1f2937;
  --muted: #667085;
  --line: #e5e7eb;
  --shadow: 0 18px 48px rgba(15, 23, 42, 0.14);
  --soft-shadow: 0 12px 30px rgba(15, 118, 110, 0.16);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(180deg, var(--green-50) 0%, #ffffff 36%, #f8fafc 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, var(--green-700), var(--green-500), var(--green-700));
  box-shadow: 0 10px 35px rgba(4, 120, 87, 0.25);
}

.nav-shell {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 176px;
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--green-700);
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(255, 255, 255, 0.22);
}

.logo-text strong,
.footer-logo {
  display: block;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.05;
}

.logo-text small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.82);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
}

.site-nav > a,
.nav-categories a {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease;
}

.site-nav > a:hover,
.site-nav > a.is-active,
.nav-categories a:hover {
  color: #ffffff;
}

.nav-categories {
  display: flex;
  gap: 14px;
  padding-left: 8px;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}

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

.nav-search input,
.hero-search input,
.filter-panel input,
.filter-panel select {
  border: 1px solid rgba(255, 255, 255, 0.32);
  outline: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
}

.nav-search input {
  width: 190px;
  padding: 10px 14px;
  transition: width 0.2s ease, background 0.2s ease;
}

.nav-search input:focus {
  width: 250px;
  background: rgba(255, 255, 255, 0.24);
}

.nav-search input::placeholder,
.hero-search input::placeholder {
  color: rgba(255, 255, 255, 0.78);
}

.nav-search button,
.hero-search button {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--green-700);
  background: #ffffff;
  font-weight: 900;
}

.menu-toggle {
  display: none;
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 10px 12px;
}

.hero-slider {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  color: #ffffff;
  background: var(--green-700);
}

.hero-pattern,
.page-hero::before,
.detail-hero::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  background-image: radial-gradient(circle at 2px 2px, #ffffff 1px, transparent 0);
  background-size: 38px 38px;
}

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

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-backdrop,
.detail-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
}

.hero-backdrop::after,
.detail-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 46, 22, 0.1), rgba(5, 46, 22, 0.76));
}

.hero-layout {
  position: relative;
  z-index: 2;
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 360px;
  align-items: center;
  gap: 56px;
  padding: 88px 0 120px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-bottom: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(12px);
  font-weight: 800;
}

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: -0.04em;
  text-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.hero-summary {
  max-width: 720px;
  margin: 22px 0 22px;
  font-size: 18px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.92);
}

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

.hero-tags span,
.detail-tags span,
.tag-row span,
.chip-row a {
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 800;
}

.hero-tags span,
.detail-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-actions,
.cta-panel div {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  padding: 0 24px;
  font-weight: 950;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  color: var(--green-700);
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(255, 255, 255, 0.2);
}

.ghost-btn {
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.76);
}

.primary-btn:hover,
.ghost-btn:hover,
.movie-card:hover,
.category-card:hover {
  transform: translateY(-4px);
}

.hero-poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 30px;
  box-shadow: 0 34px 72px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-poster img,
.card-poster img,
.detail-poster img,
.category-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-poster span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  border-radius: 999px;
  padding: 9px 14px;
  color: var(--green-700);
  background: #ffffff;
  font-weight: 950;
}

.hero-arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  font-size: 34px;
  line-height: 1;
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

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

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

.hero-search {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 24px;
  display: flex;
  width: min(760px, calc(100% - 48px));
  padding: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  transform: translateX(-50%);
}

.hero-search input {
  flex: 1;
  padding: 14px 18px;
  border: 0;
  background: transparent;
}

.hero-search button {
  padding: 0 22px;
}

.category-strip,
.content-section {
  padding: 64px 0;
}

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

.section-heading.compact {
  margin-bottom: 18px;
}

.section-heading p {
  margin: 0 0 8px;
  color: var(--green-600);
  font-weight: 950;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  font-weight: 950;
}

.text-link {
  color: var(--green-700);
  font-weight: 950;
}

.chip-row a {
  color: var(--green-700);
  background: #ffffff;
  border: 1px solid var(--green-100);
  box-shadow: var(--soft-shadow);
}

.movie-grid {
  display: grid;
  gap: 24px;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(16, 185, 129, 0.14);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  box-shadow: var(--shadow);
}

.card-poster {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, var(--green-700), var(--green-500));
}

.movie-card.horizontal {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  align-items: stretch;
}

.movie-card.horizontal .card-poster {
  aspect-ratio: auto;
  min-height: 150px;
}

.movie-card.large {
  height: 100%;
}

.movie-card.large .card-poster {
  aspect-ratio: 16 / 9;
}

.card-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.56));
}

.card-year,
.card-type,
.rank-badge,
.poster-play {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  font-weight: 950;
}

.card-year {
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  color: #ffffff;
  background: rgba(5, 46, 22, 0.68);
  backdrop-filter: blur(10px);
}

.card-type {
  right: 12px;
  top: 12px;
  padding: 6px 10px;
  color: var(--green-700);
  background: #ffffff;
}

.rank-badge {
  left: 12px;
  bottom: 12px;
  min-width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #ef4444);
  box-shadow: 0 12px 28px rgba(239, 68, 68, 0.36);
}

.poster-play {
  right: 14px;
  bottom: 14px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--green-700);
  background: #ffffff;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .poster-play {
  opacity: 1;
  transform: scale(1);
}

.card-body {
  padding: 18px;
}

.card-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  color: var(--green-700);
  font-size: 12px;
  font-weight: 900;
}

.card-body h3 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 950;
}

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

.movie-card.horizontal .card-body p {
  min-height: 0;
}

.tag-row span {
  color: var(--green-700);
  background: var(--green-50);
}

.ranking-block {
  background: linear-gradient(135deg, #ffffff, var(--green-50));
}

.ranking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  gap: 28px;
}

.ranking-list {
  display: grid;
  gap: 16px;
}

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

.cta-section {
  padding: 50px 0 76px;
}

.cta-panel {
  border-radius: 32px;
  padding: 56px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--green-700), var(--green-500));
  box-shadow: var(--shadow);
  text-align: center;
}

.cta-panel h2 {
  margin: 0 0 16px;
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 950;
}

.cta-panel p {
  max-width: 760px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.8;
}

.cta-panel div {
  justify-content: center;
}

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

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

.page-hero .container {
  position: relative;
  z-index: 2;
  padding: 82px 0 68px;
}

.page-hero p {
  max-width: 780px;
  margin: 18px 0 0;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
}

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

.category-card {
  overflow: hidden;
  border-radius: 26px;
  background: #ffffff;
  border: 1px solid var(--green-100);
  box-shadow: 0 15px 34px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover {
  box-shadow: var(--shadow);
}

.category-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: 140px;
  background: var(--green-50);
}

.category-card > div:last-child {
  padding: 22px;
}

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

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

.category-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px 170px auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 28px;
  padding: 14px;
  border: 1px solid var(--green-100);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.06);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  padding: 13px 16px;
  color: var(--text);
  background: #f8fafc;
  border-color: var(--line);
}

.filter-panel span {
  min-width: 86px;
  color: var(--green-700);
  font-weight: 950;
  text-align: center;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: var(--green-900);
}

.detail-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  min-height: 560px;
  padding: 74px 0;
}

.detail-poster {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 30px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
}

.detail-one-line {
  max-width: 820px;
  margin: 20px 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 20px;
  line-height: 1.8;
}

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

.detail-meta span {
  border-radius: 999px;
  padding: 9px 13px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  font-weight: 900;
}

.player-section {
  padding: 54px 0 26px;
  background: #031b12;
}

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

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.24), rgba(2, 6, 23, 0.78));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-overlay span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--green-700);
  background: #ffffff;
  font-size: 30px;
  box-shadow: 0 20px 40px rgba(255, 255, 255, 0.24);
}

.play-overlay strong {
  max-width: min(680px, calc(100% - 48px));
  font-size: clamp(26px, 5vw, 44px);
  font-weight: 950;
  text-align: center;
}

.play-overlay em {
  font-style: normal;
  color: var(--green-100);
  font-weight: 900;
}

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

.detail-content {
  padding: 56px 0 20px;
  background: #ffffff;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
}

.prose-card,
.side-panel {
  border-radius: 26px;
  padding: 30px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.07);
}

.prose-card h2,
.side-panel h3 {
  margin: 0 0 18px;
  font-size: 26px;
  font-weight: 950;
}

.prose-card h2:not(:first-child) {
  margin-top: 30px;
}

.prose-card p {
  margin: 0;
  color: #374151;
  font-size: 17px;
  line-height: 2;
}

.side-panel dl {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px 12px;
  margin: 0;
}

.side-panel dt {
  color: var(--muted);
  font-weight: 900;
}

.side-panel dd {
  margin: 0;
  font-weight: 800;
}

.side-panel a {
  color: var(--green-700);
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap: 34px;
  padding: 54px 0;
}

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

.footer-grid p {
  margin: 12px 0 0;
  line-height: 1.75;
}

.footer-grid a {
  display: block;
  margin: 8px 0;
  color: #d1fae5;
}

.footer-logo {
  color: #ffffff;
}

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

@media (max-width: 1060px) {
  .nav-shell {
    flex-wrap: wrap;
    padding: 14px 0;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .site-nav,
  .nav-search {
    display: none;
    width: 100%;
  }

  .site-nav.is-open,
  .nav-search.is-open {
    display: flex;
  }

  .site-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .site-nav > a,
  .nav-categories a {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
  }

  .nav-categories {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-left: 0;
    padding-left: 0;
  }

  .nav-search input,
  .nav-search input:focus {
    width: 100%;
  }

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

  .hero-poster,
  .detail-poster {
    width: min(320px, 100%);
    margin: 0 auto;
  }

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

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

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

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

  .hero-slider,
  .hero-layout {
    min-height: 760px;
  }

  .hero-layout {
    padding: 60px 0 160px;
  }

  .hero-copy h1,
  .page-hero h1,
  .detail-info h1 {
    font-size: 40px;
  }

  .hero-arrow {
    display: none;
  }

  .hero-search {
    flex-direction: column;
    border-radius: 26px;
  }

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

  .grid-grid,
  .large-grid,
  .ranking-list.wide,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .movie-card.horizontal {
    grid-template-columns: 108px minmax(0, 1fr);
  }

  .filter-panel {
    grid-template-columns: 1fr;
  }

  .detail-layout {
    min-height: auto;
    padding: 52px 0;
  }

  .player-card {
    border-radius: 18px;
  }

  .cta-panel {
    padding: 34px 20px;
  }
}
