:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --amber-800: #92400e;
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-500: #78716c;
  --stone-600: #57534e;
  --stone-700: #44403c;
  --stone-800: #292524;
  --stone-900: #1c1917;
  --white: #ffffff;
  --shadow-soft: 0 20px 55px rgba(68, 64, 60, 0.12);
  --shadow-card: 0 12px 30px rgba(68, 64, 60, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, var(--amber-50), var(--stone-50) 26%, var(--white));
  color: var(--stone-800);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 251, 235, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(217, 119, 6, 0.16);
}

.header-inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--amber-800));
  box-shadow: 0 12px 26px rgba(217, 119, 6, 0.28);
}

.logo-text {
  font-size: 20px;
}

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

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

.nav-link:hover,
.nav-link.active {
  color: var(--amber-700);
  background: rgba(245, 158, 11, 0.12);
}

.mobile-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.mobile-menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--stone-800);
  border-radius: 99px;
}

.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 720px;
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 86px 20px 70px;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.34) 0, rgba(255, 255, 255, 0.14) 2px, transparent 3px);
  background-size: 42px 42px;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1220px;
  margin: 0 auto;
}

.hero-label,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 800;
}

.eyebrow {
  background: rgba(217, 119, 6, 0.12);
  color: var(--amber-700);
}

.label-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  color: var(--amber-700);
  background: var(--white);
  font-size: 12px;
}

.hero-inner > h1 {
  max-width: 880px;
  margin: 22px 0 18px;
  font-size: clamp(46px, 8vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.07em;
  font-weight: 950;
}

.hero-lead {
  max-width: 730px;
  margin: 0 0 30px;
  font-size: clamp(18px, 2.3vw, 25px);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.88);
}

.hero-shortcuts,
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

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

.primary-button {
  color: var(--amber-700);
  background: var(--white);
  box-shadow: 0 16px 34px rgba(68, 64, 60, 0.2);
}

.ghost-button {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
}

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

.hero-slider {
  position: relative;
  margin-top: 46px;
  min-height: 360px;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 34px;
  align-items: stretch;
  padding: 28px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(20px);
  box-shadow: 0 22px 55px rgba(68, 64, 60, 0.22);
}

.hero-slide.is-active {
  display: grid;
  animation: fadeRise 0.5s ease both;
}

.hero-copy h2 {
  margin: 14px 0;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.04em;
}

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

.hero-kicker {
  font-weight: 900;
  color: rgba(255, 255, 255, 0.78);
}

.hero-tags,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.17);
  font-size: 13px;
  font-weight: 800;
}

.tag-list span {
  color: var(--amber-700);
  background: var(--amber-100);
}

.hero-actions {
  margin-top: 22px;
}

.hero-poster {
  overflow: hidden;
  border-radius: 22px;
  aspect-ratio: 3 / 4;
  box-shadow: 0 18px 42px rgba(28, 25, 23, 0.28);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-dots {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

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

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 680px;
  margin-top: 34px;
}

.hero-stats div {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
}

.hero-stats strong {
  display: block;
  font-size: 28px;
  line-height: 1;
}

.hero-stats span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

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

.muted-section {
  max-width: none;
  background: var(--stone-100);
}

.muted-section > * {
  max-width: 1220px;
  margin-left: auto;
  margin-right: auto;
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading h2,
.section-heading h3 {
  margin: 0 0 8px;
  color: var(--stone-900);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-weight: 950;
}

.section-heading p {
  margin: 0;
  color: var(--stone-600);
  line-height: 1.75;
}

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

.split-heading a {
  color: var(--amber-700);
  font-weight: 900;
}

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

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

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

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

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, var(--amber-100), var(--stone-200));
}

.poster-link img,
.detail-poster img,
.rank-poster img,
.category-posters img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.poster-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  max-width: calc(100% - 20px);
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(180, 83, 9, 0.92);
  font-size: 12px;
  font-weight: 900;
}

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

.movie-card-title {
  min-height: 44px;
  margin: 0 0 8px;
  color: var(--stone-900);
  font-size: 16px;
  line-height: 1.35;
  font-weight: 900;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card-title a:hover {
  color: var(--amber-700);
}

.movie-card-meta,
.movie-card-line {
  margin: 0 0 10px;
  color: var(--stone-500);
  font-size: 13px;
  line-height: 1.55;
}

.movie-card-line {
  color: var(--stone-600);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.category-tile,
.category-card-link {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile {
  padding: 24px;
  min-height: 150px;
}

.category-tile:hover,
.category-card-link:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.category-tile span,
.category-card-body h2 {
  display: block;
  margin-bottom: 10px;
  color: var(--stone-900);
  font-size: 22px;
  font-weight: 950;
}

.category-tile p,
.category-card-body p {
  margin: 0;
  color: var(--stone-600);
  line-height: 1.7;
}

.category-posters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  height: 130px;
  background: var(--amber-100);
}

.category-card-body {
  padding: 22px;
}

.category-card-body span {
  display: inline-flex;
  margin-top: 18px;
  color: var(--amber-700);
  font-weight: 900;
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 54px 72px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.rank-number {
  font-size: 24px;
  font-weight: 950;
  color: var(--amber-700);
  text-align: center;
}

.rank-poster {
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 3 / 4;
  background: var(--amber-100);
}

.rank-copy h3 {
  margin: 0 0 6px;
  color: var(--stone-900);
  font-size: 16px;
  line-height: 1.35;
  font-weight: 900;
}

.rank-copy p {
  margin: 0 0 6px;
  color: var(--stone-500);
  font-size: 13px;
  line-height: 1.45;
}

.rank-copy strong {
  color: var(--amber-700);
}

.home-category-list {
  display: grid;
  gap: 42px;
}

.home-category-block {
  padding: 26px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow-card);
}

.page-main,
.detail-main {
  min-height: 60vh;
}

.page-hero {
  padding: 82px 20px;
  background: linear-gradient(135deg, var(--amber-700), var(--amber-500), var(--amber-800));
  color: var(--white);
}

.compact-page-hero {
  padding: 76px 20px 62px;
}

.page-hero-inner {
  max-width: 1220px;
  margin: 0 auto;
}

.page-hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(42px, 7vw, 74px);
  line-height: 0.98;
  letter-spacing: -0.06em;
  font-weight: 950;
}

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

.filter-bar,
.search-box {
  display: grid;
  grid-template-columns: 1fr 210px;
  gap: 14px;
  margin-bottom: 28px;
}

.filter-bar input,
.filter-bar select,
.search-box input,
.search-box button {
  width: 100%;
  height: 52px;
  border: 1px solid var(--stone-200);
  border-radius: 16px;
  padding: 0 16px;
  background: var(--white);
  color: var(--stone-800);
  outline: none;
}

.search-box button {
  color: var(--white);
  background: var(--amber-700);
  border-color: var(--amber-700);
  font-weight: 900;
}

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

.search-result-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  padding: 12px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.search-result-card img {
  width: 92px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 14px;
  background: var(--amber-100);
}

.search-result-card h2 {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 950;
}

.search-result-card p {
  margin: 0 0 8px;
  color: var(--stone-600);
  font-size: 13px;
  line-height: 1.55;
}

.breadcrumb {
  max-width: 1220px;
  margin: 24px auto 0;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--stone-500);
  font-size: 14px;
}

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

