:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --orange-600: #ea580c;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-500: #64748b;
  --slate-700: #334155;
  --slate-900: #0f172a;
  --white: #ffffff;
  --shadow: 0 18px 55px rgba(15, 23, 42, 0.12);
  --soft-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--slate-900);
  background: linear-gradient(180deg, #fffaf1 0%, #ffffff 34%, #f8fafc 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  line-height: 1.6;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(226, 232, 240, 0.82);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  height: 72px;
  margin: 0 auto;
  padding: 0 20px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
  border-radius: 50%;
  box-shadow: 0 10px 18px rgba(217, 119, 6, 0.28);
}

.brand-text {
  font-size: 1.36rem;
  color: var(--amber-700);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--slate-700);
  font-weight: 700;
}

.desktop-nav a,
.mobile-nav a,
.footer-links a,
.more-link {
  transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover,
.footer-links a:hover,
.more-link:hover {
  color: var(--amber-600);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 12px;
}

.mobile-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: var(--slate-700);
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  padding: 12px 20px 18px;
  background: var(--white);
  border-top: 1px solid var(--slate-200);
}

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

.hero-carousel {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  background: linear-gradient(110deg, #b45309 0%, #ea580c 45%, #fb923c 100%);
}

.hero-track,
.hero-slide {
  min-height: 640px;
}

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

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

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

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.38;
  filter: saturate(1.16) contrast(1.04);
  transform: scale(1.04);
}

.hero-bg::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 15% 25%, rgba(255, 255, 255, 0.28), transparent 24%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.72), rgba(180, 83, 9, 0.54), rgba(15, 23, 42, 0.2));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 20px 96px;
  color: var(--white);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--amber-600);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-content .eyebrow {
  color: rgba(255, 255, 255, 0.88);
}

.hero-content h1 {
  max-width: 760px;
  margin: 14px 0 18px;
  font-size: clamp(2.5rem, 6vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero-content p {
  max-width: 680px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.08rem, 2vw, 1.42rem);
}

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

.hero-tags span,
.tag-list span {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  color: var(--amber-700);
  background: var(--amber-50);
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.hero-tags span {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.28);
}

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

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

.primary-btn {
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
  box-shadow: 0 12px 26px rgba(217, 119, 6, 0.32);
}

.hero-content .primary-btn {
  color: var(--amber-700);
  background: var(--white);
}

.ghost-btn {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.12);
}

.primary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.18);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  color: var(--white);
  background: rgba(15, 23, 42, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  cursor: pointer;
  transform: translateY(-50%);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  background: rgba(255, 255, 255, 0.42);
  border: none;
  border-radius: 999px;
  cursor: pointer;
}

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

.content-section,
.page-shell,
.detail-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 20px 0;
}

.featured-panel {
  max-width: none;
  margin: 0;
  padding: 76px max(20px, calc((100vw - 1200px) / 2)) 76px;
  background: linear-gradient(135deg, #fff7ed, #fffbeb);
}

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

.section-heading h2,
.page-title h1,
.detail-info h1,
.detail-section h2 {
  margin: 0;
  color: var(--slate-900);
  line-height: 1.15;
}

.section-heading h2 {
  margin-top: 6px;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

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

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

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

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

.movie-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: var(--radius-md);
  box-shadow: var(--soft-shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover,
.overview-card:hover,
.rank-row:hover,
.category-tile:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.poster-wrap,
.rank-cover,
.overview-cover,
.detail-poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
}

.poster-wrap {
  height: 268px;
}

.movie-card-large .poster-wrap {
  height: 330px;
}

.movie-card-small .poster-wrap {
  height: 210px;
}

.poster-wrap img,
.rank-cover img,
.overview-cover img,
.detail-poster img,
.category-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.movie-card:hover .poster-wrap img,
.category-tile:hover img,
.rank-row:hover img {
  transform: scale(1.08);
}

.poster-wrap::after {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.76));
  transition: opacity 0.2s ease;
}

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

.badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  padding: 5px 9px;
  color: var(--white);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
}

.year-badge {
  right: 12px;
  background: rgba(15, 23, 42, 0.72);
}

.type-badge {
  left: 12px;
  background: var(--amber-600);
}

.play-hover {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  color: var(--white);
  background: var(--amber-600);
  border-radius: 50%;
  opacity: 0;
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.22);
  transform: translate(-50%, -50%) scale(0.72);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .play-hover {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.poster-fallback,
.category-cover-fallback {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  color: var(--white);
  text-align: center;
  font-weight: 900;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.24), transparent 34%),
    linear-gradient(135deg, var(--amber-600), var(--orange-600));
}

.poster-missing .poster-fallback,
.poster-missing .category-cover-fallback {
  display: flex;
}

.movie-info {
  padding: 18px;
}

.movie-info h3 {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 8px;
  overflow: hidden;
  color: var(--slate-900);
  font-size: 1.02rem;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-info h3 a:hover {
  color: var(--amber-600);
}

.movie-info p {
  display: -webkit-box;
  min-height: 46px;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--slate-500);
  font-size: 0.92rem;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: var(--slate-500);
  font-size: 0.82rem;
  font-weight: 700;
}

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

.movie-info .tag-list {
  margin-top: 12px;
}

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

.category-tile,
.overview-card {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  color: var(--white);
  background: var(--amber-600);
  border-radius: var(--radius-md);
  box-shadow: var(--soft-shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile::after,
.overview-cover::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.12), rgba(15, 23, 42, 0.82));
}

.category-tile strong,
.category-tile em,
.category-tile p {
  position: absolute;
  z-index: 2;
  left: 18px;
  right: 18px;
}

.category-tile strong {
  bottom: 78px;
  font-size: 1.28rem;
}

.category-tile em {
  bottom: 54px;
  color: rgba(255, 255, 255, 0.86);
  font-style: normal;
  font-weight: 800;
}

.category-tile p {
  bottom: 14px;
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.84rem;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.page-shell {
  padding-bottom: 80px;
}

.page-title {
  margin-bottom: 30px;
  padding: 40px;
  background: var(--white);
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: var(--radius-lg);
  box-shadow: var(--soft-shadow);
}

.category-title-panel,
.rank-title-panel {
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.16), transparent 30%),
    linear-gradient(135deg, #ffffff, #fff7ed);
}

.page-title h1 {
  margin-top: 8px;
  font-size: clamp(2.1rem, 5vw, 4rem);
  letter-spacing: -0.04em;
}

.page-title p {
  max-width: 720px;
  margin: 14px 0 0;
  color: var(--slate-500);
  font-size: 1.05rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 30px 0 18px;
  color: var(--slate-500);
  font-weight: 700;
}

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

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 16px;
  margin: 0 0 26px;
  padding: 18px;
  background: var(--white);
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: var(--radius-md);
  box-shadow: var(--soft-shadow);
}

.search-box,
.select-box {
  display: grid;
  gap: 7px;
  color: var(--slate-700);
  font-weight: 800;
}

.search-box input,
.select-box select {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  color: var(--slate-900);
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  outline: none;
}

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

.filter-empty {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--amber-700);
  font-weight: 800;
}

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

.overview-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  min-height: 190px;
  color: var(--slate-900);
  background: var(--white);
}

.overview-cover {
  height: 100%;
}

.overview-card > div:last-child {
  padding: 22px;
}

.overview-card h2 {
  margin: 0 0 10px;
  font-size: 1.45rem;
}

.overview-card p {
  margin: 0 0 14px;
  color: var(--slate-500);
}

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

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

