:root {
  --orange: #f97316;
  --orange-dark: #ea580c;
  --pink: #ec4899;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-500: #64748b;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
  --radius: 22px;
}

* {
  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(--slate-800);
  background: linear-gradient(135deg, #fff7ed 0%, #fdf2f8 42%, #f8fafc 100%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.header-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--slate-900);
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 10px 28px rgba(249, 115, 22, 0.32);
}

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

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--slate-700);
  font-weight: 650;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

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

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #fff7ed;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--orange-dark);
}

.mobile-nav {
  display: none;
  padding: 0 20px 16px;
  border-top: 1px solid #fed7aa;
}

.mobile-nav a {
  display: block;
  padding: 12px 0;
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 640px;
  background: var(--slate-950);
  overflow: hidden;
}

.hero-stage {
  position: relative;
  height: 640px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08);
  transform: scale(1.04);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 24%, rgba(236, 72, 153, 0.28), transparent 28%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(15, 23, 42, 0.72) 45%, rgba(15, 23, 42, 0.2) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.95) 0%, transparent 45%);
}

.hero-content {
  position: relative;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) 360px;
  gap: 54px;
  align-items: center;
  color: var(--white);
}

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

.hero-kicker,
.detail-meta,
.card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.meta-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  font-size: 13px;
  font-weight: 750;
}

.meta-badge.small {
  color: var(--slate-500);
  background: #fff7ed;
  border-color: #fed7aa;
  font-size: 12px;
  padding: 4px 8px;
}

.hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(38px, 6vw, 74px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-one-line {
  margin: 0 0 12px;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 750;
  color: #fff7ed;
}

.hero-summary {
  max-width: 660px;
  margin: 0;
  color: #e2e8f0;
  line-height: 1.85;
}

.hero-tags,
.detail-tags,
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags {
  margin: 24px 0 28px;
}

.hero-tags span,
.detail-tags span,
.chip-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.hero-tags span,
.detail-tags span {
  padding: 7px 12px;
  color: #ffe4e6;
  background: rgba(236, 72, 153, 0.18);
  border: 1px solid rgba(244, 114, 182, 0.35);
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

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

.btn.primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 18px 40px rgba(249, 115, 22, 0.34);
}

.btn.glass {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.btn.subtle {
  color: #fed7aa;
}

.hero-poster {
  position: relative;
  display: block;
  border-radius: 32px;
  overflow: hidden;
  transform: rotate(2deg);
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.hero-poster span {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 13px 16px;
  text-align: center;
  border-radius: 999px;
  color: var(--white);
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(12px);
  font-weight: 800;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 4;
}

.hero-arrow,
.hero-dot {
  border: 0;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  cursor: pointer;
}

.hero-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 999px;
  transition: width 0.25s ease, background 0.25s ease;
}

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

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

.section-block {
  padding: 46px 0;
}

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

.section-heading h2,
.page-hero h1 {
  margin: 6px 0 0;
  color: var(--slate-950);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--orange-dark);
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.home-search-card {
  margin-top: -54px;
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr minmax(260px, 450px);
  align-items: center;
  gap: 26px;
  padding: 28px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.home-search-card h2 {
  margin: 6px 0 0;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.04em;
}

.quick-search {
  display: flex;
  gap: 10px;
  padding: 8px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.quick-search input,
.filter-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--slate-800);
}

.quick-search input {
  padding: 0 12px;
}

.quick-search button {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange), var(--pink));
  font-weight: 850;
  cursor: pointer;
}

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(226, 232, 240, 0.82);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--slate-900);
}

.poster-wrap img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.poster-gradient {
  position: absolute;
  inset: auto 0 0;
  height: 52%;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.85), transparent);
}

.poster-tag {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(249, 115, 22, 0.88);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 850;
}

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

.movie-card-body h3 {
  margin: 10px 0 8px;
  font-size: 18px;
  line-height: 1.25;
  color: var(--slate-950);
}

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

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

.chip-row span {
  padding: 5px 8px;
  color: var(--orange-dark);
  background: #fff7ed;
}

.movie-card-compact .movie-card-body p {
  min-height: 0;
}

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

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  padding: 18px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 247, 237, 0.88));
  border: 1px solid rgba(254, 215, 170, 0.72);
  box-shadow: var(--shadow);
}

.category-glow {
  position: absolute;
  width: 170px;
  height: 170px;
  top: -80px;
  right: -70px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.26), transparent 65%);
}

.category-covers {
  position: relative;
  display: flex;
  align-items: center;
  height: 92px;
  margin-bottom: 18px;
}

.category-covers img {
  width: 68px;
  height: 92px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 14px 24px rgba(15, 23, 42, 0.18);
  margin-right: -20px;
  border: 2px solid var(--white);
}

.category-card h2 {
  margin: 0 0 8px;
  color: var(--slate-950);
  font-size: 20px;
}

.category-card p {
  margin: 0;
  color: var(--slate-500);
  line-height: 1.6;
  font-size: 14px;
}

