:root {
  --orange: #f97316;
  --orange-dark: #ea580c;
  --pink: #ec4899;
  --purple: #7c3aed;
  --blue: #2563eb;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-500: #64748b;
  --gray-700: #334155;
  --gray-900: #0f172a;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 10px 30px rgba(15, 23, 42, 0.10);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--gray-50);
  color: var(--gray-900);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  color: #fff;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.96), rgba(236, 72, 153, 0.94), rgba(124, 58, 237, 0.96));
  box-shadow: 0 10px 30px rgba(234, 88, 12, 0.22);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 1440px;
  height: 72px;
  margin: 0 auto;
  padding: 0 28px;
}

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

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 14px;
  color: var(--orange);
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.15);
}

.brand-text {
  font-size: 20px;
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  min-width: 0;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
}

.desktop-nav a {
  opacity: 0.92;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.header-search,
.mobile-search,
.search-panel {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input,
.search-panel input {
  width: 220px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 10px 16px;
  color: #fff;
  outline: none;
  background: rgba(255, 255, 255, 0.18);
  transition: width 0.25s ease, background 0.25s ease;
}

.header-search input::placeholder,
.mobile-search input::placeholder {
  color: rgba(255, 255, 255, 0.82);
}

.header-search input:focus {
  width: 280px;
  background: rgba(255, 255, 255, 0.26);
}

.header-search button,
.mobile-search button,
.search-panel button {
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  color: var(--orange-dark);
  font-weight: 700;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.14);
}

.menu-button {
  display: none;
  border: 0;
  border-radius: 12px;
  padding: 8px 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.mobile-nav {
  display: none;
  max-width: 1440px;
  margin: 0 auto;
  padding: 16px 24px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.mobile-nav a {
  display: block;
  padding: 10px 6px;
}

.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  padding: 54px 24px 60px;
  color: #fff;
  background: linear-gradient(135deg, #f97316 0%, #ec4899 48%, #6d28d9 100%);
}

.hero-background {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 25%, rgba(255, 255, 255, 0.32), transparent 24%),
    radial-gradient(circle at 80% 12%, rgba(255, 255, 255, 0.22), transparent 28%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.18));
}

.hero-shell {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 48px;
  align-items: center;
  min-height: 510px;
  padding: 54px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 42px;
  background:
    linear-gradient(110deg, rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.18)),
    var(--poster-image);
  background-size: cover;
  background-position: center;
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.28);
}

.hero-slide.is-active {
  display: grid;
  animation: heroFade 0.55s ease both;
}

@keyframes heroFade {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-copy {
  max-width: 760px;
}

.hero-tags,
.detail-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.hero-tags span,
.detail-labels span,
.detail-labels strong {
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 14px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.hero-copy h1 {
  max-width: 820px;
  margin: 0 0 20px;
  font-size: clamp(38px, 6vw, 74px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero-copy p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 20px;
}

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

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

.primary-button {
  color: var(--orange-dark);
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
}

.ghost-button {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.12);
}

.ghost-button.dark {
  color: var(--gray-900);
  border-color: rgba(15, 23, 42, 0.18);
  background: rgba(255, 255, 255, 0.72);
}

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

.hero-poster,
.detail-cover,
.overview-cover {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 480px;
  border-radius: 30px;
  overflow: hidden;
  background:
    linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.78)),
    var(--poster-image);
  background-size: cover;
  background-position: center;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
}

.hero-poster {
  transform: rotate(2deg);
}

.hero-poster span,
.detail-cover span,
.overview-cover span {
  margin: 0 20px 22px;
  border-radius: 999px;
  padding: 9px 14px;
  color: #fff;
  font-weight: 800;
  background: rgba(249, 115, 22, 0.92);
}

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

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

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

.hero-search-card {
  margin-top: 26px;
  border-radius: 28px;
  padding: 24px;
  color: var(--gray-900);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
}

.hero-search-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.hero-search-card form {
  display: flex;
  gap: 12px;
}

