:root {
  --brand: #d97706;
  --brand-strong: #ea580c;
  --brand-soft: #fef3c7;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #f1e5c8;
  --panel: #ffffff;
  --dark: #111827;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #fffbeb 0%, #ffffff 42%, #fff7ed 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  color: #ffffff;
  background: linear-gradient(90deg, #d97706 0%, #f97316 100%);
  box-shadow: 0 12px 28px rgba(146, 64, 14, 0.18);
}

.header-inner {
  max-width: 1180px;
  height: 64px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.logo-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #d97706;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: inset 0 0 0 2px rgba(217, 119, 6, 0.16);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 15px;
  font-weight: 650;
}

.nav-links a {
  opacity: 0.94;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  opacity: 1;
  color: #fef3c7;
  transform: translateY(-1px);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 14px;
}

.mobile-nav {
  display: none;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px 16px;
}

.mobile-nav a {
  display: block;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-weight: 650;
}

.page-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 18px 54px;
}

.hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  color: #ffffff;
  background: #111827;
}

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

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

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

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 30%, rgba(251, 191, 36, 0.22), transparent 28%),
    linear-gradient(90deg, rgba(17, 24, 39, 0.94) 0%, rgba(17, 24, 39, 0.74) 42%, rgba(17, 24, 39, 0.28) 100%),
    linear-gradient(0deg, rgba(17, 24, 39, 0.86), rgba(17, 24, 39, 0.12));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  min-height: 560px;
  margin: 0 auto;
  padding: 80px 18px 46px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.55fr);
  align-items: center;
  gap: 42px;
}

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

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 13px;
  color: #fffbeb;
  background: rgba(251, 191, 36, 0.18);
  border: 1px solid rgba(251, 191, 36, 0.42);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  font-size: 14px;
  font-weight: 700;
}

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

.hero-text {
  max-width: 620px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.8;
}

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

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 11px;
  color: #78350f;
  background: #fef3c7;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 750;
}

.hero .pill {
  color: #fffbeb;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border: 0;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  color: #ffffff;
  background: linear-gradient(90deg, #d97706 0%, #f97316 100%);
  box-shadow: 0 16px 30px rgba(217, 119, 6, 0.28);
}

.btn-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
}

.hero-panel {
  padding: 18px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 28px;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(12px);
}

.hero-panel img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 22px;
}

.hero-panel h2 {
  margin: 16px 0 8px;
  font-size: 23px;
  font-weight: 850;
}

.hero-panel p {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.72;
}

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

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

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

.section {
  margin-top: 42px;
}

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

.section-eyebrow {
  color: var(--brand);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-title {
  margin-top: 4px;
  font-size: clamp(26px, 3.8vw, 42px);
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-desc {
  max-width: 740px;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.82;
}

.more-link {
  color: var(--brand);
  font-weight: 800;
  white-space: nowrap;
}

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

.category-card {
  min-height: 154px;
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 16px 32px rgba(146, 64, 14, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(217, 119, 6, 0.42);
  box-shadow: 0 22px 42px rgba(146, 64, 14, 0.14);
}

.category-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 21px;
  font-weight: 880;
}

.category-card span {
  color: var(--muted);
  line-height: 1.7;
}

.tool-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 180px;
  gap: 12px;
  margin: 20px 0 24px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 14px 30px rgba(146, 64, 14, 0.07);
}

.tool-panel input,
.tool-panel select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  color: var(--ink);
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 15px;
  outline: none;
}

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

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

.movie-card {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 14px 30px rgba(146, 64, 14, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(217, 119, 6, 0.42);
  box-shadow: 0 22px 46px rgba(146, 64, 14, 0.16);
}

.poster-wrap {
  position: relative;
  overflow: hidden;
  background: #fef3c7;
}

.poster-wrap img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.32s ease;
}

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

.card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 9px;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.72);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

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

.movie-title {
  min-height: 44px;
  color: #1f2937;
  font-size: 16px;
  line-height: 1.38;
  font-weight: 850;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 9px;
  color: #6b7280;
  font-size: 13px;
}

.movie-desc {
  margin-top: 9px;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.score {
  color: #d97706;
  font-weight: 900;
}

.rank-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.rank-item {
  display: grid;
  grid-template-columns: 54px 92px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 12px 26px rgba(146, 64, 14, 0.07);
}

.rank-num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #ffffff;
  background: linear-gradient(135deg, #d97706, #f97316);
  border-radius: 16px;
  font-weight: 900;
}

.rank-item img {
  width: 92px;
  height: 120px;
  object-fit: cover;
  border-radius: 16px;
}

.rank-copy h3 {
  font-size: 17px;
  line-height: 1.4;
  font-weight: 850;
}

.rank-copy p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.62;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 22px;
  color: #92400e;
  font-size: 14px;
  font-weight: 700;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 30px;
  align-items: start;
  padding: 24px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: 0 20px 48px rgba(146, 64, 14, 0.1);
}

.player-box {
  position: relative;
  overflow: hidden;
  background: #111827;
  border-radius: 24px;
  box-shadow: 0 22px 46px rgba(17, 24, 39, 0.22);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.72), rgba(17, 24, 39, 0.18));
}

.player-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.56;
}

.play-button {
  position: relative;
  z-index: 4;
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, #d97706, #f97316);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 18px 42px rgba(217, 119, 6, 0.35);
  font-size: 32px;
}

.player-message {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 5;
  display: none;
  padding: 10px 12px;
  color: #fff7ed;
  background: rgba(127, 29, 29, 0.78);
  border-radius: 14px;
  text-align: center;
  font-size: 14px;
}

.player-message.is-visible {
  display: block;
}

.detail-copy h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.035em;
}

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

.detail-copy p {
  margin: 0 0 16px;
  color: #4b5563;
  line-height: 1.86;
}

.detail-section {
  margin-top: 30px;
  padding: 24px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 16px 36px rgba(146, 64, 14, 0.07);
}

.detail-section h2 {
  margin: 0 0 14px;
  font-size: 25px;
  font-weight: 900;
}

.empty-state {
  display: none;
  padding: 28px;
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 22px;
  text-align: center;
  font-weight: 800;
}

.site-footer {
  color: #e5e7eb;
  background: linear-gradient(90deg, #1f2937 0%, #111827 100%);
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: #fef3c7;
  font-weight: 700;
}

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

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

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

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

  .menu-button {
    display: inline-grid;
    place-items: center;
  }

  .mobile-nav.is-open {
    display: block;
  }

  .hero,
  .hero-content {
    min-height: 650px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    padding-top: 72px;
    gap: 24px;
  }

  .hero-panel {
    max-width: 420px;
  }

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

  .tool-panel,
  .detail-hero {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 520px) {
  .header-inner {
    height: 60px;
  }

  .logo {
    font-size: 18px;
  }

  .page-shell {
    padding: 22px 14px 42px;
  }

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

  .hero-text {
    font-size: 16px;
  }

  .movie-grid {
    gap: 12px;
  }

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

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

  .rank-item img {
    width: 78px;
    height: 104px;
  }
}
