:root {
  --color-bg: #f8fafc;
  --color-panel: #ffffff;
  --color-text: #1f2937;
  --color-muted: #6b7280;
  --color-soft: #fff7ed;
  --color-primary: #d97706;
  --color-primary-dark: #b45309;
  --color-primary-soft: #fef3c7;
  --color-border: #e5e7eb;
  --color-footer: #111827;
  --shadow-soft: 0 12px 35px rgba(15, 23, 42, 0.08);
  --shadow-card: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius-large: 28px;
  --radius-card: 20px;
  --header-height: 78px;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
}

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

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

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.72);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-soft);
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

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

.brand-icon {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 10px 24px rgba(217, 119, 6, 0.32);
}

.brand-text {
  display: grid;
  gap: 2px;
}

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

.brand-text small {
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 500;
}

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

.nav-link {
  padding: 10px 16px;
  border-radius: 999px;
  color: #374151;
  font-size: 14px;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: var(--color-primary);
  transform: translateY(-1px);
}

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

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

.hero {
  position: relative;
  min-height: 720px;
  padding: calc(var(--header-height) + 68px) 0 80px;
  overflow: hidden;
  background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 42%, #fee2e2 100%);
}

.hero-orb {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  filter: blur(34px);
  opacity: 0.34;
  animation: pulseOrb 6s ease-in-out infinite;
}

.orb-one {
  top: 120px;
  left: 5%;
  background: #f59e0b;
}

.orb-two {
  top: 220px;
  right: 7%;
  background: #fb923c;
  animation-delay: 1.2s;
}

.orb-three {
  bottom: 70px;
  left: 42%;
  background: #ef4444;
  animation-delay: 2.1s;
}

@keyframes pulseOrb {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.12);
  }
}

.hero-inner {
  position: relative;
  z-index: 2;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
  align-items: center;
  gap: 48px;
}

.hero-slide.active {
  display: grid;
  animation: fadeIn 0.45s ease both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-primary);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
}

.hero-copy h1 {
  margin: 18px 0;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.hero-copy h1 span {
  display: block;
  color: var(--color-primary);
  margin-top: 12px;
}

.hero-copy p {
  max-width: 680px;
  color: #4b5563;
  font-size: 18px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

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

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

.button-ghost {
  color: var(--color-primary);
  background: rgba(255, 255, 255, 0.82);
  border-color: var(--color-primary);
}

.hero-cover {
  position: relative;
  width: min(360px, 100%);
  aspect-ratio: 2 / 3;
  justify-self: center;
  border-radius: 34px;
  overflow: hidden;
  background: linear-gradient(145deg, #fef3c7, #fed7aa);
  box-shadow: var(--shadow-card);
  transform: rotate(2deg);
}

.hero-cover img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, opacity 0.2s ease;
}

.hero-cover:hover img {
  transform: scale(1.05);
}

.hero-cover span {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.52));
}

.hero-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
}

.hero-dots button {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(217, 119, 6, 0.28);
  cursor: pointer;
}

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

.stats-section {
  background: #fff;
  padding: 34px 0;
}

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

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

.stats-grid strong {
  display: block;
  color: var(--color-primary);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
}

.stats-grid span {
  display: block;
  margin-top: 8px;
  color: var(--color-muted);
  font-weight: 700;
}

.section {
  padding: 72px 0;
}

.section-soft {
  background: linear-gradient(135deg, #f9fafb 0%, #fff7ed 100%);
}

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

.section-head h2,
.page-hero h1,
.filter-panel h2 {
  margin: 6px 0 8px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.section-head p,
.page-hero p,
.filter-panel p {
  margin: 0;
  color: var(--color-muted);
}

.section-link {
  color: var(--color-primary);
  font-weight: 800;
}

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

.category-card,
.category-overview-card,
.article-card,
.side-card,
.filter-panel {
  background: var(--color-panel);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
}

.category-card {
  min-height: 190px;
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-card span {
  color: var(--color-primary);
  font-weight: 800;
}

.category-card h3 {
  margin: 16px 0 10px;
  font-size: 24px;
}

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

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1.2fr);
  gap: 28px;
  align-items: center;
  margin-top: 42px;
  margin-bottom: 20px;
  padding: 26px;
}

.filter-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px 96px;
  gap: 14px;
  align-items: end;
}

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

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

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

.filter-controls button {
  height: 48px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: #374151;
  font-weight: 800;
  cursor: pointer;
}

.filter-count {
  grid-column: 1 / -1;
  color: var(--color-primary) !important;
  font-weight: 800;
}

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

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

.movie-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-shell {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(145deg, #fef3c7, #fed7aa);
}

.poster-image {
  height: 100%;
  object-fit: cover;
  transition: transform 0.28s ease, opacity 0.2s ease;
}

.movie-card:hover .poster-image {
  transform: scale(1.05);
}

.poster-gradient {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.55));
}

.play-chip {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(217, 119, 6, 0.92);
  font-size: 12px;
  font-weight: 900;
}

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

.movie-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 700;
}

.movie-card-meta span {
  padding: 3px 8px;
  border-radius: 999px;
  background: #f3f4f6;
}