.hero-search-card input,
.search-panel input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  padding: 13px 18px;
  color: var(--gray-900);
  background: #fff;
  outline: none;
}

.hero-search-card button {
  border: 0;
  border-radius: 999px;
  padding: 0 24px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--orange), var(--pink));
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.hero-pills a {
  border-radius: 999px;
  padding: 8px 13px;
  color: var(--orange-dark);
  font-weight: 700;
  background: #fff7ed;
}

.content-section,
.page-shell {
  max-width: 1440px;
  margin: 0 auto;
  padding: 64px 24px 0;
}

.no-top-padding {
  padding-top: 0;
}

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

.section-kicker {
  display: inline-flex;
  margin-bottom: 8px;
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--orange-dark);
  font-size: 14px;
  font-weight: 800;
  background: #ffedd5;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
}

.section-heading p {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--gray-500);
}

.section-heading > a {
  color: var(--orange-dark);
  font-weight: 800;
  white-space: nowrap;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.poster-frame {
  position: relative;
  display: flex;
  align-items: flex-end;
  height: 290px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.72)),
    var(--poster-image);
  background-size: cover;
  background-position: center;
}

.poster-year,
.poster-play,
.poster-name {
  position: absolute;
  z-index: 2;
}

.poster-year {
  top: 14px;
  left: 14px;
  border-radius: 999px;
  padding: 5px 10px;
  color: #fff;
  font-weight: 800;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(10px);
}

.poster-play {
  top: 50%;
  left: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  color: var(--orange);
  background: rgba(255, 255, 255, 0.92);
  transform: translate(-50%, -50%) scale(0.88);
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

.poster-name {
  right: 16px;
  bottom: 16px;
  left: 16px;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.25;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.42);
}

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

.movie-card-topline,
.movie-card-bottom,
.compact-meta,
.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: var(--gray-500);
  font-size: 13px;
}

.movie-card-topline {
  justify-content: space-between;
}

.movie-card-topline strong {
  color: var(--orange-dark);
}

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

.movie-card p {
  display: -webkit-box;
  min-height: 48px;
  margin: 0;
  overflow: hidden;
  color: var(--gray-500);
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag-row span {
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 700;
  background: #fff7ed;
}

.movie-card-bottom {
  justify-content: space-between;
  margin-top: 14px;
}

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

.category-block,
.category-overview-card,
.text-card,
.info-card,
.side-card,
.player-card,
.compact-row,
.rank-row {
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.category-block {
  padding: 24px;
}

.category-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.category-block h3 {
  margin: 0;
  font-size: 24px;
}

.category-block-head span {
  color: var(--orange-dark);
  font-weight: 800;
}

.category-block p {
  margin: 10px 0 18px;
  color: var(--gray-500);
}

.category-block li a,
.category-overview-card li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 0;
  border-top: 1px solid var(--gray-100);
}

.category-block li em,
.category-overview-card li span {
  color: var(--orange-dark);
  font-style: normal;
  font-weight: 800;
}

.page-hero {
  position: relative;
  overflow: hidden;
  margin-top: 34px;
  margin-bottom: 34px;
  border-radius: 36px;
  padding: 56px;
  color: #fff;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.22), transparent 34%),
    linear-gradient(135deg, var(--orange), var(--pink), var(--purple));
  box-shadow: var(--shadow-soft);
}

.page-hero > span {
  display: inline-flex;
  margin-bottom: 12px;
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.18);
}

.page-hero h1 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.1;
}

.page-hero p {
  max-width: 820px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

.category-overview-grid {
  display: grid;
  gap: 22px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 26px;
  padding: 18px;
}

.overview-cover {
  min-height: 240px;
}

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

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

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

.rank-row {
  display: grid;
  grid-template-columns: 82px 96px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 14px;
}

.rank-number {
  color: var(--orange-dark);
  font-size: 22px;
  font-weight: 900;
}

.rank-poster,
.compact-cover {
  min-height: 126px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.58)),
    var(--poster-image);
  background-size: cover;
  background-position: center;
}

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

