:root {
  --emerald-50: #ecfdf5;
  --emerald-100: #d1fae5;
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --emerald-700: #047857;
  --teal-500: #14b8a6;
  --amber-50: #fffbeb;
  --amber-400: #fbbf24;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 14px 35px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 25px 60px rgba(15, 23, 42, 0.16);
  --radius-xl: 22px;
  --radius-2xl: 30px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background: linear-gradient(180deg, #ffffff 0%, rgba(236, 253, 245, 0.35) 45%, #ffffff 100%);
  color: var(--gray-800);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(209, 250, 229, 0.95);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.04);
}

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

.header-inner {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--emerald-600), var(--teal-500));
  box-shadow: 0 10px 24px rgba(5, 150, 105, 0.28);
}

.brand-name {
  font-size: 24px;
  line-height: 1;
  color: transparent;
  background: linear-gradient(90deg, var(--emerald-700), var(--teal-500));
  -webkit-background-clip: text;
  background-clip: text;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  color: var(--gray-700);
  font-weight: 650;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--emerald-600);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: var(--emerald-50);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 19px;
  height: 2px;
  margin: 4px auto;
  background: var(--emerald-700);
}

.mobile-nav {
  display: none;
  padding: 0 16px 18px;
  background: #ffffff;
  border-top: 1px solid var(--emerald-100);
}

.mobile-nav a {
  display: block;
  padding: 12px 16px;
  border-radius: 14px;
  color: var(--gray-700);
  font-weight: 650;
}

.mobile-nav a:hover {
  background: var(--emerald-50);
  color: var(--emerald-700);
}

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

.home-hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background: linear-gradient(135deg, #d1fae5 0%, #f0fdfa 48%, #fffbeb 100%);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.45;
  background-image:
    linear-gradient(rgba(17, 24, 39, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 24, 39, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
}

.home-hero::after,
.page-hero::after,
.detail-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #ffffff);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  min-height: 680px;
  margin: 0 auto;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(310px, 0.72fr);
  align-items: center;
  gap: 48px;
  opacity: 0;
  transform: translateY(22px);
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-copy h1 {
  margin: 12px 0 10px;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.06em;
  color: transparent;
  background: linear-gradient(90deg, var(--emerald-700), var(--teal-500), var(--emerald-600));
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-copy h2 {
  margin: 0 0 16px;
  color: var(--gray-900);
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.12;
}

.hero-copy p {
  max-width: 720px;
  margin: 0 0 26px;
  color: var(--gray-700);
  font-size: 19px;
  line-height: 1.8;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--emerald-700);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-tags,
.tag-row,
.movie-meta,
.detail-actions,
.hero-actions,
.pager-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--emerald-700);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(16, 185, 129, 0.18);
  font-size: 13px;
  font-weight: 650;
}

.hero-actions,
.detail-actions {
  margin-top: 28px;
}

.primary-button,
.ghost-button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 750;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  min-height: 48px;
  padding: 0 26px;
  color: #ffffff;
  background: var(--emerald-600);
  box-shadow: 0 14px 30px rgba(5, 150, 105, 0.28);
}

.primary-button:hover {
  transform: translateY(-2px);
  background: var(--emerald-700);
  box-shadow: 0 20px 38px rgba(5, 150, 105, 0.33);
}

.ghost-button {
  min-height: 48px;
  padding: 0 26px;
  color: var(--emerald-700);
  background: rgba(255, 255, 255, 0.82);
  border: 2px solid var(--emerald-600);
}

.ghost-button:hover {
  transform: translateY(-2px);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.small-button {
  min-height: 40px;
  padding: 0 18px;
  font-size: 14px;
}

.text-link {
  color: var(--emerald-700);
}

.hero-art {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 38px;
  overflow: hidden;
  box-shadow: 0 35px 80px rgba(4, 120, 87, 0.28);
  transform: rotate(2deg);
}

.hero-art::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.25));
}

.hero-art img,
.movie-poster img,
.category-tile img,
.rank-cover img,
.detail-poster img,
.category-panel-images img {
  height: 100%;
  object-fit: cover;
}

