:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-300: #fcd34d;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --amber-800: #92400e;
  --amber-900: #78350f;
  --orange-50: #fff7ed;
  --orange-100: #ffedd5;
  --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-sm: 0 1px 2px rgba(17, 24, 39, 0.08);
  --shadow-md: 0 10px 25px rgba(120, 53, 15, 0.12);
  --shadow-lg: 0 22px 45px rgba(120, 53, 15, 0.20);
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 28px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 251, 235, 0.96);
  border-bottom: 1px solid var(--amber-200);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
}

.header-inner {
  width: min(100%, var(--max-width));
  height: 66px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  color: var(--white);
  font-size: 14px;
  box-shadow: 0 10px 20px rgba(217, 119, 6, 0.28);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--amber-800);
  font-weight: 700;
}

.desktop-nav a,
.mobile-nav a,
.footer-links a {
  transition: color 0.25s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover,
.footer-links a:hover {
  color: var(--amber-600);
}

.header-search,
.mobile-search {
  display: flex;
  align-items: stretch;
}

.header-search input,
.mobile-search input,
.search-panel input,
.filter-bar input,
.filter-bar select {
  border: 1px solid var(--amber-300);
  background: var(--white);
  color: var(--gray-800);
  outline: none;
}

.header-search input {
  width: 255px;
  padding: 10px 12px;
  border-radius: 10px 0 0 10px;
}

.header-search button,
.mobile-search button,
.search-panel button {
  border: none;
  padding: 0 16px;
  background: var(--amber-600);
  color: var(--white);
  border-radius: 0 10px 10px 0;
  cursor: pointer;
  font-weight: 700;
  transition: background 0.25s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.search-panel button:hover {
  background: var(--amber-700);
}

.mobile-menu-button {
  display: none;
  border: none;
  background: transparent;
  color: var(--amber-800);
  font-size: 28px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 0 20px 18px;
  border-top: 1px solid var(--amber-200);
}

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

.mobile-search input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 10px 0 0 10px;
}

.hero {
  position: relative;
  min-height: 520px;
  height: 70vh;
  overflow: hidden;
  background: var(--gray-900);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #30210d, #78350f);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.64), rgba(0, 0, 0, 0.14));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100%, var(--max-width));
  height: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: min(var(--max-width), 100%);
}

.hero-content h1 {
  max-width: 690px;
  margin: 16px 0 18px;
  color: var(--white);
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero-content p {
  max-width: 660px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  color: var(--amber-300);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 30px;
  color: var(--white);
}

.hero-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

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

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

.primary-button {
  background: var(--amber-600);
  color: var(--white);
  box-shadow: 0 16px 30px rgba(217, 119, 6, 0.34);
}

.primary-button:hover {
  transform: translateY(-2px) scale(1.02);
  background: var(--amber-700);
}

.ghost-button {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.ghost-button:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.2);
}

.hero-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.52);
  color: var(--white);
  font-size: 34px;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.25s ease;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.78);
}

.hero-prev {
  left: 20px;
}

.hero-next {
  right: 20px;
}

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

.hero-dots button {
  width: 12px;
  height: 12px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dots button.is-active {
  width: 34px;
  background: var(--amber-500);
}

.content-shell,
.detail-shell,
.footer-inner {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.content-shell {
  padding-top: 56px;
  padding-bottom: 64px;
}

.home-section {
  margin-bottom: 68px;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.18;
}

.section-more {
  color: var(--amber-600);
  font-weight: 800;
  white-space: nowrap;
}

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

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

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

.hot-panel {
  padding: 34px;
  border-radius: var(--radius-xl);
  background: linear-gradient(110deg, var(--amber-100), var(--orange-100));
  box-shadow: var(--shadow-md);
}

.top-panel {
  padding: 34px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--amber-900), #7c2d12);
  box-shadow: var(--shadow-lg);
}

.top-panel .section-heading h2,
.top-panel .section-more {
  color: var(--white);
}

.scroll-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(235px, 1fr);
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 18px;
  scrollbar-width: thin;
}

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-md);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

.card-cover {
  position: relative;
  display: block;
  height: 255px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--amber-200), var(--amber-700));
}

.movie-card.large .card-cover {
  height: 320px;
}

.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.34s ease;
}

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

.card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.3s ease;
}

.movie-card:hover .card-cover::after {
  background: rgba(0, 0, 0, 0.34);
}

.score-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  padding: 4px 9px;
  border-radius: 8px;
  background: var(--amber-600);
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
}

.card-play {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 60px;
  height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--amber-600);
  color: var(--white);
  font-size: 24px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.85);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.movie-card:hover .card-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.card-body {
  padding: 17px;
}

.card-body h3 {
  margin: 0 0 10px;
  min-height: 48px;
  font-size: 17px;
  line-height: 1.4;
}

.card-body h3 a:hover {
  color: var(--amber-600);
}

.card-meta,
.rank-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--gray-600);
  font-size: 14px;
}

.card-body p {
  min-height: 44px;
  margin: 0 0 12px;
  color: var(--gray-600);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-row,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-row span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--amber-100);
  color: var(--amber-700);
  font-size: 12px;
  font-weight: 700;
}

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

