:root {
  --bg: #fff7ed;
  --paper: #ffffff;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: rgba(31, 41, 55, 0.10);
  --orange: #f97316;
  --pink: #ec4899;
  --purple: #8b5cf6;
  --amber: #f59e0b;
  --shadow: 0 22px 60px rgba(124, 45, 18, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(249, 115, 22, 0.12), transparent 32rem),
    radial-gradient(circle at top right, rgba(236, 72, 153, 0.10), transparent 30rem),
    linear-gradient(180deg, #fff7ed 0%, #ffffff 38%, #fff7ed 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 12px 40px rgba(31, 41, 55, 0.08);
  backdrop-filter: blur(18px);
}

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

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

.brand-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 12px 28px rgba(236, 72, 153, 0.25);
  transition: transform 0.25s ease;
}

.brand:hover .brand-icon {
  transform: scale(1.08) rotate(6deg);
}

.brand-text {
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  background: linear-gradient(135deg, var(--orange), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  position: relative;
  color: #374151;
  font-size: 0.95rem;
  font-weight: 700;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--orange), var(--pink));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--orange);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.menu-button {
  display: none;
  border: 0;
  border-radius: 14px;
  padding: 9px 12px;
  background: #fff7ed;
  color: var(--ink);
  font-size: 1.3rem;
}

.mobile-nav {
  display: none;
  padding: 10px 20px 18px;
  border-top: 1px solid var(--line);
  background: #fff;
}

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

.mobile-sub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 4px;
}

.mobile-sub-link {
  padding: 10px 12px;
  border-radius: 14px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 0.9rem;
  font-weight: 700;
}

main {
  min-height: 65vh;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero {
  position: relative;
  min-height: 90vh;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #fb923c 0%, #ec4899 48%, #7c3aed 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.45) 0 2px, transparent 3px),
    radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.32) 0 1px, transparent 2px);
  background-size: 58px 58px, 42px 42px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.45), rgba(17, 24, 39, 0.04)),
    radial-gradient(circle at 75% 25%, rgba(255, 255, 255, 0.22), transparent 24rem);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  min-height: 90vh;
  margin: 0 auto;
  padding: 72px 20px 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: 48px;
  align-items: center;
}

.hero-copy h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(3.1rem, 7vw, 6.8rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-copy h1 span {
  display: block;
  margin-top: 16px;
  color: #ffedd5;
  font-size: clamp(1.55rem, 3.6vw, 3.15rem);
  letter-spacing: -0.02em;
}

.hero-copy p {
  max-width: 620px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  line-height: 1.85;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: #fff;
  color: #ea580c;
  font-weight: 800;
  box-shadow: 0 18px 38px rgba(124, 45, 18, 0.20);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 48px rgba(124, 45, 18, 0.26);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  backdrop-filter: blur(12px);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 38px;
  max-width: 560px;
}

.hero-stat {
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.hero-stat strong {
  display: block;
  font-size: 1.55rem;
}

.hero-stat span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px) scale(0.98);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

.hero-poster-card {
  position: relative;
  overflow: hidden;
  min-height: 600px;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 32px 90px rgba(76, 29, 149, 0.34);
}

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

.hero-poster-card .poster-fallback {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 35% 20%, rgba(255, 255, 255, 0.22), transparent 18rem),
    linear-gradient(135deg, rgba(251, 146, 60, 0.9), rgba(236, 72, 153, 0.82), rgba(124, 58, 237, 0.9));
}

.hero-card-overlay {
  position: absolute;
  inset: auto 18px 18px;
  padding: 22px;
  border-radius: 24px;
  background: rgba(17, 24, 39, 0.58);
  backdrop-filter: blur(18px);
}

.hero-card-overlay h2 {
  margin: 0 0 8px;
  font-size: 1.65rem;
}

.hero-card-overlay p {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
}

.hero-dots {
  position: absolute;
  z-index: 3;
  right: 28px;
  top: 28px;
  display: flex;
  gap: 10px;
}

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

.hero-dot.active {
  width: 32px;
  background: #fff;
}

.section {
  padding: 72px 0;
}

.section.soft {
  background: linear-gradient(180deg, rgba(255, 247, 237, 0.78), rgba(255, 255, 255, 0.88));
}

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

.eyebrow {
  margin: 0 0 8px;
  color: var(--orange);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-head h2,
.page-hero h1,
.detail-title h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: -0.04em;
}

.section-head p,
.page-hero p {
  max-width: 680px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.more-link {
  color: var(--orange);
  font-weight: 900;
  white-space: nowrap;
}

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.85);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 70px rgba(124, 45, 18, 0.18);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #fed7aa, #f9a8d4, #c4b5fd);
}

.poster-link img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.movie-card:hover .poster-link img {
  transform: scale(1.06);
}

.poster-fallback {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.6), transparent 30%),
    linear-gradient(135deg, #fb923c, #ec4899, #8b5cf6);
}

.poster-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.72);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

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

.movie-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.category-mini {
  color: var(--orange);
}

.movie-card h3 {
  margin: 10px 0 8px;
  font-size: 1.08rem;
  line-height: 1.35;
}

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