.rank-main p,
.compact-info p {
  margin: 0 0 8px;
  color: var(--gray-500);
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(110deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.52)),
    var(--poster-image);
  background-size: cover;
  background-position: center;
}

.detail-hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 20%, rgba(249, 115, 22, 0.24), transparent 34%);
}

.detail-hero-inner {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  padding: 42px 24px 64px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.breadcrumbs a {
  color: #fff;
}

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

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

.detail-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(36px, 6vw, 70px);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.detail-copy p {
  max-width: 850px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 20px;
}

.detail-content {
  margin-top: 0;
}

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

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

.player-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.video-player {
  display: block;
  width: 100%;
  height: 100%;
  background: #020617;
}

.play-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #fff;
  background:
    radial-gradient(circle, rgba(249, 115, 22, 0.18), rgba(15, 23, 42, 0.72)),
    rgba(2, 6, 23, 0.58);
}

.play-cover span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  color: var(--orange);
  font-size: 34px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.24);
}

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

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

.text-card {
  padding: 28px;
}

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

.text-card p {
  margin: 0;
  color: var(--gray-700);
  font-size: 17px;
}

.detail-side {
  display: grid;
  align-content: start;
  gap: 22px;
}

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

.info-card dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.info-card dt {
  color: var(--gray-500);
  font-size: 13px;
}

.info-card dd {
  margin: -8px 0 0;
  font-weight: 800;
}

.side-card a {
  display: block;
  margin-top: 10px;
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--orange-dark);
  font-weight: 800;
  background: #fff7ed;
}

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

.neighbor-links a {
  border-radius: 18px;
  padding: 16px 18px;
  color: var(--gray-900);
  font-weight: 800;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.compact-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 16px;
  padding: 14px;
}

.compact-cover {
  display: flex;
  align-items: flex-end;
}

.compact-cover span {
  margin: 0 10px 10px;
  border-radius: 999px;
  padding: 4px 8px;
  color: #fff;
  font-weight: 800;
  background: rgba(15, 23, 42, 0.62);
}

.search-panel {
  max-width: 760px;
  margin-top: 24px;
}

.search-panel input {
  border: none;
}

.search-results {
  display: grid;
  gap: 14px;
}

.site-footer {
  margin-top: 80px;
  color: #cbd5e1;
  background: #0f172a;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 54px 24px;
}

.footer-brand {
  color: #fff;
  font-size: 20px;
}

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

.site-footer p {
  margin: 12px 0 0;
  color: #94a3b8;
}

.site-footer li {
  margin: 8px 0;
}

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

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  padding: 18px 24px;
  text-align: center;
  color: #94a3b8;
}

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

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

  .header-search {
    margin-left: auto;
  }

  .mobile-nav.is-open {
    display: block;
  }

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

  .hero-poster {
    display: none;
  }

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

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

@media (max-width: 820px) {
  .header-inner {
    height: auto;
    min-height: 66px;
    padding: 12px 16px;
  }

  .brand-text {
    font-size: 17px;
  }

  .header-search {
    display: none;
  }

  .mobile-search input {
    width: 100%;
  }

  .hero-section {
    min-height: auto;
    padding: 28px 16px 40px;
  }

  .hero-slide {
    min-height: 460px;
    padding: 28px;
    border-radius: 30px;
  }

  .hero-copy p,
  .detail-copy p {
    font-size: 17px;
  }

  .hero-search-card form,
  .search-panel {
    flex-direction: column;
    align-items: stretch;
  }

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

  .section-heading {
    display: block;
  }

  .section-heading > a {
    display: inline-flex;
    margin-top: 12px;
  }

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

  .category-overview-card,
  .detail-layout,
  .rank-row {
    grid-template-columns: 1fr;
  }

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

  .neighbor-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .movie-grid,
  .large-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding: 34px 24px;
    border-radius: 26px;
  }

  .poster-frame {
    height: 360px;
  }

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