@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;600;700&family=Noto+Serif+SC:wght@500;600;700&display=swap");

:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-300: #fcd34d;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --orange-50: #fff7ed;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow-soft: 0 10px 30px rgba(31, 41, 55, 0.10);
  --shadow-deep: 0 25px 50px rgba(17, 24, 39, 0.25);
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--gray-800);
  background: linear-gradient(180deg, var(--amber-50), var(--orange-50) 42%, var(--white));
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.locked {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  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.20);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 8px rgba(180, 83, 9, 0.08);
}

.header-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--white);
  font-weight: 700;
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
  box-shadow: 0 8px 18px rgba(217, 119, 6, 0.25);
}

.brand-text {
  display: grid;
  line-height: 1.15;
}

.brand-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-800);
}

.brand-subtitle {
  margin-top: 4px;
  font-size: 12px;
  color: var(--gray-600);
}

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

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

.desktop-nav a:hover {
  color: var(--amber-700);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--gray-700);
  font-size: 26px;
  line-height: 1;
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
  border-top: 1px solid rgba(217, 119, 6, 0.18);
}

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

.mobile-nav a {
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--gray-700);
}

.mobile-nav a:hover {
  background: var(--amber-100);
}

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

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

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

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

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.55) 45%, rgba(0, 0, 0, 0.9));
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding-bottom: 70px;
  color: var(--white);
}

.hero-copy {
  max-width: 760px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
  align-items: center;
}

.hero-meta span,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--amber-800);
  background: var(--amber-100);
  font-size: 13px;
  font-weight: 600;
}

.hero-meta .primary-pill {
  color: var(--white);
  background: var(--amber-600);
}

.hero h1 {
  margin: 0 0 18px;
  font-family: "Noto Serif SC", serif;
  font-size: clamp(38px, 7vw, 68px);
  line-height: 1.08;
  letter-spacing: 0.02em;
}

.hero p {
  margin: 0 0 26px;
  max-width: 700px;
  color: #e5e7eb;
  font-size: clamp(17px, 2.2vw, 22px);
  line-height: 1.7;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 20px;
  border: 0;
  border-radius: 12px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--white);
  background: var(--amber-600);
  box-shadow: 0 14px 26px rgba(217, 119, 6, 0.28);
}

.btn-primary:hover {
  background: var(--amber-700);
}

.btn-ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(6px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 48px;
  height: 48px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.48);
  transition: background 0.2s ease;
}

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

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
}

.hero-dot.active {
  width: 28px;
  background: var(--amber-500);
}

main {
  display: block;
}

.section {
  padding: 56px 0;
}

.section-tight {
  padding: 36px 0;
}

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

.section-heading h2,
.page-title h1,
.detail-title h1 {
  margin: 0;
  font-family: "Noto Serif SC", serif;
  color: var(--gray-800);
  letter-spacing: 0.02em;
}

.section-heading h2 {
  font-size: clamp(26px, 3.5vw, 36px);
}

.section-heading p,
.page-title p,
.detail-title p {
  margin: 8px 0 0;
  color: var(--gray-600);
  line-height: 1.75;
}

.section-heading a {
  color: var(--amber-700);
  font-weight: 700;
  white-space: nowrap;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(217, 119, 6, 0.12);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.42);
  box-shadow: var(--shadow-deep);
}

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

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

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

.poster::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.55));
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster::after {
  opacity: 1;
}

.play-dot {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--white);
  background: var(--amber-600);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-dot {
  opacity: 1;
  transform: translateY(0);
}

.rank-mark {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  min-width: 38px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
  font-weight: 700;
}

.card-body {
  padding: 16px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--gray-500);
  font-size: 13px;
}

.movie-card h3 {
  margin: 0 0 8px;
  color: var(--gray-800);
  font-size: 19px;
  line-height: 1.35;
}

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

.movie-card p {
  margin: 0 0 12px;
  min-height: 48px;
  color: var(--gray-600);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.tag-row span {
  padding: 5px 8px;
  border-radius: 8px;
  color: var(--amber-700);
  background: var(--amber-50);
  font-size: 12px;
}

.feature-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 28px;
  align-items: stretch;
}

.feature-card {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  color: var(--white);
  box-shadow: var(--shadow-deep);
}

.feature-card img {
  height: 100%;
  object-fit: cover;
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 15%, rgba(0, 0, 0, 0.86));
}

.feature-card-content {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  padding: 34px;
}

.feature-card h3 {
  margin: 12px 0 10px;
  font-family: "Noto Serif SC", serif;
  font-size: 34px;
}

.feature-card p {
  margin: 0 0 20px;
  color: #e5e7eb;
  line-height: 1.8;
}

.side-list {
  display: grid;
  gap: 14px;
}

.side-item {
  display: grid;
  grid-template-columns: auto 96px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(217, 119, 6, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 18px rgba(31, 41, 55, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.side-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.side-number {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--white);
  background: var(--amber-600);
  font-weight: 700;
}

.side-item img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  background: var(--amber-100);
}

.side-item strong {
  display: block;
  color: var(--gray-800);
  line-height: 1.35;
}

.side-item em {
  display: block;
  margin-top: 6px;
  color: var(--gray-500);
  font-style: normal;
  font-size: 13px;
}

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

.category-card {
  min-height: 166px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  border: 1px solid rgba(217, 119, 6, 0.16);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--white), var(--amber-50));
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-card h2,
.category-card h3 {
  margin: 0;
  color: var(--gray-800);
  font-size: 22px;
}

