:root {
  --green-50: #f0fdf4;
  --green-100: #dcfce7;
  --green-500: #22c55e;
  --green-600: #16a34a;
  --green-700: #15803d;
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-300: #d6d3d1;
  --stone-500: #78716c;
  --stone-600: #57534e;
  --stone-700: #44403c;
  --stone-800: #292524;
  --stone-900: #1c1917;
  --white: #ffffff;
  --shadow-soft: 0 18px 50px rgba(28, 25, 23, 0.12);
  --shadow-card: 0 10px 30px rgba(28, 25, 23, 0.10);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--stone-50), var(--white));
  color: var(--stone-800);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(231, 229, 228, 0.9);
}

.site-header-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--white);
  background: linear-gradient(135deg, var(--green-600), var(--green-700));
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(22, 163, 74, 0.3);
}

.brand-text {
  font-size: 22px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link {
  padding: 10px 13px;
  color: var(--stone-600);
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
  font-size: 14px;
  font-weight: 700;
}

.nav-link:hover {
  color: var(--green-700);
  background: var(--green-50);
}

.nav-toggle {
  display: none;
  border: 0;
  background: var(--stone-900);
  color: var(--white);
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.hero-carousel {
  position: relative;
  min-height: 70vh;
  height: clamp(560px, 72vh, 760px);
  overflow: hidden;
  background: var(--stone-900);
}

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

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}

.hero-bg::after,
.page-hero::after,
.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.08));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 1180px;
}

.hero-content > * {
  max-width: 720px;
}

.hero-badges,
.hero-meta,
.hero-actions,
.tag-row,
.intro-actions,
.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-badges span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(6px);
}

.hero-badges span:first-child {
  background: var(--green-600);
}

.hero-content h1 {
  margin: 18px 0;
  color: var(--white);
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.06em;
  font-weight: 950;
}

.hero-summary {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.7;
}

.hero-meta {
  color: rgba(255, 255, 255, 0.76);
  margin-bottom: 22px;
  font-weight: 700;
}

.hero-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 10px;
  color: rgba(255, 255, 255, 0.42);
}

.hero-tags span {
  background: rgba(255, 255, 255, 0.20);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 850;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

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

.btn-primary {
  color: var(--white);
  background: var(--green-600);
  box-shadow: 0 12px 30px rgba(22, 163, 74, 0.32);
}

.btn-primary:hover {
  background: var(--green-700);
}

.btn-glass {
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
}

.btn-light {
  color: var(--stone-900);
  background: rgba(255, 255, 255, 0.92);
}

.btn-outline {
  color: var(--stone-700);
  border-color: var(--stone-300);
  background: var(--white);
}

.hero-controls {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 34px;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.hero-arrow,
.hero-dot {
  pointer-events: auto;
  border: 0;
}

.hero-arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  color: var(--white);
  font-size: 34px;
  line-height: 1;
  backdrop-filter: blur(8px);
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 30px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}

.hero-dot.is-active {
  background: var(--green-500);
}

.home-intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  padding: 64px 0 28px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green-700);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-intro h2,
.section-head h2,
.detail-article h2,
.detail-side h2 {
  margin: 0;
  color: var(--stone-900);
  font-size: clamp(26px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.05em;
  font-weight: 950;
}

.home-intro p:not(.eyebrow),
.section-head span,
.category-overview-body span {
  color: var(--stone-600);
  line-height: 1.8;
}

.filter-panel {
  padding: 20px;
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-card);
}

.filter-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.filter-title span {
  color: var(--green-700);
  font-size: 13px;
  font-weight: 900;
}

.filter-title strong {
  color: var(--stone-900);
}

.filter-form {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr auto;
  gap: 14px;
  align-items: end;
}

.filter-form label {
  display: grid;
  gap: 6px;
  color: var(--stone-600);
  font-size: 13px;
  font-weight: 800;
}

.filter-form input,
.filter-form select {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--stone-200);
  border-radius: 14px;
  background: var(--stone-50);
  color: var(--stone-900);
  outline: none;
}

