:root {
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-500: #78716c;
  --stone-600: #57534e;
  --stone-700: #44403c;
  --stone-800: #292524;
  --stone-900: #1c1917;
  --green-500: #22c55e;
  --green-600: #16a34a;
  --green-700: #15803d;
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --orange-50: #fff7ed;
  --shadow-soft: 0 20px 45px rgba(28, 25, 23, 0.12);
  --shadow-card: 0 12px 30px rgba(28, 25, 23, 0.10);
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--stone-800);
  background: linear-gradient(180deg, var(--stone-50) 0%, #ffffff 42%, var(--stone-50) 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(231, 229, 228, 0.92);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.site-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.site-logo-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--green-600), var(--green-700));
  box-shadow: 0 12px 25px rgba(22, 163, 74, 0.28);
}

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

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

.nav-link:hover,
.nav-link.is-active {
  color: var(--green-700);
  background: rgba(34, 197, 94, 0.12);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: var(--stone-100);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-button span {
  width: 20px;
  height: 2px;
  border-radius: 99px;
  background: var(--stone-800);
}

.mobile-nav {
  display: none;
  padding: 0 20px 18px;
  border-top: 1px solid var(--stone-200);
}

.hero-carousel {
  position: relative;
  min-height: 540px;
  height: 72vh;
  overflow: hidden;
  background: var(--stone-900);
}

.hero-stage,
.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-slide img {
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.hero-shade {
  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.16)), linear-gradient(0deg, rgba(28, 25, 23, 0.92), transparent 46%);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 20px 86px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.hero-content h1 {
  max-width: 760px;
  margin: 0 0 20px;
  color: #ffffff;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.95;
  letter-spacing: -0.07em;
  font-weight: 900;
}

.hero-content p {
  max-width: 680px;
  margin: 0 0 22px;
  color: rgba(245, 245, 244, 0.88);
  font-size: clamp(17px, 2.2vw, 22px);
  line-height: 1.72;
}

.hero-labels,
.detail-labels {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.hero-labels a,
.hero-labels span,
.detail-labels a,
.detail-labels span {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(22, 163, 74, 0.95);
  font-size: 14px;
  font-weight: 800;
}

.hero-labels span,
.detail-labels span {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
  color: rgba(245, 245, 244, 0.82);
  font-weight: 700;
}

.hero-actions,
.quick-actions,
.hero-mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.primary-button,
.ghost-button,
.ghost-dark-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 14px;
  font-weight: 900;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.primary-button {
  color: #ffffff;
  background: var(--green-600);
  box-shadow: 0 15px 35px rgba(22, 163, 74, 0.32);
}

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

.ghost-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

.ghost-dark-button {
  color: var(--stone-900);
  background: var(--stone-100);
}

.ghost-button:hover,
.ghost-dark-button:hover {
  transform: translateY(-2px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  font-size: 36px;
  line-height: 1;
  transition: background 0.25s ease, transform 0.25s ease;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-50%) scale(1.06);
}

.hero-arrow-prev {
  left: 24px;
  transform: translateY(-50%);
}

.hero-arrow-next {
  right: 24px;
  transform: translateY(-50%);
}

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

.hero-dot {
  width: 34px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
}

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

.section-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 20px;
}

.quick-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--green-700);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.quick-entry h2,
.section-heading h2,
.page-hero h1,
.detail-info h1,
.content-panel h2 {
  margin: 0;
  color: var(--stone-900);
  font-weight: 900;
  letter-spacing: -0.05em;
}

.quick-entry h2,
.section-heading h2 {
  font-size: clamp(28px, 4vw, 44px);
}

.quick-entry p,
.page-hero p,
.category-card p,
.category-overview-card p,
.content-panel p,
.detail-info .lead-text {
  color: var(--stone-600);
  line-height: 1.8;
}

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

.section-heading > a,
.text-link {
  color: var(--green-700);
  font-weight: 900;
}

