:root {
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-300: #d6d3d1;
  --stone-400: #a8a29e;
  --stone-500: #78716c;
  --stone-600: #57534e;
  --stone-700: #44403c;
  --stone-800: #292524;
  --stone-900: #1c1917;
  --stone-950: #0c0a09;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(12, 10, 9, 0.16);
  --soft-shadow: 0 10px 24px rgba(12, 10, 9, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--stone-50);
  color: var(--stone-900);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(28, 25, 23, 0.96);
  color: var(--stone-100);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--amber-400), var(--amber-600));
  color: var(--stone-950);
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.26);
}

.brand-text {
  display: grid;
  gap: 1px;
}

.brand-text strong {
  font-size: 20px;
  letter-spacing: 0.02em;
}

.brand-text small {
  color: var(--stone-400);
  font-size: 12px;
}

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

.nav-link {
  color: var(--stone-300);
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--amber-500);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--stone-100);
  font-size: 28px;
}

.hero {
  position: relative;
  min-height: 90vh;
  overflow: hidden;
  background-position: center;
  background-size: cover;
  color: #fff;
  display: flex;
  align-items: flex-end;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 30%, rgba(245, 158, 11, 0.26), transparent 30%),
    linear-gradient(180deg, rgba(12, 10, 9, 0.1) 0%, rgba(12, 10, 9, 0.55) 46%, rgba(12, 10, 9, 0.96) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
  padding: 120px 0 86px;
}

.hero-label,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--amber-500);
  color: var(--stone-950);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero h1,
.page-hero h1,
.detail-info h1 {
  margin: 18px 0 16px;
  font-size: clamp(38px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero-summary {
  max-width: 760px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2vw, 22px);
}

.hero-meta,
.detail-meta,
.movie-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--stone-300);
}

.hero-meta span,
.detail-meta span,
.movie-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.hero-meta strong,
.detail-meta strong {
  color: var(--amber-400);
  font-size: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 22px;
}

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

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

.btn-primary {
  background: var(--amber-500);
  color: var(--stone-950);
  box-shadow: 0 16px 34px rgba(245, 158, 11, 0.28);
}

.btn-primary:hover {
  background: var(--amber-400);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

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

.hero-search {
  display: flex;
  width: min(580px, 100%);
  padding: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
  padding: 0 16px;
}

.hero-search input::placeholder {
  color: rgba(255, 255, 255, 0.62);
}

.hero-search button {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  background: var(--amber-500);
  color: var(--stone-950);
  font-weight: 800;
  cursor: pointer;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.hero-chips a {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 6px 12px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(12, 10, 9, 0.22);
}

.content-section {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0;
}

.intro-panel,
.dark-panel {
  margin-top: 48px;
  padding: 34px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.intro-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(135deg, #fffbeb, #f5f5f4);
}

.intro-panel h2 {
  margin: 12px 0 8px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
}

.intro-panel p {
  margin: 0;
  color: var(--stone-600);
  max-width: 720px;
}

.dark-panel {
  width: min(1280px, calc(100% - 32px));
  background: linear-gradient(135deg, var(--stone-950), var(--stone-800));
  color: var(--stone-100);
}

.dark-panel .section-head p {
  color: var(--stone-400);
}

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

.section-head h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.15;
}

.section-head p {
  margin: 8px 0 0;
  color: var(--stone-600);
}

.section-link {
  flex-shrink: 0;
  color: var(--amber-600);
  font-weight: 800;
}

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

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

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

.dark-panel .movie-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(12, 10, 9, 0.18);
}

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

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

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

.score-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.score-badge {
  top: 12px;
  right: 12px;
  padding: 5px 9px;
  background: var(--amber-500);
  color: var(--stone-950);
}

.rank-badge {
  left: 12px;
  top: 12px;
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(12, 10, 9, 0.78);
  color: #fff;
}

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

.movie-title {
  display: -webkit-box;
  min-height: 48px;
  overflow: hidden;
  color: var(--stone-950);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.32;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.dark-panel .movie-title {
  color: #fff;
}

.movie-title:hover {
  color: var(--amber-600);
}

.movie-meta {
  gap: 6px;
  margin-top: 9px;
  font-size: 12px;
}

.movie-meta span {
  color: var(--stone-600);
  background: var(--stone-100);
}

.dark-panel .movie-meta span {
  color: var(--stone-300);
  background: rgba(255, 255, 255, 0.09);
}

.movie-desc {
  display: -webkit-box;
  min-height: 44px;
  margin: 12px 0 0;
  overflow: hidden;
  color: var(--stone-600);
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.dark-panel .movie-desc {
  color: var(--stone-300);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--amber-700);
  background: #fffbeb;
  font-size: 12px;
  font-weight: 700;
}

.large-tags span {
  min-height: 32px;
  padding: 5px 12px;
  font-size: 13px;
}

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

.compact .movie-title {
  min-height: 42px;
  font-size: 15px;
}

.compact .movie-desc {
  display: none;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, var(--stone-950), var(--stone-800));
}

.small-hero {
  min-height: 330px;
  display: flex;
  align-items: flex-end;
  padding: 92px 0 54px;
}

.small-hero > div {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.small-hero p {
  max-width: 780px;
  color: var(--stone-300);
  font-size: 18px;
}

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

.category-card {
  min-height: 260px;
  padding: 24px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.category-title {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 24px;
  font-weight: 900;
}

.category-title:hover,
.category-more:hover,
.category-preview a:hover {
  color: var(--amber-600);
}

.category-card p {
  margin: 0 0 18px;
  color: var(--stone-600);
}

.category-preview {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--stone-700);
  font-size: 14px;
}

.category-more {
  display: inline-flex;
  color: var(--amber-700);
  font-weight: 900;
}

.filter-area {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(140px, 190px));
  gap: 12px;
  margin-bottom: 24px;
  padding: 14px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--soft-shadow);
}

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

