:root {
  --orange: #f97316;
  --pink: #ec4899;
  --blue: #3b82f6;
  --sky: #06b6d4;
  --text: #1f2937;
  --muted: #64748b;
  --line: rgba(251, 146, 60, 0.22);
  --paper: rgba(255, 255, 255, 0.82);
  --shadow: 0 20px 55px rgba(234, 88, 12, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
  background:
    radial-gradient(circle at 10% 0%, rgba(251, 146, 60, 0.18), transparent 30%),
    radial-gradient(circle at 90% 10%, rgba(59, 130, 246, 0.14), transparent 34%),
    linear-gradient(135deg, #fff7ed 0%, #fdf2f8 48%, #eff6ff 100%);
  min-height: 100vh;
}

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(255, 247, 237, 0.94), rgba(253, 242, 248, 0.94), rgba(239, 246, 255, 0.94));
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 35px rgba(249, 115, 22, 0.10);
  border-bottom: 1px solid rgba(251, 146, 60, 0.18);
}

.nav-wrap {
  max-width: 1240px;
  margin: 0 auto;
  min-height: 72px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-size: 24px;
  font-weight: 900;
  background: linear-gradient(90deg, var(--orange), var(--pink), var(--blue));
  -webkit-background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.brand-icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #fdba74, #f472b6);
  box-shadow: 0 12px 25px rgba(236, 72, 153, 0.28);
  font-size: 15px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-links a {
  color: #475569;
  font-weight: 700;
  white-space: nowrap;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--orange);
  transform: translateY(-1px);
}

.top-search {
  display: flex;
  gap: 8px;
  align-items: center;
}

.top-search input,
.hero-search input,
.filter-bar input,
.filter-bar select {
  border: 1px solid rgba(251, 146, 60, 0.22);
  outline: none;
  border-radius: 999px;
  padding: 11px 15px;
  background: rgba(255, 255, 255, 0.84);
  color: #334155;
  min-width: 190px;
}

.top-search input:focus,
.hero-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.18);
}

button,
.primary-btn,
.ghost-btn,
.top-search button,
.hero-search button {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.top-search button,
.hero-search button,
.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 11px 18px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(90deg, var(--orange), var(--pink));
  box-shadow: 0 15px 30px rgba(249, 115, 22, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.top-search button:hover,
.hero-search button:hover,
.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 38px rgba(236, 72, 153, 0.26);
}

.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 10px 18px;
  color: var(--orange);
  font-weight: 800;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(251, 146, 60, 0.24);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: var(--orange);
  background: rgba(255, 237, 213, 0.78);
}

main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 20px 48px;
}

.hero-carousel {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.78);
}

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

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s ease;
}

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

.hero-bg {
  background-position: center;
  background-size: cover;
  transform: scale(1.04);
  filter: saturate(1.05);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 620px;
  padding: 64px 62px 120px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: center;
  gap: 44px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 14px;
  color: #c2410c;
  font-weight: 800;
  background: rgba(255, 237, 213, 0.9);
  border: 1px solid rgba(251, 146, 60, 0.24);
}

.hero-text h1 {
  margin: 20px 0 14px;
  font-size: clamp(38px, 7vw, 78px);
  line-height: 1.03;
  letter-spacing: -0.06em;
  background: linear-gradient(90deg, #ea580c, #db2777, #2563eb);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-text p {
  max-width: 760px;
  color: #475569;
  font-size: 20px;
  line-height: 1.8;
}

.hero-tags,
.tag-row,
.detail-tags,
.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.hero-tags span,
.tag-row span,
.detail-tags span,
.category-pills a,
.meta-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

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

.hero-poster {
  height: 458px;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.22);
  transform: rotate(2deg);
  transition: transform 0.25s ease;
}

.hero-poster:hover {
  transform: rotate(0deg) translateY(-5px);
}

.hero-panel {
  position: absolute;
  left: 42px;
  right: 42px;
  bottom: 34px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.12);
}

.hero-search {
  display: flex;
  gap: 10px;
  flex: 1;
}

.hero-search input {
  width: min(520px, 100%);
}

.hero-cats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-cats a {
  padding: 10px 14px;
  border-radius: 999px;
  color: #c2410c;
  font-weight: 800;
  background: #ffedd5;
}

.hero-dots {
  position: absolute;
  right: 54px;
  top: 48px;
  z-index: 4;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.32);
}

.hero-dot.active {
  width: 34px;
  background: linear-gradient(90deg, var(--orange), var(--pink));
}

.content-section,
.page-card,
.detail-box {
  margin-top: 36px;
  padding: 26px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.72);
}

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

.section-head h2,
.page-title h1,
.detail-copy h1,
.detail-box h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 4vw, 42px);
  letter-spacing: -0.04em;
  color: #0f172a;
}

.section-head p,
.page-title p,
.detail-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.82);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 45px rgba(249, 115, 22, 0.16);
}

.poster-link {
  position: relative;
  display: block;
  height: 286px;
  overflow: hidden;
  background: #fff7ed;
}

