:root {
  color-scheme: light;
  --rose-50: #fff1f2;
  --rose-100: #ffe4e6;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --pink-500: #ec4899;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --emerald-500: #10b981;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-500: #64748b;
  --slate-700: #334155;
  --slate-900: #0f172a;
  --white: #ffffff;
  --shadow-soft: 0 20px 45px rgba(225, 29, 72, 0.16);
  --shadow-card: 0 15px 35px rgba(15, 23, 42, 0.08);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(135deg, #fff7ed 0%, #fff1f2 36%, #fdf2f8 100%);
  color: var(--slate-900);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(244, 63, 94, 0.12);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

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

.brand,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(244, 63, 94, 0.28);
}

.brand-text {
  display: grid;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 20px;
  background: linear-gradient(90deg, var(--rose-600), var(--pink-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text em {
  margin-top: 5px;
  font-size: 12px;
  color: var(--slate-500);
  font-style: normal;
  font-weight: 600;
}

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

.nav-link {
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--slate-700);
  font-weight: 700;
  transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  background: linear-gradient(90deg, rgba(244, 63, 94, 0.12), rgba(236, 72, 153, 0.12));
  color: var(--rose-600);
}

.header-search {
  position: relative;
  width: min(320px, 32vw);
}

.header-search input,
.mobile-search input,
.hero-search input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 1px solid rgba(244, 63, 94, 0.16);
  outline: none;
  border-radius: 999px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--slate-900);
  font-weight: 650;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.search-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(420px, 90vw);
  max-height: 420px;
  display: none;
  overflow: auto;
  padding: 10px;
  border: 1px solid rgba(244, 63, 94, 0.14);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-soft);
}

.search-panel.open {
  display: grid;
  gap: 8px;
}

.search-item {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
  transition: 0.2s ease;
}

.search-item:hover {
  background: var(--rose-50);
}

.search-item img {
  width: 54px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--rose-100), #ffffff);
}

.search-item strong {
  display: block;
  color: var(--slate-900);
  font-size: 15px;
}

.search-item span {
  color: var(--slate-500);
  font-size: 12px;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  border-radius: 12px;
  background: var(--rose-50);
  color: var(--rose-600);
  font-size: 22px;
  padding: 8px 12px;
}

.mobile-nav {
  display: none;
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 14px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

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

.mobile-search {
  position: relative;
  margin-top: 8px;
}

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

.hero {
  position: relative;
  overflow: hidden;
  margin: 28px auto 34px;
  min-height: 620px;
  border-radius: 38px;
  background:
    radial-gradient(circle at top left, rgba(251, 191, 36, 0.22), transparent 35%),
    radial-gradient(circle at bottom right, rgba(236, 72, 153, 0.2), transparent 36%),
    linear-gradient(135deg, #fff1f2 0%, #ffffff 48%, #fdf2f8 100%);
  box-shadow: var(--shadow-soft);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.96fr);
  gap: 44px;
  align-items: center;
  padding: clamp(34px, 5vw, 68px);
  opacity: 0;
  transform: translateX(24px);
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-kicker,
.section-kicker,
.detail-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--rose-600);
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(244, 63, 94, 0.12);
}

.hero-title {
  margin: 18px 0 18px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.96;
  letter-spacing: -0.06em;
  font-weight: 950;
  color: var(--slate-900);
}

.hero-title span {
  display: block;
  background: linear-gradient(90deg, var(--rose-600), var(--pink-500), var(--amber-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc {
  width: min(620px, 100%);
  color: var(--slate-700);
  font-size: 18px;
  line-height: 1.9;
}

.hero-actions,
.detail-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.primary-button,
.soft-button,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  padding: 0 22px;
  cursor: pointer;
  font-weight: 900;
  transition: 0.2s ease;
}

.primary-button {
  background: linear-gradient(90deg, var(--rose-600), var(--pink-500));
  color: #ffffff;
  box-shadow: 0 16px 30px rgba(225, 29, 72, 0.25);
}

.primary-button:hover,
.soft-button:hover,
.text-button:hover {
  transform: translateY(-2px);
}

.soft-button {
  background: rgba(255, 255, 255, 0.86);
  color: var(--rose-600);
  box-shadow: inset 0 0 0 1px rgba(244, 63, 94, 0.16);
}

.text-button {
  background: var(--slate-900);
  color: #ffffff;
}

.hero-search {
  position: relative;
  margin-top: 28px;
  width: min(520px, 100%);
}

.hero-search input {
  min-height: 58px;
  padding-left: 24px;
  padding-right: 140px;
  box-shadow: var(--shadow-card);
}

.hero-search button {
  position: absolute;
  top: 7px;
  right: 7px;
  height: 44px;
}

.hero-poster-wrap {
  position: relative;
  min-height: 470px;
}

.hero-poster {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(440px, 92%);
  border-radius: 34px;
  overflow: hidden;
  transform: rotate(3deg);
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.22);
}

.hero-poster:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 42%, rgba(15, 23, 42, 0.72));
}

