* {
  box-sizing: border-box;
}

:root {
  --amber-950: #451a03;
  --amber-900: #78350f;
  --amber-800: #92400e;
  --amber-700: #b45309;
  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --amber-300: #fcd34d;
  --amber-100: #fef3c7;
  --orange-50: #fff7ed;
  --gray-950: #030712;
  --gray-900: #111827;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(120, 53, 15, 0.14);
  --shadow-strong: 0 26px 70px rgba(69, 26, 3, 0.28);
  --radius: 24px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--gray-900);
  background: linear-gradient(180deg, #fffbeb 0%, #ffffff 38%, #fff7ed 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(245, 158, 11, 0.18);
  background: rgba(255, 251, 235, 0.9);
  backdrop-filter: blur(16px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: var(--amber-900);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--white);
  border-radius: 14px;
  background: linear-gradient(135deg, var(--amber-500), var(--amber-800));
  box-shadow: 0 10px 25px rgba(217, 119, 6, 0.28);
}

.brand-text {
  font-size: 20px;
  letter-spacing: 0.02em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a {
  padding: 10px 14px;
  color: var(--gray-700);
  border-radius: 999px;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease;
}

.main-nav a:hover {
  color: var(--amber-900);
  background: var(--amber-100);
}

.mobile-toggle {
  display: none;
  border: 0;
  color: var(--amber-900);
  background: var(--amber-100);
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 22px;
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  color: var(--white);
  background: var(--amber-950);
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: overlay;
  transform: scale(1.04);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 30%, rgba(252, 211, 77, 0.34), transparent 34%),
    linear-gradient(90deg, rgba(69, 26, 3, 0.96), rgba(146, 64, 14, 0.82), rgba(120, 53, 15, 0.4));
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 48px;
  align-items: center;
  min-height: 620px;
  padding: 70px 0;
}

.hero-copy {
  max-width: 720px;
  animation: fade-up 0.8s ease both;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
  padding: 6px 12px;
  color: var(--amber-900);
  background: rgba(254, 243, 199, 0.92);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

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

.hero-copy p {
  max-width: 720px;
  margin: 0 0 20px;
  color: #ffedd5;
  font-size: 20px;
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  padding: 5px 10px;
  color: var(--amber-900);
  background: var(--amber-100);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 2px solid transparent;
  border-radius: 999px;
  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(--amber-950);
  background: var(--white);
  box-shadow: 0 14px 30px rgba(255, 255, 255, 0.22);
}

.btn.ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.85);
}

.btn.ghost.dark {
  color: var(--amber-900);
  border-color: rgba(146, 64, 14, 0.32);
}

.hero-poster {
  display: block;
  padding: 12px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(10px);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 22px;
}

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

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

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

.stats-strip {
  margin-top: -38px;
  position: relative;
  z-index: 10;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.stats-grid div {
  text-align: center;
  padding: 12px;
}

.stats-grid strong {
  display: block;
  color: var(--amber-700);
  font-size: 28px;
}

.stats-grid span {
  color: var(--gray-500);
  font-size: 13px;
  font-weight: 700;
}

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

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

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

.section-head p {
  margin: 8px 0 0;
  color: var(--gray-600);
}

.section-more,
.text-link {
  color: var(--amber-700);
  font-weight: 800;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--amber-100);
}

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

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

.score,
.play-badge {
  position: absolute;
  top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 28px;
  padding: 0 10px;
  color: var(--white);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.score {
  right: 12px;
  background: var(--amber-500);
}

.play-badge {
  left: 12px;
  background: rgba(17, 24, 39, 0.72);
}

.card-body {
  padding: 18px;
}

.card-body h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

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

.card-meta,
.card-desc {
  margin: 0;
  color: var(--gray-600);
  font-size: 13px;
}

.card-desc {
  display: -webkit-box;
  margin-top: 8px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-body .tag-row {
  margin-top: 12px;
}

.card-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  color: var(--amber-700);
  font-size: 13px;
  font-weight: 800;
}

.warm-panel {
  padding: 72px 0;
  background: linear-gradient(90deg, var(--amber-100), var(--orange-50));
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
  gap: 36px;
  align-items: start;
}

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

.rank-item {
  display: grid;
  grid-template-columns: auto 64px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 22px rgba(120, 53, 15, 0.08);
  transition: transform 0.2s ease, background 0.2s ease;
}

.rank-item:hover {
  transform: translateX(4px);
  background: var(--white);
}

.rank-no {
  width: 34px;
  color: var(--amber-700);
  font-size: 24px;
  font-weight: 900;
  text-align: center;
}

.rank-item img {
  width: 64px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
}

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

.rank-text strong {
  color: var(--gray-900);
  font-size: 16px;
}

.rank-text em {
  color: var(--gray-500);
  font-style: normal;
  font-size: 13px;
}

.search-box-panel {
  padding: 32px;
  border-radius: var(--radius);
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-900), var(--amber-600));
  box-shadow: var(--shadow);
}

.search-box-panel h2 {
  margin: 0 0 8px;
  font-size: 32px;
}

.home-search {
  display: grid;
  gap: 14px;
  margin: 24px 0 14px;
}

.home-search input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(146, 64, 14, 0.18);
  border-radius: 999px;
  padding: 0 16px;
  color: var(--gray-900);
  background: var(--white);
  outline: none;
}

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

.category-tile {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  border-radius: 22px;
  box-shadow: var(--shadow);
  background: var(--amber-900);
}