.movie-card.compact .poster-link {
  height: 230px;
}

.poster-badge,
.poster-year {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  color: #fff;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.14);
}

.poster-badge {
  left: 12px;
  top: 12px;
  background: linear-gradient(90deg, var(--orange), var(--pink));
}

.poster-year {
  right: 12px;
  bottom: 12px;
  background: rgba(15, 23, 42, 0.68);
  backdrop-filter: blur(8px);
}

.movie-info {
  padding: 16px;
}

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

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

.movie-info p {
  min-height: 48px;
  margin: 0 0 12px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.7;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
}

.movie-meta span {
  padding: 5px 9px;
  border-radius: 999px;
  background: #f8fafc;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.category-card {
  min-height: 180px;
  padding: 24px;
  border-radius: 28px;
  color: #0f172a;
  background:
    linear-gradient(135deg, rgba(255, 237, 213, 0.92), rgba(252, 231, 243, 0.86), rgba(219, 234, 254, 0.82));
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.07);
}

.category-card h2 {
  margin: 0 0 10px;
  font-size: 26px;
}

.category-card p {
  margin: 0 0 18px;
  color: #475569;
  line-height: 1.7;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 160px 160px;
  gap: 12px;
  margin: 20px 0 26px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 58px 84px minmax(0, 1fr) 120px;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.rank-number {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--orange), var(--pink));
}

.rank-cover {
  width: 84px;
  height: 112px;
  border-radius: 16px;
  overflow: hidden;
  background: #fff7ed;
}

.rank-main h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.rank-main p {
  margin: 0 0 10px;
  color: #64748b;
  line-height: 1.6;
}

.rank-heat {
  text-align: right;
  color: #c2410c;
  font-weight: 900;
}

.detail-hero {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 36px;
  align-items: stretch;
  padding: 32px;
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(255, 247, 237, 0.94), rgba(253, 242, 248, 0.9), rgba(239, 246, 255, 0.86));
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.74);
}

.detail-cover {
  min-height: 510px;
  border-radius: 30px;
  overflow: hidden;
  background: #fff7ed;
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.16);
}

.detail-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.breadcrumb {
  margin: 0 0 14px;
  color: #64748b;
  font-size: 14px;
}

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

.detail-copy h1 {
  font-size: clamp(34px, 6vw, 64px);
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.player-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  aspect-ratio: 16 / 9;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.24);
}

.player-wrap video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #020617;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background-size: cover;
  background-position: center;
  z-index: 2;
  cursor: pointer;
}

.player-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.52), rgba(219, 39, 119, 0.16));
}

.play-button {
  position: relative;
  z-index: 3;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  color: #fff;
  font-size: 30px;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 20px 45px rgba(236, 72, 153, 0.34);
}

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

.detail-text {
  color: #475569;
  font-size: 17px;
  line-height: 1.95;
}

.detail-text p {
  margin: 0 0 16px;
}

.empty-result {
  display: none;
  padding: 34px;
  text-align: center;
  color: #64748b;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
}

.site-footer {
  margin-top: 34px;
  background: linear-gradient(90deg, rgba(255, 237, 213, 0.92), rgba(252, 231, 243, 0.9), rgba(219, 234, 254, 0.88));
  border-top: 1px solid rgba(251, 146, 60, 0.16);
}

.footer-grid {
  max-width: 1240px;
  margin: 0 auto;
  padding: 42px 20px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 28px;
}

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

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

.site-footer p,
.site-footer li {
  color: #64748b;
  line-height: 1.8;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a:hover {
  color: var(--orange);
}

.copyright {
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px 20px 28px;
  color: #64748b;
  border-top: 1px solid rgba(251, 146, 60, 0.14);
}

@media (max-width: 980px) {
  .nav-wrap {
    flex-wrap: wrap;
    padding: 12px 16px;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
    margin-left: auto;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 0 4px;
    border-top: 1px solid rgba(251, 146, 60, 0.18);
  }

  .nav-links.open {
    display: flex;
  }

  .top-search {
    width: 100%;
  }

  .top-search input {
    flex: 1;
  }

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

  .hero-content {
    padding: 42px 28px 170px;
  }

  .hero-poster {
    display: none;
  }

  .hero-panel {
    left: 18px;
    right: 18px;
    bottom: 18px;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-search {
    flex-direction: column;
  }

  .detail-cover {
    min-height: 420px;
  }

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

@media (max-width: 640px) {
  main {
    padding: 16px 12px 36px;
  }

  .brand {
    font-size: 20px;
  }

  .hero-carousel,
  .hero-content {
    min-height: 590px;
  }

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

  .content-section,
  .page-card,
  .detail-box,
  .detail-hero {
    padding: 18px;
    border-radius: 24px;
  }

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

  .poster-link {
    height: 220px;
  }

  .movie-info p,
  .tag-row {
    display: none;
  }

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

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

  .rank-cover {
    width: 68px;
    height: 92px;
  }

  .rank-heat {
    grid-column: 3;
    text-align: left;
  }

  .detail-cover {
    min-height: 330px;
  }

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