:root {
  --amber: #d97706;
  --amber-deep: #92400e;
  --orange: #ea580c;
  --gold: #fbbf24;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #f3e7d3;
  --soft: #fff7ed;
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(146, 64, 14, 0.12);
  --shadow-strong: 0 24px 70px rgba(146, 64, 14, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #fffaf2 0%, #ffffff 32%, #fff7ed 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.65;
}

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

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

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

.nav-wrap {
  width: min(1180px, calc(100% - 32px));
  height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--amber-deep);
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 12px 28px rgba(217, 119, 6, 0.25);
}

.brand-text {
  font-size: 21px;
  background: linear-gradient(90deg, var(--amber-deep), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.site-nav a {
  padding: 9px 13px;
  border-radius: 999px;
  color: #4b5563;
  font-size: 14px;
  white-space: nowrap;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--amber-deep);
  background: #ffedd5;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #ffedd5;
  cursor: pointer;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--amber-deep);
  margin: 5px 0;
  border-radius: 99px;
}

main {
  overflow: hidden;
}

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

.hero {
  position: relative;
  min-height: 670px;
  color: #fff;
  background:
    radial-gradient(circle at 80% 20%, rgba(251, 191, 36, 0.42), transparent 28%),
    linear-gradient(135deg, #7c2d12 0%, #d97706 52%, #f59e0b 100%);
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: linear-gradient(180deg, transparent, #fffaf2);
  pointer-events: none;
}

.hero-stage {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  min-height: 670px;
  margin: 0 auto;
  display: grid;
  align-items: center;
  padding: 82px 0 120px;
}

.hero-slide {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.75fr);
  gap: 44px;
  align-items: center;
  opacity: 0;
  transform: translateY(16px) scale(0.985);
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  padding: 8px 14px;
  color: #fff7ed;
  font-weight: 700;
  font-size: 14px;
}

.eyebrow {
  color: var(--amber);
  background: #ffedd5;
}

.hero h1 {
  margin: 20px 0 18px;
  max-width: 780px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.hero h1 span {
  color: #fde68a;
}

.hero p {
  max-width: 680px;
  color: #fff7ed;
  font-size: clamp(17px, 2vw, 22px);
  margin: 0 0 26px;
}

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

.hero-tags span,
.tag-row span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.hero-tags span {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

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

.btn,
.section-link,
.play-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  min-height: 46px;
  padding: 0 22px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary {
  color: var(--amber-deep);
  background: #fff;
  box-shadow: 0 20px 45px rgba(120, 53, 15, 0.24);
}

.btn-ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.btn:hover,
.section-link:hover,
.play-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-strong);
}

.hero-poster {
  position: relative;
  z-index: 1;
  border-radius: 32px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 35px 80px rgba(92, 32, 0, 0.32);
  overflow: hidden;
}

.hero-poster::before {
  content: "";
  position: absolute;
  inset: -20%;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  filter: blur(28px) saturate(1.2);
  opacity: 0.45;
}

.hero-poster img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 24px;
}

.hero-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 58px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.hero-dots {
  display: flex;
  gap: 9px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: #fff;
}

.hero-arrows {
  display: flex;
  gap: 10px;
}

.hero-arrow {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.quick-stats {
  transform: translateY(-52px);
  position: relative;
  z-index: 5;
}

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

.stat-card,
.category-card,
.search-panel,
.movie-card,
.panel,
.player-box,
.detail-card {
  border: 1px solid rgba(217, 119, 6, 0.12);
  background: rgba(255, 255, 255, 0.88);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.stat-card {
  padding: 22px;
  text-align: center;
  backdrop-filter: blur(12px);
}

.stat-card strong {
  display: block;
  font-size: 30px;
  line-height: 1.15;
  color: var(--amber-deep);
}

.stat-card span {
  color: var(--muted);
  font-size: 14px;
}

.section {
  padding: 54px 0;
}

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

.section-head h2 {
  margin: 12px 0 8px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.14;
  letter-spacing: -0.04em;
}

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

.section-link {
  color: var(--amber-deep);
  background: #ffedd5;
  flex: 0 0 auto;
}

.search-panel {
  padding: 18px;
  margin-bottom: 26px;
}

.search-panel label {
  display: grid;
  gap: 8px;
  color: var(--amber-deep);
  font-weight: 800;
}

.movie-search {
  width: 100%;
  min-height: 48px;
  border: 1px solid #fed7aa;
  border-radius: 16px;
  padding: 0 16px;
  color: var(--ink);
  outline: none;
  background: #fff;
  font-size: 15px;
}

.movie-search:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.2);
}

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

.movie-card {
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #fef3c7, #fdba74);
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.58));
}

.play-mini,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
}

