:root {
  --primary-50: #fef7ee;
  --primary-100: #fdecd3;
  --primary-500: #f07315;
  --primary-600: #e1590b;
  --accent-500: #d9804f;
  --secondary-500: #0fcaaa;
  --neutral-50: #fafaf9;
  --neutral-100: #f5f5f4;
  --neutral-200: #e7e5e4;
  --neutral-500: #78716c;
  --neutral-700: #44403c;
  --neutral-800: #292524;
  --neutral-900: #1c1917;
  --white: #ffffff;
  --shadow-sm: 0 8px 24px rgba(41, 37, 36, 0.08);
  --shadow-md: 0 18px 55px rgba(41, 37, 36, 0.14);
  --radius-lg: 18px;
  --radius-xl: 26px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--neutral-800);
  background: linear-gradient(180deg, #ffffff 0%, var(--neutral-50) 36%, #ffffff 100%);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(231, 229, 228, 0.85);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 28px rgba(41, 37, 36, 0.06);
}

.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--white);
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
  box-shadow: 0 10px 25px rgba(240, 115, 21, 0.26);
}

.brand-name {
  color: var(--neutral-900);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

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

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

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.filter-controls input,
.filter-controls select {
  min-height: 42px;
  border: 1px solid var(--neutral-200);
  border-radius: 12px;
  padding: 0 14px;
  color: var(--neutral-800);
  background: var(--white);
  outline: none;
}

.header-search input:focus,
.filter-controls input:focus,
.filter-controls select:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 4px rgba(240, 115, 21, 0.12);
}

.header-search button,
.btn-primary,
.btn-secondary,
.player-button {
  min-height: 42px;
  border: 0;
  border-radius: 12px;
  padding: 0 18px;
  color: var(--white);
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
  box-shadow: 0 12px 30px rgba(240, 115, 21, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-search button:hover,
.btn-primary:hover,
.btn-secondary:hover,
.player-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(240, 115, 21, 0.28);
}

.btn-secondary {
  color: var(--neutral-900);
  background: var(--white);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45), 0 12px 30px rgba(28, 25, 23, 0.1);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--neutral-200);
  border-radius: 12px;
  background: var(--white);
  color: var(--neutral-800);
  font-size: 22px;
}

.mobile-panel {
  display: none;
  padding: 10px 20px 18px;
  border-top: 1px solid var(--neutral-200);
}

.mobile-panel.open {
  display: grid;
  gap: 10px;
}

.mobile-panel a {
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--neutral-50);
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: radial-gradient(circle at 10% 10%, rgba(240, 115, 21, 0.26), transparent 26%),
              radial-gradient(circle at 80% 0%, rgba(15, 202, 170, 0.18), transparent 26%),
              linear-gradient(135deg, #1c1917, #292524 42%, #3d2418 100%);
  color: var(--white);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent 88%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  min-height: 620px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 42px;
  padding: 66px 0;
}

.hero-copy {
  max-width: 680px;
}

.section-kicker,
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--primary-600);
  font-weight: 900;
  letter-spacing: 0.05em;
}

.hero-kicker {
  color: #fed7aa;
}

.hero-title {
  margin: 0;
  font-size: clamp(38px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-desc {
  margin: 22px 0 0;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-tags span,
.tag-row span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--primary-600);
  background: var(--primary-50);
  font-size: 12px;
  font-weight: 800;
}

.hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-stage {
  position: relative;
  min-height: 500px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: end;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(20px) scale(0.97);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.hero-slide.poster-fallback {
  background: linear-gradient(135deg, rgba(240, 115, 21, 0.55), rgba(217, 128, 79, 0.2));
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.88), rgba(0,0,0,0.25), rgba(0,0,0,0.05));
}

.hero-slide-content {
  position: relative;
  z-index: 1;
  padding: 34px;
}

.hero-slide h2 {
  margin: 0 0 12px;
  font-size: 32px;
  line-height: 1.15;
}

.hero-slide p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.78);
}

.hero-dots {
  position: absolute;
  z-index: 3;
  left: 34px;
  bottom: 22px;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
}

.hero-dot.active {
  width: 30px;
  background: var(--primary-500);
}

.section {
  padding: 72px 0;
}

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

.section h1,
.section h2,
.page-title {
  margin: 0;
  color: var(--neutral-900);
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-lead,
.page-lead {
  max-width: 760px;
  color: var(--neutral-500);
  font-size: 16px;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary-100);
  box-shadow: var(--shadow-md);
}

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

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

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

.poster-fallback::before {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(240, 115, 21, 0.26);
  border-radius: 18px;
  background: radial-gradient(circle at 30% 30%, rgba(240, 115, 21, 0.3), transparent 32%),
              linear-gradient(135deg, rgba(240, 115, 21, 0.16), rgba(217, 128, 79, 0.08));
}

