:root {
  --bg: #fffaf1;
  --bg-soft: #fffbeb;
  --paper: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #f1e4c9;
  --amber: #d97706;
  --amber-dark: #92400e;
  --orange: #ea580c;
  --stone: #57534e;
  --shadow: 0 18px 50px rgba(146, 64, 14, 0.13);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(251, 191, 36, 0.22), transparent 28rem),
    linear-gradient(135deg, #fff7ed 0%, #fffbeb 44%, #fafaf9 100%);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

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

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

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

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

.logo-mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  color: white;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 12px 25px rgba(217, 119, 6, 0.24);
}

.logo-text {
  font-size: 20px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.main-nav a {
  padding: 10px 13px;
  border-radius: 999px;
  color: #78350f;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover {
  color: white;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: rgba(217, 119, 6, 0.12);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--amber-dark);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 54px 0 42px;
  background: linear-gradient(135deg, #fef3c7 0%, #fff7ed 48%, #fffbeb 100%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(6px);
  opacity: 0.7;
}

.hero::before {
  right: -120px;
  top: 20px;
  width: 360px;
  height: 360px;
  background: rgba(251, 146, 60, 0.22);
}

.hero::after {
  left: -160px;
  bottom: -110px;
  width: 420px;
  height: 420px;
  background: rgba(245, 158, 11, 0.18);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.95fr);
  gap: 34px;
  align-items: center;
}

.hero-copy {
  padding: 16px 0;
}

.hero-kicker,
.section-kicker,
.page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--amber-dark);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.hero h1 {
  margin: 0 0 18px;
  color: #78350f;
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.hero-desc {
  max-width: 720px;
  margin: 0 0 24px;
  color: #7c2d12;
  font-size: 18px;
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0;
}

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

.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 16px 32px rgba(217, 119, 6, 0.28);
}

.btn-secondary {
  color: #78350f;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(217, 119, 6, 0.22);
}

.btn-ghost {
  color: var(--amber-dark);
  background: rgba(217, 119, 6, 0.1);
}

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

.hero-search {
  display: flex;
  max-width: 620px;
  padding: 8px;
  border: 1px solid rgba(217, 119, 6, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 16px;
  background: transparent;
  color: var(--text);
  font-size: 15px;
}

.hero-search button {
  border: 0;
  cursor: pointer;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 620px;
  margin-top: 26px;
}

.hero-stat {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(217, 119, 6, 0.15);
}

.hero-stat strong {
  display: block;
  color: #78350f;
  font-size: 24px;
  line-height: 1;
}

.hero-stat span {
  color: #92400e;
  font-size: 13px;
}

.hero-feature {
  position: relative;
  min-height: 560px;
}

.hero-slide {
  display: none;
  min-height: 560px;
  border-radius: 30px;
  overflow: hidden;
  background: #111827;
  box-shadow: 0 30px 80px rgba(146, 64, 14, 0.22);
}

.hero-slide.is-active {
  display: block;
  animation: fadeUp 0.55s ease both;
}

.hero-slide img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  opacity: 0.84;
}

.hero-slide-content {
  position: absolute;
  inset: auto 18px 18px 18px;
  padding: 22px;
  border-radius: 22px;
  color: white;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.68), rgba(17, 24, 39, 0.92));
  backdrop-filter: blur(10px);
}

.hero-slide-content h2 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.2;
}

.hero-slide-content p {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.84);
}

.hero-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  background: rgba(146, 64, 14, 0.3);
  cursor: pointer;
}

.hero-dot.is-active {
  width: 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
}

.hot-entry {
  margin-top: -2px;
  padding: 28px 0 12px;
  background: white;
}

.hot-entry-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 24px;
  border: 1px solid rgba(217, 119, 6, 0.18);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #fff7ed, #ffffff);
  box-shadow: var(--shadow);
}

.hot-mini-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hot-mini-list a {
  padding: 8px 12px;
  border-radius: 999px;
  color: #78350f;
  background: #fef3c7;
  font-size: 13px;
  font-weight: 700;
}

.section-block,
.page-section {
  padding: 44px 0;
}

.section-block:nth-of-type(even) {
  background: rgba(255, 255, 255, 0.48);
}

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

.section-heading h2,
.page-heading h1 {
  margin: 0;
  color: #1f2937;
  font-size: clamp(25px, 4vw, 38px);
  letter-spacing: -0.04em;
}

.section-heading p,
.page-heading p {
  margin: 8px 0 0;
  color: var(--muted);
}

.section-more {
  color: var(--amber-dark);
  font-weight: 800;
  white-space: nowrap;
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(217, 119, 6, 0.14);
  border-radius: 18px;
  background: white;
  box-shadow: 0 12px 34px rgba(146, 64, 14, 0.09);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

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

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #fed7aa, #fde68a);
}

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

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

.play-chip,
.rank-badge {
  position: absolute;
  z-index: 2;
  color: white;
  font-weight: 800;
}

.play-chip {
  left: 10px;
  bottom: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.72);
  font-size: 12px;
  backdrop-filter: blur(10px);
}

.rank-badge {
  top: 10px;
  left: 10px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
}

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

.movie-card h3 {
  min-height: 44px;
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 1.45;
}

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