.filter-form input:focus,
.filter-form select:focus {
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

.filter-form button {
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 14px;
  color: var(--white);
  background: var(--stone-900);
  font-weight: 900;
}

.section-block {
  padding: 48px 0;
}

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

.section-head p {
  margin: 0 0 8px;
  color: var(--green-700);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-head a {
  flex: 0 0 auto;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--green-50);
  color: var(--green-700);
  font-weight: 850;
}

.movie-grid,
.featured-grid,
.category-grid,
.overview-grid,
.top-rank-grid {
  display: grid;
  gap: 22px;
}

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

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

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

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

.movie-card,
.category-tile,
.category-overview-card,
.rank-card,
.top-rank-card,
.detail-side,
.detail-article {
  border: 1px solid var(--stone-200);
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(28, 25, 23, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover,
.category-tile:hover,
.category-overview-card:hover,
.rank-card:hover,
.top-rank-card:hover {
  transform: translateY(-5px);
  border-color: rgba(34, 197, 94, 0.42);
  box-shadow: var(--shadow-card);
}

.movie-card-link {
  display: grid;
  height: 100%;
}

.movie-poster {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--stone-200);
}

.movie-poster img,
.category-tile img,
.category-mosaic img,
.top-rank-card img,
.rank-card img,
.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.movie-card:hover .movie-poster img,
.category-tile:hover img,
.top-rank-card:hover img {
  transform: scale(1.06);
}

.movie-poster figcaption {
  position: absolute;
  right: 12px;
  top: 12px;
  margin: 0;
  padding: 5px 10px;
  color: var(--white);
  background: rgba(28, 25, 23, 0.74);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(8px);
}

.movie-card-body {
  padding: 16px;
}

.movie-meta-line,
.rank-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--stone-500);
  font-size: 12px;
  font-weight: 850;
}

.movie-meta-line {
  justify-content: space-between;
  margin-bottom: 8px;
}

.movie-card h3,
.rank-card h3,
.top-rank-card h2,
.category-tile h3,
.category-overview-body h2 {
  margin: 0;
  color: var(--stone-900);
  font-weight: 950;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.movie-card h3 {
  font-size: 18px;
}

.movie-card-desc,
.rank-card p,
.top-rank-card p,
.category-tile p {
  color: var(--stone-600);
  line-height: 1.7;
}

.movie-card-desc {
  display: -webkit-box;
  margin: 10px 0 14px;
  min-height: 3.4em;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card .tag-row {
  margin-top: 14px;
}

.movie-card .tag-row span,
.rank-card .tag-row span,
.detail-tags span {
  color: var(--stone-700);
  background: var(--stone-100);
}

.category-tile {
  position: relative;
  min-height: 220px;
}

.category-tile img {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(28, 25, 23, 0.05), rgba(28, 25, 23, 0.86));
}

.category-tile div {
  position: absolute;
  z-index: 2;
  left: 22px;
  right: 22px;
  bottom: 22px;
  color: var(--white);
}

.category-tile span,
.top-rank-card span,
.category-overview-body p {
  color: var(--green-100);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.category-tile h3 {
  color: var(--white);
  font-size: 26px;
}

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

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

.rank-card-link {
  display: grid;
  grid-template-columns: 56px 132px 1fr;
  gap: 16px;
  padding: 12px;
  align-items: center;
}

.rank-number {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: var(--green-700);
  background: var(--green-50);
  border-radius: 15px;
  font-size: 18px;
}

.rank-card img {
  height: 88px;
  border-radius: 14px;
}

.rank-card h3 {
  font-size: 18px;
}

.rank-card p {
  display: -webkit-box;
  margin: 6px 0 8px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.subpage {
  padding-bottom: 40px;
}

.page-hero {
  position: relative;
  min-height: 420px;
  display: grid;
  align-items: end;
  background: var(--stone-900);
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--page-hero-image);
  background-size: cover;
  background-position: center;
  filter: saturate(1.05);
}

.compact-hero::before {
  background: radial-gradient(circle at 20% 20%, rgba(34, 197, 94, 0.42), transparent 32%), linear-gradient(135deg, var(--stone-900), #052e16);
}

.page-hero > div {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 94px 0 56px;
  color: var(--white);
}

.page-hero h1 {
  margin: 0 0 16px;
  max-width: 760px;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1;
  letter-spacing: -0.06em;
  font-weight: 950;
}

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

.category-overview-card a {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 190px;
}

.category-mosaic {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  background: var(--stone-200);
}

.category-overview-body {
  padding: 24px;
}

.category-overview-body p {
  color: var(--green-700);
}

.category-overview-body h2 {
  font-size: 26px;
  margin-bottom: 10px;
}

.top-rank-card {
  display: grid;
  min-height: 360px;
  position: relative;
}

.top-rank-card img {
  position: absolute;
  inset: 0;
}

.top-rank-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.86));
}

