:root {
  --bg: #fff7ed;
  --surface: #ffffff;
  --surface-soft: #fffbeb;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #fde68a;
  --primary: #d97706;
  --primary-dark: #b45309;
  --accent: #ef4444;
  --shadow: 0 18px 45px rgba(120, 53, 15, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top left, #fff1c2 0, transparent 36rem), var(--bg);
  line-height: 1.65;
}

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.92);
  border-bottom: 1px solid rgba(251, 191, 36, 0.45);
  backdrop-filter: blur(16px);
}

.nav-shell {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #92400e;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.2rem;
}

.logo-mark {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.34);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #4b5563;
  font-weight: 600;
}

.nav-link {
  position: relative;
  padding: 8px 0;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--primary-dark);
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f59e0b, #ef4444);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #fffbeb;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #92400e;
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 10px 24px 18px;
}

.mobile-menu.is-open {
  display: grid;
  gap: 8px;
}

.mobile-menu .nav-link {
  display: block;
  padding: 10px 0;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  background: #221307;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 700ms ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  filter: blur(1px) saturate(1.1);
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 24%, rgba(245, 158, 11, 0.3), transparent 24rem),
    linear-gradient(90deg, rgba(17, 10, 3, 0.94), rgba(17, 10, 3, 0.62) 54%, rgba(17, 10, 3, 0.86));
}

.hero-inner {
  position: relative;
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 54px;
  align-items: center;
  color: white;
  padding: 86px 0 76px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fde68a;
  font-weight: 700;
}

.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1.04;
  letter-spacing: -0.06em;
  max-width: 780px;
}

.hero-copy p {
  color: rgba(255, 255, 255, 0.84);
  max-width: 760px;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button-primary {
  color: #7c2d12;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  box-shadow: 0 16px 30px rgba(245, 158, 11, 0.34);
}

.button-ghost {
  color: white;
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.1);
}

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

.hero-poster {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(135deg, rgba(253, 230, 138, 0.32), rgba(239, 68, 68, 0.24));
}

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

.hero-poster-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(17, 10, 3, 0.72);
  color: white;
  backdrop-filter: blur(12px);
}

.hero-poster-caption strong {
  display: block;
  font-size: 1.05rem;
}

.hero-poster-caption span {
  color: #fde68a;
  font-size: 0.9rem;
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 8;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: rgba(255, 255, 255, 0.14);
  cursor: pointer;
  transform: translateY(-50%);
}

.hero-control:hover {
  background: rgba(255, 255, 255, 0.25);
}

.hero-control.prev {
  left: 22px;
}

.hero-control.next {
  right: 22px;
}

.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 30px;
  z-index: 8;
  display: flex;
  justify-content: center;
  gap: 10px;
}

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

.hero-dot.is-active {
  background: #f59e0b;
}

.page-hero {
  padding: 70px 0 36px;
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: -0.04em;
  color: #78350f;
}

.page-hero p {
  margin: 0;
  max-width: 780px;
  color: var(--muted);
  font-size: 1.05rem;
}

.section {
  padding: 58px 0;
}

.section-tight {
  padding: 34px 0;
}

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

.section-head h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: #78350f;
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 6px 0 0;
  color: var(--muted);
}

.section-more {
  color: var(--primary-dark);
  font-weight: 800;
}

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

.movie-card {
  background: linear-gradient(180deg, #ffffff, #fffbeb);
  border: 1px solid rgba(251, 191, 36, 0.5);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(120, 53, 15, 0.09);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

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

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(253, 230, 138, 0.35), rgba(239, 68, 68, 0.2));
}

.poster-link img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 260ms ease;
}

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

.poster-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #7c2d12;
  background: #fde68a;
  font-size: 0.82rem;
  font-weight: 800;
}

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

.movie-title {
  display: block;
  color: #1f2937;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.35;
}

.movie-title:hover {
  color: var(--primary-dark);
}

.movie-meta {
  margin: 8px 0;
  color: #b45309;
  font-size: 0.9rem;
  font-weight: 700;
}

.movie-intro {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.93rem;
}

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

.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  color: #92400e;
  background: #fef3c7;
  font-size: 0.78rem;
  font-weight: 700;
}

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

