:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --amber-900: #78350f;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow-soft: 0 18px 50px rgba(146, 64, 14, 0.14);
  --shadow-card: 0 14px 35px rgba(31, 41, 55, 0.12);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --container: min(1180px, calc(100vw - 32px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--gray-900);
  background: linear-gradient(180deg, var(--amber-50), #ffffff 36%, #fff7ed);
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(255, 247, 237, 0.96));
  border-bottom: 1px solid rgba(217, 119, 6, 0.12);
  box-shadow: 0 12px 30px rgba(120, 53, 15, 0.08);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: var(--container);
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.brand-name {
  font-size: clamp(20px, 2vw, 28px);
  background: linear-gradient(90deg, var(--amber-600), var(--orange-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--gray-700);
  font-weight: 700;
  margin-left: auto;
}

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

.main-nav a:hover {
  color: var(--amber-600);
  transform: translateY(-1px);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  background: #fff;
  border: 1px solid rgba(217, 119, 6, 0.2);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(217, 119, 6, 0.08);
}

.header-search input {
  width: 210px;
  border: 0;
  outline: 0;
  padding: 9px 10px 9px 16px;
  color: var(--gray-800);
  background: transparent;
}

.header-search button,
.primary-btn,
.ghost-btn {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search button,
.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
  box-shadow: 0 12px 26px rgba(217, 119, 6, 0.28);
}

.header-search button {
  padding: 9px 18px;
}

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
}

.ghost-btn {
  color: var(--amber-700);
  background: #fff;
  box-shadow: 0 12px 26px rgba(255, 255, 255, 0.18);
}

.ghost-btn.dark {
  color: var(--amber-700);
  border: 2px solid rgba(217, 119, 6, 0.28);
}

.primary-btn:hover,
.ghost-btn:hover,
.header-search button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(217, 119, 6, 0.32);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  color: var(--amber-700);
  background: #fff;
  border-radius: 12px;
  padding: 8px 12px;
  box-shadow: 0 8px 20px rgba(217, 119, 6, 0.1);
}

.hero {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  background: linear-gradient(120deg, #f6b72a 0%, #f59e0b 42%, #ea580c 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -6% -32% 32%;
  height: 340px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  filter: blur(10px);
  transform: rotate(-5deg);
}

.hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.32), transparent 30%),
    radial-gradient(circle at 80% 18%, rgba(120, 53, 15, 0.22), transparent 36%);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.42) 2px, transparent 2px),
    linear-gradient(135deg, rgba(255, 255, 255, 0.14) 25%, transparent 25%);
  background-size: 54px 54px, 120px 120px;
}

.hero-track {
  position: relative;
  z-index: 2;
  width: var(--container);
  min-height: 600px;
  margin: 0 auto;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.78fr);
  align-items: center;
  gap: 56px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0 0 14px;
  padding: 7px 14px;
  color: #fff7ed;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(120, 53, 15, 0.16);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.06em;
  text-shadow: 0 16px 38px rgba(120, 53, 15, 0.24);
}

.hero-summary {
  max-width: 680px;
  margin: 24px 0 0;
  color: #fff7ed;
  font-size: clamp(18px, 2vw, 24px);
}

.hero-tags,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-tags span,
.detail-meta span,
.tag-row span,
.tag-cloud span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-weight: 800;
}

.hero-tags span {
  padding: 7px 13px;
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}

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

.centered-actions {
  justify-content: center;
}

.hero-visual {
  position: relative;
  display: block;
  justify-self: end;
  width: min(390px, 100%);
  aspect-ratio: 3 / 4;
  border: 10px solid rgba(255, 255, 255, 0.34);
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 35px 70px rgba(120, 53, 15, 0.34);
  transform: rotate(2deg);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-visual span {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 14px 16px;
  color: #fff;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.22), rgba(17, 24, 39, 0.72));
  font-weight: 900;
}

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

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

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

.intro-strip {
  width: var(--container);
  margin: -44px auto 0;
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.intro-strip a {
  display: grid;
  gap: 4px;
  padding: 24px;
  color: var(--gray-700);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(217, 119, 6, 0.12);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}

.intro-strip strong {
  color: var(--gray-900);
  font-size: 20px;
}

.section,
.page-main,
.detail-main {
  width: var(--container);
  margin: 0 auto;
}

.section {
  padding: 76px 0;
}

.soft-section {
  width: 100%;
  margin: 0;
  padding-left: max(16px, calc((100vw - 1180px) / 2));
  padding-right: max(16px, calc((100vw - 1180px) / 2));
  background: linear-gradient(180deg, #fff, var(--amber-50));
}

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

.section-heading p {
  margin: 0 0 6px;
  color: var(--amber-600);
  font-weight: 900;
}

.section-heading h2 {
  max-width: 760px;
  margin: 0;
  color: var(--gray-900);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.section-heading a {
  color: var(--amber-700);
  font-weight: 900;
}

.small-heading h2 {
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: -0.02em;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.category-card {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  padding: 24px;
  border-radius: var(--radius-xl);
  color: #fff;
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
  box-shadow: var(--shadow-card);
  isolation: isolate;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  opacity: 0.32;
  transform: scale(1.04);
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(120, 53, 15, 0.22), rgba(120, 53, 15, 0.78));
}

.category-icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 26px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.22);
  font-size: 24px;
}

.category-card strong,
.category-card em {
  display: block;
}

.category-card strong {
  font-size: 24px;
  line-height: 1.2;
}

.category-card em {
  margin-top: 10px;
  color: #fff7ed;
  font-style: normal;
}

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

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(217, 119, 6, 0.12);
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: 0 12px 32px rgba(31, 41, 55, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, var(--amber-100), var(--amber-400));
}

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

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

.movie-score,
.rank-badge {
  position: absolute;
  top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 30px;
  padding: 0 10px;
  color: #fff;
  border-radius: 999px;
  font-weight: 900;
  background: rgba(17, 24, 39, 0.68);
  backdrop-filter: blur(8px);
}

.movie-score {
  right: 12px;
}

.rank-badge {
  left: 12px;
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
}

.movie-info {
  padding: 18px;
}

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--amber-700);
  font-size: 13px;
  font-weight: 800;
}