.category-card p {
  margin: 10px 0 18px;
  color: var(--gray-600);
  line-height: 1.65;
  font-size: 14px;
}

.category-card span {
  color: var(--amber-700);
  font-weight: 700;
}

.page-title {
  padding: 48px 0 18px;
}

.page-title h1 {
  font-size: clamp(32px, 5vw, 50px);
}

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

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

.filter-bar {
  display: grid;
  grid-template-columns: 1fr 180px 180px 180px;
  gap: 12px;
  margin: 26px 0;
  padding: 16px;
  border: 1px solid rgba(217, 119, 6, 0.14);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  height: 44px;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 0 14px;
  color: var(--gray-700);
  background: var(--white);
  outline: none;
}

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

.result-line {
  margin-bottom: 16px;
  color: var(--gray-500);
}

.result-line strong {
  color: var(--amber-700);
}

.detail-hero {
  padding: 36px 0 24px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) 360px;
  gap: 30px;
  align-items: start;
}

.player-shell {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--gray-900);
  box-shadow: var(--shadow-deep);
}

.player-box {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-box video {
  height: 100%;
  object-fit: contain;
  background: #000;
}

.play-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 0;
  color: var(--white);
  background: rgba(0, 0, 0, 0.18);
}

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

.play-cover img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
}

.big-play {
  position: relative;
  z-index: 2;
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--amber-600);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.32);
  font-size: 36px;
}

.detail-title {
  padding: 24px 0 0;
}

.detail-title h1 {
  font-size: clamp(30px, 4vw, 46px);
}

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

.detail-content {
  margin-top: 24px;
  display: grid;
  gap: 22px;
}

.content-card {
  padding: 24px;
  border: 1px solid rgba(217, 119, 6, 0.12);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.90);
  box-shadow: var(--shadow-soft);
}

.content-card h2 {
  margin: 0 0 14px;
  font-family: "Noto Serif SC", serif;
  color: var(--gray-800);
  font-size: 25px;
}

.content-card p {
  margin: 0;
  color: var(--gray-700);
  line-height: 1.9;
  text-align: justify;
}

.detail-sidebar {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 18px;
}

.info-panel {
  padding: 20px;
  border: 1px solid rgba(217, 119, 6, 0.14);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.90);
  box-shadow: var(--shadow-soft);
}

.info-panel h2 {
  margin: 0 0 14px;
  font-size: 20px;
}

.info-list {
  display: grid;
  gap: 10px;
  color: var(--gray-600);
}

.info-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--gray-100);
}

.info-list strong {
  color: var(--gray-800);
  font-weight: 700;
  white-space: nowrap;
}

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

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

.ranking-row {
  display: grid;
  grid-template-columns: 60px 180px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(217, 119, 6, 0.12);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.ranking-row .rank-mark {
  position: static;
}

.ranking-row img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  background: var(--amber-100);
}

.ranking-row h2 {
  margin: 0 0 6px;
  font-size: 22px;
}

.ranking-row p {
  margin: 0;
  color: var(--gray-600);
  line-height: 1.6;
}

.compact-card .poster {
  aspect-ratio: 16 / 9;
}

.site-footer {
  margin-top: 56px;
  color: var(--gray-300);
  background: linear-gradient(180deg, var(--gray-800), var(--gray-900));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 36px;
  padding: 46px 0;
}

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

.site-footer p {
  margin: 0;
  color: var(--gray-400);
  line-height: 1.8;
}

.footer-badge {
  display: inline-flex;
  margin-top: 16px;
  padding: 10px 14px;
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 12px;
  color: var(--amber-300);
  background: rgba(120, 53, 15, 0.30);
  font-size: 13px;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 18px;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: var(--gray-300);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--amber-300);
}

.footer-bottom {
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  color: var(--gray-400);
  text-align: center;
  font-size: 14px;
}

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

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

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

  .detail-sidebar {
    position: static;
  }

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

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

  .menu-toggle {
    display: block;
  }

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

  .hero-arrow {
    display: none;
  }

  .hero-content {
    padding-bottom: 58px;
  }

  .section {
    padding: 40px 0;
  }

  .section-heading {
    display: block;
  }

  .section-heading a {
    display: inline-flex;
    margin-top: 12px;
  }

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

  .movie-grid,
  .movie-grid.three-col,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

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

  .ranking-row {
    grid-template-columns: 44px 110px 1fr;
  }

  .ranking-row .btn {
    grid-column: 1 / -1;
  }
}

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

  .brand-subtitle {
    display: none;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero p {
    font-size: 16px;
  }

  .feature-card-content,
  .content-card {
    padding: 20px;
  }

  .side-item {
    grid-template-columns: 82px 1fr;
  }

  .side-number {
    display: none;
  }
}