.hero-dots {
  position: absolute;
  left: 0;
  bottom: 86px;
  display: flex;
  gap: 9px;
  z-index: 5;
}

.hero-dot {
  width: 34px;
  height: 8px;
  border: 0;
  border-radius: 99px;
  background: rgba(4, 120, 87, 0.2);
  cursor: pointer;
}

.hero-dot.is-active {
  background: var(--emerald-600);
}

.content-section {
  padding: 76px 0;
}

.soft-section {
  background: linear-gradient(90deg, rgba(236, 253, 245, 0.75), rgba(240, 253, 250, 0.75), rgba(255, 251, 235, 0.75));
}

.section-title {
  margin-bottom: 34px;
  text-align: center;
}

.section-title h2,
.page-hero h1,
.detail-copy h1 {
  margin: 8px 0 12px;
  color: var(--gray-900);
  font-size: clamp(32px, 4.5vw, 50px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.section-title p,
.page-hero p,
.detail-copy .lead-text {
  max-width: 720px;
  margin: 0 auto;
  color: var(--gray-600);
  line-height: 1.8;
}

.split-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
}

.split-title p {
  margin: 0;
}

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

.feature-grid .movie-card:first-child {
  grid-column: span 2;
}

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

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

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--gray-100);
}

.movie-poster img {
  transition: transform 0.55s ease;
}

.movie-card:hover .movie-poster img,
.category-tile:hover img,
.rank-item:hover img,
.category-panel:hover img {
  transform: scale(1.08);
}

.movie-year {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--emerald-600);
  font-size: 12px;
  font-weight: 800;
}

.movie-info {
  padding: 18px;
}

.movie-info h3 {
  margin: 0 0 9px;
  color: var(--gray-900);
  font-size: 18px;
  line-height: 1.35;
}

.movie-info h3 a:hover,
.rank-copy h3 a:hover,
.category-panel-copy a:hover,
.footer-inner a:hover {
  color: var(--emerald-600);
}

.movie-info p,
.rank-copy p,
.category-panel-copy p,
.footer-brand p {
  margin: 0 0 12px;
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.65;
}

.movie-meta {
  color: var(--gray-500);
  font-size: 13px;
}

.movie-meta span + span::before {
  content: "·";
  margin-right: 8px;
  color: var(--gray-400);
}

.tag-row {
  margin-top: 12px;
}

.tag-row span {
  min-height: 24px;
  padding: 4px 8px;
  font-size: 12px;
}

.scroll-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(210px, 245px);
  gap: 22px;
  overflow-x: auto;
  padding: 4px 4px 26px;
  scroll-snap-type: x mandatory;
}

.scroll-row .movie-card {
  scroll-snap-align: start;
}

.movie-card-compact .movie-info p,
.movie-card-compact .tag-row {
  display: none;
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 58px 92px 1fr;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.rank-number {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--emerald-600), var(--teal-500));
  font-weight: 900;
}

.rank-cover {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 16px;
  background: var(--gray-100);
}

.rank-cover img {
  transition: transform 0.5s ease;
}

.rank-copy h3 {
  margin: 0 0 7px;
  color: var(--gray-900);
  font-size: 18px;
}

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

.category-tile {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  border-radius: var(--radius-2xl);
  color: #ffffff;
  background: var(--gray-900);
  box-shadow: var(--shadow-md);
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.76));
}

.category-tile img {
  position: absolute;
  inset: 0;
  transition: transform 0.65s ease;
}

.category-tile span,
.category-tile p {
  position: relative;
  z-index: 1;
  display: block;
  padding: 0 22px;
}

.category-tile span {
  margin-top: 170px;
  font-size: 24px;
  font-weight: 850;
}

.category-tile p {
  margin: 9px 0 0;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.65;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 18px;
  margin-bottom: 28px;
  padding: 18px;
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.filter-bar label {
  display: grid;
  gap: 7px;
  color: var(--gray-600);
  font-size: 13px;
  font-weight: 700;
}

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

.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--emerald-500);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

.filter-selects {
  display: flex;
  gap: 12px;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #ecfdf5, #ffffff 45%, #fffbeb);
}

.page-hero .section-inner {
  padding: 86px 0 110px;
  text-align: center;
}

