:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-300: #fcd34d;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --amber-900: #78350f;
  --amber-950: #451a03;
  --orange-500: #f97316;
  --slate-950: #0f172a;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #f3e1bd;
  --card: #ffffff;
  --shadow: 0 24px 60px rgba(120, 53, 15, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #fffaf0 0%, #ffffff 32%, #fff7ed 100%);
}

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

img {
  display: block;
  width: 100%;
  height: auto;
}

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, 237, 213, 0.96));
  border-bottom: 1px solid rgba(245, 158, 11, 0.18);
  box-shadow: 0 8px 26px rgba(120, 53, 15, 0.10);
  backdrop-filter: blur(14px);
}

.nav-wrap {
  width: min(1280px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
  box-shadow: 0 12px 24px rgba(217, 119, 6, 0.30);
}

.brand-text {
  font-size: 28px;
  background: linear-gradient(90deg, var(--amber-700), var(--orange-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link,
.mobile-link {
  font-weight: 700;
  color: #4b5563;
  transition: color 0.2s ease, transform 0.2s ease;
}

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

.nav-link:hover {
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.12);
  padding: 10px;
}

.mobile-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--amber-900);
  border-radius: 99px;
}

.mobile-nav {
  display: none;
  padding: 0 24px 20px;
  border-top: 1px solid rgba(245, 158, 11, 0.16);
}

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

.hero-section,
.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at top left, var(--amber-100), transparent 36%), linear-gradient(135deg, var(--amber-100), #fff7ed 48%, var(--amber-200));
}

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

.hero-section::before,
.page-hero::before,
.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  opacity: 0.30;
  transform: scale(1.04);
}

.hero-layer {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 251, 235, 0.94), rgba(255, 247, 237, 0.75), rgba(120, 53, 15, 0.38));
}

.hero-content,
.detail-grid {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 420px;
  gap: 48px;
  align-items: center;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 14px 0 18px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05;
  color: #111827;
  letter-spacing: -0.04em;
}

.hero-copy p,
.page-hero p,
.detail-line {
  max-width: 760px;
  margin: 0 0 28px;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.8;
  color: #374151;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  color: var(--amber-800);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 999px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 10px 26px rgba(120, 53, 15, 0.08);
}

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

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

.primary-btn {
  color: #fff;
  background: linear-gradient(90deg, var(--amber-500), var(--orange-500));
  box-shadow: 0 18px 36px rgba(217, 119, 6, 0.30);
}

.ghost-btn {
  color: var(--amber-700);
  background: rgba(255, 255, 255, 0.82);
  border: 2px solid rgba(245, 158, 11, 0.50);
}

.primary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 20px 42px rgba(120, 53, 15, 0.22);
}

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

.hero-tags a,
.tag-row span {
  display: inline-flex;
  padding: 6px 12px;
  color: var(--amber-800);
  background: rgba(255, 251, 235, 0.84);
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.hero-panel {
  padding: 26px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-panel h2 {
  margin: 0 0 18px;
  color: var(--amber-900);
  font-size: 24px;
}

.mini-card {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  margin-top: 12px;
  background: rgba(255, 251, 235, 0.86);
  border: 1px solid rgba(245, 158, 11, 0.16);
  border-radius: 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mini-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(120, 53, 15, 0.14);
}

.mini-card img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--amber-100), var(--amber-300));
}

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

.mini-card strong {
  color: #111827;
  line-height: 1.35;
}

.mini-card em {
  margin-top: 6px;
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.section-wrap {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0;
}

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

.section-head span {
  display: block;
  color: var(--amber-600);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section-head h2 {
  margin: 4px 0 0;
  color: #111827;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
}

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

.inline-head {
  margin-bottom: 18px;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 220px 220px;
  gap: 14px;
  padding: 16px;
  margin-bottom: 28px;
  background: #fff;
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: 24px;
  box-shadow: 0 12px 36px rgba(120, 53, 15, 0.08);
}

.filter-bar label {
  display: grid;
  gap: 8px;
}

.filter-bar span {
  color: var(--amber-800);
  font-size: 13px;
  font-weight: 900;
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(245, 158, 11, 0.30);
  border-radius: 16px;
  color: #111827;
  background: var(--amber-50);
  outline: none;
}

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

.empty-state {
  display: none;
  grid-column: 1 / -1;
  margin: 0;
  padding: 14px;
  text-align: center;
  color: var(--amber-900);
  background: var(--amber-100);
  border-radius: 16px;
  font-weight: 800;
}

.empty-state.is-visible {
  display: block;
}

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

.movie-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: 24px;
  box-shadow: 0 14px 34px rgba(120, 53, 15, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 54px rgba(120, 53, 15, 0.18);
}

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

.poster-link img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.quality-badge,
.score-badge {
  position: absolute;
  top: 10px;
  padding: 5px 9px;
  color: #fff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.quality-badge {
  left: 10px;
  background: linear-gradient(90deg, var(--amber-500), var(--orange-500));
}

.score-badge {
  right: 10px;
  background: rgba(15, 23, 42, 0.76);
  backdrop-filter: blur(8px);
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  margin: 0 0 8px;
  color: #111827;
  font-size: 17px;
  line-height: 1.4;
}

.card-meta {
  margin: 0 0 10px;
  color: var(--amber-700);
  font-size: 13px;
  font-weight: 800;
}

.card-desc {
  min-height: 44px;
  margin: 0 0 12px;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.6;
}

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

.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 42px 72px 1fr 48px;
  gap: 14px;
  align-items: center;
  padding: 12px;
  background: #fff;
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: 18px;
  box-shadow: 0 10px 26px rgba(120, 53, 15, 0.07);
}

.rank-row img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--amber-100), var(--amber-300));
}

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