.detail-hero {
  max-width: 1220px;
  margin: 24px auto 0;
  padding: 34px 20px 48px;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: var(--radius-xl);
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, var(--amber-100), var(--stone-200));
  box-shadow: var(--shadow-soft);
}

.detail-copy h1 {
  margin: 18px 0;
  color: var(--stone-900);
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1;
  letter-spacing: -0.06em;
  font-weight: 950;
}

.detail-line {
  max-width: 780px;
  margin: 0 0 20px;
  color: var(--stone-700);
  font-size: 20px;
  line-height: 1.75;
}

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

.detail-meta span {
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--stone-700);
  background: var(--stone-100);
  font-weight: 800;
}

.large-tags span {
  min-height: 34px;
  padding: 0 13px;
}

.watch-section {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px 62px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--stone-900);
  box-shadow: 0 28px 80px rgba(28, 25, 23, 0.25);
  aspect-ratio: 16 / 9;
}

.movie-video {
  width: 100%;
  height: 100%;
  background: var(--stone-900);
}

.play-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: var(--white);
  background: radial-gradient(circle at center, rgba(28, 25, 23, 0.12), rgba(28, 25, 23, 0.62));
  font-weight: 950;
  font-size: 18px;
  pointer-events: auto;
}

.play-cover.is-hidden {
  display: none;
}

.play-icon {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--amber-700);
  background: var(--white);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.detail-content {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px 38px;
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 22px;
}

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

.content-card h2 {
  margin: 0 0 14px;
  color: var(--stone-900);
  font-size: 26px;
  font-weight: 950;
}

.content-card p {
  margin: 0;
  color: var(--stone-700);
  line-height: 1.9;
}

.detail-related {
  padding-top: 28px;
}

.sitemap-wrap {
  display: grid;
  gap: 28px;
}

.sitemap-group {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.sitemap-group h2 {
  margin: 0 0 18px;
  color: var(--stone-900);
  font-size: 22px;
  font-weight: 950;
}

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

.sitemap-links a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--stone-50);
  color: var(--stone-800);
  font-weight: 800;
}

.sitemap-links a:hover {
  color: var(--amber-700);
  background: var(--amber-50);
}

.sitemap-links span {
  color: var(--stone-500);
  font-size: 12px;
  font-weight: 600;
}

.site-footer {
  margin-top: 30px;
  background: var(--stone-900);
  color: rgba(255, 255, 255, 0.78);
}

.footer-inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 46px 20px;
  display: grid;
  gap: 16px;
}

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

.footer-inner p {
  max-width: 680px;
  margin: 0;
  line-height: 1.75;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 800;
}

@keyframes fadeRise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

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

@media (max-width: 820px) {
  .mobile-menu-button {
    display: block;
  }

  .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 74px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 20px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
  }

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

  .nav-link {
    border-radius: 14px;
  }

  .hero-section {
    min-height: auto;
    padding-top: 62px;
  }

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

  .hero-poster,
  .detail-poster {
    max-width: 320px;
  }

  .hero-stats,
  .rank-grid,
  .rank-list,
  .filter-bar,
  .search-box {
    grid-template-columns: 1fr;
  }

  .movie-grid,
  .compact-grid,
  .category-grid,
  .category-card-grid,
  .search-results,
  .sitemap-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split-heading {
    display: block;
  }

  .split-heading a {
    display: inline-flex;
    margin-top: 12px;
  }
}

@media (max-width: 520px) {
  .header-inner {
    padding-inline: 14px;
  }

  .logo-text {
    font-size: 17px;
  }

  .hero-inner > h1,
  .page-hero h1,
  .detail-copy h1 {
    letter-spacing: -0.04em;
  }

  .movie-grid,
  .compact-grid,
  .category-grid,
  .category-card-grid,
  .search-results,
  .sitemap-links {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: 44px 66px minmax(0, 1fr);
  }

  .section-wrap,
  .watch-section,
  .detail-content {
    padding-inline: 14px;
  }

  .hero-slide {
    padding: 20px;
  }
}
