: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-500: #f97316;
  --orange-700: #c2410c;
  --orange-900: #7c2d12;
  --text: #2b2118;
  --muted: #786452;
  --paper: #fffaf0;
  --card: #ffffff;
  --shadow: 0 20px 45px rgba(120, 53, 15, 0.18);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 48%, #fff 100%);
  line-height: 1.6;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, var(--amber-900), var(--orange-700), var(--amber-900));
  box-shadow: 0 12px 30px rgba(120, 53, 15, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--amber-50);
  min-width: 190px;
}

.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--amber-100);
  color: var(--amber-900);
  font-weight: 900;
  box-shadow: inset 0 -6px 12px rgba(245, 158, 11, 0.35);
}

.brand strong {
  display: block;
  font-size: 22px;
  letter-spacing: 0.02em;
}

.brand small {
  display: block;
  color: var(--amber-200);
  font-size: 12px;
}

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

.main-nav a,
.mobile-nav a {
  color: var(--amber-50);
  font-weight: 700;
  transition: color 0.2s ease;
}

.main-nav a:hover,
.mobile-nav a:hover {
  color: var(--amber-200);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 12px;
}

.header-search input,
.mobile-nav input,
.large-search input,
.filter-bar input,
.filter-bar select {
  border: 1px solid rgba(180, 83, 9, 0.25);
  border-radius: 999px;
  padding: 12px 16px;
  font: inherit;
  outline: none;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
}

.header-search input {
  width: 240px;
  background: rgba(120, 53, 15, 0.45);
  color: var(--amber-50);
  border-color: rgba(253, 230, 138, 0.35);
}

.header-search input::placeholder {
  color: var(--amber-200);
}

button,
.primary-btn,
.secondary-btn,
.outline-link,
.header-search button,
.large-search button,
.mobile-nav button {
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search button,
.primary-btn,
.large-search button,
.mobile-nav button {
  background: var(--amber-600);
  color: white;
  box-shadow: 0 12px 24px rgba(217, 119, 6, 0.28);
}

.header-search button:hover,
.primary-btn:hover,
.large-search button:hover,
.mobile-nav button:hover {
  background: var(--amber-700);
  transform: translateY(-2px);
}

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

.outline-link {
  display: inline-flex;
  color: var(--amber-800);
  border: 1px solid var(--amber-300);
  background: var(--amber-50);
}

.nav-toggle {
  display: none;
  color: var(--amber-50);
  background: transparent;
  font-size: 28px;
  padding: 8px;
  margin-left: auto;
  box-shadow: none;
}

.mobile-nav {
  display: none;
  padding: 0 16px 18px;
  background: rgba(120, 53, 15, 0.96);
}

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

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

.hero-section {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  color: var(--amber-50);
}

.hero-bg,
.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.72) saturate(1.08);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 28%, rgba(252, 211, 77, 0.4), transparent 28%),
    linear-gradient(180deg, rgba(120, 53, 15, 0.45), rgba(124, 45, 18, 0.35) 45%, var(--paper));
}

.hero-content {
  position: relative;
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  align-items: center;
  gap: 42px;
  padding: 64px 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--amber-600);
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-copy .eyebrow,
.page-hero .eyebrow,
.detail-copy .breadcrumb,
.detail-copy .detail-meta {
  color: var(--amber-100);
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-shadow: 0 18px 32px rgba(0, 0, 0, 0.35);
}

.hero-desc {
  max-width: 740px;
  margin: 24px 0;
  font-size: clamp(18px, 2vw, 24px);
  color: var(--amber-100);
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.hero-tags,
.detail-meta,
.tag-row,
.hero-actions,
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero-tags span,
.detail-meta span,
.tag-row span {
  display: inline-flex;
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--amber-900);
  background: rgba(254, 243, 199, 0.9);
  font-weight: 800;
  font-size: 13px;
}

.hero-actions {
  margin-top: 28px;
}

