:root {
  --pink-50: #fff1f7;
  --pink-100: #ffe2ef;
  --pink-400: #fb7185;
  --pink-500: #ec4899;
  --pink-600: #db2777;
  --orange-50: #fff7ed;
  --orange-300: #fdba74;
  --orange-400: #fb923c;
  --yellow-300: #fde68a;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow: 0 16px 45px rgba(236, 72, 153, 0.16);
  --deep-shadow: 0 24px 70px rgba(17, 24, 39, 0.18);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--gray-800);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: linear-gradient(180deg, var(--orange-50) 0%, var(--pink-50) 44%, #fffaf4 100%);
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 247, 237, 0.9);
  border-bottom: 1px solid rgba(251, 113, 133, 0.24);
  box-shadow: 0 10px 30px rgba(236, 72, 153, 0.08);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: var(--white);
  font-weight: 900;
  background: linear-gradient(135deg, var(--pink-500), var(--orange-400));
  box-shadow: 0 10px 25px rgba(236, 72, 153, 0.25);
}

.brand-text,
.footer-brand span:last-child {
  font-size: 24px;
  background: linear-gradient(90deg, var(--pink-500), var(--orange-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

.nav-link,
.mobile-link {
  color: var(--gray-700);
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: var(--pink-600);
}

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

.top-search input,
.mobile-search input,
.large-search input,
.filter-card input {
  width: 190px;
  border: 1px solid rgba(236, 72, 153, 0.22);
  border-radius: 999px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.82);
  outline: none;
  color: var(--gray-800);
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.top-search input:focus,
.mobile-search input:focus,
.large-search input:focus,
.filter-card input:focus {
  border-color: var(--pink-500);
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.14);
}

.top-search button,
.mobile-search button,
.large-search button,
.btn {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  color: var(--white);
  background: linear-gradient(135deg, var(--pink-500), var(--orange-400));
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(236, 72, 153, 0.22);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(251, 113, 133, 0.12);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--gray-800);
  border-radius: 99px;
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

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

.mobile-panel nav {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.mobile-link {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.54);
}

.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  background: linear-gradient(120deg, var(--pink-400), var(--orange-300), var(--yellow-300));
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.32), transparent 28%), radial-gradient(circle at 80% 8%, rgba(255, 255, 255, 0.26), transparent 30%), radial-gradient(circle at 50% 90%, rgba(236, 72, 153, 0.22), transparent 34%);
}

.hero-glow {
  position: absolute;
  width: 520px;
  height: 520px;
  right: -130px;
  bottom: -180px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
  filter: blur(10px);
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  gap: 46px;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-copy {
  color: var(--white);
  text-shadow: 0 6px 28px rgba(127, 29, 29, 0.18);
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--pink-600);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-copy .eyebrow {
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.18);
  padding: 8px 14px;
  border-radius: 999px;
  backdrop-filter: blur(10px);
}

.hero-copy h1 {
  margin: 0 0 12px;
  font-size: clamp(38px, 6vw, 70px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.hero-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(26px, 3.5vw, 44px);
  line-height: 1.12;
}

.hero-copy p {
  width: min(690px, 100%);
  margin: 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: 18px;
  line-height: 1.85;
}

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

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

.hero-tags span,
.detail-tags span,
.tag-line span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.22);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
}

.detail-tags span,
.tag-line span {
  background: var(--pink-100);
  color: var(--pink-600);
}

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

.btn.ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.38);
  box-shadow: none;
  backdrop-filter: blur(12px);
}

.hero-poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--deep-shadow);
  transform: rotate(2deg);
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.32), transparent 50%);
}

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

.hero-poster:hover img {
  transform: scale(1.08);
}

.hero-controls {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 30px;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

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

.hero-dot.is-active {
  width: 32px;
  background: var(--white);
}

.section {
  padding: 64px 0;
}

.intro-search {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.7fr);
  gap: 26px;
  align-items: center;
}

.intro-search h2,
.section-heading h2,
.content-panel h2,
.category-overview h2 {
  margin: 0;
  color: var(--gray-800);
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.15;
}

.intro-search p,
.page-hero p,
.category-card p,
.category-overview p,
.content-panel p,
.detail-info p {
  color: var(--gray-600);
  line-height: 1.85;
}

.large-search {
  justify-self: end;
  width: min(520px, 100%);
  padding: 10px;
  border: 1px solid rgba(236, 72, 153, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow);
}

.large-search input {
  flex: 1;
  width: auto;
  border: 0;
  background: transparent;
}

.large-search.standalone {
  justify-self: start;
  margin-top: 26px;
}

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

.text-link {
  color: var(--pink-600);
  font-weight: 900;
}

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

.category-card,
.category-overview,
.content-panel,
.filter-card {
  display: block;
  border: 1px solid rgba(236, 72, 153, 0.12);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.category-card {
  padding: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-thumbs,
.category-overview-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-bottom: 14px;
}

.category-thumbs img,
.category-overview-images img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
}

.category-card h3,
.movie-card h3,
.rank-card h3,
.movie-row h3,
.detail-info h1 {
  margin: 0;
  color: var(--gray-800);
}

.category-card p {
  min-height: 74px;
  margin: 8px 0 0;
  font-size: 14px;
}

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

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

.movie-card {
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card figure {
  position: relative;
  margin: 0;
  aspect-ratio: 1;
  overflow: hidden;
}

.movie-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.movie-card:hover img {
  transform: scale(1.1);
}

.card-category {
  position: absolute;
  top: 12px;
  right: 12px;
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--white);
  background: var(--pink-500);
  font-size: 12px;
  font-weight: 800;
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  margin-bottom: 8px;
  font-size: 17px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--gray-500);
  font-size: 12px;
}

.tag-line span {
  padding: 5px 8px;
  font-size: 11px;
}