.hero-poster img {
  width: 100%;
  height: 100%;
  min-height: 470px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--rose-100), #ffffff);
}

.hero-poster-info {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 26px;
  z-index: 2;
  color: #ffffff;
}

.hero-poster-info strong {
  display: block;
  font-size: 24px;
  line-height: 1.25;
}

.hero-poster-info span {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

.hero-mini-list {
  position: absolute;
  left: 0;
  bottom: 30px;
  z-index: 3;
  display: grid;
  gap: 12px;
  width: min(300px, 72%);
}

.hero-mini-card {
  display: grid;
  grid-template-columns: 68px 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-card);
}

.hero-mini-card img {
  width: 68px;
  height: 88px;
  border-radius: 14px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--rose-100), #ffffff);
}

.hero-mini-card strong {
  display: block;
  color: var(--slate-900);
  font-size: 15px;
  line-height: 1.3;
}

.hero-mini-card span {
  color: var(--slate-500);
  font-size: 12px;
  font-weight: 700;
}

.hero-dots {
  position: absolute;
  left: clamp(34px, 5vw, 68px);
  bottom: 28px;
  z-index: 5;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 34px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(225, 29, 72, 0.2);
  cursor: pointer;
}

.hero-dot.active {
  background: linear-gradient(90deg, var(--rose-600), var(--pink-500));
}

.section {
  padding: 46px 0;
}

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

.section-title {
  margin: 10px 0 0;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.04em;
  line-height: 1.08;
  font-weight: 950;
}

.section-subtitle {
  max-width: 700px;
  margin: 8px 0 0;
  color: var(--slate-500);
  font-size: 16px;
  line-height: 1.8;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(225, 29, 72, 0.16);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, var(--rose-100), #ffffff);
}

.poster-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.32s ease;
}

.movie-card:hover img,
.rank-card:hover img {
  transform: scale(1.06);
}

.poster-link:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(15, 23, 42, 0.68));
  opacity: 0.9;
}

.poster-badge,
.poster-play {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  font-weight: 900;
}

.poster-badge {
  top: 12px;
  left: 12px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--rose-600);
  font-size: 12px;
}

.poster-play {
  right: 14px;
  bottom: 14px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--rose-600), var(--pink-500));
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(225, 29, 72, 0.24);
}

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

.movie-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 10px;
}

.movie-tags span,
.detail-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--rose-50);
  color: var(--rose-600);
  font-size: 12px;
  font-weight: 800;
}

.movie-card h3,
.rank-card h3 {
  margin: 0;
  color: var(--slate-900);
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
}

.movie-card h3 a:hover,
.rank-card h3 a:hover {
  color: var(--rose-600);
}

.movie-card p,
.rank-card p {
  margin: 10px 0 14px;
  color: var(--slate-500);
  line-height: 1.7;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--slate-500);
  font-size: 13px;
  font-weight: 800;
}

.card-meta span {
  position: relative;
}

.card-meta span + span:before {
  content: "·";
  margin-right: 8px;
  color: var(--rose-500);
}

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

.category-card {
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 28px;
  padding: 22px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.92), transparent 45%),
    linear-gradient(135deg, rgba(244, 63, 94, 0.13), rgba(236, 72, 153, 0.12));
  box-shadow: var(--shadow-card);
  transition: 0.22s ease;
}

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

.category-card strong {
  font-size: 22px;
  font-weight: 950;
}

.category-card p {
  margin: 10px 0 0;
  color: var(--slate-500);
  line-height: 1.7;
}

.category-card span {
  margin-top: 18px;
  color: var(--rose-600);
  font-weight: 900;
}

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

.rank-card {
  position: relative;
  display: grid;
  grid-template-columns: 134px 1fr;
  gap: 16px;
  overflow: hidden;
  border-radius: 26px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-card);
}

.rank-index {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber-500), var(--rose-500));
  color: #ffffff;
  font-weight: 950;
}

.rank-cover {
  display: block;
  overflow: hidden;
  border-radius: 20px;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, var(--rose-100), #ffffff);
}

.rank-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.32s ease;
}

.rank-info {
  min-width: 0;
  align-self: center;
}