.hero-panel {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 30px;
  background: rgba(120, 53, 15, 0.36);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.hero-panel h2 {
  margin: 0 0 16px;
}

.hero-feature {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
}

.hero-feature img,
.hero-thumb img {
  border-radius: 18px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.hero-feature strong,
.hero-feature small,
.hero-thumb span {
  display: block;
}

.hero-feature strong {
  font-size: 20px;
}

.hero-feature small {
  color: var(--amber-200);
}

.hero-thumbs {
  display: grid;
  gap: 10px;
}

.hero-thumb {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
}

.section-block {
  padding: 68px 0;
}

.feature-band {
  padding: 28px 0;
  background: linear-gradient(90deg, var(--amber-800), var(--orange-700), var(--amber-900));
  color: var(--amber-50);
}

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

.stats-grid div {
  padding: 24px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.12);
  text-align: center;
}

.stats-grid strong {
  display: block;
  font-size: 38px;
}

.stats-grid span {
  color: var(--amber-200);
}

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

.section-title-row h2 {
  margin: 0;
  color: var(--amber-900);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.1;
}

.section-title-row a {
  color: var(--amber-800);
  font-weight: 900;
}

.compact {
  margin-bottom: 18px;
}

.compact h2 {
  font-size: 30px;
}

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 14px 30px rgba(120, 53, 15, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, var(--amber-100), var(--orange-500));
}

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

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

.year-badge,
.type-badge {
  position: absolute;
  top: 14px;
  border-radius: 999px;
  padding: 6px 10px;
  color: white;
  background: var(--amber-600);
  font-size: 12px;
  font-weight: 900;
}

.year-badge {
  right: 14px;
}

.type-badge {
  left: 14px;
  background: rgba(120, 53, 15, 0.78);
}

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

.movie-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.25;
  color: var(--amber-900);
}

.movie-meta,
.movie-line {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 14px;
}

.movie-line {
  display: -webkit-box;
  min-height: 44px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row {
  gap: 7px;
}

.tag-row span {
  color: var(--amber-800);
  background: var(--amber-100);
  font-size: 12px;
}

.warm-section {
  background: linear-gradient(135deg, var(--amber-50), #fff7ed);
}

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

.category-tile {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  border-radius: 26px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: var(--shadow);
  color: white;
}

.category-tile img,
.category-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.category-tile img {
  object-fit: cover;
  transition: transform 0.45s ease;
}

.category-tile:hover img {
  transform: scale(1.08);
}

.category-shade {
  background: linear-gradient(180deg, transparent, rgba(120, 53, 15, 0.9));
}

.category-tile strong,
.category-tile small {
  position: relative;
  display: block;
}

.category-tile strong {
  font-size: 24px;
}

.category-tile small {
  color: var(--amber-100);
}

.split-grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 34px;
}

.rank-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.rank-item a {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: white;
  box-shadow: 0 10px 24px rgba(120, 53, 15, 0.09);
}

.rank-num {
  color: var(--amber-600);
  font-size: 20px;
  font-weight: 900;
}

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

.rank-score {
  color: var(--muted);
  font-size: 13px;
}

.mini-grid {
  columns: 2 260px;
  column-gap: 20px;
}

.mini-grid .movie-card {
  break-inside: avoid;
  margin-bottom: 20px;
}

.page-hero {
  position: relative;
  padding: 74px 0;
  color: white;
  background:
    radial-gradient(circle at 20% 20%, rgba(252, 211, 77, 0.38), transparent 30%),
    linear-gradient(90deg, var(--amber-700), var(--orange-700), var(--amber-900));
}

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

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--amber-100);
  font-size: 18px;
}

.category-overview-grid {
  display: grid;
  gap: 24px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 22px;
  border-radius: 28px;
  background: white;
  box-shadow: var(--shadow);
}

.category-cover {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
}

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

.category-cover span {
  position: absolute;
  right: 12px;
  bottom: 10px;
  color: white;
  font-weight: 900;
  font-size: 28px;
  text-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

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

.category-count {
  color: var(--amber-700);
  font-weight: 900;
}

.sample-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sample-links a {
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--amber-100);
  color: var(--amber-800);
  font-weight: 800;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: end;
  padding: 24px;
  margin-top: 28px;
  border-radius: 24px;
  background: white;
  box-shadow: var(--shadow);
}

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

