:root {
  --bg: #ffffff;
  --soft: #fff7ed;
  --paper: #ffffff;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --amber: #d97706;
  --amber-dark: #b45309;
  --orange: #ea580c;
  --red: #dc2626;
  --shadow: 0 22px 55px rgba(15, 23, 42, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.74);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.98);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-mark,
.footer-logo span {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  color: #fff;
  font-weight: 900;
  box-shadow: 0 12px 25px rgba(217, 119, 6, 0.32);
}

.brand-text strong {
  display: block;
  font-size: 23px;
  line-height: 1;
}

.brand-text small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

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

.desktop-nav a,
.mobile-nav a {
  padding: 10px 15px;
  color: #374151;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 650;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
  color: #fff;
  background: var(--amber);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: #f3f4f6;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: #374151;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 12px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}

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

.hero-section {
  position: relative;
  min-height: 700px;
  padding-top: 96px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 44%, #fee2e2 100%);
}

.hero-bg span {
  position: absolute;
  width: 330px;
  height: 330px;
  border-radius: 50%;
  filter: blur(45px);
  opacity: 0.22;
  animation: pulseGlow 6s ease-in-out infinite;
}

.hero-bg span:nth-child(1) {
  top: 90px;
  left: 5vw;
  background: var(--amber);
}

.hero-bg span:nth-child(2) {
  top: 190px;
  right: 6vw;
  background: var(--orange);
  animation-delay: 1.3s;
}

.hero-bg span:nth-child(3) {
  bottom: 80px;
  left: 45vw;
  background: var(--red);
  animation-delay: 2.2s;
}

@keyframes pulseGlow {
  0%, 100% {
    transform: scale(0.96);
  }
  50% {
    transform: scale(1.08);
  }
}

.hero-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
  align-items: center;
  gap: 48px;
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

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

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  font-size: clamp(38px, 7vw, 74px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero-copy p,
.page-hero p,
.detail-copy p {
  max-width: 680px;
  margin: 22px 0 0;
  color: #4b5563;
  font-size: 19px;
}

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

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

.primary-button {
  color: #fff;
  background: var(--amber);
  box-shadow: 0 16px 30px rgba(217, 119, 6, 0.3);
}

.primary-button:hover,
.ghost-button:hover,
.section-link:hover {
  transform: translateY(-2px);
}

.primary-button:hover {
  background: var(--amber-dark);
}

.ghost-button {
  color: var(--amber);
  background: rgba(255, 255, 255, 0.86);
  border: 2px solid rgba(217, 119, 6, 0.35);
}

.hero-poster {
  position: relative;
  display: block;
  padding: 14px;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

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

.hero-poster-glow {
  position: absolute;
  inset: 12% -8% -8%;
  z-index: -1;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.35), rgba(220, 38, 38, 0.22));
  filter: blur(28px);
}

.hero-dots {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}

.hero-dots button {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(217, 119, 6, 0.32);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

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

.stats-strip {
  width: min(1100px, calc(100% - 32px));
  margin: -54px auto 0;
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stats-strip div {
  padding: 24px;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
  text-align: center;
}

.stats-strip strong {
  display: block;
  color: var(--amber);
  font-size: 30px;
  line-height: 1;
}

.stats-strip span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
}

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

.soft-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(135deg, #f9fafb, #fff7ed);
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.12;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--muted);
}

.section-link {
  color: var(--amber);
  min-height: auto;
  padding: 0;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 13px 32px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 24px 52px rgba(15, 23, 42, 0.14);
}

.movie-cover {
  position: relative;
  display: block;
  height: 285px;
  overflow: hidden;
  background: #f3f4f6;
}

.compact-card .movie-cover {
  height: 220px;
}

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

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

.cover-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.68));
  opacity: 0.82;
}

.cover-badge,
.cover-year,
.rank-number {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.cover-badge {
  top: 12px;
  right: 12px;
  background: var(--amber);
}

.cover-year {
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.58);
}

.rank-number {
  top: 12px;
  left: 12px;
  background: var(--red);
}

.cover-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: rgba(217, 119, 6, 0.9);
  transform: translate(-50%, -50%) scale(0.86);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.movie-body {
  padding: 20px;
}

.compact-card .movie-body {
  padding: 16px;
}

.movie-meta-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
}

.movie-meta-line a {
  color: var(--amber);
  font-weight: 800;
}

.movie-body h3 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.28;
}

.compact-card .movie-body h3 {
  font-size: 17px;
}

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

.movie-body p {
  display: -webkit-box;
  margin: 0 0 14px;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  color: #92400e;
  background: #ffedd5;
  font-size: 12px;
  font-weight: 700;
}

.rank-home {
  display: grid;
  grid-template-columns: 0.78fr 1fr;
  gap: 38px;
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 70px;
  border-radius: 38px;
  color: #fff;
  background: linear-gradient(135deg, var(--amber), var(--orange), var(--red));
  box-shadow: 0 28px 75px rgba(217, 119, 6, 0.25);
}

