:root {
  --amber-950: #451a03;
  --amber-900: #78350f;
  --amber-800: #92400e;
  --amber-700: #b45309;
  --amber-600: #d97706;
  --amber-100: #fef3c7;
  --amber-50: #fffbeb;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --teal-600: #0d9488;
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
  --soft-shadow: 0 12px 35px rgba(15, 23, 42, 0.10);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--slate-800);
  background: linear-gradient(180deg, var(--amber-50), var(--white) 38%, var(--slate-50));
  line-height: 1.65;
}

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: 80;
  color: var(--white);
  background: linear-gradient(90deg, var(--amber-900), var(--amber-700));
  box-shadow: 0 12px 30px rgba(120, 53, 15, 0.24);
}

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

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--amber-900);
  background: var(--white);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

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

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

.nav-link {
  padding: 10px 14px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.88);
  transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
}

.nav-toggle {
  display: none;
  border: 0;
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 8px 12px;
}

.hero-slider {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-950), var(--amber-700), #7f1d1d);
}

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

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

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

.hero-overlay,
.detail-mask {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 28%, rgba(245, 158, 11, 0.34), transparent 30%),
    linear-gradient(90deg, rgba(69, 26, 3, 0.92), rgba(120, 53, 15, 0.76), rgba(2, 6, 23, 0.48));
}

.hero-inner {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  min-height: 640px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: center;
  gap: 56px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--amber-100);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.04;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.hero-copy p,
.page-hero p,
.detail-one {
  margin: 22px 0;
  font-size: clamp(18px, 2.6vw, 25px);
  color: rgba(255, 255, 255, 0.88);
}

.hero-poster {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
  transform: rotate(2deg);
  transition: 0.28s ease;
}

.hero-poster:hover {
  transform: rotate(0deg) translateY(-6px);
}

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

.hero-poster span,
.card-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--amber-900);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--soft-shadow);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  border: 0;
  border-radius: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn-primary {
  color: var(--amber-950);
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.btn-primary:hover {
  background: var(--amber-100);
  transform: translateY(-2px);
}

.btn-secondary {
  color: var(--white);
  background: rgba(146, 64, 14, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-secondary:hover {
  background: var(--amber-700);
  transform: translateY(-2px);
}

.btn-ghost {
  color: var(--amber-800);
  background: var(--amber-100);
}

.full {
  width: 100%;
}

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

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

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

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

.section {
  padding: 70px 0;
}

.section-narrow {
  padding: 24px 0 0;
}

.quick-search form {
  margin-top: -42px;
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.quick-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #e2e8f0;
  border-radius: 13px;
  padding: 0 14px;
  color: var(--slate-800);
  background: var(--white);
  outline: none;
}

.quick-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--amber-600);
  box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.14);
}

.section-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 30px;
}

.section-head.slim {
  margin-bottom: 20px;
}

.section-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-700), var(--teal-600));
  box-shadow: var(--soft-shadow);
}

.section-head h2,
.rank-panel h2,
.content-card h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
  color: var(--slate-800);
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--soft-shadow);
  transition: 0.26s ease;
}

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

.card-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--amber-100), var(--slate-100));
}

.compact-grid .card-media {
  aspect-ratio: 2 / 3;
}

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

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

.card-badge {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--white);
  background: var(--amber-600);
  font-size: 13px;
  font-weight: 800;
}

.card-play {
  opacity: 0;
  transition: 0.22s ease;
}

.movie-card:hover .card-play {
  opacity: 1;
}

.card-body {
  padding: 20px;
}

.card-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3.1em;
  color: var(--slate-800);
  font-size: 20px;
  line-height: 1.25;
  font-weight: 900;
}

.card-title:hover {
  color: var(--amber-700);
}

.card-meta {
  margin-top: 8px;
  color: var(--slate-600);
  font-size: 14px;
}

.card-body p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3.1em;
  margin: 12px 0;
  color: var(--slate-700);
}

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

.tag-row span {
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--amber-800);
  background: var(--amber-100);
  font-size: 12px;
  font-weight: 700;
}

.hero-tags span,
.detail-info .tag-row span {
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
}

.warm-section {
  width: 100%;
  max-width: none;
  padding-left: max(16px, calc((100% - 1180px) / 2));
  padding-right: max(16px, calc((100% - 1180px) / 2));
  background: linear-gradient(90deg, var(--slate-100), var(--amber-50));
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 34px;
  align-items: start;
}

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

.category-card,
.category-overview-card {
  position: relative;
  overflow: hidden;
  min-height: 170px;
  border-radius: var(--radius-lg);
  background: var(--slate-900);
  color: var(--white);
  box-shadow: var(--soft-shadow);
}

.category-card img,
.category-overview-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  transition: 0.35s ease;
}

.category-card:hover img,
.category-overview-card:hover img {
  transform: scale(1.08);
  opacity: 0.56;
}

.category-card div,
.category-overview-card div {
  position: relative;
  z-index: 2;
  padding: 22px;
}

.category-card h3,
.category-overview-card h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.category-card p,
.category-overview-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
}

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

.category-overview-card {
  min-height: 220px;
}

.category-overview-card span {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--amber-950);
  background: var(--amber-100);
  font-size: 12px;
  font-weight: 900;
}