.year-tile {
  min-height: 138px;
  padding: 26px;
  border: 2px solid var(--amber-200);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.year-tile:hover {
  transform: translateY(-4px);
  border-color: var(--amber-500);
  box-shadow: var(--shadow-md);
}

.year-tile strong {
  display: block;
  color: var(--amber-600);
  font-size: 30px;
  line-height: 1.1;
}

.year-tile span {
  display: block;
  margin-top: 10px;
  color: var(--gray-600);
}

.page-main {
  min-height: 60vh;
}

.page-hero {
  padding: 84px 20px 64px;
  text-align: center;
  background: linear-gradient(135deg, var(--amber-900), #9a3412);
  color: var(--white);
}

.compact-hero h1 {
  margin: 12px auto 16px;
  max-width: 850px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
}

.compact-hero p {
  max-width: 760px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

.category-overview {
  padding-top: 42px;
}

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

.category-card a {
  display: grid;
  min-height: 232px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card a:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.category-card h2 {
  margin: 0 0 12px;
  color: var(--amber-900);
  font-size: 26px;
}

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

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: start;
}

.category-samples span {
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--amber-100);
  color: var(--amber-800);
  font-size: 12px;
}

.category-card strong {
  align-self: end;
  margin-top: 18px;
  color: var(--amber-600);
}

.filter-bar {
  margin-bottom: 28px;
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 16px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.filter-bar label {
  display: grid;
  gap: 6px;
  color: var(--amber-900);
  font-weight: 800;
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 10px;
}

.rank-hero {
  background: radial-gradient(circle at top left, rgba(245, 158, 11, 0.35), transparent 38%), linear-gradient(135deg, #111827, var(--amber-900));
}

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

.rank-item {
  display: grid;
  grid-template-columns: 56px 126px 1fr;
  gap: 20px;
  align-items: center;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.rank-number {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--amber-100);
  color: var(--amber-800);
  font-size: 22px;
  font-weight: 900;
}

.top-rank .rank-number {
  background: var(--amber-600);
  color: var(--white);
}

.rank-cover {
  height: 150px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--amber-100);
}

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

.rank-info h2 {
  margin: 0 0 8px;
  font-size: 23px;
}

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

.search-panel {
  max-width: 720px;
  margin: 30px auto 0;
  display: flex;
  align-items: stretch;
}

.search-panel input {
  flex: 1;
  min-height: 54px;
  padding: 0 18px;
  border-radius: 14px 0 0 14px;
}

.search-panel button {
  min-width: 110px;
  border-radius: 0 14px 14px 0;
}

.search-status {
  margin-bottom: 22px;
  color: var(--amber-900);
  font-size: 22px;
  font-weight: 900;
}

.detail-page {
  background: linear-gradient(180deg, var(--gray-900), var(--gray-800) 42%, var(--amber-50) 42%, var(--white));
}

.detail-player {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 34px 20px 0;
}

.video-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  background: #000000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
}

.movie-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
}

.video-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.66));
  color: var(--white);
  cursor: pointer;
}

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

.big-play {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--amber-600);
  color: var(--white);
  font-size: 34px;
  box-shadow: 0 18px 38px rgba(217, 119, 6, 0.42);
}

.video-overlay span:last-child {
  max-width: min(92%, 680px);
  font-size: clamp(22px, 4vw, 40px);
  font-weight: 900;
  text-align: center;
}

.detail-shell {
  padding-top: 30px;
  padding-bottom: 68px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 20px;
  color: var(--amber-700);
  font-weight: 700;
}

.detail-info-card {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 28px;
  padding: 28px;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

.detail-cover {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--amber-100);
}

.detail-cover img {
  width: 100%;
  height: 100%;
  min-height: 330px;
  object-fit: cover;
}

.detail-text h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.12;
}

.detail-meta {
  margin-bottom: 20px;
}

.detail-meta span,
.detail-meta strong {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--amber-100);
  color: var(--amber-800);
}

.detail-meta strong {
  background: var(--amber-600);
  color: var(--white);
}

.detail-one-line {
  margin: 0 0 18px;
  color: var(--gray-700);
  font-size: 18px;
}

.story-card {
  margin-top: 28px;
  padding: 32px;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.story-card h2 {
  margin: 0 0 12px;
  color: var(--amber-900);
  font-size: 26px;
}

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

.related-section {
  margin-top: 42px;
}

.site-footer {
  background: var(--amber-900);
  color: var(--amber-50);
}

.footer-inner {
  padding-top: 42px;
  padding-bottom: 42px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: start;
}

.footer-brand {
  color: var(--white);
}

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

.footer-links {
  display: grid;
  gap: 12px;
  color: var(--amber-200);
  font-weight: 700;
}

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

  .mobile-menu-button {
    display: inline-flex;
  }

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

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

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

@media (max-width: 720px) {
  .header-inner {
    height: 62px;
  }

  .brand {
    font-size: 20px;
  }

  .hero {
    min-height: 560px;
    height: auto;
  }

  .hero-content {
    padding-top: 88px;
    padding-bottom: 86px;
  }

  .hero-arrow {
    display: none;
  }

  .content-shell {
    padding-top: 38px;
  }

  .hot-panel,
  .top-panel,
  .story-card,
  .detail-info-card {
    padding: 22px;
  }

  .large-grid,
  .compact-grid,
  .listing-grid,
  .category-grid,
  .year-grid {
    grid-template-columns: 1fr;
  }

  .card-cover,
  .movie-card.large .card-cover {
    height: 260px;
  }

  .rank-item {
    grid-template-columns: 44px 92px 1fr;
    gap: 14px;
    padding: 14px;
  }

  .rank-cover {
    height: 118px;
  }

  .rank-info h2 {
    font-size: 18px;
  }

  .rank-info p {
    display: none;
  }

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

  .detail-cover img {
    max-height: 440px;
  }

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