.movie-card h3 {
  margin: 12px 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

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

.movie-card p {
  min-height: 58px;
  margin: 0 0 14px;
  color: var(--color-muted);
  font-size: 14px;
}

.movie-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--color-primary-dark);
  background: var(--color-primary-soft);
  font-size: 12px;
  font-weight: 800;
}

.page-shell {
  padding-top: var(--header-height);
}

.page-hero {
  padding: 82px 0 66px;
  background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 48%, #fef2f2 100%);
}

.search-hero,
.ranking-hero,
.category-page-hero {
  background: linear-gradient(135deg, #111827 0%, #78350f 100%);
  color: #fff;
}

.search-hero p,
.ranking-hero p,
.category-page-hero p {
  color: rgba(255, 255, 255, 0.72);
}

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

.category-overview-card {
  display: grid;
  gap: 18px;
  padding: 26px;
}

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

.category-overview-card h2 {
  margin: 8px 0 6px;
  font-size: 30px;
}

.category-overview-card p {
  margin: 0;
  color: var(--color-muted);
}

.category-sample-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.category-sample-links a {
  padding: 6px 10px;
  border-radius: 999px;
  color: #374151;
  background: #f3f4f6;
  font-size: 13px;
  font-weight: 700;
}

.category-sample-links a:hover {
  color: #fff;
  background: var(--color-primary);
}

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

.rank-row {
  display: grid;
  grid-template-columns: 54px 84px minmax(0, 1fr) 90px;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.rank-number {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  background: var(--color-primary);
  font-weight: 900;
}

.rank-poster {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(145deg, #fef3c7, #fed7aa);
}

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

.rank-info h2 {
  margin: 0 0 6px;
  font-size: 20px;
}

.rank-info p {
  margin: 0 0 10px;
  color: var(--color-muted);
}

.rank-action {
  display: inline-flex;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  color: #fff;
  background: var(--color-primary);
  font-weight: 900;
}

.detail-page {
  padding-top: var(--header-height);
}

.detail-hero {
  padding: 38px 0 66px;
  background: linear-gradient(135deg, #111827 0%, #78350f 72%, #92400e 100%);
  color: #fff;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #fbbf24;
}

.detail-layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}

.detail-poster-card {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(145deg, #fef3c7, #fed7aa);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.32);
}

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

.detail-info-card h1 {
  margin: 10px 0 14px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.detail-one-line {
  max-width: 840px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

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

.detail-meta-grid div {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
}

.detail-meta-grid span {
  display: block;
  color: rgba(255, 255, 255, 0.56);
  font-size: 12px;
}

.detail-meta-grid strong {
  display: block;
  margin-top: 4px;
}

.detail-tags .tag {
  color: #fff;
  background: rgba(245, 158, 11, 0.24);
}

.detail-main {
  padding-top: 52px;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 26px;
  align-items: start;
}

.detail-primary {
  display: grid;
  gap: 22px;
}

.player-card {
  border-radius: 26px;
  overflow: hidden;
  background: #020617;
  box-shadow: var(--shadow-card);
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.site-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #020617;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.28), rgba(2, 6, 23, 0.78));
  cursor: pointer;
}

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

.play-icon {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  padding-left: 4px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 18px 35px rgba(217, 119, 6, 0.32);
  font-size: 28px;
}

.play-overlay strong {
  font-size: 18px;
}

.player-status {
  min-height: 24px;
  margin: 0;
  padding: 10px 18px 14px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.article-card,
.side-card {
  padding: 24px;
}

.article-card h2,
.side-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.article-card p {
  margin: 0;
  color: #374151;
  font-size: 16px;
}

.detail-aside {
  position: sticky;
  top: calc(var(--header-height) + 18px);
  display: grid;
  gap: 18px;
}

.side-card dl {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 10px 12px;
  margin: 0;
}

.side-card dt {
  color: var(--color-muted);
  font-weight: 800;
}

.side-card dd {
  margin: 0;
}

.site-footer {
  padding: 54px 0;
  color: #d1d5db;
  background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 32px;
}

.footer-brand {
  margin-bottom: 12px;
  color: #fff;
  font-size: 26px;
  font-weight: 900;
}

.site-footer h3 {
  margin: 0 0 12px;
  color: #fff;
}

.site-footer a {
  display: block;
  margin: 8px 0;
  color: #d1d5db;
}

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

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

.copyright {
  font-size: 13px;
}

[data-card].is-hidden {
  display: none;
}

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

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

  .filter-panel,
  .detail-content-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .detail-aside {
    position: static;
  }
}

@media (max-width: 820px) {
  :root {
    --header-height: 68px;
  }

  .mobile-menu-button {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: var(--header-height);
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--shadow-card);
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-link {
    border-radius: 14px;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + 42px);
  }

  .hero-slide,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    font-size: 42px;
  }

  .hero-cover {
    max-width: 280px;
  }

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

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

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

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

  .rank-action {
    grid-column: 1 / -1;
  }
}

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

  .brand-text small {
    display: none;
  }

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

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

  .section-head {
    display: block;
  }

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

  .movie-card-body {
    padding: 12px;
  }

  .movie-card p {
    min-height: 0;
    display: none;
  }

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

  .detail-poster-card {
    max-width: 240px;
  }

  .article-card,
  .side-card,
  .filter-panel {
    padding: 18px;
  }
}