.rank-panel,
.content-card,
.filter-panel,
.ranking-table {
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.rank-panel {
  position: sticky;
  top: 92px;
  padding: 26px;
}

.rank-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 22px;
}

.rank-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 8px 12px;
  padding: 12px;
  border-radius: 14px;
  background: var(--slate-50);
  transition: 0.2s ease;
}

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

.rank-item strong {
  grid-row: span 2;
  color: var(--amber-700);
  font-size: 22px;
}

.rank-item span {
  font-weight: 900;
}

.rank-item em {
  color: var(--slate-600);
  font-style: normal;
  font-size: 13px;
}

.text-link {
  display: inline-flex;
  margin-top: 20px;
  color: var(--amber-700);
  font-weight: 900;
}

.page-hero {
  color: var(--white);
  background:
    radial-gradient(circle at 78% 20%, rgba(245, 158, 11, 0.30), transparent 26%),
    linear-gradient(135deg, var(--amber-950), var(--amber-800), var(--slate-900));
}

.page-hero > div {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 76px 0;
}

.category-hero > div {
  padding-bottom: 64px;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr auto;
  gap: 14px;
  align-items: end;
  padding: 20px;
  margin-bottom: 16px;
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: var(--slate-600);
  font-size: 14px;
  font-weight: 800;
}

.result-line {
  min-height: 24px;
  margin: 10px 0 22px;
  color: var(--slate-600);
  font-weight: 700;
}

.ranking-table {
  overflow: hidden;
}

.ranking-row {
  display: grid;
  grid-template-columns: 70px 74px minmax(160px, 1fr) 130px minmax(180px, 1fr) 70px;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid #e2e8f0;
  transition: 0.2s ease;
}

.ranking-row:hover {
  background: var(--amber-50);
}

.ranking-row img {
  width: 60px;
  height: 82px;
  object-fit: cover;
  border-radius: 10px;
}

.ranking-row strong,
.ranking-row em {
  color: var(--amber-700);
  font-size: 22px;
  font-style: normal;
  font-weight: 950;
}

.ranking-title {
  font-weight: 900;
}

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

.detail-wrap {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 560px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  align-items: center;
  gap: 44px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 26px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.78);
}

.breadcrumb a:hover {
  color: var(--white);
}

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

.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  font-weight: 800;
}

.detail-section {
  padding-bottom: 24px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000;
  box-shadow: var(--shadow);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  border: 0;
  color: var(--white);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.58));
  cursor: pointer;
}

.player-overlay span {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--amber-900);
  background: var(--white);
  font-size: 28px;
}

.player-overlay b {
  font-size: 22px;
}

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

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

.content-card {
  padding: 28px;
}

.content-card p {
  margin: 14px 0 0;
  color: var(--slate-700);
  white-space: pre-line;
}

.review-card {
  grid-column: 1 / -1;
  border: 2px solid rgba(245, 158, 11, 0.24);
  background: linear-gradient(135deg, var(--amber-50), var(--white));
}

.info-card {
  position: sticky;
  top: 92px;
}

.info-card dl {
  margin: 16px 0 0;
}

.info-card div,
.info-card dt,
.info-card dd {
  margin: 0;
}

.info-card dt {
  float: left;
  clear: left;
  width: 76px;
  padding: 10px 0;
  color: var(--slate-600);
  border-bottom: 1px solid #e2e8f0;
}

.info-card dd {
  min-height: 45px;
  padding: 10px 0 10px 82px;
  font-weight: 800;
  border-bottom: 1px solid #e2e8f0;
}

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

.mini-card {
  overflow: hidden;
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
  transition: 0.22s ease;
}

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

.mini-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.mini-card span,
.mini-card small {
  display: block;
  padding: 0 12px;
}

.mini-card span {
  margin-top: 12px;
  min-height: 42px;
  font-weight: 900;
  line-height: 1.35;
}

.mini-card small {
  margin: 5px 0 14px;
  color: var(--slate-600);
}

.prev-next {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
}

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

.site-footer {
  margin-top: 40px;
  color: rgba(255, 255, 255, 0.78);
  background: var(--slate-950);
}

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

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

.footer-grid a {
  display: block;
  margin: 8px 0;
}

.footer-grid a:hover {
  color: var(--white);
}

.footer-brand {
  color: var(--white);
  font-size: 20px;
}

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

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

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

  .hero-inner {
    gap: 26px;
    padding: 54px 0 84px;
  }

  .hero-poster {
    width: min(260px, 70vw);
  }

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

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

  .ranking-row {
    grid-template-columns: 50px 54px minmax(0, 1fr) 56px;
  }

  .ranking-row span:nth-of-type(2),
  .ranking-row span:nth-of-type(3) {
    display: none;
  }

  .rank-panel,
  .info-card {
    position: static;
  }
}

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

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

  .nav-links.open {
    display: flex;
  }

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

  .hero-slider,
  .hero-inner {
    min-height: 620px;
  }

  .hero-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }

  .hero-poster {
    display: none;
  }

  .quick-search form,
  .filter-panel,
  .category-grid,
  .category-overview-grid,
  .movie-grid,
  .compact-grid,
  .mini-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 48px 0;
  }

  .page-hero > div {
    padding: 58px 0;
  }

  .detail-wrap {
    padding: 42px 0;
  }

  .detail-poster {
    width: min(220px, 68vw);
  }

  .prev-next {
    flex-direction: column;
  }
}