.rank-row {
  display: grid;
  grid-template-columns: 98px 70px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 14px;
  background: var(--white);
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: var(--radius-md);
  box-shadow: var(--soft-shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.rank-cover {
  width: 98px;
  height: 132px;
  border-radius: 14px;
}

.rank-number {
  color: var(--amber-600);
  font-size: 1.8rem;
  font-weight: 900;
}

.rank-body h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.rank-body p {
  margin: 0 0 12px;
  color: var(--slate-500);
}

.detail-shell {
  padding-bottom: 80px;
}

.detail-hero {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  padding: 34px;
  background:
    radial-gradient(circle at top right, rgba(251, 146, 60, 0.22), transparent 34%),
    linear-gradient(135deg, #ffffff, #fff7ed);
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.detail-poster {
  height: 460px;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 46px rgba(15, 23, 42, 0.18);
}

.detail-info h1 {
  margin: 10px 0 16px;
  font-size: clamp(2.1rem, 5vw, 4.6rem);
  letter-spacing: -0.05em;
}

.detail-one-line {
  margin: 0 0 20px;
  color: var(--slate-700);
  font-size: 1.14rem;
}

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

.detail-meta span {
  padding: 7px 12px;
  color: var(--slate-700);
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 999px;
  font-weight: 800;
}

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

.player-card {
  position: relative;
  overflow: hidden;
  height: min(66vw, 680px);
  min-height: 360px;
  margin: 36px 0;
  background: #050505;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.movie-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #050505;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  height: 100%;
  color: var(--white);
  background: rgba(15, 23, 42, 0.62);
  border: none;
  cursor: pointer;
}

.player-cover-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.46;
}

.player-cover-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 86px;
  height: 86px;
  padding-left: 6px;
  color: var(--amber-700);
  background: var(--white);
  border-radius: 50%;
  font-size: 2.2rem;
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.22);
}

.player-title {
  max-width: 80%;
  font-size: clamp(1.3rem, 3vw, 2.3rem);
  font-weight: 900;
  text-align: center;
}

.player-card.is-playing .player-cover {
  display: none;
}

.detail-section {
  margin-top: 28px;
  padding: 30px;
  background: var(--white);
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: var(--radius-lg);
  box-shadow: var(--soft-shadow);
}

.detail-section h2 {
  margin-bottom: 14px;
  font-size: 1.6rem;
}

.detail-section p {
  margin: 0;
  color: var(--slate-700);
  font-size: 1.02rem;
}

.compact-heading {
  margin-bottom: 22px;
}

.site-footer {
  margin-top: 70px;
  color: #cbd5e1;
  background: #111827;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 20px;
}

.footer-brand {
  color: var(--white);
  font-size: 1.4rem;
}

.footer-main p {
  max-width: 560px;
  color: #94a3b8;
}

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

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

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

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

  .mobile-toggle {
    display: block;
  }

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

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

  .detail-poster {
    height: 380px;
  }
}

@media (max-width: 760px) {
  .header-inner {
    height: 64px;
  }

  .brand-text {
    font-size: 1.12rem;
  }

  .hero-carousel,
  .hero-track,
  .hero-slide {
    min-height: 560px;
  }

  .hero-content {
    padding: 94px 20px 80px;
  }

  .hero-arrow {
    display: none;
  }

  .content-section,
  .page-shell,
  .detail-shell {
    padding-left: 16px;
    padding-right: 16px;
  }

  .featured-panel {
    padding-left: 16px;
    padding-right: 16px;
  }

  .section-heading,
  .filter-panel {
    display: grid;
    grid-template-columns: 1fr;
  }

  .movie-grid,
  .large-grid,
  .small-grid,
  .category-grid,
  .overview-grid {
    grid-template-columns: 1fr;
  }

  .overview-card {
    grid-template-columns: 1fr;
  }

  .overview-cover {
    height: 220px;
  }

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

  .rank-number {
    display: none;
  }

  .rank-cover {
    width: 82px;
    height: 112px;
  }

  .detail-hero {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .detail-poster {
    height: 420px;
  }

  .player-card {
    min-height: 260px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .poster-wrap {
    height: 240px;
  }

  .movie-card-large .poster-wrap,
  .detail-poster {
    height: 360px;
  }

  .page-title,
  .detail-section {
    padding: 22px;
  }
}
