:root {
  --orange: #f97316;
  --orange-dark: #ea580c;
  --pink: #ec4899;
  --purple: #8b5cf6;
  --yellow: #facc15;
  --black: #111827;
  --gray: #6b7280;
  --line: #e5e7eb;
  --soft: #fff7ed;
  --white: #ffffff;
  --radius: 24px;
  --shadow: 0 18px 45px rgba(17, 24, 39, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.7);
  box-shadow: 0 8px 28px rgba(17, 24, 39, 0.08);
}

.nav-wrap {
  width: min(1180px, calc(100% - 32px));
  height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 12px 26px rgba(236, 72, 153, 0.3);
}

.brand-text {
  font-size: 23px;
  background: linear-gradient(90deg, var(--orange), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

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

.nav-link {
  color: #374151;
  font-weight: 700;
  transition: color 0.2s ease;
}

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

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

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: #374151;
  display: block;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  padding: 12px 16px 18px;
  background: white;
}

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

.mobile-nav-link {
  padding: 12px 14px;
  border-radius: 12px;
  color: #374151;
  font-weight: 700;
}

.mobile-nav-link:hover {
  background: #fff7ed;
  color: var(--orange);
}

.hero {
  position: relative;
  min-height: 92vh;
  padding: 110px 0 42px;
  overflow: hidden;
  background: linear-gradient(135deg, #fb923c 0%, #ec4899 52%, #8b5cf6 100%);
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 150px;
  background: linear-gradient(to top, white, rgba(255, 255, 255, 0));
  pointer-events: none;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: radial-gradient(circle at 24px 24px, rgba(255, 255, 255, 0.75) 2px, transparent 3px);
  background-size: 56px 56px;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-slide {
  min-height: 590px;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.hero-slide.active {
  display: flex;
  animation: fadeIn 0.75s ease both;
}

.hero-copy {
  max-width: 640px;
  color: white;
}

.hero-kicker,
.section-heading span,
.page-hero span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: white;
  font-weight: 800;
  letter-spacing: 0.04em;
}

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

.hero h1 span {
  display: block;
  margin-top: 12px;
  font-size: clamp(26px, 3.2vw, 42px);
  color: #ffedd5;
  letter-spacing: -0.03em;
}

.hero p {
  margin: 0 0 26px;
  max-width: 620px;
  font-size: clamp(18px, 2.1vw, 26px);
  color: rgba(255, 255, 255, 0.92);
}

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

.hero-tags a,
.detail-tags a {
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: white;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.hero-actions,
.center-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

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

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

.btn-light {
  color: var(--orange);
  background: white;
  box-shadow: 0 18px 40px rgba(17, 24, 39, 0.18);
}

.btn-ghost {
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.btn-main {
  color: white;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 14px 34px rgba(236, 72, 153, 0.3);
}

.hero-poster {
  position: relative;
  flex: 0 0 min(390px, 40vw);
  aspect-ratio: 3 / 4;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 34px 80px rgba(17, 24, 39, 0.38);
  transform: rotate(2deg);
  background: rgba(255, 255, 255, 0.16);
}

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

.hero-poster::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 26px;
  pointer-events: none;
}

.hero-poster-label {
  position: absolute;
  right: 20px;
  top: 20px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--orange-dark);
  background: rgba(255, 255, 255, 0.92);
  font-weight: 800;
}

.hero-dots {
  position: absolute;
  left: 0;
  bottom: 42px;
  display: flex;
  gap: 10px;
}

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

.hero-dot.active {
  width: 34px;
  background: white;
}

.hero-category-links {
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: -20px;
}

.hero-category-links a {
  padding: 10px 16px;
  border-radius: 999px;
  color: #9a3412;
  background: rgba(255, 255, 255, 0.9);
  font-weight: 800;
  box-shadow: 0 12px 26px rgba(17, 24, 39, 0.1);
}

.section {
  padding: 88px 0;
}

.section-white {
  background: white;
}

.section-soft {
  background: linear-gradient(135deg, #fff7ed, #fdf2f8);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-heading.left {
  margin-left: 0;
  text-align: left;
}

.section-heading span {
  margin-bottom: 14px;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.12), rgba(236, 72, 153, 0.12));
  color: var(--orange-dark);
}

.section-heading h2,
.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4.2vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.section-heading p,
.page-hero p {
  margin: 0;
  color: var(--gray);
  font-size: 18px;
}

.filter-panel {
  margin: 0 0 34px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 38px rgba(17, 24, 39, 0.06);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 4px 4px 4px 16px;
  border-radius: 18px;
  background: #f9fafb;
  border: 1px solid #edf0f5;
}

.search-box span {
  color: var(--orange-dark);
  font-weight: 800;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  padding: 14px 12px;
  color: #111827;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.filter-chip {
  border: 0;
  padding: 9px 14px;
  border-radius: 999px;
  cursor: pointer;
  color: #4b5563;
  background: #f3f4f6;
  font-weight: 800;
}

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

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

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

.movie-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: var(--radius);
  background: white;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.09);
  border: 1px solid rgba(229, 231, 235, 0.7);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #ffedd5, #fce7f3);
  overflow: hidden;
}

.poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.poster-gradient {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(to top, rgba(17, 24, 39, 0.62), transparent);
}

.year-pill,
.rank-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--orange-dark);
  font-size: 13px;
  font-weight: 900;
}

.rank-badge {
  left: 14px;
  right: auto;
  color: white;
  background: linear-gradient(135deg, var(--orange), var(--pink));
}

.movie-card-body {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 18px;
}

.movie-card-body strong {
  font-size: 18px;
  line-height: 1.25;
}

.movie-card-line {
  color: var(--gray);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: #6b7280;
  font-size: 13px;
}

