* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #1f2937;
  background: linear-gradient(180deg, #fffbeb 0%, #fff7ed 45%, #fffbeb 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(251, 191, 36, 0.22);
  background: rgba(255, 251, 235, 0.88);
  backdrop-filter: blur(18px);
  box-shadow: 0 6px 26px rgba(146, 64, 14, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: #111827;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 14px 28px rgba(234, 88, 12, 0.25);
}

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

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

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: #4b5563;
  font-weight: 650;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #92400e;
  background: rgba(251, 191, 36, 0.18);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(251, 191, 36, 0.2);
}

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: #92400e;
}

.mobile-panel {
  display: none;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 0 16px 16px;
}

.mobile-panel a {
  padding: 10px;
  border-radius: 12px;
  text-align: center;
  font-weight: 700;
  color: #92400e;
  background: rgba(251, 191, 36, 0.16);
}

.mobile-panel.open {
  display: grid;
}

.hero {
  position: relative;
  min-height: 520px;
  height: 70vh;
  overflow: hidden;
  color: #fff;
  background: #111827;
}

.hero-track,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.84) 0%, rgba(0, 0, 0, 0.56) 46%, rgba(0, 0, 0, 0.12) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: 100%;
}

.hero-copy {
  max-width: 720px;
  padding: 72px 0;
}

.hero-badge,
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  background: rgba(245, 158, 11, 0.92);
  box-shadow: 0 14px 30px rgba(245, 158, 11, 0.25);
}

.hero h1 {
  margin: 18px 0 18px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 650px;
  margin: 0 0 26px;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.7;
  color: #e5e7eb;
}

.hero-meta,
.meta-row,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.meta-chip,
.tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: #78350f;
  background: #fef3c7;
}

.hero .meta-chip {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

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

.btn,
.btn-secondary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 0;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn {
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 16px 30px rgba(234, 88, 12, 0.25);
}

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

.btn-secondary {
  color: #92400e;
  background: #fff;
}

.btn-ghost {
  color: #92400e;
  background: rgba(251, 191, 36, 0.18);
}

.hero-dots {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 30px;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

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

.hero-dot.active {
  width: 32px;
  background: #f59e0b;
}

.section {
  padding: 66px 0;
}

.section.white {
  background: #fff;
}

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

.section-title {
  margin: 12px 0 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  color: #111827;
}

.section-desc {
  max-width: 760px;
  margin: 10px 0 0;
  color: #6b7280;
  line-height: 1.75;
}

.grid {
  display: grid;
  gap: 22px;
}

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

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

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

.movie-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(251, 191, 36, 0.22);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 24px rgba(146, 64, 14, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 158, 11, 0.46);
  box-shadow: 0 24px 48px rgba(146, 64, 14, 0.16);
}

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #111827;
}

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

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

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

.card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: rgba(245, 158, 11, 0.92);
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
}

.card-title {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  font-size: 17px;
  font-weight: 850;
  color: #111827;
}

.card-meta {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  font-size: 13px;
  color: #d97706;
}

.card-desc {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 14px;
  line-height: 1.65;
  color: #6b7280;
}

.movie-card.horizontal {
  flex-direction: row;
  align-items: stretch;
}

.movie-card.horizontal .poster-frame {
  width: 38%;
  min-width: 130px;
  aspect-ratio: 3 / 4;
}

.movie-card.horizontal .card-body {
  justify-content: center;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(251, 191, 36, 0.24);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 20px rgba(146, 64, 14, 0.06);
}

.rank-number {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 16px;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
}

.rank-title {
  display: block;
  font-weight: 850;
  color: #111827;
}

.rank-desc {
  display: block;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  margin-top: 4px;
  color: #6b7280;
  font-size: 14px;
}