.rank-copy .eyebrow,
.rank-copy p {
  color: rgba(255, 255, 255, 0.86);
}

.rank-copy h2 {
  margin: 0;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.08;
}

.rank-copy .primary-button {
  margin-top: 24px;
  color: var(--amber);
  background: #fff;
}

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

.simple-link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.simple-link-card:hover {
  background: rgba(255, 255, 255, 0.23);
  transform: translateX(4px);
}

.simple-link-card span {
  font-weight: 850;
}

.simple-link-card small {
  color: rgba(255, 255, 255, 0.76);
  text-align: right;
}

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

.category-card {
  min-height: 210px;
  padding: 28px;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.13);
}

.category-card span {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  color: var(--amber);
  background: linear-gradient(135deg, #ffedd5, #fed7aa);
  font-size: 28px;
  font-weight: 900;
}

.category-card h3 {
  margin: 20px 0 10px;
  font-size: 22px;
}

.category-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.page-main {
  padding-top: 76px;
}

.page-hero {
  padding: 86px max(16px, calc((100% - 1180px) / 2)) 72px;
  background: linear-gradient(135deg, #fff7ed, #ffedd5 54%, #fee2e2);
}

.page-hero h1 {
  max-width: 980px;
}

.page-hero p {
  max-width: 760px;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr 220px 220px;
  gap: 14px;
  margin-bottom: 30px;
  padding: 18px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.07);
}

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

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: 0;
  padding: 0 14px;
  color: var(--ink);
  background: #fff;
}

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

.empty-state {
  display: none;
  margin: 36px 0 0;
  padding: 24px;
  border-radius: 18px;
  color: var(--muted);
  background: #fff7ed;
  text-align: center;
}

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

.breadcrumb {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

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

.detail-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
  padding: 34px;
  border-radius: 36px;
  background: linear-gradient(135deg, #fff, #fff7ed);
  box-shadow: var(--shadow);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 26px;
  background: #f3f4f6;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
}

.detail-copy h1 {
  font-size: clamp(32px, 5vw, 56px);
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.detail-meta span {
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #374151;
  background: #f3f4f6;
  font-size: 14px;
  font-weight: 800;
}

.detail-tags {
  margin-top: 16px;
}

.detail-copy .primary-button {
  margin-top: 28px;
}

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

.player-section h2,
.detail-section h2 {
  margin: 0 0 18px;
  font-size: 30px;
}

.player-frame {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #0f172a;
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.24);
}

.movie-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #0f172a;
}

.play-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.2), rgba(15, 23, 42, 0.62));
  cursor: pointer;
}

.play-layer span {
  display: grid;
  width: 92px;
  height: 92px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--amber);
  font-size: 36px;
  box-shadow: 0 18px 46px rgba(217, 119, 6, 0.4);
  transition: transform 0.2s ease;
}

.play-layer:hover span {
  transform: scale(1.06);
}

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

.detail-section {
  padding: 34px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

.detail-section p {
  margin: 0;
  color: #4b5563;
  font-size: 17px;
}

.site-footer {
  margin-top: 80px;
  color: #d1d5db;
  background: linear-gradient(135deg, #111827, #1f2937, #111827);
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 22px;
}

.site-footer h2 {
  margin: 0 0 15px;
  color: #fff;
  font-size: 18px;
}

.site-footer p {
  margin: 14px 0 0;
  color: #9ca3af;
}

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

.site-footer a:hover {
  color: #fbbf24;
}

.copyright {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #9ca3af;
  font-size: 14px;
}

@media (max-width: 1100px) {
  .movie-grid,
  .compact-grid,
  .all-grid,
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-slide {
    grid-template-columns: 1fr 330px;
  }
}

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

  .nav-toggle {
    display: block;
  }

  .hero-section {
    min-height: auto;
    padding: 112px 0 70px;
  }

  .hero-slider {
    min-height: 760px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-copy p,
  .hero-actions {
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
  }

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

  .stats-strip,
  .rank-home,
  .detail-hero,
  .footer-inner,
  .filter-panel {
    grid-template-columns: 1fr;
  }

  .stats-strip {
    margin-top: 22px;
  }

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

  .rank-home {
    padding: 34px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .detail-hero {
    padding: 24px;
  }

  .detail-poster {
    max-width: 290px;
    margin: 0 auto;
  }
}

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

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

  .brand-text small {
    display: none;
  }

  .page-main {
    padding-top: 68px;
  }

  .hero-copy h1,
  .page-hero h1 {
    font-size: 36px;
  }

  .movie-grid,
  .compact-grid,
  .all-grid,
  .category-grid,
  .stats-strip {
    grid-template-columns: 1fr;
  }

  .content-section {
    padding-top: 58px;
    padding-bottom: 58px;
  }

  .movie-cover,
  .compact-card .movie-cover {
    height: 260px;
  }

  .play-layer span {
    width: 72px;
    height: 72px;
    font-size: 28px;
  }
}
