:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --amber-900: #78350f;
  --orange-50: #fff7ed;
  --orange-500: #f97316;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow-sm: 0 10px 25px rgba(120, 53, 15, 0.08);
  --shadow-md: 0 18px 45px rgba(120, 53, 15, 0.14);
  --shadow-lg: 0 26px 70px rgba(120, 53, 15, 0.22);
  --radius-lg: 18px;
  --radius-xl: 26px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--gray-900);
  background: linear-gradient(180deg, var(--amber-50), #ffffff 48%, var(--orange-50));
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  line-height: 1.6;
}

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

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

.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.16);
  box-shadow: 0 10px 30px rgba(120, 53, 15, 0.08);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 70px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--amber-700);
}

.brand-mark,
.footer-brand span {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber-600), var(--orange-500));
  box-shadow: 0 12px 30px rgba(217, 119, 6, 0.28);
  font-size: 15px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}

.desktop-nav a,
.mobile-panel nav a {
  color: var(--gray-700);
  font-weight: 700;
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active,
.mobile-panel nav a:hover,
.mobile-panel nav a.is-active {
  color: var(--amber-600);
}

.header-search,
.mobile-panel form,
.page-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-panel input,
.page-search input {
  width: 190px;
  border: 1px solid rgba(217, 119, 6, 0.28);
  border-radius: 999px;
  padding: 10px 15px;
  outline: none;
  color: var(--gray-900);
  background: #ffffff;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.header-search input:focus,
.mobile-panel input:focus,
.page-search input:focus {
  border-color: var(--amber-500);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18);
}

.header-search button,
.mobile-panel button,
.page-search button {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  color: #ffffff;
  background: var(--amber-600);
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.header-search button:hover,
.mobile-panel button:hover,
.page-search button:hover {
  background: var(--amber-700);
  transform: translateY(-1px);
}

.mobile-menu-button {
  display: none;
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--gray-700);
  font-size: 28px;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  padding: 0 18px 18px;
  background: #ffffff;
  border-top: 1px solid var(--amber-100);
}

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

.mobile-panel form {
  margin: 14px 0;
}

.mobile-panel input {
  flex: 1;
  width: auto;
}

.mobile-panel nav {
  display: grid;
  gap: 10px;
}

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

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background-image: radial-gradient(circle at 20px 20px, rgba(255, 255, 255, 0.75) 0 3px, transparent 3px);
  background-size: 52px 52px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.65fr);
  align-items: center;
  gap: 56px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0;
  opacity: 0;
  pointer-events: none;
  transform: translateX(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: -80px -120px;
  z-index: 0;
  background-image: linear-gradient(90deg, rgba(120, 53, 15, 0.72), rgba(217, 119, 6, 0.32)), var(--hero-image);
  background-size: cover;
  background-position: center;
  filter: blur(32px);
  opacity: 0.42;
  transform: scale(1.08);
}

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

.hero-copy,
.hero-poster {
  position: relative;
  z-index: 1;
}

.hero-copy {
  color: #ffffff;
  max-width: 720px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--amber-700);
  background: rgba(254, 243, 199, 0.92);
  border: 1px solid rgba(245, 158, 11, 0.24);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.hero-copy .eyebrow,
.detail-copy .eyebrow {
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.22);
}

.hero-copy h1 {
  margin: 22px 0 16px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

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

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

.hero-tags span,
.detail-meta span,
.tag-row span,
.tag-cloud a {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.17);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 13px;
  font-weight: 700;
}

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

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  padding: 0 24px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: var(--amber-700);
  background: #ffffff;
  box-shadow: 0 16px 35px rgba(120, 53, 15, 0.18);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.ghost-button {
  color: #ffffff;
  background: rgba(120, 53, 15, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.32);
}

.ghost-button.warm {
  color: var(--amber-700);
  background: var(--amber-100);
  border-color: var(--amber-200);
}

.hero-poster {
  display: block;
  justify-self: center;
  width: min(340px, 86vw);
  aspect-ratio: 3 / 4;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 36px 90px rgba(120, 53, 15, 0.34);
  transform: rotate(2deg);
}

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