.movie-meta-row span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #f9fafb;
}

.movie-score {
  color: var(--orange-dark);
  font-size: 13px;
  font-weight: 900;
}

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

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 34px;
  align-items: start;
}

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

.category-tile,
.category-overview-card {
  display: block;
  padding: 22px;
  border-radius: 24px;
  background: white;
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.08);
  border: 1px solid rgba(229, 231, 235, 0.75);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover,
.category-overview-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.category-tile span {
  color: var(--orange-dark);
  font-weight: 900;
}

.category-tile strong {
  display: block;
  margin: 8px 0;
  font-size: 21px;
}

.category-tile em,
.category-overview-card p {
  color: var(--gray);
  font-style: normal;
}

.ranking-panel,
.side-card {
  padding: 24px;
  border-radius: 28px;
  background: white;
  box-shadow: var(--shadow);
  border: 1px solid rgba(229, 231, 235, 0.7);
}

.ranking-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.ranking-head span,
.ranking-head a {
  font-weight: 900;
}

.ranking-head a {
  color: var(--orange-dark);
}

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

.mini-movie {
  display: grid;
  grid-template-columns: auto 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.mini-movie img {
  width: 58px;
  height: 78px;
  object-fit: cover;
  border-radius: 14px;
  background: #ffedd5;
}

.mini-movie strong,
.mini-movie em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-movie em {
  color: var(--gray);
  font-size: 13px;
  font-style: normal;
}

.mini-rank {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  font-weight: 900;
  font-size: 13px;
}

.center-actions {
  justify-content: center;
  margin-top: 36px;
}

.page-main,
.detail-main {
  padding-top: 76px;
}

.page-hero {
  padding: 82px 0;
  color: white;
  background: linear-gradient(135deg, #fb923c, #ec4899 55%, #8b5cf6);
}

.page-hero p {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.92);
}

.page-hero .breadcrumb {
  margin-top: 22px;
}

.small-hero,
.category-hero,
.rank-hero {
  position: relative;
  overflow: hidden;
}

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

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

.category-overview-cover {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  aspect-ratio: 3 / 4;
}

.category-overview-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-overview-cover span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  right: 12px;
  padding: 8px 10px;
  border-radius: 999px;
  color: white;
  background: rgba(17, 24, 39, 0.62);
  text-align: center;
  font-weight: 900;
}

.category-overview-card h2 {
  margin: 4px 0 10px;
}

.sample-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.sample-links a {
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--orange-dark);
  background: #fff7ed;
  font-weight: 800;
  font-size: 13px;
}

.detail-hero {
  position: relative;
  min-height: 620px;
  padding: 132px 0 62px;
  overflow: hidden;
  color: white;
  background: #111827;
}

.detail-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(20px) scale(1.08);
  opacity: 0.58;
}

.detail-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.64) 45%, rgba(236, 72, 153, 0.32));
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 44px;
  align-items: center;
}

.detail-poster {
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.38);
  background: #ffedd5;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 800;
}

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

.breadcrumb b,
.breadcrumb em {
  font-style: normal;
  color: rgba(255, 255, 255, 0.7);
}

.detail-copy h1 {
  margin: 18px 0 16px;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.detail-one-line {
  max-width: 800px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 20px;
}

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

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 800;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 34px;
  align-items: start;
}

.detail-content,
.detail-side {
  min-width: 0;
}

.player-card {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background: #020617;
  box-shadow: var(--shadow);
  margin-bottom: 32px;
}

.movie-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #020617;
  cursor: pointer;
}

.player-start {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 999px;
  padding: 14px 24px;
  color: white;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  cursor: pointer;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.36);
  z-index: 3;
}

.player-start span {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.player-card.playing .player-start {
  display: none;
}

.content-block {
  padding: 28px;
  border-radius: 26px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.06);
  margin-bottom: 22px;
}

.content-block h2,
.side-card h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.content-block p {
  margin: 0;
  color: #374151;
  font-size: 17px;
}

.site-footer {
  padding: 58px 0 24px;
  background: linear-gradient(135deg, #fff7ed, #fdf2f8);
  border-top: 1px solid var(--line);
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.25fr 0.7fr 1fr;
  gap: 40px;
}

.site-footer p {
  color: var(--gray);
  max-width: 430px;
}

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

.footer-links {
  display: grid;
  gap: 8px;
  color: #4b5563;
}

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

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 30px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(229, 231, 235, 0.9);
  color: var(--gray);
  text-align: center;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

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

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

  .ranking-panel,
  .detail-side {
    order: 2;
  }
}

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

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

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

  .hero {
    min-height: auto;
    padding-top: 98px;
  }

  .hero-slide,
  .hero-slide.active {
    min-height: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    padding-bottom: 78px;
  }

  .hero-poster {
    width: min(320px, 86vw);
    flex: none;
    justify-self: center;
  }

  .hero-dots {
    bottom: 26px;
  }

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

  .category-overview-card {
    grid-template-columns: 130px minmax(0, 1fr);
  }

  .detail-poster {
    width: min(310px, 76vw);
  }
}

@media (max-width: 640px) {
  .nav-wrap {
    height: 68px;
  }

  .page-main,
  .detail-main {
    padding-top: 68px;
  }

  .section {
    padding: 58px 0;
  }

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

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

  .movie-card-line {
    -webkit-line-clamp: 1;
  }

  .movie-meta-row span:nth-child(n + 3) {
    display: none;
  }

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

  .hero h1,
  .detail-copy h1 {
    letter-spacing: -0.03em;
  }

  .detail-hero {
    padding-top: 96px;
  }

  .player-start {
    padding: 11px 18px;
  }
}