.category-panels {
  display: grid;
  gap: 28px;
}

.category-panel {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 28px;
  align-items: center;
  padding: 24px;
  border-radius: var(--radius-2xl);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.category-panel-images {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.category-panel-images img {
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  background: var(--gray-100);
  transition: transform 0.5s ease;
}

.category-panel-copy h2 {
  margin: 8px 0 10px;
  color: var(--gray-900);
  font-size: 34px;
}

.empty-state {
  display: none;
  margin: 28px 0 0;
  padding: 22px;
  border-radius: var(--radius-xl);
  color: var(--gray-600);
  text-align: center;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

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

.detail-grid {
  display: grid;
  grid-template-columns: minmax(260px, 370px) 1fr;
  gap: 46px;
  align-items: center;
  padding: 64px 0 96px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 34px;
  aspect-ratio: 3 / 4;
  box-shadow: var(--shadow-lg);
  background: var(--gray-100);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 18px;
  color: var(--gray-500);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--emerald-700);
}

.detail-copy h1 {
  max-width: 800px;
}

.detail-tags {
  margin-top: 18px;
}

.player-section {
  padding-top: 36px;
}

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

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

.player-layer {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: #ffffff;
  background: radial-gradient(circle at center, rgba(5, 150, 105, 0.1), rgba(2, 6, 23, 0.68));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-button {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.play-triangle {
  width: 0;
  height: 0;
  margin-left: 6px;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-left: 22px solid var(--emerald-600);
}

.detail-content {
  display: grid;
  gap: 28px;
}

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

.info-pill {
  padding: 18px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.info-pill span {
  display: block;
  margin-bottom: 7px;
  color: var(--gray-500);
  font-size: 13px;
}

.info-pill strong {
  color: var(--gray-900);
  line-height: 1.45;
}

.article-card {
  padding: 30px;
  border-radius: var(--radius-2xl);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

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

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

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

.pager-links {
  justify-content: space-between;
}

.pager-links a {
  flex: 1;
  min-width: 220px;
  padding: 16px 18px;
  border-radius: 18px;
  color: var(--gray-700);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.pager-links a:hover {
  color: var(--emerald-700);
}

.site-footer {
  border-top: 1px solid var(--emerald-100);
  background: linear-gradient(180deg, var(--emerald-50), #ffffff);
}

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

.footer-logo {
  margin-bottom: 14px;
  font-size: 20px;
}

.footer-inner h2 {
  margin: 0 0 14px;
  color: var(--gray-900);
  font-size: 18px;
}

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

.footer-inner li {
  margin: 9px 0;
  color: var(--gray-600);
}

.footer-bottom {
  padding: 18px;
  border-top: 1px solid var(--emerald-100);
  color: var(--gray-500);
  text-align: center;
}

@media (max-width: 1024px) {
  .desktop-nav {
    gap: 18px;
  }

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

  .hero-slide {
    grid-template-columns: 1fr 330px;
    gap: 28px;
  }

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

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

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

  .desktop-nav {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .brand-name {
    font-size: 21px;
  }

  .home-hero,
  .hero-inner {
    min-height: 820px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 28px;
    padding: 34px 0 86px;
  }

  .hero-art {
    width: min(320px, 76vw);
    margin: 0 auto;
    border-radius: 30px;
  }

  .hero-copy p {
    font-size: 17px;
  }

  .hero-dots {
    bottom: 48px;
  }

  .split-title,
  .filter-bar,
  .category-panel,
  .detail-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

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

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

  .feature-grid .movie-card:first-child {
    grid-column: span 1;
  }

  .category-panel-images {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 560px) {
  .header-inner,
  .section-inner,
  .footer-inner,
  .hero-inner {
    width: min(100% - 24px, 1180px);
  }

  .content-section {
    padding: 54px 0;
  }

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

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

  .rank-number {
    width: 40px;
    height: 40px;
    border-radius: 13px;
    font-size: 14px;
  }

  .rank-copy p {
    display: none;
  }

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

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

  .article-card {
    padding: 22px;
  }

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

  .play-button {
    width: 66px;
    height: 66px;
  }
}
