:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --amber-800: #92400e;
  --amber-900: #78350f;
  --orange-600: #ea580c;
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-700: #44403c;
  --stone-900: #1c1917;
  --white: #ffffff;
  --shadow: 0 20px 45px rgba(120, 53, 15, 0.18);
  --soft-shadow: 0 12px 30px rgba(120, 53, 15, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--stone-900);
  background: linear-gradient(180deg, var(--amber-50), #fff7ed 38%, var(--white));
  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%;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  color: var(--white);
  background: linear-gradient(90deg, var(--amber-700), var(--amber-500));
  box-shadow: 0 12px 28px rgba(146, 64, 14, 0.22);
}

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

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

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: var(--amber-700);
  background: var(--white);
  border-radius: 999px;
  box-shadow: inset 0 0 0 4px rgba(245, 158, 11, 0.16);
  transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.08) rotate(-4deg);
}

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

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

.brand-text em {
  font-size: 12px;
  color: var(--amber-100);
  font-style: normal;
}

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

.main-nav a,
.nav-more > button {
  color: var(--white);
  border: 0;
  background: transparent;
  font-weight: 700;
  padding: 10px 0;
  transition: color 0.2s ease;
}

.main-nav a:hover,
.nav-more > button:hover {
  color: var(--amber-100);
}

.nav-more {
  position: relative;
}

.nav-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 180px;
  padding: 10px;
  background: var(--white);
  color: var(--stone-900);
  border-radius: 16px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.2s ease;
}

.nav-more:hover .nav-panel,
.nav-more:focus-within .nav-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-panel a {
  display: block;
  color: var(--stone-700);
  padding: 9px 12px;
  border-radius: 10px;
}

.nav-panel a:hover {
  color: var(--amber-800);
  background: var(--amber-50);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 310px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.header-search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--white);
  background: transparent;
  padding: 8px 10px 8px 14px;
}

.header-search input::placeholder {
  color: rgba(255, 251, 235, 0.82);
}

.header-search button {
  border: 0;
  border-radius: 999px;
  color: var(--amber-800);
  background: var(--white);
  padding: 8px 14px;
  font-weight: 800;
}

.mobile-toggle {
  display: none;
  border: 0;
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 8px 12px;
  margin-left: auto;
}

.mobile-panel {
  display: none;
  padding: 0 16px 16px;
}

.mobile-panel.is-open {
  display: block;
}

.mobile-panel nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 12px 0;
}

.mobile-panel a {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: linear-gradient(135deg, #fef3c7, #fed7aa);
}

.hero-slider {
  position: relative;
  min-height: 620px;
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(0.94);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(120, 53, 15, 0.9), rgba(146, 64, 14, 0.62), rgba(254, 243, 199, 0.22)),
    radial-gradient(circle at 20% 20%, rgba(251, 191, 36, 0.42), transparent 34%);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.7fr);
  gap: 48px;
  align-items: center;
  padding: 54px 0;
  color: var(--white);
}

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

.hero-kicker,
.section-kicker,
.detail-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--amber-900);
  background: var(--amber-100);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 22px 0 18px;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  text-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.hero-copy p {
  max-width: 680px;
  margin: 0 0 22px;
  color: #fff7ed;
  font-size: 19px;
}

.hero-meta,
.detail-meta,
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
}

.hero-meta span,
.detail-meta span,
.card-meta span {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  padding: 5px 10px;
  color: inherit;
  font-size: 13px;
  font-weight: 700;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(120, 53, 15, 0.22);
}

.btn-primary {
  color: var(--white);
  background: var(--amber-600);
}

.btn-light {
  color: var(--amber-800);
  background: var(--white);
  border-color: rgba(255, 255, 255, 0.8);
}

.hero-poster {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: rotate(2deg);
  isolation: isolate;
}

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

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(28, 25, 23, 0.72));
}