.page-hero,
.detail-hero {
  margin: 28px auto 34px;
  border-radius: 34px;
  padding: clamp(30px, 5vw, 58px);
  background:
    radial-gradient(circle at top right, rgba(251, 191, 36, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 241, 242, 0.86));
  box-shadow: var(--shadow-soft);
}

.page-hero h1,
.detail-info h1 {
  margin: 12px 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.05em;
  font-weight: 950;
}

.page-hero p,
.detail-info p {
  max-width: 820px;
  color: var(--slate-700);
  font-size: 18px;
  line-height: 1.9;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(260px, 380px) minmax(0, 1fr);
  gap: 34px;
}

.detail-cover {
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
  background: linear-gradient(135deg, var(--rose-100), #ffffff);
}

.detail-cover img {
  width: 100%;
  height: 100%;
  min-height: 470px;
  object-fit: cover;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--slate-500);
  font-size: 14px;
  font-weight: 800;
}

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

.detail-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.player-card {
  overflow: hidden;
  border-radius: 32px;
  background: #111827;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
}

.player-shell {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(260px, 54vw, 650px);
  background:
    radial-gradient(circle at center, rgba(244, 63, 94, 0.24), transparent 30%),
    linear-gradient(135deg, #020617, #111827);
}

.player-shell video {
  width: 100%;
  height: 100%;
  min-height: clamp(260px, 54vw, 650px);
  display: block;
  object-fit: contain;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 28px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.72));
  cursor: pointer;
}

.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.26;
  filter: blur(2px);
}

.player-start {
  position: relative;
  z-index: 2;
  width: 92px;
  height: 92px;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--rose-600), var(--pink-500));
  color: #ffffff;
  cursor: pointer;
  font-size: 34px;
  box-shadow: 0 18px 38px rgba(225, 29, 72, 0.34);
}

.player-cover.hidden {
  display: none;
}

.player-message {
  position: absolute;
  left: 20px;
  bottom: 18px;
  z-index: 4;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 800;
}

.content-panel {
  margin: 28px 0;
  border-radius: 30px;
  padding: clamp(24px, 4vw, 40px);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-card);
}

.content-panel h2 {
  margin: 0 0 14px;
  font-size: 28px;
  font-weight: 950;
}

.content-panel p {
  color: var(--slate-700);
  font-size: 17px;
  line-height: 2;
}

.filter-bar {
  display: grid;
  grid-template-columns: 1fr 180px 180px auto;
  gap: 12px;
  margin: 0 0 26px;
  padding: 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-card);
}

.no-results {
  display: none;
  grid-column: 1 / -1;
  padding: 28px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--slate-500);
  text-align: center;
  font-weight: 900;
}

.no-results.show {
  display: block;
}

.site-footer {
  margin-top: 54px;
  background: linear-gradient(135deg, rgba(255, 241, 242, 0.9), rgba(253, 242, 248, 0.96));
  border-top: 1px solid rgba(244, 63, 94, 0.12);
}

.footer-inner {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.8fr);
  gap: 28px;
}

.footer-logo {
  color: var(--rose-600);
  font-size: 22px;
}

.footer-inner p {
  max-width: 640px;
  color: var(--slate-500);
  line-height: 1.8;
}

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

.footer-links a {
  border-radius: 999px;
  padding: 9px 13px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--slate-700);
  font-weight: 800;
}

.footer-links a:hover {
  color: var(--rose-600);
}

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

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

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

  .hero {
    min-height: 980px;
  }

  .hero-poster {
    left: auto;
    right: 0;
    width: min(520px, 100%);
  }

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

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

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

@media (max-width: 760px) {
  .header-inner,
  .main-shell,
  .footer-inner,
  .mobile-nav {
    width: min(100% - 22px, 1220px);
  }

  .brand-text em {
    display: none;
  }

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

  .hero {
    min-height: 920px;
    border-radius: 28px;
  }

  .hero-slide {
    padding: 28px;
  }

  .hero-title {
    font-size: 42px;
  }

  .hero-search input {
    padding-right: 18px;
  }

  .hero-search button {
    position: static;
    width: 100%;
    margin-top: 10px;
  }

  .hero-mini-list {
    width: 100%;
  }

  .section-header {
    display: block;
  }

  .movie-grid,
  .rank-list,
  .category-grid,
  .filter-bar,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .rank-card {
    grid-template-columns: 100px 1fr;
  }

  .detail-cover img {
    min-height: 360px;
  }
}

@media (max-width: 420px) {
  .movie-grid {
    gap: 16px;
  }

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