.movie-meta,
.movie-desc {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.movie-desc {
  display: -webkit-box;
  margin-top: 7px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.tag-row span {
  padding: 3px 8px;
  border-radius: 999px;
  color: #92400e;
  background: #fef3c7;
  font-size: 12px;
}

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

.category-card {
  padding: 24px;
  border: 1px solid rgba(217, 119, 6, 0.16);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
}

.category-card h2 {
  margin: 0 0 8px;
  color: #78350f;
}

.category-card p {
  color: var(--muted);
}

.category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.category-links a {
  color: var(--amber-dark);
  font-size: 13px;
  font-weight: 700;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 170px 170px 160px;
  gap: 12px;
  margin: 24px 0;
  padding: 16px;
  border: 1px solid rgba(217, 119, 6, 0.16);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  height: 44px;
  border: 1px solid rgba(217, 119, 6, 0.18);
  border-radius: 14px;
  padding: 0 13px;
  background: white;
  color: var(--text);
  outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.12);
}

.result-count {
  margin: -8px 0 20px;
  color: var(--muted);
  font-weight: 700;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 70px 92px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(217, 119, 6, 0.14);
  border-radius: 20px;
  background: white;
  box-shadow: 0 12px 30px rgba(146, 64, 14, 0.08);
}

.rank-number {
  color: var(--amber-dark);
  font-size: 26px;
  font-weight: 900;
  text-align: center;
}

.rank-row img {
  width: 92px;
  height: 122px;
  border-radius: 14px;
  object-fit: cover;
  background: #fef3c7;
}

.rank-row h2 {
  margin: 0 0 6px;
  font-size: 20px;
}

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

.heat-score {
  padding: 8px 12px;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  font-weight: 900;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  padding: 34px 0 54px;
}

.detail-main,
.detail-side {
  overflow: hidden;
  border: 1px solid rgba(217, 119, 6, 0.16);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
}

.detail-content {
  padding: 26px;
}

.detail-content h1 {
  margin: 0 0 12px;
  color: #1f2937;
  font-size: clamp(26px, 5vw, 42px);
  line-height: 1.16;
  letter-spacing: -0.04em;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--muted);
  font-weight: 700;
}

.detail-meta span {
  padding: 6px 10px;
  border-radius: 999px;
  background: #fffbeb;
}

.detail-section {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.detail-section h2 {
  margin: 0 0 10px;
  color: #78350f;
  font-size: 21px;
}

.review-box {
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff7ed, #fef3c7);
}

.video-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #111827;
}

.video-shell video {
  width: 100%;
  height: 100%;
  background: #000000;
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: white;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.08), rgba(17, 24, 39, 0.66));
  cursor: pointer;
}

.video-overlay.is-hidden {
  display: none;
}

.video-play-icon {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: rgba(217, 119, 6, 0.88);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.28);
  font-size: 30px;
}

.video-message {
  position: absolute;
  left: 16px;
  bottom: 16px;
  right: 16px;
  padding: 10px 12px;
  border-radius: 12px;
  color: #fde68a;
  background: rgba(17, 24, 39, 0.76);
  font-size: 13px;
}

.detail-side {
  align-self: start;
  position: sticky;
  top: 92px;
  padding: 20px;
}

.related-list {
  display: grid;
  gap: 13px;
}

.related-item {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  transition: background 0.2s ease;
}

.related-item:hover {
  background: #fffbeb;
}

.related-item img {
  width: 86px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
  background: #fef3c7;
}

.related-item h3 {
  margin: 0 0 4px;
  font-size: 14px;
  line-height: 1.4;
}

.related-item p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.search-results {
  min-height: 340px;
}

.site-footer {
  padding: 38px 0;
  color: #78350f;
  background: linear-gradient(135deg, #fef3c7, #fff7ed);
  border-top: 1px solid rgba(217, 119, 6, 0.14);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
}

.footer-logo {
  margin-bottom: 10px;
  font-size: 22px;
  font-weight: 900;
}

.site-footer h3 {
  margin: 0 0 10px;
}

.site-footer a {
  display: block;
  margin: 5px 0;
  color: #92400e;
  font-weight: 700;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1024px) {
  .hero-inner,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .hero-feature,
  .hero-slide,
  .hero-slide img {
    min-height: 460px;
    height: 460px;
  }

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

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

  .detail-side {
    position: static;
  }
}

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

  .nav-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 12px;
    right: 12px;
    padding: 12px;
    border: 1px solid rgba(217, 119, 6, 0.16);
    border-radius: 20px;
    background: rgba(255, 251, 235, 0.98);
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    padding-top: 30px;
  }

  .hero-search {
    border-radius: 20px;
    flex-direction: column;
    gap: 8px;
  }

  .hero-search input {
    height: 42px;
  }

  .hero-stats,
  .hot-entry-card,
  .footer-grid,
  .category-grid,
  .filter-panel {
    grid-template-columns: 1fr;
  }

  .hero-feature,
  .hero-slide,
  .hero-slide img {
    min-height: 420px;
    height: 420px;
  }

  .hero-slide-content {
    inset: auto 12px 12px 12px;
    padding: 16px;
  }

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

  .section-heading,
  .page-heading {
    align-items: start;
    flex-direction: column;
  }

  .rank-row {
    grid-template-columns: 44px 72px 1fr;
  }

  .rank-row img {
    width: 72px;
    height: 96px;
  }

  .heat-score {
    grid-column: 2 / -1;
    justify-self: start;
  }
}