.hero-nav {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 18px;
  transform: translateX(-50%);
}

.hero-nav > button,
.hero-dots button {
  border: 0;
  cursor: pointer;
}

.hero-nav > button {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(120, 53, 15, 0.32);
  font-size: 30px;
  line-height: 1;
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.is-active {
  width: 34px;
  background: #ffffff;
}

.section {
  padding: 72px 0;
}

.white-section {
  background: #ffffff;
}

.soft-section {
  background: linear-gradient(180deg, #ffffff, var(--amber-50));
}

.section > * {
  width: min(1180px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.section-head {
  margin-bottom: 34px;
}

.centered {
  max-width: 780px;
  text-align: center;
}

.split-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.section-head h2,
.page-hero h1,
.detail-copy h1 {
  margin: 14px 0 10px;
  color: var(--gray-900);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.16;
  letter-spacing: -0.03em;
}

.section-head p,
.page-hero p {
  margin: 0;
  color: var(--gray-600);
  font-size: 17px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  color: var(--amber-700);
  font-weight: 900;
}

.text-link:hover {
  color: var(--orange-500);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.feature-grid article,
.category-card,
.story-card {
  border: 1px solid rgba(217, 119, 6, 0.12);
  border-radius: var(--radius-xl);
  padding: 28px;
  background: linear-gradient(135deg, #ffffff, var(--amber-50));
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-grid article:hover,
.category-card:hover,
.story-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-grid span,
.category-icon {
  display: inline-flex;
  width: 50px;
  height: 50px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--amber-700);
  background: var(--amber-100);
  font-weight: 900;
}

.feature-grid h3,
.category-card strong,
.story-card h2 {
  margin: 16px 0 8px;
  color: var(--gray-900);
  font-size: 22px;
}

.feature-grid p,
.category-card span,
.story-card p {
  color: var(--gray-600);
}

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

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

.movie-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-xl);
  color: inherit;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

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

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

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

.poster-gradient {
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(180deg, transparent, rgba(17, 24, 39, 0.72));
}

.movie-badge,
.movie-score {
  position: absolute;
  top: 12px;
  z-index: 2;
  border-radius: 999px;
  padding: 6px 10px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  background: rgba(120, 53, 15, 0.72);
  backdrop-filter: blur(12px);
}

.movie-badge {
  left: 12px;
}

.movie-score {
  right: 12px;
  color: var(--amber-900);
  background: rgba(254, 243, 199, 0.92);
}

.movie-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 9px;
  padding: 16px;
}

.movie-card-body strong {
  display: -webkit-box;
  min-height: 1.5em;
  overflow: hidden;
  color: var(--gray-900);
  font-size: 18px;
  line-height: 1.35;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

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

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

.movie-meta span + span::before {
  content: "·";
  margin-right: 8px;
  color: var(--amber-500);
}

.tag-row span {
  color: var(--amber-700);
  background: var(--amber-50);
  border-color: var(--amber-100);
}

.movie-card-compact .movie-card-body strong {
  font-size: 16px;
}

.movie-card-compact .movie-line {
  font-size: 13px;
}

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

.category-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.category-card-main {
  display: block;
}

.category-icon {
  font-size: 24px;
}

.category-card-main > span:not(.category-icon) {
  display: block;
}

.category-samples {
  display: grid;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(217, 119, 6, 0.12);
}

.category-samples a {
  color: var(--gray-600);
  font-size: 14px;
}

.category-samples a:hover {
  color: var(--amber-700);
}

.page-hero {
  padding: 90px 16px 74px;
  text-align: center;
  background: radial-gradient(circle at 50% 0%, rgba(245, 158, 11, 0.22), transparent 42%), linear-gradient(180deg, #fff7ed, #ffffff);
}

.page-hero > * {
  width: min(860px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.page-search {
  justify-content: center;
  margin-top: 24px;
}

.page-search input {
  width: min(560px, 72vw);
  padding: 14px 18px;
}

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

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

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

.rank-item {
  display: grid;
  grid-template-columns: 54px 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(217, 119, 6, 0.12);
  border-radius: 18px;
  padding: 12px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.rank-no {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber-600), var(--orange-500));
  font-weight: 900;
}

.rank-item img {
  width: 64px;
  height: 84px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-copy {
  display: grid;
  min-width: 0;
}

.rank-copy strong {
  overflow: hidden;
  color: var(--gray-900);
  white-space: nowrap;
  text-overflow: ellipsis;
}

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

.rank-score {
  color: var(--amber-700);
  font-weight: 900;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  background-image: linear-gradient(90deg, rgba(120, 53, 15, 0.92), rgba(217, 119, 6, 0.58)), var(--detail-image);
  background-position: center;
  background-size: cover;
}

.detail-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 75% 20%, rgba(255, 255, 255, 0.2), transparent 30%);
}

.detail-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  align-items: center;
  gap: 44px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 76px 0;
}

.detail-poster {
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(17, 24, 39, 0.42);
}

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

.detail-copy {
  color: #ffffff;
}

.detail-copy h1 {
  color: #ffffff;
  font-size: clamp(36px, 5vw, 62px);
}

.detail-copy p {
  max-width: 760px;
  color: #fff7ed;
  font-size: 20px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
}

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

.player-section {
  background: #111827;
  color: #ffffff;
}

.player-section .section-head h2,
.player-section .section-head p {
  color: #ffffff;
}

.player-section .text-link {
  color: var(--amber-100);
}

.player {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #000000;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
}

.player video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  cursor: pointer;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.28), rgba(17, 24, 39, 0.76));
  cursor: pointer;
}

.player-overlay span {
  display: inline-flex;
  width: 88px;
  height: 88px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--amber-700);
  background: #ffffff;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.32);
  font-size: 32px;
}

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

.player.is-playing .player-overlay {
  display: none;
}

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

.story-card {
  background: #ffffff;
}

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

.tag-cloud {
  margin-top: 28px;
}

.tag-cloud a {
  color: var(--amber-700);
  background: #ffffff;
  border-color: var(--amber-100);
  box-shadow: var(--shadow-sm);
}

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

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 36px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0 30px;
}