.light-heading h2,
.light-heading .eyebrow,
.light-heading a {
  color: #ffffff;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.category-chip {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--stone-700);
  background: var(--stone-100);
  font-size: 14px;
  font-weight: 800;
}

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

.category-card {
  position: relative;
  min-height: 260px;
  padding: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: 28px;
  background: var(--stone-900);
  box-shadow: var(--shadow-card);
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  transition: transform 0.6s ease, opacity 0.35s ease;
}

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

.category-card:hover img {
  transform: scale(1.08);
  opacity: 0.72;
}

.category-card span,
.category-card p {
  position: relative;
  z-index: 1;
}

.category-card span {
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
}

.category-card p {
  margin: 8px 0 0;
  color: rgba(245, 245, 244, 0.82);
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--stone-200);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(28, 25, 23, 0.06);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(34, 197, 94, 0.45);
  box-shadow: var(--shadow-card);
}

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--stone-900);
}

.movie-poster img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.poster-type,
.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--green-600);
  font-size: 12px;
  font-weight: 900;
}

.rank-badge {
  left: auto;
  right: 12px;
  background: rgba(28, 25, 23, 0.82);
}

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

.movie-card-meta,
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--stone-500);
  font-size: 13px;
  font-weight: 700;
}

.movie-card h3 {
  margin: 9px 0 8px;
  color: var(--stone-900);
  font-size: 18px;
  line-height: 1.28;
  font-weight: 900;
}

.movie-card h3 a:hover,
.rank-item h3 a:hover {
  color: var(--green-700);
}

.movie-card p {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--stone-600);
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag {
  display: inline-flex;
  max-width: 100%;
  padding: 5px 8px;
  border-radius: 8px;
  color: var(--stone-600);
  background: var(--stone-100);
  font-size: 12px;
  font-weight: 800;
}

.movie-card-compact .movie-card-body {
  padding: 14px;
}

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

.movie-card-compact p {
  min-height: 44px;
  font-size: 14px;
}

.highlight-panel {
  max-width: 1240px;
  margin-top: 42px;
  margin-bottom: 42px;
  padding: 48px;
  border-radius: 34px;
  background: linear-gradient(135deg, var(--stone-900), #0f172a);
  box-shadow: var(--shadow-soft);
}

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

.rank-item {
  position: relative;
  display: flex;
  gap: 16px;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid rgba(231, 229, 228, 0.16);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.rank-page-list .rank-item {
  background: #ffffff;
  border-color: var(--stone-200);
}

.rank-cover {
  width: 108px;
  aspect-ratio: 2 / 3;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 16px;
  background: var(--stone-900);
}

.rank-cover img {
  height: 100%;
  object-fit: cover;
}

.rank-content {
  min-width: 0;
  flex: 1;
}

.rank-content h3 {
  margin: 5px 0 8px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
}

.rank-page-list .rank-content h3 {
  color: var(--stone-900);
}

.rank-content p {
  display: -webkit-box;
  margin: 0 0 12px;
  overflow: hidden;
  color: rgba(245, 245, 244, 0.72);
  line-height: 1.62;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.rank-page-list .rank-content p {
  color: var(--stone-600);
}

.rank-line {
  color: var(--green-500);
  font-weight: 900;
  font-size: 14px;
}

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

.page-main,
.detail-main {
  padding-top: 0;
}

.page-hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 74px 20px 44px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

.page-hero h1 {
  max-width: 860px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.04;
}

.page-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  font-size: 18px;
}

.hero-mini-links a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--stone-700);
  background: var(--stone-100);
  font-weight: 800;
}

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

.category-overview-card {
  padding: 18px;
  border: 1px solid var(--stone-200);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(28, 25, 23, 0.06);
}

.category-overview-cover {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 18px;
}

.category-overview-cover img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 14px;
}

.category-overview-card h2 {
  margin: 0 0 8px;
  color: var(--stone-900);
  font-size: 24px;
  font-weight: 900;
}