.rank-copy strong,
.rank-copy em {
  display: block;
}

.rank-copy strong {
  color: #111827;
}

.rank-copy em {
  margin-top: 4px;
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.rank-row b {
  color: var(--amber-700);
  font-size: 18px;
}

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

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

.category-tile {
  display: grid;
  gap: 14px;
  min-height: 210px;
  padding: 18px;
  background: linear-gradient(135deg, #fff, var(--amber-50));
  border: 1px solid rgba(245, 158, 11, 0.20);
  border-radius: 26px;
  box-shadow: 0 16px 38px rgba(120, 53, 15, 0.09);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 54px rgba(120, 53, 15, 0.16);
}

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

.category-thumbs img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--amber-100), var(--amber-300));
}

.category-tile strong {
  color: #111827;
  font-size: 22px;
}

.category-tile em {
  color: var(--muted);
  font-style: normal;
  line-height: 1.6;
}

.page-hero {
  min-height: 360px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 72px 16px;
}

.soft-hero::before {
  opacity: 0;
}

.page-hero-copy,
.page-hero > h1,
.page-hero > p,
.page-hero > span {
  position: relative;
  z-index: 2;
}

.detail-hero {
  min-height: 560px;
  display: flex;
  align-items: center;
  padding: 64px 0;
}

.detail-grid {
  grid-template-columns: 300px minmax(0, 1fr);
}

.detail-poster img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border: 6px solid rgba(255, 255, 255, 0.84);
  border-radius: 28px;
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, var(--amber-100), var(--amber-300));
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--amber-800);
  font-weight: 800;
}

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

.detail-meta span {
  padding: 8px 12px;
  color: #111827;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(245, 158, 11, 0.20);
  border-radius: 999px;
  font-weight: 800;
}

.detail-section {
  display: grid;
  gap: 34px;
}

.player-card,
.story-card,
.related-section {
  background: #fff;
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: 28px;
  box-shadow: 0 16px 40px rgba(120, 53, 15, 0.10);
}

.player-card,
.story-card {
  padding: 24px;
}

.player-card h2,
.story-card h2 {
  margin: 0 0 18px;
  color: #111827;
  font-size: 28px;
}

.story-card h2:not(:first-child) {
  margin-top: 28px;
}

.story-card p {
  margin: 0;
  color: #374151;
  font-size: 17px;
  line-height: 1.9;
}

.player-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #050505;
  border-radius: 24px;
}

.player-frame video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #050505;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: #fff;
  border: 0;
  background: radial-gradient(circle at center, rgba(245, 158, 11, 0.42), rgba(15, 23, 42, 0.84));
  cursor: pointer;
  transition: opacity 0.22s ease;
}

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

.play-circle {
  width: 74px;
  height: 74px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--amber-700);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
  font-size: 34px;
}

.player-cover strong {
  max-width: 80%;
  text-align: center;
  font-size: clamp(20px, 3vw, 34px);
}

.related-section {
  padding: 24px;
}

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

.movie-card.is-compact .card-desc {
  display: none;
}

.movie-card.is-hidden {
  display: none;
}

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

.footer-grid {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}

.site-footer h2,
.site-footer h3 {
  margin: 0 0 16px;
  color: var(--amber-200);
}

.site-footer p,
.site-footer li {
  color: var(--amber-100);
  line-height: 1.8;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.site-footer a:hover {
  color: #fff;
}

.footer-bottom {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 28px;
  border-top: 1px solid rgba(253, 230, 138, 0.22);
  color: var(--amber-200);
  text-align: center;
}

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

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

@media (max-width: 900px) {
  .desktop-nav {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

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

  .hero-section {
    padding: 56px 0;
  }

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

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

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

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

  .detail-grid {
    gap: 28px;
  }

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

@media (max-width: 640px) {
  .nav-wrap,
  .hero-content,
  .detail-grid,
  .section-wrap,
  .footer-grid,
  .footer-bottom {
    width: min(100% - 24px, 1280px);
  }

  .brand-text {
    font-size: 22px;
  }

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

  .hero-actions {
    display: grid;
  }

  .movie-grid,
  .related-grid,
  .category-grid,
  .category-grid.tight {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .card-body {
    padding: 12px;
  }

  .card-desc {
    display: none;
  }

  .rank-row {
    grid-template-columns: 34px 56px 1fr;
  }

  .rank-row b {
    display: none;
  }

  .player-card,
  .story-card,
  .related-section {
    padding: 16px;
    border-radius: 20px;
  }
}