.category-tile img {
  width: 100%;
  height: 100%;
  min-height: 190px;
  object-fit: cover;
  opacity: 0.48;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.category-tile:hover img {
  opacity: 0.64;
  transform: scale(1.05);
}

.category-tile span {
  position: absolute;
  inset: auto 16px 16px;
  color: var(--white);
}

.category-tile strong,
.category-tile em {
  display: block;
}

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

.category-tile em {
  color: var(--amber-100);
  font-style: normal;
}

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

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-950), var(--amber-700));
}

.compact-hero {
  color: var(--white);
}

.page-hero .eyebrow {
  color: var(--amber-900);
}

.page-hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.08;
}

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

.page-hero-bg,
.page-hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.page-hero-bg {
  object-fit: cover;
  opacity: 0.22;
}

.page-hero-overlay {
  background: linear-gradient(90deg, rgba(69, 26, 3, 0.9), rgba(146, 64, 14, 0.66));
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.category-large-grid {
  display: grid;
  gap: 22px;
  padding: 72px 0;
}

.category-card-large {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 26px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.category-cover img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 18px;
}

.category-card-large h2 {
  margin: 0 0 8px;
  font-size: 28px;
}

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

.category-count {
  display: inline-flex;
  margin: 8px 0 12px;
  padding: 4px 12px;
  color: var(--amber-900);
  background: var(--amber-100);
  border-radius: 999px;
  font-weight: 800;
}

.category-card-large ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 18px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.category-card-large li a {
  color: var(--gray-700);
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 160px 160px auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 28px;
  padding: 16px;
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 25px rgba(17, 24, 39, 0.06);
}

.sticky-filter {
  position: sticky;
  top: 88px;
  z-index: 20;
}

.filter-count {
  color: var(--amber-800);
  font-weight: 900;
  white-space: nowrap;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0;
  color: var(--gray-600);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--amber-700);
  font-weight: 800;
}

.detail-wrap {
  padding-bottom: 30px;
}

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

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  box-shadow: var(--shadow-strong);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 28px;
  color: var(--white);
  border: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.24), rgba(0, 0, 0, 0.72));
  text-align: center;
}

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

.play-circle {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  padding-left: 4px;
  color: var(--amber-900);
  background: var(--white);
  border-radius: 50%;
  box-shadow: 0 18px 44px rgba(255, 255, 255, 0.26);
  font-size: 30px;
}

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

.player-overlay em {
  max-width: 460px;
  color: #ffedd5;
  font-style: normal;
}

.player-source-note {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
  color: var(--gray-600);
}

.player-source-note code {
  padding: 4px 8px;
  color: var(--amber-900);
  background: var(--amber-100);
  border-radius: 8px;
}

.detail-side {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 16px;
}

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

.detail-score {
  padding: 20px;
  color: var(--white);
  border-radius: 20px;
  background: linear-gradient(135deg, var(--amber-600), var(--amber-900));
  font-size: 42px;
  font-weight: 900;
  text-align: center;
}

.detail-score span {
  display: block;
  font-size: 13px;
  font-weight: 700;
}

.detail-content {
  margin-top: 34px;
  padding: 32px;
  border-radius: 28px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.detail-title-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: start;
}

.detail-title-row h1 {
  margin: 0 0 10px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.1;
}

.detail-title-row p {
  margin: 0;
  color: var(--gray-600);
  font-size: 18px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0;
}

.info-grid div {
  padding: 16px;
  border-radius: 18px;
  background: #fffbeb;
}

.info-grid strong,
.info-grid span {
  display: block;
}

.info-grid strong {
  color: var(--amber-800);
  font-size: 13px;
}

.info-grid span {
  margin-top: 4px;
  color: var(--gray-900);
  font-weight: 800;
}

.detail-tags {
  margin-bottom: 30px;
}

.text-section {
  margin-top: 28px;
}

.text-section h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

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

.inner-links ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 20px;
  margin: 0;
  padding-left: 18px;
}

.inner-links a {
  color: var(--amber-700);
  font-weight: 800;
}

.site-footer {
  margin-top: 40px;
  padding: 54px 0 24px;
  color: #fed7aa;
  background: var(--amber-950);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 1fr;
  gap: 40px;
}

.footer-logo {
  margin-bottom: 12px;
  color: var(--white);
  font-size: 24px;
  font-weight: 900;
}

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

.site-footer h3 {
  margin: 0 0 12px;
  color: var(--white);
}

.site-footer a {
  display: block;
  margin: 6px 0;
  color: #ffedd5;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: #fdba74;
  font-size: 13px;
}

.is-hidden-card {
  display: none !important;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1024px) {
  .hero-content,
  .two-column,
  .detail-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-poster,
  .detail-side {
    display: none;
  }

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

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

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

@media (max-width: 760px) {
  .mobile-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: flex;
  }

  .hero,
  .hero-content {
    min-height: 560px;
  }

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

  .hero-copy p {
    font-size: 17px;
  }

  .stats-grid,
  .movie-grid,
  .compact-grid,
  .category-movie-grid,
  .search-grid,
  .category-grid,
  .ranking-page-list,
  .info-grid,
  .inner-links ul,
  .category-card-large,
  .category-card-large ul,
  .filter-bar {
    grid-template-columns: 1fr;
  }

  .section-head,
  .detail-title-row {
    display: block;
  }

  .category-card-large {
    padding: 16px;
  }

  .detail-content {
    padding: 22px;
  }

  .page-hero {
    padding: 72px 0;
  }
}