.hero-poster span {
  position: absolute;
  left: 22px;
  bottom: 22px;
  z-index: 2;
  color: var(--white);
  font-size: 18px;
  font-weight: 900;
}

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

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

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

.section,
.page-section {
  padding: 62px 0;
}

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

.section-title h1,
.section-title h2 {
  margin: 10px 0 8px;
  color: var(--amber-900);
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.18;
}

.section-title p {
  max-width: 780px;
  margin: 0;
  color: var(--amber-800);
  font-size: 17px;
}

.category-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-top: -34px;
  position: relative;
  z-index: 10;
}

.category-pill {
  min-height: 116px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 20px;
  border-radius: 22px;
  color: var(--amber-900);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(12px);
  transition: transform 0.2s ease;
}

.category-pill:hover {
  transform: translateY(-5px);
}

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

.category-pill span {
  color: var(--stone-700);
  font-size: 13px;
}

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

.movie-card {
  min-width: 0;
}

.movie-card > a {
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.poster-frame {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--amber-100);
}

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

.movie-card > a:hover .poster-frame img {
  transform: scale(1.07);
}

.poster-frame figcaption {
  position: absolute;
  top: 12px;
  right: 12px;
  color: var(--amber-900);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 900;
}

.movie-card-body {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
}

.movie-card-body .card-meta span {
  color: var(--amber-900);
  background: var(--amber-100);
}

.movie-card h2 {
  margin: 0;
  color: var(--stone-900);
  font-size: 19px;
  line-height: 1.28;
}

.movie-card p {
  margin: 0;
  color: var(--stone-700);
  font-size: 14px;
}

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

.tag-row span {
  color: var(--amber-900);
  background: #fff7ed;
  border: 1px solid var(--amber-100);
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 700;
}

.scroller-wrap {
  padding: 28px;
  border-radius: 32px;
  background: linear-gradient(120deg, var(--amber-100), #ffedd5);
  box-shadow: var(--soft-shadow);
}

.scroller {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 4px 4px 18px;
  scroll-snap-type: x mandatory;
}

.scroller .movie-card {
  width: 284px;
  flex: 0 0 284px;
  scroll-snap-align: start;
}

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

.category-card {
  display: grid;
  gap: 14px;
  min-height: 230px;
  padding: 26px;
  border-radius: 28px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-700), var(--orange-600));
  box-shadow: var(--soft-shadow);
  overflow: hidden;
  position: relative;
}

.category-card:nth-child(2n) {
  background: linear-gradient(135deg, #b45309, #f59e0b);
}

.category-card:nth-child(3n) {
  background: linear-gradient(135deg, #92400e, #dc2626);
}

.category-card::after {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  right: -40px;
  bottom: -40px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.category-card h2,
.category-card h3,
.category-card p,
.category-card a,
.category-card span {
  position: relative;
  z-index: 1;
}

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

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

.category-card .mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-card .mini-links span {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  padding: 5px 10px;
  font-size: 13px;
}

.category-card .enter-link {
  width: fit-content;
  color: var(--amber-900);
  background: var(--white);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 900;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 26px;
}

.rank-panel,
.intro-panel,
.detail-card,
.info-card {
  border-radius: 28px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.rank-panel {
  padding: 24px;
}

.rank-panel h2,
.intro-panel h2,
.detail-card h2,
.info-card h2 {
  margin: 0 0 16px;
  color: var(--amber-900);
}

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

.rank-row a {
  display: grid;
  grid-template-columns: auto 74px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: var(--amber-50);
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-row a:hover {
  background: #ffedd5;
  transform: translateX(4px);
}

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

.rank-row img {
  width: 74px;
  height: 96px;
  border-radius: 14px;
  object-fit: cover;
}

.rank-row h2 {
  margin: 0 0 5px;
  font-size: 17px;
  line-height: 1.25;
}

.rank-row p {
  margin: 0 0 5px;
  color: var(--stone-700);
  font-size: 13px;
}

.rank-row span {
  color: var(--amber-800);
  font-size: 12px;
  font-weight: 700;
}

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

.intro-panel {
  display: grid;
  align-content: center;
  gap: 16px;
  padding: 34px;
  background: linear-gradient(135deg, var(--amber-100), var(--white));
}

.intro-panel p {
  margin: 0;
  color: var(--amber-900);
  font-size: 17px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 24px 0 0;
  color: var(--amber-800);
  font-size: 14px;
}

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

.detail-hero {
  padding: 34px 0 26px;
}

.detail-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
}

.detail-heading h1 {
  margin: 12px 0 12px;
  color: var(--amber-900);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
}

.detail-meta span {
  color: var(--amber-900);
  background: var(--amber-100);
}

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

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

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

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  color: var(--white);
  background: #111827;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.74);
}

.player-shade {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.05), rgba(28, 25, 23, 0.68));
}

.play-trigger {
  position: relative;
  z-index: 2;
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--amber-700);
  background: rgba(255, 255, 255, 0.94);
  font-size: 32px;
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.26);
  transform: translateX(2px);
}

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