.category-card {
  padding: 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(251, 191, 36, 0.45);
  box-shadow: 0 12px 24px rgba(120, 53, 15, 0.08);
}

.category-title {
  display: inline-flex;
  margin-bottom: 8px;
  color: #92400e;
  font-size: 1.12rem;
  font-weight: 900;
}

.category-card p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.95rem;
}

.category-samples {
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--primary-dark);
}

.rank-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 48px 76px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(251, 191, 36, 0.45);
}

.rank-number {
  color: #ef4444;
  font-size: 1.2rem;
  font-weight: 900;
  text-align: center;
}

.rank-thumb img {
  width: 76px;
  height: 100px;
  border-radius: 14px;
  object-fit: cover;
  background: #fef3c7;
}

.rank-content a {
  color: #1f2937;
  font-weight: 900;
}

.rank-content p {
  margin: 6px 0 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.search-panel {
  display: grid;
  gap: 16px;
  margin: 22px 0 30px;
  padding: 18px;
  border: 1px solid rgba(251, 191, 36, 0.45);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 30px rgba(120, 53, 15, 0.08);
}

.search-panel input {
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid #fcd34d;
  border-radius: 999px;
  background: #fff;
  outline: none;
  color: #1f2937;
  font-size: 1rem;
}

.search-panel input:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

.filter-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chip {
  border: 1px solid rgba(245, 158, 11, 0.45);
  border-radius: 999px;
  background: #fff;
  color: #92400e;
  padding: 8px 14px;
  cursor: pointer;
  font-weight: 800;
}

.filter-chip.is-active,
.filter-chip:hover {
  color: #7c2d12;
  background: #fde68a;
}

.detail-hero {
  padding: 58px 0;
  background: linear-gradient(135deg, #fff7ed, #fffbeb 60%, #fee2e2);
  border-bottom: 1px solid rgba(251, 191, 36, 0.45);
}

.detail-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.detail-poster {
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fef3c7;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #b45309;
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.detail-copy h1 {
  margin: 0 0 16px;
  color: #78350f;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

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

.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  color: #7c2d12;
  background: #fde68a;
  font-weight: 800;
}

.detail-copy p {
  color: #4b5563;
  font-size: 1.05rem;
}

.player-section {
  padding: 50px 0 30px;
}

.video-player {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #120a03;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

.video-player video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  cursor: pointer;
}

.play-cover {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: white;
  background: linear-gradient(135deg, rgba(17, 10, 3, 0.38), rgba(17, 10, 3, 0.78));
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 900;
}

.video-player.is-playing .play-cover {
  display: none;
}

.play-icon {
  width: 78px;
  height: 78px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #7c2d12;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  box-shadow: 0 18px 40px rgba(245, 158, 11, 0.36);
  font-size: 2rem;
  padding-left: 4px;
}

.content-card {
  padding: 28px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(251, 191, 36, 0.45);
  box-shadow: 0 14px 30px rgba(120, 53, 15, 0.08);
}

.content-card h2 {
  margin: 0 0 14px;
  color: #78350f;
}

.content-card p {
  color: #4b5563;
  margin: 0 0 16px;
}

.site-footer {
  margin-top: 50px;
  padding: 46px 0;
  color: #6b7280;
  background: #fff;
  border-top: 1px solid rgba(251, 191, 36, 0.45);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

.footer-logo {
  margin-bottom: 12px;
}

.footer-grid p {
  max-width: 620px;
  margin: 0;
}

.footer-links {
  display: grid;
  gap: 8px;
  min-width: 180px;
  color: #92400e;
  font-weight: 800;
}

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

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

  .hero-inner {
    grid-template-columns: 1fr 280px;
  }

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

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

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

  .hero {
    min-height: auto;
  }

  .hero-inner {
    min-height: 720px;
    grid-template-columns: 1fr;
    padding: 66px 0 90px;
  }

  .hero-poster {
    max-width: 260px;
  }

  .hero-control {
    display: none;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

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

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

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

  .footer-grid {
    flex-direction: column;
  }
}

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

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

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

  .rank-thumb img {
    width: 68px;
    height: 92px;
  }
}