.filter-panel {
  position: sticky;
  top: 82px;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 12px;
  margin-bottom: 28px;
  padding: 14px;
  border: 1px solid rgba(231, 229, 228, 0.95);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 30px rgba(28, 25, 23, 0.07);
}

.filter-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border-radius: 16px;
  background: var(--stone-100);
}

.filter-search input,
.filter-select {
  width: 100%;
  min-height: 48px;
  border: 0;
  outline: 0;
  color: var(--stone-800);
  background: transparent;
}

.filter-select {
  padding: 0 14px;
  border-radius: 16px;
  background: var(--stone-100);
  font-weight: 700;
}

.catalog-grid {
  align-items: stretch;
}

.detail-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 20px 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 28px;
  color: var(--stone-500);
  font-size: 14px;
  font-weight: 700;
}

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

.detail-hero {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  padding: 36px;
  border-radius: 34px;
  background: linear-gradient(135deg, #ffffff, var(--amber-50));
  box-shadow: var(--shadow-card);
}

.detail-cover {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
}

.detail-cover img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.detail-info h1 {
  margin-bottom: 18px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
}

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

.detail-meta-grid span {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--stone-700);
  font-weight: 800;
}

.detail-meta-grid b {
  display: block;
  margin-bottom: 4px;
  color: var(--stone-500);
  font-size: 13px;
}

.detail-tags {
  margin-bottom: 28px;
}

.player-section {
  padding: 42px 0 0;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #000000;
  box-shadow: var(--shadow-soft);
}

.movie-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.52));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-icon {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 6px;
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.96);
  box-shadow: 0 20px 40px rgba(22, 163, 74, 0.35);
  font-size: 34px;
}

.detail-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding-left: 0;
  padding-right: 0;
}

.content-panel {
  padding: 28px;
  border: 1px solid var(--stone-200);
  border-radius: 28px;
  background: #ffffff;
}

.content-panel h2 {
  margin-bottom: 14px;
  font-size: 26px;
}

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

.site-footer {
  margin-top: 80px;
  border-top: 1px solid var(--stone-200);
  background: var(--stone-900);
  color: rgba(245, 245, 244, 0.72);
}

.site-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 42px 20px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
}

.footer-logo {
  color: #ffffff;
}

.site-footer p {
  margin: 0;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  gap: 16px;
  font-weight: 800;
}

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

.copyright {
  grid-column: 1 / -1;
  color: rgba(245, 245, 244, 0.52);
}

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

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

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

  .detail-hero {
    grid-template-columns: 260px minmax(0, 1fr);
  }
}

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

  .menu-button {
    display: inline-flex;
  }

  .mobile-nav.is-open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .hero-carousel {
    min-height: 620px;
    height: auto;
  }

  .hero-content {
    padding-top: 86px;
  }

  .hero-arrow {
    display: none;
  }

  .quick-entry,
  .section-heading,
  .page-hero {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .category-grid,
  .movie-grid,
  .compact-grid,
  .category-overview-grid,
  .rank-grid,
  .rank-page-list,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .highlight-panel {
    padding: 28px;
    border-radius: 28px;
  }

  .detail-hero {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .detail-cover {
    max-width: 320px;
  }

  .detail-content,
  .detail-meta-grid {
    grid-template-columns: 1fr;
  }

  .site-footer-inner {
    grid-template-columns: 1fr;
  }
}

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

  .site-logo {
    font-size: 19px;
  }

  .hero-content h1 {
    font-size: 40px;
  }

  .hero-content p {
    font-size: 16px;
  }

  .section-wrap {
    padding: 48px 16px;
  }

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

  .category-overview-grid,
  .rank-grid,
  .rank-page-list {
    grid-template-columns: 1fr;
  }

  .rank-item {
    gap: 12px;
  }

  .rank-cover {
    width: 92px;
  }

  .page-hero,
  .detail-main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .play-icon {
    width: 70px;
    height: 70px;
    font-size: 28px;
  }
}
