:root {
  --bg: #fff7ed;
  --panel: rgba(255, 255, 255, 0.86);
  --panel-strong: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #fed7aa;
  --orange: #f97316;
  --rose: #f43f5e;
  --amber: #f59e0b;
  --shadow: 0 20px 60px rgba(249, 115, 22, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 8%, rgba(251, 146, 60, 0.28), transparent 28rem),
    radial-gradient(circle at 82% 12%, rgba(244, 63, 94, 0.22), transparent 24rem),
    linear-gradient(180deg, #fff7ed 0%, #ffffff 42%, #fff7ed 100%);
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  box-shadow: 0 6px 24px rgba(249, 115, 22, 0.08);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, var(--orange), var(--rose), var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--rose));
  box-shadow: 0 12px 26px rgba(249, 115, 22, 0.32);
}

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

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

.nav-links a:hover {
  color: var(--orange);
  transform: translateY(-1px);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #fff7ed;
  color: var(--orange);
  font-size: 24px;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  padding: 10px 0 14px;
}

.mobile-panel a {
  display: block;
  padding: 12px 16px;
  border-radius: 12px;
  color: #4b5563;
  font-weight: 700;
}

.mobile-panel a:hover {
  background: #ffedd5;
  color: var(--orange);
}

.hero {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  border-bottom: 1px solid rgba(251, 146, 60, 0.18);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.8s ease, transform 1.2s ease;
  background-size: cover;
  background-position: center;
}

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

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 247, 237, 0.98) 0%, rgba(255, 247, 237, 0.86) 43%, rgba(255, 247, 237, 0.44) 100%),
    radial-gradient(circle at 70% 18%, rgba(244, 63, 94, 0.32), transparent 22rem),
    radial-gradient(circle at 84% 76%, rgba(249, 115, 22, 0.24), transparent 24rem);
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.86fr);
  align-items: center;
  gap: 44px;
  padding: 72px 0 58px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #ea580c;
  background: rgba(255, 237, 213, 0.92);
  border: 1px solid #fed7aa;
  font-size: 14px;
  font-weight: 900;
}

.hero h1 {
  margin: 20px 0 16px;
  font-size: clamp(38px, 6.2vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.055em;
  color: #111827;
}

.gradient-text {
  background: linear-gradient(90deg, var(--orange), var(--rose), var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 680px;
  color: #4b5563;
  font-size: 18px;
  line-height: 1.9;
}

.hero-actions,
.section-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 900;
  border: 1px solid transparent;
  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, var(--orange), var(--rose));
  box-shadow: 0 15px 32px rgba(244, 63, 94, 0.28);
}

.btn-ghost {
  color: #ea580c;
  background: rgba(255, 255, 255, 0.78);
  border-color: #fdba74;
}

.search-box {
  margin-top: 28px;
  display: flex;
  max-width: 620px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #fed7aa;
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.search-box input {
  flex: 1;
  border: 0;
  outline: 0;
  padding: 16px 18px;
  background: transparent;
  color: #111827;
  font-size: 16px;
}

.search-box button {
  border: 0;
  padding: 0 20px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--rose));
  font-weight: 900;
}

.hero-panel {
  padding: 20px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(253, 186, 116, 0.75);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.hero-poster {
  min-height: 360px;
  border-radius: 28px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 -160px 140px rgba(17, 24, 39, 0.78);
}

.hero-poster-content {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 20px;
  color: #ffffff;
}

.hero-poster-content h2 {
  margin: 8px 0;
  font-size: 28px;
  font-weight: 900;
}

.hero-poster-content p {
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.75;
}

.hero-chips,
.tag-row,
.category-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-chips {
  margin-top: 20px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  color: #9a3412;
  background: #ffedd5;
  font-size: 13px;
  font-weight: 800;
}

.section {
  padding: 62px 0;
}

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

.kicker {
  display: inline-block;
  width: 7px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--rose), var(--amber));
  vertical-align: middle;
  margin-right: 10px;
}

.section-title {
  margin: 0;
  font-size: clamp(26px, 3.4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: #111827;
}

.section-desc {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.85;
  margin-top: 10px;
}

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

.movie-card {
  display: block;
  overflow: hidden;
  border-radius: 22px;
  background: var(--panel-strong);
  border: 1px solid rgba(253, 186, 116, 0.55);
  box-shadow: 0 10px 28px rgba(249, 115, 22, 0.10);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: #fb923c;
  box-shadow: 0 22px 48px rgba(249, 115, 22, 0.20);
}

.cover {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4.1;
  background-size: cover;
  background-position: center;
  position: relative;
}

.cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(17, 24, 39, 0.78) 100%);
}