.footer-inner p {
  max-width: 320px;
  color: var(--amber-200);
}

.footer-inner strong {
  display: block;
  margin-bottom: 12px;
  color: #ffffff;
}

.footer-inner a:not(.footer-brand) {
  display: block;
  margin: 8px 0;
  color: var(--amber-200);
  font-size: 14px;
}

.footer-inner a:hover {
  color: #ffffff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  border-top: 1px solid rgba(254, 243, 199, 0.18);
  color: rgba(254, 243, 199, 0.78);
  font-size: 14px;
}

.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: var(--amber-600);
  box-shadow: var(--shadow-md);
  cursor: pointer;
}

.back-top.is-visible {
  display: block;
}

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

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

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

  .full-rank,
  .preview-rank {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

  .mobile-menu-button {
    display: block;
  }

  .header-inner {
    height: 64px;
  }

  .brand {
    font-size: 21px;
  }

  .hero-carousel {
    min-height: 740px;
  }

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

  .hero-tags,
  .hero-actions,
  .detail-meta,
  .detail-actions {
    justify-content: center;
  }

  .hero-poster {
    width: min(260px, 72vw);
  }

  .split-head {
    align-items: start;
    flex-direction: column;
  }

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

  .detail-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .detail-poster {
    width: min(260px, 72vw);
    margin: 0 auto;
  }

  .breadcrumb {
    justify-content: center;
  }

  .content-layout,
  .footer-inner,
  .category-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .section {
    padding: 50px 0;
  }

  .movie-grid,
  .compact-grid {
    gap: 14px;
  }

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

  .movie-line,
  .tag-row {
    display: none;
  }

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

  .rank-score {
    display: none;
  }

  .rank-item img {
    width: 52px;
    height: 70px;
  }

  .page-search {
    align-items: stretch;
    flex-direction: column;
  }

  .page-search input {
    width: 100%;
  }
}
