:root {
  --rose-50: #fff1f2;
  --rose-100: #ffe4e6;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --rose-700: #be123c;
  --pink-50: #fdf2f8;
  --pink-600: #db2777;
  --orange-50: #fff7ed;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow-soft: 0 18px 45px rgba(190, 18, 60, 0.12);
  --shadow-card: 0 16px 36px rgba(17, 24, 39, 0.08);
  --radius-xl: 24px;
}

* {
  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(--gray-900);
  background: linear-gradient(180deg, var(--white), var(--rose-50));
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 228, 230, 0.9);
  box-shadow: 0 8px 26px rgba(190, 18, 60, 0.07);
}

.navbar {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

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

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-600), var(--pink-600));
  box-shadow: 0 12px 24px rgba(225, 29, 72, 0.3);
}

.logo-text {
  font-size: clamp(19px, 2vw, 25px);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a {
  color: var(--gray-700);
  font-weight: 650;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--rose-600);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: var(--rose-50);
  color: var(--rose-600);
}

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--rose-50), var(--pink-50), var(--orange-50));
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.34;
  background-image: radial-gradient(circle at 25% 20%, rgba(244, 63, 94, 0.28), transparent 28%), radial-gradient(circle at 82% 18%, rgba(219, 39, 119, 0.2), transparent 28%), radial-gradient(circle at 70% 75%, rgba(251, 146, 60, 0.16), transparent 32%);
}

.hero-shell {
  position: relative;
  min-height: 680px;
  display: grid;
  align-items: center;
  padding: 46px 0 58px;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.72fr);
  align-items: center;
  gap: 52px;
}

.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-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--rose-600);
  font-size: 14px;
  font-weight: 750;
  box-shadow: 0 8px 24px rgba(225, 29, 72, 0.1);
}

.hero h1 {
  margin: 20px 0 18px;
  max-width: 850px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.gradient-text {
  background: linear-gradient(90deg, var(--rose-600), var(--pink-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc {
  max-width: 720px;
  color: var(--gray-600);
  font-size: clamp(17px, 2vw, 21px);
  margin: 0 0 24px;
}

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

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--rose-700);
  font-weight: 700;
  font-size: 14px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: linear-gradient(90deg, var(--rose-600), var(--pink-600));
  color: var(--white);
  box-shadow: 0 16px 28px rgba(225, 29, 72, 0.24);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.88);
  color: var(--rose-600);
  border-color: var(--rose-100);
}

.btn:hover {
  transform: translateY(-2px) scale(1.015);
  box-shadow: 0 18px 34px rgba(225, 29, 72, 0.18);
}

.hero-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  width: min(620px, 100%);
  padding: 10px;
  margin-top: 28px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 228, 230, 0.96);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}

.hero-search input,
.search-panel input,
.search-panel select {
  width: 100%;
  border: 0;
  outline: 0;
  background: var(--white);
  color: var(--gray-900);
  border-radius: 18px;
  padding: 13px 15px;
}

.hero-search button {
  border: 0;
  border-radius: 18px;
  padding: 0 22px;
  color: var(--white);
  background: linear-gradient(90deg, var(--rose-600), var(--pink-600));
  font-weight: 800;
}

.hero-art {
  position: relative;
}

.hero-poster {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(190, 18, 60, 0.22);
  transform: rotate(2deg);
  background: linear-gradient(135deg, var(--rose-100), var(--pink-50));
}

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

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

.hero-poster-title {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 2;
  color: var(--white);
}

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

.hero-poster-title span {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.hero-float {
  position: absolute;
  left: -28px;
  bottom: 34px;
  width: min(245px, 70%);
  padding: 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft);
}

.hero-float h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.hero-float p {
  margin: 0;
  color: var(--gray-600);
  font-size: 13px;
}

.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 24px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.hero-dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(225, 29, 72, 0.28);
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: var(--rose-600);
}

.section {
  padding: 70px 0;
}

.section-white {
  background: var(--white);
}

.section-soft {
  background: linear-gradient(180deg, var(--white), var(--rose-50));
}

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

.section-kicker {
  color: var(--rose-600);
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 14px;
}

.section-title {
  margin: 8px 0 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.section-desc {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--gray-600);
}

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

.feature-card,
.category-card,
.info-card {
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--white), var(--rose-50));
  border: 1px solid rgba(255, 228, 230, 0.95);
  box-shadow: var(--shadow-card);
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.feature-icon,
.category-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: var(--rose-600);
  background: var(--white);
  box-shadow: 0 10px 24px rgba(225, 29, 72, 0.11);
  font-weight: 900;
}

.feature-card h3,
.category-card h2,
.info-card h2,
.info-card h3 {
  margin: 18px 0 8px;
  font-size: 21px;
}

.feature-card p,
.category-card p,
.info-card p {
  margin: 0;
  color: var(--gray-600);
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: var(--white);
  border: 1px solid rgba(255, 228, 230, 0.95);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.movie-cover {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, var(--rose-100), var(--pink-50));
}

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

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

.movie-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(17, 24, 39, 0.7));
  transition: opacity 0.2s ease;
}

.movie-card:hover .movie-cover::after {
  opacity: 1;
}