.filter-input:focus,
.filter-select:focus {
  border-color: var(--amber-500);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

.no-result {
  margin-bottom: 20px;
  padding: 16px;
  border-radius: var(--radius);
  background: #fff7ed;
  color: var(--amber-700);
  font-weight: 800;
}

.detail-hero {
  min-height: 620px;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  transform: scale(1.06);
  filter: blur(12px);
  opacity: 0.45;
}

.detail-hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(12, 10, 9, 0.32), rgba(12, 10, 9, 0.96));
}

.detail-wrap {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 110px 0 64px;
  display: grid;
  grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
  gap: 44px;
  align-items: end;
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: var(--shadow);
  background: var(--stone-900);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--stone-300);
}

.breadcrumb a:hover {
  color: var(--amber-400);
}

.detail-info h1 {
  font-size: clamp(36px, 5vw, 68px);
}

.detail-one-line {
  max-width: 820px;
  margin: 0 0 20px;
  color: var(--stone-200);
  font-size: 20px;
}

.detail-info .btn {
  margin-top: 28px;
}

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

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

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

.play-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: linear-gradient(180deg, rgba(12, 10, 9, 0.08), rgba(12, 10, 9, 0.48));
  color: #fff;
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-icon {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--amber-500);
  color: var(--stone-950);
  font-size: 34px;
  padding-left: 6px;
  box-shadow: 0 18px 42px rgba(245, 158, 11, 0.36);
}

.story-card {
  padding: 34px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.story-card h2 {
  margin: 0 0 12px;
  font-size: 28px;
}

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

.story-card p {
  margin: 0;
  color: var(--stone-700);
  font-size: 17px;
  line-height: 1.85;
}

.site-footer {
  margin-top: 56px;
  background: var(--stone-950);
  color: var(--stone-400);
}

.footer-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
}

.footer-brand {
  color: var(--stone-100);
  font-size: 18px;
  margin-bottom: 12px;
}

.footer-inner p {
  max-width: 640px;
  margin: 0;
}

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

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 16px;
  text-align: center;
  font-size: 13px;
}

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

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

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

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

  .main-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 16px 18px;
    background: rgba(28, 25, 23, 0.98);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

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

  .nav-link {
    padding: 12px 0;
  }

  .hero-content {
    padding: 110px 0 56px;
  }

  .hero {
    min-height: 82vh;
  }

  .intro-panel,
  .section-head,
  .footer-inner {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

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

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

  .detail-wrap {
    grid-template-columns: 1fr;
    padding-top: 92px;
  }

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

@media (max-width: 560px) {
  .brand-text strong {
    font-size: 17px;
  }

  .brand-text small {
    display: none;
  }

  .hero-actions,
  .hero-search {
    align-items: stretch;
    flex-direction: column;
    border-radius: 24px;
  }

  .hero-search button {
    min-height: 42px;
  }

  .content-section {
    width: min(100% - 24px, 1280px);
    padding: 42px 0;
  }

  .intro-panel,
  .dark-panel,
  .story-card {
    padding: 24px;
  }

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

  .movie-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .movie-poster {
    height: 100%;
    min-height: 160px;
  }

  .movie-title {
    min-height: auto;
  }

  .movie-desc {
    min-height: auto;
  }

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

  .play-icon {
    width: 64px;
    height: 64px;
    font-size: 26px;
  }
}
