:root {
  color-scheme: light;
  --green-950: #052e24;
  --green-900: #064e3b;
  --green-800: #065f46;
  --green-700: #047857;
  --green-600: #059669;
  --green-500: #10b981;
  --green-100: #d1fae5;
  --green-50: #ecfdf5;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
  --soft-shadow: 0 10px 30px rgba(15, 23, 42, 0.1);
  --radius: 18px;
  --radius-lg: 28px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--slate-900);
  background: linear-gradient(180deg, #f8fffb 0%, #f8fafc 44%, #ecfdf5 100%);
}

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

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

button,
input {
  font: inherit;
}

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

.nav-shell {
  max-width: var(--max);
  height: 66px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link,
.mobile-link {
  color: rgba(255, 255, 255, 0.9);
  padding: 10px 15px;
  border-radius: 12px;
  transition: 0.25s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--white);
  border-radius: 99px;
}

.mobile-panel {
  display: none;
  padding: 8px 20px 16px;
  background: var(--green-800);
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  max-width: var(--max);
  margin: 0 auto;
  padding: 96px 20px 86px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 360px;
  gap: 54px;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(22px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.hero-backdrop {
  position: fixed;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.12);
}

.hero-copy,
.hero-poster,
.hero-controls {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green-500);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  color: var(--white);
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero-copy p {
  max-width: 680px;
  margin: 22px 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 19px;
  line-height: 1.8;
}

.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: 6px 10px;
  background: rgba(16, 185, 129, 0.12);
  color: var(--green-800);
  font-size: 12px;
  font-weight: 700;
}

.hero-tags span,
.tag-row.large span {
  color: var(--green-50);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: 0.25s ease;
}

.primary-button {
  color: var(--green-800);
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.primary-button:hover {
  transform: translateY(-2px);
  background: var(--green-50);
}

.ghost-button {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.2);
}

.hero-poster {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.38);
  transform: rotate(2deg);
}

.hero-poster img {
  height: 500px;
  object-fit: cover;
}

.hero-poster span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(2, 6, 23, 0.76);
  backdrop-filter: blur(10px);
  font-weight: 800;
}

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

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

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

.section-shell {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.section-gap {
  padding-top: 72px;
  padding-bottom: 72px;
}

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

.section-heading h2 {
  margin: 0;
  color: var(--slate-900);
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.03em;
}

.section-heading p {
  max-width: 700px;
  margin: 8px 0 0;
  color: var(--slate-600);
  line-height: 1.8;
}

.section-heading > a {
  color: var(--green-700);
  font-weight: 800;
  white-space: nowrap;
}

.section-heading.slim {
  align-items: start;
  margin-bottom: 20px;
}

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

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

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

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

.card-cover {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, var(--green-100), var(--green-50));
}

.card-cover img {
  height: 278px;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.badge {
  position: absolute;
  top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.badge-year {
  right: 12px;
  background: var(--green-600);
}

.badge-region {
  left: 12px;
  background: rgba(2, 6, 23, 0.72);
}

.card-body {
  padding: 18px;
}

.card-title {
  display: block;
  overflow: hidden;
  color: var(--slate-900);
  font-size: 18px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.25s ease;
}

.card-title:hover {
  color: var(--green-700);
}

.card-body p {
  min-height: 48px;
  margin: 9px 0 14px;
  color: var(--slate-600);
  line-height: 1.65;
  font-size: 14px;
}

.card-meta,
.inline-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--slate-500);
  font-size: 13px;
}

.inline-meta.strong {
  margin: 20px 0;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
}

.category-chip {
  display: inline-flex;
  margin-top: 14px;
  color: var(--green-700);
  font-size: 13px;
  font-weight: 800;
}

.card-compact .card-cover img {
  height: 220px;
}

.card-compact .card-body p {
  min-height: 44px;
}

.green-band {
  max-width: var(--max);
  margin: 0 auto;
  padding: 46px;
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: 1fr minmax(280px, 460px);
  gap: 34px;
  align-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--green-800), var(--green-600));
  box-shadow: var(--shadow);
}

.green-band h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 5vw, 44px);
  letter-spacing: -0.04em;
}

.green-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.8;
}

.search-bar {
  display: flex;
  overflow: hidden;
  width: 100%;
  border-radius: 999px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.search-bar input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  padding: 0 20px;
  color: var(--slate-800);
}

.search-bar button {
  border: 0;
  padding: 0 22px;
  min-height: 50px;
  color: var(--white);
  background: var(--green-700);
  font-weight: 800;
  cursor: pointer;
}

.search-bar button:hover {
  background: var(--green-800);
}

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 230px;
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  color: var(--white);
  box-shadow: var(--soft-shadow);
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.05), rgba(2, 6, 23, 0.82));
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.category-tile:hover img {
  transform: scale(1.08);
}

.category-tile span,
.category-tile small {
  position: relative;
  z-index: 1;
}

.category-tile span {
  font-size: 22px;
  font-weight: 900;
}

.category-tile small {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
}

.split-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 34px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 58px 92px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.rank-number {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: var(--white);
  background: linear-gradient(135deg, var(--green-700), var(--green-500));
  font-size: 20px;
  font-weight: 900;
}