.poster-year,
.rank-badge {
  position: absolute;
  z-index: 2;
  right: 12px;
  top: 12px;
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--white);
  background: rgba(28, 25, 23, 0.7);
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(8px);
}

.rank-badge {
  left: 12px;
  right: auto;
  background: var(--primary-500);
}

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

.movie-meta-line {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--neutral-500);
  font-size: 12px;
  font-weight: 700;
}

.movie-meta-line a {
  color: var(--primary-600);
}

.movie-card h3 {
  margin: 10px 0 8px;
  color: var(--neutral-900);
  font-size: 18px;
  line-height: 1.25;
}

.movie-card p {
  margin: 0;
  min-height: 45px;
  color: var(--neutral-500);
  font-size: 14px;
}

.tag-row,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

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

.category-card {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-lg);
  padding: 22px;
  background: linear-gradient(180deg, #ffffff, var(--primary-50));
  box-shadow: var(--shadow-sm);
}

.category-card h3 {
  margin: 0 0 10px;
  color: var(--neutral-900);
  font-size: 22px;
}

.category-card p {
  margin: 0;
  color: var(--neutral-500);
}

.category-card strong {
  color: var(--primary-600);
}

.filter-panel {
  margin: 32px 0;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-xl);
  padding: 24px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.filter-controls {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 12px;
  margin-top: 18px;
}

.filter-count {
  margin: 14px 0 0;
  color: var(--neutral-500);
  font-size: 14px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 56px 82px 1fr auto;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--neutral-200);
  border-radius: 18px;
  padding: 12px 16px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.rank-number {
  color: var(--primary-600);
  font-size: 28px;
  font-weight: 900;
}

.rank-row img {
  width: 82px;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  object-fit: cover;
  background: var(--primary-50);
}

.rank-row h3 {
  margin: 0 0 6px;
}

.rank-row p {
  margin: 0;
  color: var(--neutral-500);
}

.rank-score {
  color: var(--primary-600);
  font-size: 18px;
  font-weight: 900;
}

.breadcrumb {
  padding: 26px 0 0;
  color: var(--neutral-500);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--primary-600);
  font-weight: 800;
}

.detail-hero {
  padding: 42px 0 64px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 34px;
  align-items: start;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  background: var(--primary-50);
  box-shadow: var(--shadow-md);
}

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

.detail-title {
  margin: 0;
  color: var(--neutral-900);
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

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

.detail-meta span {
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--neutral-700);
  background: var(--neutral-100);
  font-size: 14px;
  font-weight: 800;
}

.detail-lead {
  max-width: 780px;
  color: var(--neutral-700);
  font-size: 20px;
}

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

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

.movie-video {
  width: 100%;
  min-height: 420px;
  display: block;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0.2));
  cursor: pointer;
}

.player-cover.hidden {
  display: none;
}

.player-cover-inner {
  text-align: center;
}

.play-circle {
  width: 86px;
  height: 86px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
  box-shadow: 0 20px 55px rgba(240, 115, 21, 0.45);
  font-size: 34px;
}

.player-status {
  position: absolute;
  left: 22px;
  bottom: 16px;
  z-index: 3;
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
}

.article-content {
  display: grid;
  gap: 24px;
}

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

.content-card h2 {
  margin: 0 0 12px;
  color: var(--neutral-900);
}

.content-card p {
  margin: 0;
  color: var(--neutral-700);
}

.site-footer {
  color: #d6d3d1;
  background: var(--neutral-800);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1fr;
  gap: 34px;
  padding: 48px 0;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: var(--white);
}

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

.site-footer li {
  margin: 8px 0;
}

.site-footer a:hover {
  color: #fed7aa;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px;
  color: #a8a29e;
  text-align: center;
}

.empty-result {
  display: none;
  margin: 26px 0 0;
  border: 1px dashed var(--neutral-200);
  border-radius: 18px;
  padding: 28px;
  color: var(--neutral-500);
  text-align: center;
  background: var(--white);
}

.empty-result.show {
  display: block;
}

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

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

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

  .hero-stage {
    min-height: 460px;
  }
}

@media (max-width: 820px) {
  .main-nav,
  .header-search {
    display: none;
  }

  .mobile-menu-button {
    display: inline-grid;
    place-items: center;
    margin-left: auto;
  }

  .hero,
  .hero-inner {
    min-height: auto;
  }

  .hero-inner {
    padding: 44px 0;
  }

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

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

  .rank-row {
    grid-template-columns: 46px 70px 1fr;
  }

  .rank-score {
    grid-column: 3;
  }

  .movie-video {
    min-height: 260px;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

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

  .hero-title {
    font-size: 40px;
  }

  .hero-stage {
    min-height: 390px;
  }

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

  .section {
    padding: 50px 0;
  }
}
