:root {
  --amber-50: #fff7ed;
  --amber-100: #ffedd5;
  --amber-200: #fed7aa;
  --amber-400: #f59e0b;
  --amber-500: #f97316;
  --amber-600: #ea580c;
  --red-500: #ef4444;
  --rose-500: #f43f5e;
  --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-sm: 0 8px 24px rgba(17, 24, 39, 0.08);
  --shadow-md: 0 18px 45px rgba(17, 24, 39, 0.12);
  --shadow-lg: 0 30px 70px rgba(17, 24, 39, 0.18);
  --radius-lg: 18px;
  --radius-xl: 26px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--gray-800);
  background: var(--gray-50);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  backdrop-filter: blur(14px);
}

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

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--gray-900);
}

.logo-mark {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  border-radius: 14px;
  background: linear-gradient(135deg, var(--amber-400), var(--amber-600));
  box-shadow: 0 12px 24px rgba(234, 88, 12, 0.28);
}

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

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-link {
  color: var(--gray-700);
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--amber-600);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--amber-50);
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--amber-600);
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
  background: var(--white);
}

.mobile-nav.open {
  display: grid;
  gap: 8px;
}

.mobile-nav-link {
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--gray-700);
  font-weight: 700;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--amber-600);
  background: var(--amber-50);
}

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 25%, rgba(255, 255, 255, 0.28), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.2), transparent 26%),
    linear-gradient(90deg, rgba(17, 24, 39, 0.26), rgba(17, 24, 39, 0.06));
}

.hero-container {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1.05fr 0.78fr;
  align-items: center;
  gap: 48px;
  opacity: 0;
  transform: translateX(24px);
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

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

.hero-copy {
  max-width: 650px;
  color: var(--white);
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff7ed;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero-copy h1 {
  margin: 0 0 20px;
  font-size: clamp(42px, 7vw, 74px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero-copy p {
  margin: 0 0 24px;
  max-width: 620px;
  color: #fff7ed;
  font-size: clamp(18px, 2.4vw, 24px);
}

.hero-tags,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.tag-cloud span {
  padding: 7px 12px;
  color: var(--gray-800);
  background: rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  border: 0;
  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: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--amber-600));
  box-shadow: 0 16px 30px rgba(234, 88, 12, 0.25);
}

.btn.primary.light {
  color: var(--amber-600);
  background: var(--white);
}

.btn.secondary {
  color: var(--amber-700);
  background: rgba(255, 255, 255, 0.9);
}

.btn.full {
  width: 100%;
}

.hero-poster {
  position: relative;
  display: block;
  border-radius: 32px;
  isolation: isolate;
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 32px;
  box-shadow: var(--shadow-lg);
  transform: rotate(2deg);
}

.poster-glow {
  position: absolute;
  inset: 12% -9% -10% 9%;
  z-index: -1;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.3);
  filter: blur(26px);
}

.hero-toolbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.hero-dots {
  display: flex;
  gap: 10px;
}

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

.hero-dot.active {
  width: 32px;
  background: var(--white);
}

.hero-quicklinks {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-quicklinks a {
  padding: 9px 14px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  font-weight: 700;
}

.section {
  padding: 72px 0;
}

.soft-section {
  background: linear-gradient(135deg, #fff7ed, #fffbeb);
}

.white-section {
  background: var(--white);
}

.section-heading {
  margin-bottom: 30px;
}

.section-heading h2 {
  margin: 0;
  color: var(--gray-900);
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
}

.section-heading p {
  margin: 10px 0 0;
  color: var(--gray-600);
  font-size: 16px;
}

.row-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.row-heading > a,
.panel-more {
  color: var(--amber-600);
  font-weight: 800;
}

.center-heading {
  text-align: center;
}

.movie-grid {
  display: grid;
  gap: 24px;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.78);
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--amber-200);
}

.movie-cover {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--gray-100);
}

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

.movie-card:hover .movie-cover img,
.compact-card:hover img,
.ranking-item:hover img {
  transform: scale(1.08);
}

.badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 6px 10px;
  color: var(--amber-600);
  background: var(--white);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}

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

.movie-title {
  display: block;
  margin-bottom: 8px;
  color: var(--gray-900);
  font-size: 18px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.movie-title:hover {
  color: var(--amber-600);
}

.movie-desc {
  min-height: 48px;
  margin: 0 0 14px;
  color: var(--gray-600);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--gray-500);
  font-size: 13px;
}

.movie-meta span {
  padding: 4px 8px;
  background: var(--gray-100);
  border-radius: 999px;
}

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

.compact-card a {
  display: block;
  overflow: hidden;
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

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

.compact-card strong {
  display: block;
  padding: 12px 12px 0;
  color: var(--gray-900);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-card span {
  display: block;
  padding: 2px 12px 14px;
  color: var(--gray-500);
  font-size: 13px;
}

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

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

.category-card {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  color: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-md);
}

.category-card span {
  font-size: 22px;
  font-weight: 900;
}

.category-card em {
  color: rgba(255, 255, 255, 0.88);
  font-style: normal;
  font-size: 14px;
}

.tone-1 { background: linear-gradient(135deg, #f59e0b, #f97316); }
.tone-2 { background: linear-gradient(135deg, #fb923c, #ef4444); }
.tone-3 { background: linear-gradient(135deg, #f472b6, #f43f5e); }
.tone-4 { background: linear-gradient(135deg, #22c55e, #10b981); }
.tone-5 { background: linear-gradient(135deg, #eab308, #f59e0b); }
.tone-6 { background: linear-gradient(135deg, #38bdf8, #6366f1); }

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 34px;
  align-items: start;
}

.ranking-panel {
  position: sticky;
  top: 96px;
  padding: 24px;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, var(--white), var(--amber-50));
  border: 1px solid var(--amber-200);
  box-shadow: var(--shadow-sm);
}

.ranking-panel h2 {
  margin: 0 0 8px;
}

.ranking-panel p {
  margin: 0 0 18px;
  color: var(--gray-600);
}

.rank-row {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 8px 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--amber-200);
}

.rank-num {
  grid-row: span 2;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  border-radius: 11px;
  background: var(--red-500);
  font-weight: 900;
}

.rank-title {
  color: var(--gray-900);
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-meta {
  color: var(--gray-500);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cta-section {
  padding: 76px 0;
  color: var(--white);
  background: linear-gradient(110deg, var(--amber-600), var(--amber-500));
}

.cta-inner {
  text-align: center;
}

.cta-inner h2 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 48px);
}

.cta-inner p {
  margin: 0 0 28px;
  color: #fff7ed;
  font-size: 18px;
}

.page-hero {
  padding: 78px 0;
  color: var(--white);
}

.page-hero h1 {
  max-width: 760px;
  margin: 0 0 12px;
  font-size: clamp(36px, 6vw, 58px);
  line-height: 1.08;
}

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

.amber-hero {
  background: linear-gradient(120deg, var(--amber-400), var(--amber-600));
}

.category-hero {
  background: linear-gradient(120deg, #f97316, #f43f5e);
}

.red-hero {
  background: linear-gradient(120deg, #ef4444, #7f1d1d);
}

.search-hero {
  background: linear-gradient(120deg, #6366f1, #f97316);
}

.category-list {
  align-items: stretch;
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.ranking-cover {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
}

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

.ranking-cover span {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  min-width: 36px;
  padding: 4px 8px;
  color: var(--white);
  background: var(--red-500);
  border-radius: 999px;
  font-weight: 900;
  text-align: center;
}

.ranking-info > a {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--gray-900);
  font-size: 22px;
  font-weight: 900;
}

.ranking-info > a:hover {
  color: var(--amber-600);
}

.ranking-info p {
  margin: 0 0 14px;
  color: var(--gray-600);
}

.search-box {
  max-width: 720px;
  display: flex;
  margin-top: 30px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-md);
}

.search-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 20px;
  color: var(--gray-900);
  background: transparent;
}

.search-box button {
  border: 0;
  padding: 13px 24px;
  border-radius: 999px;
  color: var(--white);
  background: var(--amber-600);
  font-weight: 900;
}

.search-status {
  margin-bottom: 24px;
  color: var(--gray-600);
  font-weight: 700;
}

.detail-section {
  padding: 30px 0 78px;
}

.breadcrumb-line,
.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--amber-600);
  font-weight: 800;
}

.breadcrumb-line span {
  color: var(--gray-400);
}

.detail-card {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.video-shell {
  position: relative;
  overflow: hidden;
  background: #000000;
}

.movie-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: var(--white);
  background: radial-gradient(circle, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.36));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-overlay span {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.94);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  font-size: 34px;
  text-indent: 5px;
}

.video-shell.is-playing .play-overlay {
  opacity: 0;
  visibility: hidden;
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 32px;
  padding: 34px;
}

.detail-main h1 {
  margin: 0 0 12px;
  color: var(--gray-900);
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.12;
}

.lead-text {
  margin: 0 0 18px;
  color: var(--gray-600);
  font-size: 18px;
}

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

.detail-meta span {
  padding: 7px 12px;
  color: var(--amber-600);
  background: var(--amber-50);
  border: 1px solid var(--amber-200);
  border-radius: 999px;
  font-weight: 800;
}

.tag-cloud {
  margin-bottom: 26px;
}

.tag-cloud span {
  color: var(--gray-700);
  background: var(--gray-100);
}

.story-block {
  margin-top: 24px;
}

.story-block h2 {
  margin: 0 0 10px;
  color: var(--gray-900);
  font-size: 24px;
}

.story-block p {
  margin: 0;
  color: var(--gray-700);
  font-size: 16px;
  line-height: 1.9;
}

.poster-panel {
  align-self: start;
  position: sticky;
  top: 96px;
}

.poster-panel img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  margin-bottom: 16px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

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

.prose-card {
  max-width: 900px;
  padding: 40px;
  margin-top: 60px;
  margin-bottom: 72px;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.prose-card h2 {
  margin: 24px 0 8px;
  color: var(--gray-900);
}

.prose-card h2:first-child {
  margin-top: 0;
}

.prose-card p {
  color: var(--gray-700);
}

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

.guide-grid article {
  padding: 24px;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.guide-grid h2 {
  margin: 0 0 10px;
}

.notfound-section {
  min-height: 560px;
  display: flex;
  align-items: center;
}

.notfound-card {
  padding: 54px;
  text-align: center;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.notfound-card h1 {
  margin: 0 0 12px;
  font-size: 46px;
}

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

.site-footer {
  padding: 54px 0;
  color: var(--gray-600);
  background: var(--white);
  border-top: 1px solid var(--gray-200);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 36px;
}

.footer-logo {
  margin-bottom: 12px;
  font-size: 20px;
}

.site-footer p {
  max-width: 520px;
  margin: 0;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: var(--gray-900);
}

.site-footer a:not(.footer-logo) {
  display: block;
  margin: 8px 0;
}

.site-footer a:hover {
  color: var(--amber-600);
}

@media (max-width: 1024px) {
  .three-cols,
  .four-cols,
  .category-grid,
  .category-grid.large,
  .guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .split-layout,
  .detail-content {
    grid-template-columns: 1fr;
  }

  .ranking-panel,
  .poster-panel {
    position: static;
  }
}

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

  .desktop-nav {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

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

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 24px;
  }

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

  .hero-toolbar {
    align-items: flex-start;
    flex-direction: column;
    bottom: 20px;
  }

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

  .three-cols,
  .four-cols,
  .category-grid,
  .category-grid.large,
  .guide-grid {
    grid-template-columns: 1fr;
  }

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

  .ranking-item {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .ranking-info > a {
    font-size: 18px;
  }

  .search-box {
    flex-direction: column;
    gap: 8px;
    border-radius: 22px;
  }

  .search-box input {
    min-height: 48px;
  }

  .detail-content {
    padding: 22px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
