:root {
  --bg: #fff8ed;
  --surface: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: rgba(245, 158, 11, 0.24);
  --amber: #d97706;
  --amber-dark: #92400e;
  --orange: #ea580c;
  --brown: #78350f;
  --shadow: 0 18px 45px rgba(120, 53, 15, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(251, 191, 36, 0.22), transparent 32rem),
    linear-gradient(180deg, #fff7ed 0%, #fffaf4 42%, #ffffff 100%);
}

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: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(255, 237, 213, 0.96));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 22px rgba(146, 64, 14, 0.08);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 900;
  color: var(--amber-dark);
  white-space: nowrap;
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 10px 24px rgba(217, 119, 6, 0.28);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #4b5563;
  font-weight: 700;
}

.nav-links a {
  padding: 8px 4px;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--amber);
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-size: 28px;
  color: var(--amber-dark);
}

.mobile-links {
  display: none;
  padding: 0 0 18px;
  flex-direction: column;
  gap: 12px;
  font-weight: 700;
  color: #4b5563;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 20%, rgba(253, 230, 138, 0.65), transparent 26rem),
    radial-gradient(circle at 82% 18%, rgba(251, 146, 60, 0.36), transparent 22rem),
    linear-gradient(135deg, #78350f 0%, #92400e 40%, #f59e0b 100%);
  color: #fff7ed;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.08));
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  min-height: 570px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  align-items: center;
  gap: 42px;
  padding: 70px 0;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero-copy p {
  max-width: 660px;
  margin: 24px 0 0;
  font-size: 18px;
  line-height: 1.85;
  color: rgba(255, 251, 235, 0.88);
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
}

.badge,
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #92400e;
  background: #fffbeb;
  border: 1px solid rgba(245, 158, 11, 0.22);
  font-size: 13px;
  font-weight: 800;
}

.hero .badge {
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.24);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  color: #7c2d12;
  background: #fff7ed;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.btn-dark {
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber-dark), var(--orange));
  box-shadow: 0 12px 28px rgba(217, 119, 6, 0.22);
}

.btn-ghost {
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.25);
}

.hero-stage {
  position: relative;
  min-height: 470px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 0.78fr 1fr;
  gap: 18px;
  align-items: end;
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

.hero-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.hero-feature {
  padding: 26px;
  border-radius: 26px;
  background: rgba(255, 251, 235, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.hero-feature h2 {
  margin: 0 0 12px;
  font-size: 30px;
}

.hero-feature p {
  color: rgba(255, 251, 235, 0.88);
  line-height: 1.75;
}

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

.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.42);
}

.hero-dots button.is-active {
  width: 28px;
  border-radius: 999px;
  background: #ffffff;
}

.section {
  padding: 64px 0;
}

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

.section-title h2,
.page-title h1 {
  margin: 0;
  color: #111827;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.035em;
}

.section-title p,
.page-title p {
  max-width: 680px;
  color: var(--muted);
  line-height: 1.8;
}

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

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

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

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

.movie-card,
.category-card,
.rank-card,
.content-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(245, 158, 11, 0.14);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.movie-card {
  display: block;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 55px rgba(120, 53, 15, 0.18);
}

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

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

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

.poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 34%, rgba(0, 0, 0, 0.72));
  opacity: 0.85;
}

.poster-meta {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 1;
  color: #ffffff;
}

.poster-type {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 6px 9px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(217, 119, 6, 0.92);
  font-size: 12px;
  font-weight: 900;
}

.card-body {
  padding: 18px;
}

.card-body h3,
.rank-card h3 {
  margin: 0 0 10px;
  color: #111827;
  font-size: 18px;
  line-height: 1.35;
}

.card-body p,
.rank-card p,
.content-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  color: #6b7280;
  font-size: 13px;
}

.meta-pill {
  display: inline-flex;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--amber-dark);
  background: #fef3c7;
  font-weight: 800;
}

.category-card {
  display: block;
  padding: 24px;
  transition: transform 0.22s ease;
}

.category-card:hover {
  transform: translateY(-4px);
}

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

.category-card p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.7;
}

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

.rank-card {
  display: grid;
  grid-template-columns: 62px 92px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
}

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

.rank-cover {
  width: 92px;
  height: 122px;
  border-radius: 14px;
  object-fit: cover;
}

.search-panel {
  padding: 24px;
  margin-top: -34px;
  position: relative;
  z-index: 4;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  border: 1px solid rgba(245, 158, 11, 0.16);
}

.search-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.search-input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(146, 64, 14, 0.22);
  font-size: 16px;
  outline: none;
}

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

.search-results {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.search-result {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  background: #fff7ed;
  border: 1px solid rgba(245, 158, 11, 0.14);
}

.page-hero {
  padding: 66px 0 48px;
  color: #fff7ed;
  background:
    radial-gradient(circle at 75% 15%, rgba(251, 146, 60, 0.38), transparent 26rem),
    linear-gradient(135deg, #78350f, #b45309);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(255, 251, 235, 0.82);
  margin-bottom: 16px;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #ffffff;
}

.detail-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) 360px;
  gap: 28px;
  align-items: start;
}

.player-card {
  overflow: hidden;
  border-radius: 26px;
  background: #0f172a;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.28);
}

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

.video-shell video {
  width: 100%;
  height: 100%;
  display: block;
  background: #0f172a;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.12), rgba(15, 23, 42, 0.72)),
    var(--poster, none) center / cover no-repeat;
}

.play-button {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #7c2d12;
  background: #fff7ed;
  font-size: 34px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.player-note {
  padding: 14px 18px;
  color: #fef3c7;
  font-size: 14px;
}

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

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

.content-card {
  padding: 28px;
  margin-top: 22px;
}

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

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

.info-list li {
  display: flex;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(245, 158, 11, 0.12);
}

.info-list strong {
  min-width: 72px;
  color: #92400e;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 34px;
}

.pagination a,
.pagination span {
  min-width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid rgba(245, 158, 11, 0.16);
  background: #ffffff;
  color: #92400e;
  font-weight: 900;
}

.pagination .current {
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
}

.site-footer {
  margin-top: 60px;
  padding: 46px 0 30px;
  color: #fffbeb;
  background: linear-gradient(90deg, #78350f, #9a3412);
}

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

.footer-grid h3 {
  margin: 0 0 14px;
}

.footer-grid p,
.footer-grid a {
  color: rgba(255, 251, 235, 0.76);
  line-height: 1.8;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.copyright {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 251, 235, 0.72);
  font-size: 14px;
}

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

  .hero-stage {
    min-height: 520px;
  }

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

  .rank-card {
    grid-template-columns: 44px 72px minmax(0, 1fr);
  }

  .rank-score {
    grid-column: 3;
  }
}

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

  .nav-toggle {
    display: block;
  }

  .mobile-links.is-open {
    display: flex;
  }

  .hero-inner {
    padding: 46px 0 74px;
  }

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

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

  .hero-stage {
    min-height: 680px;
  }

  .grid-4,
  .grid-3,
  .grid-2,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .rank-card {
    grid-template-columns: 40px 66px minmax(0, 1fr);
    gap: 12px;
  }

  .rank-cover {
    width: 66px;
    height: 88px;
  }
}