.movie-info h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

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

.movie-info p {
  min-height: 68px;
  margin: 10px 0 14px;
  color: var(--gray-600);
  font-size: 14px;
}

.tag-row,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row span,
.tag-cloud span {
  padding: 6px 10px;
  color: var(--amber-800, #92400e);
  background: var(--amber-100);
  font-size: 12px;
}

.page-main {
  padding: 46px 0 70px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 36px;
  padding: 70px 40px;
  text-align: center;
  border-radius: 34px;
  background: linear-gradient(120deg, var(--amber-500), var(--orange-600));
  box-shadow: var(--shadow-soft);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.26;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.46) 2px, transparent 2px);
  background-size: 44px 44px;
}

.page-hero > * {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  max-width: 860px;
  margin: 0 auto 18px;
  color: #fff;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 0 auto;
  color: #fff7ed;
  font-size: 18px;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 160px 160px 150px;
  gap: 12px;
  margin-bottom: 28px;
  padding: 16px;
  border: 1px solid rgba(217, 119, 6, 0.14);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  color: var(--gray-800);
  border: 1px solid rgba(217, 119, 6, 0.22);
  border-radius: 999px;
  outline: 0;
  background: #fff;
}

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

.empty-result {
  margin: 36px 0 0;
  text-align: center;
  color: var(--gray-600);
  font-weight: 800;
}

.category-preview + .category-preview {
  margin-top: 56px;
}

.detail-main {
  padding: 28px 0 80px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 22px;
  color: var(--gray-600);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--amber-700);
  font-weight: 800;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 38px;
  align-items: center;
  padding: 34px;
  border-radius: 34px;
  background:
    linear-gradient(120deg, rgba(245, 158, 11, 0.94), rgba(234, 88, 12, 0.9)),
    radial-gradient(circle at 80% 0%, rgba(255, 255, 255, 0.34), transparent 34%);
  box-shadow: var(--shadow-soft);
}

.detail-poster {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border: 10px solid rgba(255, 255, 255, 0.34);
  border-radius: 30px;
  box-shadow: 0 28px 50px rgba(120, 53, 15, 0.26);
}

.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-copy h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.detail-one-line {
  margin: 18px 0 0;
  color: #fff7ed;
  font-size: 20px;
}

.detail-meta span {
  padding: 7px 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
}

.player-section {
  margin-top: 34px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 34px;
  background: #0f172a;
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.32);
}

.movie-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #0f172a;
  cursor: pointer;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  color: #fff;
  border: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.72));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  padding-left: 4px;
  color: var(--amber-700);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.26);
  font-size: 28px;
}

.player-overlay strong {
  font-size: 22px;
}

.detail-content {
  display: grid;
  gap: 22px;
  margin-top: 34px;
}

.story-card {
  padding: 30px;
  border: 1px solid rgba(217, 119, 6, 0.12);
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: 0 12px 34px rgba(31, 41, 55, 0.08);
}

.story-card h2 {
  margin: 0 0 14px;
  font-size: 28px;
  letter-spacing: -0.03em;
}

.story-card p {
  margin: 0;
  color: var(--gray-700);
  font-size: 17px;
}

.two-column-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.related-section {
  padding-bottom: 0;
}

.site-footer {
  color: var(--amber-50);
  background: linear-gradient(180deg, var(--amber-900), #451a03);
}

.footer-inner {
  width: var(--container);
  margin: 0 auto;
  padding: 48px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: start;
}

.footer-brand {
  color: #fff;
  font-size: 24px;
}

.footer-inner p {
  max-width: 520px;
  margin: 16px 0 0;
  color: var(--amber-100);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 12px 24px;
  font-weight: 800;
}

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

.footer-bottom {
  width: var(--container);
  margin: 0 auto;
  padding: 18px 0 28px;
  color: var(--amber-200);
  border-top: 1px solid rgba(253, 230, 138, 0.2);
  font-size: 14px;
}

@media (max-width: 1080px) {
  .header-search {
    display: none;
  }

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

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

@media (max-width: 820px) {
  .header-inner {
    height: auto;
    min-height: 64px;
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .main-nav {
    display: none;
    width: 100%;
    order: 3;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px 0 4px;
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    width: 100%;
    padding: 10px 0;
  }

  .hero,
  .hero-track {
    min-height: 760px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 28px;
    padding: 36px 0 82px;
  }

  .hero-visual {
    justify-self: start;
    width: min(280px, 86vw);
  }

  .intro-strip {
    grid-template-columns: 1fr;
    margin-top: 20px;
  }

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

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

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

  .detail-poster {
    max-width: 310px;
  }

  .two-column-card,
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  :root {
    --container: min(100vw - 22px, 1180px);
  }

  .hero,
  .hero-track {
    min-height: 720px;
  }

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

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

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

  .page-hero {
    padding: 54px 22px;
    border-radius: 26px;
  }

  .detail-hero,
  .story-card {
    padding: 22px;
    border-radius: 26px;
  }

  .player-shell {
    border-radius: 24px;
  }
}