.badge {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--orange), var(--rose));
  font-size: 12px;
  font-weight: 900;
}

.cover .badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 1;
}

.card-body {
  padding: 14px;
}

.card-title {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.35;
  color: #111827;
  font-weight: 900;
}

.card-meta {
  color: #6b7280;
  font-size: 13px;
  line-height: 1.65;
}

.card-line {
  color: #4b5563;
  font-size: 14px;
  line-height: 1.72;
  margin-top: 8px;
}

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

.category-card {
  min-height: 160px;
  padding: 20px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 20% 0%, rgba(251, 146, 60, 0.22), transparent 55%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(255, 237, 213, 0.78));
  border: 1px solid rgba(253, 186, 116, 0.68);
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px rgba(249, 115, 22, 0.20);
}

.category-card h2,
.category-card h3 {
  margin: 0 0 10px;
  color: #111827;
  font-size: 20px;
  font-weight: 900;
}

.category-card p {
  margin: 0;
  color: #6b7280;
  line-height: 1.72;
  font-size: 14px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 58px 78px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(253, 186, 116, 0.56);
  box-shadow: 0 10px 26px rgba(249, 115, 22, 0.10);
}

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

.rank-cover {
  width: 78px;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  background-size: cover;
  background-position: center;
}

.rank-main h2,
.rank-main h3 {
  margin: 0 0 6px;
  color: #111827;
  font-size: 18px;
  font-weight: 900;
}

.rank-main p {
  margin: 0;
  color: #6b7280;
  line-height: 1.65;
}

.page-hero {
  padding: 58px 0 36px;
}

.page-hero-card {
  padding: clamp(24px, 4vw, 46px);
  border-radius: 34px;
  background:
    radial-gradient(circle at 10% 10%, rgba(249, 115, 22, 0.22), transparent 24rem),
    radial-gradient(circle at 90% 0%, rgba(244, 63, 94, 0.18), transparent 22rem),
    rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(253, 186, 116, 0.68);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.page-hero-card h1 {
  margin: 14px 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: #111827;
}

.filter-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  padding: 16px;
  margin-bottom: 26px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(253, 186, 116, 0.62);
  box-shadow: 0 12px 32px rgba(249, 115, 22, 0.10);
}

.filter-bar input,
.filter-bar select {
  min-height: 44px;
  border-radius: 14px;
  border: 1px solid #fed7aa;
  background: #ffffff;
  color: #111827;
  outline: 0;
  padding: 0 14px;
}

.filter-bar input {
  flex: 1 1 260px;
}

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

.player-card,
.detail-card {
  border-radius: 30px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(253, 186, 116, 0.62);
  box-shadow: var(--shadow);
}

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

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

.play-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 50%, rgba(249, 115, 22, 0.22), transparent 18rem),
    linear-gradient(180deg, rgba(17, 24, 39, 0.14), rgba(17, 24, 39, 0.58));
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.play-layer.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-button {
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--rose));
  font-size: 32px;
  box-shadow: 0 24px 50px rgba(244, 63, 94, 0.34);
}

.detail-card {
  padding: 24px;
}

.detail-card h1 {
  margin: 12px 0;
  color: #111827;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

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

.prose-block {
  padding: 24px;
  border-top: 1px solid rgba(253, 186, 116, 0.5);
}

.prose-block h2 {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 900;
  color: #111827;
}

.prose-block p {
  margin: 0 0 16px;
  color: #4b5563;
  line-height: 1.95;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #9a3412;
  font-weight: 800;
  margin-bottom: 18px;
}

.site-footer {
  margin-top: 58px;
  padding: 36px 0;
  color: #6b7280;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.empty-state {
  display: none;
  padding: 30px;
  border-radius: 24px;
  background: #ffffff;
  color: #6b7280;
  border: 1px solid #fed7aa;
}

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

  .hero-inner,
  .detail-layout {
    grid-template-columns: 1fr;
  }
}

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

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

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

  .hero,
  .hero-inner {
    min-height: auto;
  }

  .hero-inner {
    padding: 42px 0;
  }

  .hero-panel {
    padding: 12px;
  }

  .hero-poster {
    min-height: 300px;
  }

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

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

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

  .rank-item .btn {
    grid-column: 2 / -1;
    justify-self: start;
  }
}

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

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

  .search-box {
    flex-direction: column;
  }

  .search-box button {
    min-height: 46px;
  }
}