.detail-card,
.info-card {
  padding: 26px;
}

.detail-card p,
.info-card p {
  margin: 0 0 16px;
  color: var(--stone-700);
}

.info-card img {
  width: 100%;
  border-radius: 22px;
  margin-bottom: 18px;
  box-shadow: var(--soft-shadow);
}

.info-list {
  display: grid;
  gap: 10px;
}

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

.info-list span {
  color: var(--stone-700);
}

.info-list strong {
  color: var(--amber-900);
  text-align: right;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 180px 180px;
  gap: 12px;
  margin: 28px 0;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--soft-shadow);
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 1px solid var(--amber-100);
  border-radius: 14px;
  outline: 0;
  background: var(--white);
  padding: 12px 14px;
  color: var(--stone-900);
}

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

.search-empty {
  display: none;
  padding: 28px;
  border-radius: 22px;
  color: var(--amber-900);
  background: var(--amber-100);
  font-weight: 800;
}

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

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 34px;
  padding: 44px 0;
}

.footer-brand {
  margin-bottom: 12px;
  font-size: 25px;
  font-weight: 900;
}

.site-footer p {
  margin: 0;
  color: var(--amber-100);
}

.site-footer h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

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

.footer-links a {
  color: var(--amber-100);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  padding: 7px 11px;
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
}

.footer-bottom {
  padding: 18px 16px;
  text-align: center;
  color: var(--amber-100);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.back-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 70;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: var(--amber-600);
  box-shadow: var(--soft-shadow);
  opacity: 0;
  visibility: hidden;
  transition: 0.2s ease;
}

.back-top.is-visible {
  opacity: 1;
  visibility: visible;
}

.hidden-by-filter {
  display: none !important;
}

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

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

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

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

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

  .mobile-toggle {
    display: block;
  }

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

  .hero-content {
    grid-template-columns: 1fr;
    gap: 26px;
    align-content: center;
  }

  .hero-poster {
    max-width: 280px;
    margin: 0 auto;
  }

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

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

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

@media (max-width: 620px) {
  .container {
    width: min(100% - 22px, var(--container));
  }

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

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .brand-text strong {
    font-size: 20px;
  }

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

  .hero-content {
    padding: 34px 0 70px;
  }

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

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

  .category-strip,
  .movie-grid,
  .category-card-grid,
  .footer-grid,
  .filter-bar {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: grid;
  }

  .rank-row a {
    grid-template-columns: auto 64px minmax(0, 1fr);
  }

  .rank-row strong {
    grid-column: 3;
  }

  .rank-row img {
    width: 64px;
    height: 84px;
  }

  .player-layout {
    gap: 18px;
  }

  .detail-card,
  .info-card,
  .rank-panel,
  .intro-panel {
    padding: 20px;
    border-radius: 22px;
  }
}