.rank-section {
  width: min(980px, calc(100% - 32px));
}

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

.rank-list li,
.ranking-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.ranking-item {
  grid-template-columns: 54px minmax(0, 1fr) 76px;
}

.rank-list li > span,
.ranking-number {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--pink-500), var(--orange-400));
  font-weight: 900;
}

.rank-card,
.movie-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 58px;
  gap: 16px;
  align-items: center;
  border: 1px solid rgba(236, 72, 153, 0.12);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.86);
  padding: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-row {
  grid-template-columns: 96px 72px minmax(0, 1fr);
}

.rank-card img,
.movie-row img {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 16px;
}

.movie-row img {
  width: 96px;
  height: 96px;
}

.rank-card h3,
.movie-row h3 {
  margin-bottom: 6px;
  font-size: 18px;
}

.rank-card p,
.movie-row p {
  display: -webkit-box;
  margin: 0 0 6px;
  color: var(--gray-600);
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.rank-card span,
.movie-row small {
  color: var(--gray-500);
}

.rank-card strong,
.ranking-score {
  color: var(--pink-600);
  font-size: 22px;
}

.movie-row-rank {
  color: var(--pink-600);
  font-weight: 900;
}

.page-hero,
.detail-hero {
  padding: 58px 0;
  background: linear-gradient(120deg, var(--pink-400), var(--orange-300));
  color: var(--white);
}

.page-hero.compact {
  padding: 70px 0;
}

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

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

.page-hero .section-kicker,
.detail-hero .section-kicker {
  color: rgba(255, 255, 255, 0.88);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
}

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

.category-tools {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.filter-card {
  padding: 18px;
}

.filter-card label {
  display: block;
  margin-bottom: 10px;
  color: var(--gray-700);
  font-weight: 900;
}

.filter-card input {
  width: 100%;
  border-radius: 16px;
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-pills a {
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--pink-600);
  background: rgba(255, 255, 255, 0.78);
  font-weight: 800;
}

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

.category-overview {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
  padding: 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-overview-images {
  margin-bottom: 0;
  grid-template-columns: repeat(3, 1fr);
}

.category-overview span {
  color: var(--pink-600);
  font-weight: 900;
}

.detail-hero {
  padding-bottom: 76px;
}

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

.player-card {
  border-radius: 30px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.24);
  box-shadow: var(--deep-shadow);
  backdrop-filter: blur(12px);
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  background: #000;
}

.movie-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
  object-fit: contain;
}

.play-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: var(--white);
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.35), rgba(17, 24, 39, 0.72));
  cursor: pointer;
  text-align: center;
  padding: 24px;
}

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

.play-icon {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--pink-600);
  background: var(--white);
  font-size: 32px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

.play-cover strong {
  max-width: 88%;
  font-size: clamp(20px, 3vw, 34px);
}

.play-cover em {
  font-style: normal;
  opacity: 0.86;
}

.detail-info h1 {
  margin: 0 0 18px;
  color: var(--white);
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.12;
}

.detail-info .one-line {
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
}

.detail-meta {
  display: grid;
  gap: 10px;
  margin: 22px 0;
}

.detail-meta span {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 9px 14px;
  color: var(--gray-800);
  background: rgba(255, 255, 255, 0.84);
  font-weight: 800;
}

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

.content-panel {
  padding: 26px;
}

.content-panel h2 {
  margin-bottom: 14px;
  font-size: 28px;
}

.content-panel p {
  margin: 0;
  font-size: 16px;
}

.search-empty {
  grid-column: 1 / -1;
  border-radius: var(--radius-md);
  padding: 50px;
  background: var(--white);
  text-align: center;
  color: var(--gray-600);
  box-shadow: var(--shadow);
}

.site-footer {
  margin-top: 40px;
  border-top: 1px solid rgba(236, 72, 153, 0.14);
  background: linear-gradient(180deg, rgba(255, 241, 247, 0.6), rgba(255, 226, 239, 0.9));
}

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

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

.site-footer p,
.site-footer li {
  color: var(--gray-600);
  line-height: 1.75;
}

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

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

.footer-bottom {
  padding: 18px;
  border-top: 1px solid rgba(236, 72, 153, 0.12);
  color: var(--gray-600);
  text-align: center;
}

@media (max-width: 1100px) {
  .desktop-nav,
  .top-search {
    display: none;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .hero-slide,
  .detail-layout,
  .intro-search,
  .category-tools {
    grid-template-columns: 1fr;
  }

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

  .hero-poster {
    width: min(380px, 100%);
    margin: 0 auto;
  }

  .large-search {
    justify-self: stretch;
  }

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

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

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

@media (max-width: 760px) {
  .header-inner {
    min-height: 64px;
  }

  .brand-text,
  .footer-brand span:last-child {
    font-size: 20px;
  }

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

  .hero-slide {
    gap: 24px;
    padding: 44px 0 80px;
  }

  .hero-copy p,
  .page-hero p,
  .detail-info .one-line {
    font-size: 16px;
  }

  .section {
    padding: 42px 0;
  }

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

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

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

  .ranking-item,
  .rank-list li {
    grid-template-columns: 1fr;
  }

  .ranking-score,
  .ranking-number,
  .rank-list li > span {
    justify-self: start;
  }

  .rank-card,
  .movie-row {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .rank-card strong,
  .movie-row-rank {
    display: none;
  }

  .rank-card img,
  .movie-row img {
    width: 82px;
    height: 82px;
  }

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

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

  .card-body h3 {
    white-space: normal;
  }

  .hero-actions,
  .large-search {
    flex-direction: column;
    align-items: stretch;
    border-radius: 22px;
  }

  .large-search input,
  .large-search button,
  .btn {
    width: 100%;
    text-align: center;
  }
}