.top-rank-card div {
  position: relative;
  z-index: 2;
  align-self: end;
  padding: 22px;
  color: var(--white);
}

.top-rank-card h2 {
  color: var(--white);
  font-size: 28px;
}

.top-rank-card p {
  color: rgba(255, 255, 255, 0.82);
}

.detail-page {
  background: linear-gradient(180deg, var(--stone-50), var(--white));
}

.detail-hero {
  position: relative;
  min-height: 560px;
  background: var(--stone-900);
  overflow: hidden;
}

.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--detail-image);
  background-size: cover;
  background-position: center;
  filter: blur(3px) saturate(1.08);
  transform: scale(1.03);
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 44px;
  align-items: end;
  padding: 90px 0 58px;
  color: var(--white);
}

.breadcrumb {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--green-100);
}

.detail-poster {
  aspect-ratio: 3 / 4.1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  background: var(--stone-800);
}

.detail-main h1 {
  margin: 0 0 18px;
  max-width: 820px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.06em;
  font-weight: 950;
}

.detail-one-line {
  max-width: 820px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 20px;
  line-height: 1.75;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
}

.detail-meta span {
  padding: 8px 12px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  font-weight: 800;
}

.player-section {
  margin-top: -32px;
  position: relative;
  z-index: 3;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #000000;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 16 / 9;
}

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

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  border: 0;
  color: var(--white);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.24), rgba(0, 0, 0, 0.62));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-start span {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  color: var(--white);
  background: var(--green-600);
  border-radius: 50%;
  box-shadow: 0 18px 48px rgba(22, 163, 74, 0.38);
  font-size: 32px;
}

.player-start strong {
  font-size: 18px;
}

.player-shell.is-playing .player-start {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

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

.detail-article,
.detail-side {
  padding: 28px;
}

.detail-article h2 {
  font-size: 28px;
  margin-top: 8px;
  margin-bottom: 14px;
}

.detail-article p {
  color: var(--stone-700);
  line-height: 2;
  font-size: 17px;
}

.detail-article p + h2 {
  margin-top: 28px;
}

.detail-side h2 {
  font-size: 24px;
  margin-bottom: 16px;
}

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

.detail-side dl div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--stone-200);
}

.detail-side dt {
  color: var(--stone-500);
  font-weight: 850;
}

.detail-side dd {
  margin: 0;
  color: var(--stone-800);
  font-weight: 800;
}

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

.site-footer {
  margin-top: 56px;
  padding: 44px 0 30px;
  color: var(--stone-300);
  background: var(--stone-900);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 26px;
}

.footer-brand {
  color: var(--white);
  font-size: 22px;
}

.footer-inner p {
  max-width: 560px;
  color: var(--stone-400);
  line-height: 1.8;
}

.footer-links a {
  color: var(--stone-300);
  font-weight: 800;
}

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

.copyright {
  width: min(1180px, calc(100% - 32px));
  margin: 22px auto 0;
  color: var(--stone-500);
  font-size: 14px;
}

.is-filtered-out {
  display: none !important;
}

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

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

  .detail-poster {
    width: min(280px, 80vw);
  }
}

@media (max-width: 820px) {
  .site-header-inner {
    min-height: 64px;
  }

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

  .main-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    padding: 14px;
    border: 1px solid var(--stone-200);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-card);
  }

  .main-nav.is-open {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .home-intro,
  .section-head,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .movie-grid,
  .featured-grid,
  .category-grid,
  .overview-grid,
  .top-rank-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .category-overview-card a,
  .rank-card-link {
    grid-template-columns: 1fr;
  }

  .rank-number {
    display: none;
  }

  .rank-card img {
    width: 100%;
    height: 180px;
  }

  .hero-carousel {
    height: 620px;
  }

  .hero-controls {
    bottom: 18px;
  }

  .hero-arrow {
    width: 42px;
    height: 42px;
  }

  .detail-main h1,
  .hero-content h1,
  .page-hero h1 {
    letter-spacing: -0.04em;
  }
}

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

  .container,
  .site-header-inner,
  .hero-content,
  .footer-inner,
  .copyright,
  .page-hero > div {
    width: min(100% - 24px, 1180px);
  }

  .hero-actions {
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }
}