.play-mini {
  right: 12px;
  bottom: 12px;
  min-height: 34px;
  padding: 0 13px;
  color: #fff;
  background: rgba(217, 119, 6, 0.94);
}

.rank-badge {
  left: 12px;
  top: 12px;
  min-width: 34px;
  height: 34px;
  color: var(--amber-deep);
  background: #fff;
}

.movie-info {
  padding: 15px;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--amber);
  font-size: 12px;
  font-weight: 800;
}

.movie-info h3 {
  margin: 8px 0 7px;
  font-size: 18px;
  line-height: 1.35;
}

.movie-info h3 a:hover {
  color: var(--amber);
}

.movie-info p {
  min-height: 48px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
}

.tag-row span,
.detail-tags span {
  color: var(--amber-deep);
  background: #ffedd5;
}

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

.category-card {
  position: relative;
  min-height: 190px;
  padding: 22px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card::before {
  content: "";
  position: absolute;
  inset: auto -50px -80px auto;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.32), transparent 62%);
}

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

.category-card h3 {
  margin: 0 0 9px;
  font-size: 24px;
  color: var(--amber-deep);
}

.category-card p {
  position: relative;
  margin: 0 0 18px;
  color: var(--muted);
}

.category-card span {
  position: relative;
  color: var(--amber);
  font-weight: 900;
}

.banner-panel {
  border-radius: 32px;
  padding: clamp(26px, 5vw, 54px);
  color: #fff;
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.34), transparent 24%),
    linear-gradient(135deg, #92400e, #d97706 48%, #f59e0b);
  box-shadow: var(--shadow-strong);
}

.banner-panel h2 {
  margin: 0 0 12px;
  max-width: 760px;
  font-size: clamp(30px, 5vw, 52px);
  letter-spacing: -0.04em;
}

.banner-panel p {
  max-width: 720px;
  color: #fff7ed;
  margin: 0 0 24px;
}

.page-hero {
  padding: 58px 0 26px;
  background: linear-gradient(180deg, #fff7ed, #fff);
}

.page-hero h1 {
  margin: 10px 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.12;
  letter-spacing: -0.05em;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 18px;
}

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

.detail-hero {
  padding: 36px 0 56px;
  background:
    radial-gradient(circle at 12% 0%, rgba(251, 191, 36, 0.28), transparent 28%),
    linear-gradient(180deg, #fff7ed, #fff);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 28px;
  align-items: start;
}

.player-box {
  position: relative;
  overflow: hidden;
  background: #111827;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.18), rgba(17, 24, 39, 0.62));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-button {
  min-height: 58px;
  padding: 0 28px;
  color: var(--amber-deep);
  background: #fff;
  font-size: 18px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.detail-card {
  padding: 24px;
}

.detail-card h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.16;
  letter-spacing: -0.04em;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 18px;
  color: var(--amber);
  font-weight: 900;
}

.detail-card p {
  color: var(--muted);
  margin: 14px 0 0;
}

.panel {
  padding: 26px;
}

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

.panel p {
  color: #374151;
  margin: 0 0 16px;
}

.related-strip {
  margin-top: 26px;
}

.site-footer {
  margin-top: 62px;
  background: linear-gradient(180deg, #fff7ed, #f3f4f6);
  border-top: 1px solid rgba(217, 119, 6, 0.12);
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1.4fr 0.8fr;
  gap: 34px;
  padding: 44px 0;
}

.site-footer p {
  color: var(--muted);
  margin: 12px 0 0;
}

.site-footer h3 {
  margin: 0 0 12px;
  color: var(--amber-deep);
}

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

.footer-links a {
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--amber-deep);
  background: #ffedd5;
  font-size: 14px;
  font-weight: 800;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  color: var(--muted);
  border-top: 1px solid rgba(217, 119, 6, 0.12);
  font-size: 14px;
}

.is-filtered-out {
  display: none !important;
}

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

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

@media (max-width: 860px) {
  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    left: 16px;
    right: 16px;
    top: 82px;
    max-height: calc(100vh - 100px);
    padding: 14px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-strong);
    display: none;
    flex-direction: column;
    align-items: stretch;
    overflow-y: auto;
  }

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

  .site-nav a {
    padding: 12px 14px;
  }

  .hero-stage {
    padding-top: 46px;
  }

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

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

  .stat-grid,
  .footer-grid,
  .detail-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 620px) {
  .nav-wrap {
    height: 66px;
  }

  .brand-text {
    font-size: 18px;
  }

  .hero,
  .hero-stage {
    min-height: 760px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-controls {
    bottom: 38px;
  }

  .quick-stats {
    transform: translateY(-30px);
  }

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

  .movie-info {
    padding: 12px;
  }

  .movie-info p {
    display: none;
  }

  .category-card {
    min-height: 170px;
  }
}

@media (max-width: 420px) {
  .movie-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }
}