.filter-bar input,
.filter-bar select {
  min-width: 220px;
}

.category-list-block {
  padding-top: 34px;
}

.table-wrap {
  overflow-x: auto;
  border-radius: 24px;
  background: white;
  box-shadow: var(--shadow);
}

.rank-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

.rank-table th,
.rank-table td {
  padding: 16px;
  border-bottom: 1px solid var(--amber-100);
  text-align: left;
}

.rank-table th {
  color: var(--amber-900);
  background: var(--amber-100);
}

.rank-table a {
  color: var(--amber-800);
  font-weight: 900;
}

.table-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--amber-600);
  color: white;
  font-weight: 900;
}

.large-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  max-width: 720px;
  margin-top: 28px;
}

.large-search input {
  width: 100%;
  padding: 16px 20px;
}

.search-status h2 {
  margin: 0 0 6px;
  color: var(--amber-900);
}

.detail-hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  color: white;
}

.detail-mask {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(120, 53, 15, 0.95), rgba(120, 53, 15, 0.62), rgba(255, 251, 235, 0.96)),
    linear-gradient(180deg, transparent, var(--paper));
}

.detail-hero-inner {
  position: relative;
  min-height: 560px;
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 40px;
  align-items: center;
  padding: 46px 0;
}

.detail-poster img {
  width: 100%;
  border-radius: 28px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.breadcrumb {
  margin-bottom: 16px;
  font-weight: 800;
}

.detail-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
}

.detail-line {
  max-width: 760px;
  font-size: 20px;
  color: var(--amber-100);
}

.detail-tags {
  margin-top: 18px;
}

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

.detail-main,
.detail-side {
  display: grid;
  gap: 22px;
}

.player-card,
.content-card,
.side-card {
  padding: 22px;
  border-radius: 28px;
  background: white;
  box-shadow: var(--shadow);
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #160c06;
}

.video-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #160c06;
}

.play-mask {
  position: absolute;
  inset: 0;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  color: white;
  background: rgba(0, 0, 0, 0.36);
  font-size: 22px;
}

.play-mask span {
  width: 72px;
  height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--amber-600);
}

.play-mask.is-hidden {
  display: none;
}

.player-note {
  color: var(--muted);
  margin-bottom: 0;
}

.content-card h2,
.side-card h2 {
  margin: 0 0 12px;
  color: var(--amber-900);
}

.content-card p {
  margin: 0;
  white-space: pre-line;
}

.info-list dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.info-list div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--amber-100);
}

.info-list dt {
  color: var(--amber-800);
  font-weight: 900;
}

.info-list dd {
  margin: 0;
}

.prev-next {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.prev-next a {
  padding: 16px;
  border-radius: 18px;
  background: var(--amber-100);
  color: var(--amber-800);
  font-weight: 900;
}

.side-rank .rank-item a {
  grid-template-columns: 40px 1fr;
}

.side-rank .rank-score {
  display: none;
}

.is-hidden-card,
.rank-table tr.is-hidden-card {
  display: none;
}

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

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

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

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

  .hero-panel {
    max-width: 620px;
  }
}

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

  .main-nav {
    display: none;
  }

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

  .header-inner {
    min-height: 68px;
  }

  .brand strong {
    font-size: 19px;
  }

  .hero-section,
  .hero-content {
    min-height: auto;
  }

  .hero-content {
    grid-template-columns: 1fr;
    padding: 52px 0 64px;
  }

  .hero-copy h1 {
    font-size: 42px;
  }

  .stats-grid,
  .movie-grid,
  .category-grid,
  .category-overview-card,
  .detail-hero-inner,
  .prev-next,
  .large-search {
    grid-template-columns: 1fr;
  }

  .movie-grid {
    gap: 18px;
  }

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

  .filter-bar {
    align-items: stretch;
  }

  .filter-bar label,
  .filter-bar input,
  .filter-bar select {
    width: 100%;
    min-width: 0;
  }

  .rank-item a {
    grid-template-columns: 38px 1fr;
  }

  .rank-score {
    grid-column: 2;
  }
}