.movie-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: #fff7ed;
  color: #c2410c;
  font-size: 0.76rem;
  font-weight: 800;
}

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

.category-card {
  padding: 22px;
  min-height: 156px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 26px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}

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

.category-card:nth-child(3n + 3) {
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
}

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

.category-card strong {
  font-size: 1.35rem;
}

.category-card span {
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.6;
}

.rank-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 28px;
}

.rank-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.rank-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
}

.rank-number {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  font-weight: 900;
}

.rank-item a {
  overflow: hidden;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-score {
  color: var(--orange);
  font-weight: 900;
}

.panel {
  padding: 24px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.84);
}

.page-hero {
  padding: 86px 0 38px;
  background:
    radial-gradient(circle at 20% 10%, rgba(249, 115, 22, 0.16), transparent 25rem),
    radial-gradient(circle at 80% 0%, rgba(236, 72, 153, 0.13), transparent 28rem);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.breadcrumb a {
  color: var(--orange);
  font-weight: 800;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px 160px auto;
  gap: 14px;
  align-items: end;
  margin: 0 0 28px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

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

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

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: rgba(249, 115, 22, 0.55);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.filter-count {
  margin: 0;
  color: var(--orange);
  font-weight: 900;
  white-space: nowrap;
}

.detail-hero {
  padding: 72px 0 48px;
  color: #fff;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.96), rgba(236, 72, 153, 0.92), rgba(124, 58, 237, 0.94));
}

.detail-hero-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 34px;
  align-items: end;
}

.detail-poster {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  aspect-ratio: 2 / 3;
  box-shadow: 0 30px 80px rgba(17, 24, 39, 0.32);
}

.detail-poster img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-title .breadcrumb {
  color: rgba(255, 255, 255, 0.78);
}

.detail-title .breadcrumb a {
  color: #fff;
}

.detail-title p {
  max-width: 820px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.1rem;
  line-height: 1.85;
}

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

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  font-weight: 800;
}

.player-section {
  padding-top: 50px;
}

.video-shell {
  overflow: hidden;
  border-radius: 30px;
  background: #111827;
  box-shadow: 0 32px 90px rgba(17, 24, 39, 0.25);
}

.video-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(circle at 50% 30%, rgba(249, 115, 22, 0.2), transparent 25rem),
    #111827;
}

.video-stage video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #111827;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.20), rgba(17, 24, 39, 0.70));
}

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

.play-button {
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  font-size: 2.1rem;
  cursor: pointer;
  box-shadow: 0 20px 52px rgba(236, 72, 153, 0.34);
}

.video-note {
  padding: 16px 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  line-height: 1.7;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  padding: 50px 0 74px;
}

.article-box {
  padding: 28px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.article-box + .article-box {
  margin-top: 22px;
}

.article-box h2 {
  margin: 0 0 16px;
  font-size: 1.65rem;
}

.article-box p {
  color: #4b5563;
  line-height: 1.95;
  margin: 0;
}

.info-table {
  display: grid;
  gap: 12px;
}

.info-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  color: #4b5563;
}

.info-row strong {
  color: var(--ink);
}

.side-sticky {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 18px;
}

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

.compact-link {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.compact-link img,
.compact-thumb {
  width: 64px;
  height: 88px;
  border-radius: 14px;
  object-fit: cover;
  background: linear-gradient(135deg, #fb923c, #ec4899, #8b5cf6);
}

.compact-link strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-link span {
  color: var(--muted);
  font-size: 0.86rem;
}

.site-footer {
  padding: 54px 0 34px;
  background: linear-gradient(135deg, rgba(255, 247, 237, 0.94), rgba(253, 242, 248, 0.96), rgba(245, 243, 255, 0.96));
  border-top: 1px solid rgba(249, 115, 22, 0.08);
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) 0.7fr 1fr;
  gap: 34px;
}

.footer-brand p,
.footer-col a {
  color: var(--muted);
  line-height: 1.8;
}

.footer-col h3 {
  margin: 0 0 14px;
}

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

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

.no-results {
  display: none;
  padding: 26px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  color: var(--muted);
  text-align: center;
  box-shadow: var(--shadow);
}

.no-results.show {
  display: block;
}

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

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

  .hero-inner,
  .rank-layout,
  .content-layout {
    grid-template-columns: 1fr;
  }

  .hero-slider,
  .hero-poster-card,
  .hero-poster-card img {
    min-height: 520px;
    height: 520px;
  }

  .side-sticky {
    position: static;
  }
}

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

  .menu-button {
    display: inline-flex;
  }

  .header-inner {
    height: 66px;
  }

  .hero-inner {
    padding-top: 50px;
    gap: 30px;
  }

  .hero-copy h1 {
    font-size: 3.15rem;
  }

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

  .hero-slider,
  .hero-poster-card,
  .hero-poster-card img {
    min-height: 440px;
    height: 440px;
  }

  .movie-grid,
  .category-grid,
  .detail-hero-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

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

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

  .section {
    padding: 52px 0;
  }
}

@media (max-width: 480px) {
  .container,
  .header-inner,
  .hero-inner,
  .footer-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .movie-grid {
    gap: 18px;
  }

  .article-box,
  .panel {
    padding: 20px;
  }
}