.rank-poster {
  overflow: hidden;
  border-radius: 14px;
}

.rank-poster img {
  height: 120px;
  object-fit: cover;
}

.rank-title {
  display: inline-block;
  color: var(--slate-900);
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 8px;
}

.rank-title:hover {
  color: var(--green-700);
}

.rank-content p {
  margin: 0 0 10px;
  color: var(--slate-600);
  line-height: 1.65;
}

.page-hero {
  color: var(--white);
  background: radial-gradient(circle at 18% 12%, rgba(16, 185, 129, 0.48), transparent 34%), linear-gradient(135deg, var(--green-950), var(--green-700));
}

.page-hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 86px 20px 74px;
}

.page-hero h1 {
  max-width: 860px;
}

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 18px 0 28px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.8;
}

.filter-panel {
  margin-bottom: 26px;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.local-search {
  max-width: 680px;
  margin-bottom: 16px;
  box-shadow: none;
  border: 1px solid rgba(4, 120, 87, 0.16);
}

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

.filter-chip {
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  color: var(--green-800);
  background: var(--green-50);
  font-weight: 800;
  cursor: pointer;
}

.filter-chip.active,
.filter-chip:hover {
  color: var(--white);
  background: var(--green-700);
}

.category-overview {
  display: grid;
  gap: 36px;
}

.category-section {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--soft-shadow);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 24px;
  color: var(--slate-500);
  font-size: 14px;
}

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

.breadcrumb.light,
.breadcrumb.light a {
  color: rgba(255, 255, 255, 0.86);
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--green-950);
}

.detail-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.1);
}

.detail-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 52px 20px 70px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 44px;
  align-items: center;
}

.detail-poster {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

.detail-poster img {
  height: 470px;
  object-fit: cover;
}

.detail-poster span {
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.78);
  font-weight: 900;
}

.detail-copy .lead {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 20px;
  line-height: 1.8;
}

.player-section {
  margin-top: -42px;
  position: relative;
  z-index: 2;
}

.player-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #000;
  box-shadow: 0 24px 80px rgba(2, 6, 23, 0.36);
}

.video-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.movie-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(5, 150, 105, 0.2), rgba(2, 6, 23, 0.56));
  cursor: pointer;
  z-index: 2;
}

.player-overlay span {
  width: 92px;
  height: 92px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--green-800);
  background: var(--white);
  font-size: 34px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.28);
}

.player-overlay.is-hidden {
  display: none;
}

.player-state {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 3;
  color: var(--white);
  font-size: 14px;
  font-weight: 800;
}

.detail-content {
  padding-top: 42px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
}

.content-card,
.side-card {
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--soft-shadow);
  padding: 28px;
}

.content-card h2,
.side-card h2 {
  margin: 0 0 16px;
  color: var(--slate-900);
  font-size: 24px;
}

.content-card p {
  margin: 0 0 24px;
  color: var(--slate-700);
  line-height: 1.9;
  font-size: 17px;
}

.side-card dl {
  margin: 0;
  display: grid;
  gap: 14px;
}

.side-card div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  border-bottom: 1px solid var(--slate-100);
  padding-bottom: 14px;
}

.side-card dt {
  color: var(--slate-500);
}

.side-card dd {
  margin: 0;
  color: var(--slate-900);
  font-weight: 800;
}

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

.site-footer {
  margin-top: 72px;
  color: var(--white);
  background: linear-gradient(180deg, var(--green-900), var(--green-950));
}

.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 54px 20px 38px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 42px;
}

.footer-grid h2 {
  margin: 0 0 16px;
  color: var(--green-100);
  font-size: 18px;
}

.footer-grid p {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.8;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.72);
}

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

.footer-bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 20px 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.64);
  text-align: center;
  font-size: 14px;
}

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

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

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

  .hero-slide,
  .detail-layout,
  .split-layout,
  .detail-content,
  .green-band,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    max-width: 340px;
  }
}

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

  .menu-toggle {
    display: block;
  }

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

  .hero-carousel {
    min-height: 780px;
  }

  .hero-slide {
    padding-top: 58px;
    gap: 30px;
  }

  .hero-poster img {
    height: 360px;
  }

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

  .card-cover img {
    height: 220px;
  }

  .green-band,
  .category-section,
  .content-card,
  .side-card {
    padding: 22px;
  }

  .section-gap {
    padding-top: 46px;
    padding-bottom: 46px;
  }

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

  .rank-item {
    grid-template-columns: 44px 74px 1fr;
    gap: 10px;
  }

  .rank-number {
    width: 38px;
    height: 38px;
    font-size: 16px;
  }

  .rank-poster img {
    height: 94px;
  }

  .detail-poster {
    max-width: 280px;
  }

  .detail-poster img {
    height: 390px;
  }

  .search-bar {
    border-radius: 18px;
  }

  .search-bar input {
    min-height: 52px;
  }
}

@media (max-width: 520px) {
  .movie-grid,
  .small-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .hero-carousel {
    min-height: 840px;
  }

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

  .page-hero-inner,
  .detail-inner {
    padding-top: 52px;
    padding-bottom: 52px;
  }

  .footer-grid {
    gap: 28px;
  }
}