.rank-section {
  padding-bottom: 72px;
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 48px 64px 1fr;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.rank-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.12);
}

.rank-no {
  font-size: 22px;
  font-weight: 900;
  color: var(--orange);
  text-align: center;
}

.rank-item img {
  width: 64px;
  height: 84px;
  object-fit: cover;
  border-radius: 14px;
}

.rank-text strong,
.rank-text em {
  display: block;
}

.rank-text strong {
  color: var(--slate-950);
  line-height: 1.25;
}

.rank-text em {
  margin-top: 6px;
  color: var(--slate-500);
  font-size: 13px;
  font-style: normal;
}

.page-hero.slim {
  padding: 42px 0 18px;
}

.page-hero p {
  max-width: 780px;
  margin: 14px 0 0;
  color: var(--slate-500);
  line-height: 1.8;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--slate-500);
  font-size: 14px;
}

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

.breadcrumb.light {
  color: rgba(255, 255, 255, 0.72);
}

.filter-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding: 14px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.88);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.filter-search {
  flex: 1;
  padding: 0 12px;
}

.filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-actions button {
  border: 0;
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--slate-700);
  background: #f8fafc;
  font-weight: 800;
  cursor: pointer;
}

.filter-actions button.active,
.filter-actions button:hover {
  color: var(--white);
  background: linear-gradient(135deg, var(--orange), var(--pink));
}

.empty-state {
  display: none;
  padding: 30px;
  text-align: center;
  color: var(--slate-500);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
}

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

.detail-page {
  padding-top: 0;
}

.detail-hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: var(--slate-950);
}

.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(4px) saturate(1.1);
  transform: scale(1.05);
}

.detail-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 22%, rgba(249, 115, 22, 0.28), transparent 32%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(15, 23, 42, 0.76)),
    linear-gradient(0deg, rgba(2, 6, 23, 1), transparent 55%);
}

.detail-hero-inner {
  position: relative;
  padding-top: 48px;
  color: var(--white);
}

.detail-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  align-items: center;
  gap: 42px;
  min-height: 500px;
}

.detail-poster {
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
  transform: rotate(-1.5deg);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

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

.detail-one-line {
  max-width: 760px;
  margin: 0 0 22px;
  color: #e2e8f0;
  font-size: 20px;
  line-height: 1.7;
}

.detail-tags {
  margin-bottom: 28px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #000;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.movie-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  border: 0;
  color: var(--white);
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.78), rgba(2, 6, 23, 0.18));
  cursor: pointer;
  z-index: 2;
}

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

.play-icon {
  width: 78px;
  height: 78px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  padding-left: 4px;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 16px 40px rgba(249, 115, 22, 0.38);
  font-size: 28px;
}

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

.play-overlay em {
  font-style: normal;
  opacity: 0.85;
}

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

.content-card,
.side-card {
  border-radius: 28px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(226, 232, 240, 0.86);
  box-shadow: var(--shadow);
}

.content-card h2,
.side-card h2 {
  margin: 0 0 14px;
  color: var(--slate-950);
  font-size: 24px;
}

.content-card p {
  margin: 0 0 24px;
  color: var(--slate-700);
  line-height: 1.9;
}

.content-card p:last-child {
  margin-bottom: 0;
}

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

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

.side-card dd {
  margin: 0;
  color: var(--slate-800);
  line-height: 1.55;
}

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

.site-footer {
  margin-top: 40px;
  padding: 40px 0;
  color: #cbd5e1;
  background: linear-gradient(135deg, var(--slate-950), var(--slate-800));
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer-logo {
  color: var(--white);
}

.site-footer p {
  max-width: 560px;
  margin: 14px 0 0;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-content: start;
}

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-poster {
    display: none;
  }

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

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

  .rank-grid,
  .rank-grid.ranking-page {
    grid-template-columns: 1fr;
  }

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

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

  .main-nav {
    display: none;
  }

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

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

  .hero,
  .hero-stage {
    min-height: 600px;
    height: 600px;
  }

  .hero-content {
    align-items: end;
    padding-bottom: 88px;
  }

  .hero-summary {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .home-search-card {
    grid-template-columns: 1fr;
    margin-top: -38px;
    padding: 20px;
  }

  .quick-search,
  .filter-panel {
    flex-direction: column;
    align-items: stretch;
    border-radius: 22px;
  }

  .quick-search button {
    width: 100%;
  }

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

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

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

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

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

  .detail-hero {
    min-height: auto;
  }

  .detail-layout {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 28px 0 54px;
  }

  .detail-poster {
    width: 210px;
  }

  .play-icon {
    width: 62px;
    height: 62px;
    font-size: 22px;
  }

  .content-card,
  .side-card {
    padding: 20px;
  }
}

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

  .rank-item {
    grid-template-columns: 38px 58px 1fr;
  }

  .rank-item img {
    width: 58px;
    height: 76px;
  }
}