.movie-badge,
.movie-year,
.play-chip {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.movie-badge {
  left: 12px;
  top: 12px;
  max-width: calc(100% - 24px);
  padding: 6px 10px;
  color: var(--rose-700);
  background: rgba(255, 255, 255, 0.88);
}

.movie-year {
  right: 12px;
  top: 12px;
  padding: 6px 10px;
  color: var(--white);
  background: rgba(17, 24, 39, 0.62);
}

.play-chip {
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-600), var(--pink-600));
  box-shadow: 0 10px 24px rgba(225, 29, 72, 0.3);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .play-chip {
  opacity: 1;
  transform: translateY(0);
}

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

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

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

.movie-body p {
  min-height: 44px;
  margin: 0 0 12px;
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.55;
}

.movie-meta,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.movie-meta span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 3px 8px;
  color: var(--gray-600);
  background: var(--gray-50);
  font-size: 12px;
  font-weight: 650;
}

.search-panel {
  display: grid;
  grid-template-columns: 1fr 170px 170px;
  gap: 12px;
  padding: 14px;
  margin-bottom: 28px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--rose-100);
  box-shadow: var(--shadow-card);
}

.empty-state {
  display: none;
  padding: 36px;
  border-radius: 24px;
  text-align: center;
  color: var(--gray-600);
  background: var(--white);
  border: 1px solid var(--rose-100);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 48px 96px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 24px;
  background: var(--white);
  border: 1px solid var(--rose-100);
  box-shadow: var(--shadow-card);
}

.rank-no {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-600), var(--pink-600));
  font-weight: 900;
}

.rank-thumb {
  aspect-ratio: 2 / 3;
  border-radius: 18px;
  overflow: hidden;
  background: var(--rose-50);
}

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

.rank-info h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.rank-info p {
  margin: 0 0 10px;
  color: var(--gray-600);
  font-size: 14px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--gray-600);
  margin-bottom: 24px;
  font-size: 14px;
}

.breadcrumb a {
  color: var(--rose-600);
  font-weight: 700;
}

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

.player-card,
.detail-card,
.sidebar-card {
  border-radius: 28px;
  background: var(--white);
  border: 1px solid var(--rose-100);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.player-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-stage video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  color: var(--white);
  background: rgba(17, 24, 39, 0.32);
  display: grid;
  place-items: center;
  z-index: 4;
}

.play-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.play-overlay img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.58;
}

.play-overlay span {
  position: relative;
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rose-600), var(--pink-600));
  box-shadow: 0 20px 46px rgba(225, 29, 72, 0.38);
  font-size: 34px;
  padding-left: 6px;
}

.detail-body {
  padding: 26px;
}

.detail-body h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

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

.detail-meta span {
  border-radius: 999px;
  padding: 7px 12px;
  background: var(--rose-50);
  color: var(--rose-700);
  font-weight: 750;
  font-size: 14px;
}

.detail-card {
  padding: 26px;
  margin-top: 22px;
}

.detail-card h2,
.sidebar-card h2 {
  margin: 0 0 14px;
  font-size: 23px;
}

.detail-card p {
  margin: 0 0 18px;
  color: var(--gray-700);
  font-size: 16px;
}

.sidebar-card {
  position: sticky;
  top: 94px;
  padding: 20px;
}

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

.related-card {
  display: grid;
  grid-template-columns: 94px 1fr;
  gap: 12px;
  align-items: center;
}

.related-card img {
  width: 94px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 16px;
  background: var(--rose-50);
  transition: transform 0.25s ease;
}

.related-card h3 {
  margin: 0 0 7px;
  font-size: 16px;
  line-height: 1.35;
}

.related-card p {
  margin: 0;
  color: var(--gray-600);
  font-size: 13px;
}

.site-footer {
  background: linear-gradient(180deg, var(--rose-50), var(--white));
  border-top: 1px solid var(--rose-100);
  padding: 44px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 26px;
}

.footer-grid h2,
.footer-grid h3 {
  margin: 0 0 12px;
}

.footer-grid p,
.footer-grid a {
  color: var(--gray-600);
  font-size: 14px;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-bottom {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--rose-100);
  color: var(--gray-500);
  font-size: 13px;
}

@media (max-width: 960px) {
  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 74px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 12px;
    border-radius: 22px;
    background: var(--white);
    border: 1px solid var(--rose-100);
    box-shadow: var(--shadow-soft);
  }

  .site-header.nav-open .nav-links {
    display: flex;
  }

  .nav-links a {
    padding: 12px 14px;
    border-radius: 16px;
  }

  .nav-links a:hover,
  .nav-links a.is-active {
    background: var(--rose-50);
  }

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

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .hero-art {
    max-width: 420px;
    width: 86%;
    margin: 0 auto;
  }

  .section-head,
  .footer-grid,
  .detail-layout {
    grid-template-columns: 1fr;
    display: grid;
  }

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

  .search-panel {
    grid-template-columns: 1fr;
  }

  .sidebar-card {
    position: static;
  }
}

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

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

  .hero h1 {
    font-size: 38px;
  }

  .hero-search {
    grid-template-columns: 1fr;
  }

  .hero-search button {
    min-height: 46px;
  }

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

  .movie-body {
    padding: 13px;
  }

  .movie-body p {
    display: none;
  }

  .rank-item {
    grid-template-columns: 42px 76px 1fr;
    gap: 12px;
  }
}