.category-card {
  min-height: 180px;
  padding: 24px;
  border-radius: 22px;
  color: #fff;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.28), transparent 34%), linear-gradient(135deg, #92400e, #ea580c 58%, #f59e0b);
  box-shadow: 0 18px 38px rgba(146, 64, 14, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 54px rgba(146, 64, 14, 0.26);
}

.category-card h2,
.category-card h3 {
  margin: 0 0 12px;
  font-size: 24px;
}

.category-card p {
  margin: 0;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
}

.search-panel {
  display: grid;
  grid-template-columns: 1fr 160px 160px;
  gap: 12px;
  margin: 26px 0 30px;
  padding: 16px;
  border: 1px solid rgba(251, 191, 36, 0.28);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 32px rgba(146, 64, 14, 0.08);
}

.search-panel input,
.search-panel select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(245, 158, 11, 0.24);
  border-radius: 14px;
  padding: 0 14px;
  color: #111827;
  background: #fff;
  outline: none;
}

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

.page-hero {
  padding: 76px 0 32px;
}

.page-hero h1 {
  margin: 12px 0 12px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.12;
  color: #111827;
}

.page-hero p {
  max-width: 820px;
  margin: 0;
  color: #6b7280;
  line-height: 1.8;
  font-size: 18px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #92400e;
  font-size: 14px;
  font-weight: 750;
}

.detail-page {
  padding: 32px 0 72px;
}

.detail-shell {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.85fr);
  gap: 28px;
  align-items: start;
}

.player-card,
.info-card,
.side-card {
  overflow: hidden;
  border: 1px solid rgba(251, 191, 36, 0.24);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(146, 64, 14, 0.1);
}

.player-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.62));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-circle {
  display: grid;
  width: 88px;
  height: 88px;
  place-items: center;
  border-radius: 999px;
  font-size: 34px;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 20px 38px rgba(234, 88, 12, 0.38);
}

.player-error {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: none;
  padding: 12px 14px;
  border-radius: 14px;
  color: #fff;
  background: rgba(153, 27, 27, 0.86);
}

.player-error.show {
  display: block;
}

.info-card {
  margin-top: 22px;
  padding: 26px;
}

.info-card h1 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.2;
}

.info-card h2,
.side-card h2 {
  margin: 0 0 16px;
  font-size: 24px;
  color: #111827;
}

.prose {
  line-height: 1.9;
  color: #4b5563;
}

.prose p {
  margin: 0 0 16px;
}

.side-card {
  padding: 20px;
}

.side-list {
  display: grid;
  gap: 12px;
}

.side-link {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: #fff7ed;
  transition: background 0.2s ease, transform 0.2s ease;
}

.side-link:hover {
  transform: translateX(3px);
  background: #fef3c7;
}

.side-link img {
  width: 82px;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  object-fit: cover;
}

.side-link strong {
  display: block;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  color: #111827;
}

.side-link span {
  display: block;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  margin-top: 5px;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.6;
}

.site-footer {
  padding: 34px 0;
  border-top: 1px solid rgba(251, 191, 36, 0.24);
  background: #111827;
  color: #f9fafb;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-footer p {
  max-width: 650px;
  margin: 6px 0 0;
  color: #d1d5db;
}

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

.footer-links a {
  color: #fbbf24;
  font-weight: 750;
}

.hidden-card {
  display: none !important;
}

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

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

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

  .desktop-nav {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

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

  .hero {
    height: auto;
    min-height: 560px;
  }

  .hero-copy {
    padding: 92px 0 90px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn,
  .btn-secondary,
  .btn-ghost {
    width: 100%;
  }

  .section {
    padding: 48px 0;
  }

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

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

  .search-panel {
    grid-template-columns: 1fr;
  }

  .movie-card.horizontal {
    flex-direction: column;
  }

  .movie-card.horizontal .poster-frame {
    width: 100%;
  }

  .rank-item {
    grid-template-columns: 44px 1fr;
    padding: 12px;
  }

  .rank-number {
    width: 40px;
    height: 40px;
  }
}

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

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