:root {
  --rose-50: #fff1f2;
  --rose-100: #ffe4e6;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --pink-600: #db2777;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --shadow: 0 18px 45px rgba(17, 24, 39, 0.10);
  --shadow-soft: 0 10px 28px rgba(225, 29, 72, 0.14);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--gray-900);
  background: linear-gradient(180deg, #fff 0%, var(--rose-50) 38%, #fff 100%);
  min-height: 100vh;
}

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.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 228, 230, 0.9);
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.05);
}

.site-nav {
  max-width: 1180px;
  height: 68px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--rose-600), var(--pink-600));
  box-shadow: var(--shadow-soft);
  font-size: 14px;
}

.brand-name {
  font-size: 22px;
  letter-spacing: -0.03em;
  color: var(--rose-600);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--gray-700);
  font-weight: 700;
}

.nav-links a,
.mobile-nav a {
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

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

.menu-toggle {
  display: none;
  border: 0;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--rose-50);
  color: var(--rose-600);
  font-size: 24px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px 18px;
}

.mobile-nav a {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--gray-700);
  font-weight: 700;
}

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

.main {
  overflow: hidden;
}

.hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  background: radial-gradient(circle at 20% 10%, rgba(251, 113, 133, 0.34), transparent 32%), linear-gradient(135deg, #fff 0%, #fff1f2 45%, #ffe4e6 100%);
}

.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(225, 29, 72, 0.13) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.52;
}

.hero-inner {
  position: relative;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  padding: 64px 20px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: 44px;
}

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

.hero-kicker,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--rose-600);
  font-weight: 800;
  box-shadow: var(--shadow-soft);
}

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

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

.hero-desc {
  color: var(--gray-700);
  font-size: 19px;
  line-height: 1.8;
  margin: 0 0 30px;
}

.hero-actions,
.section-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;
  border: 1px solid rgba(225, 29, 72, 0.16);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(90deg, var(--rose-600), var(--pink-600));
}

.btn-light {
  color: var(--rose-600);
  background: rgba(255, 255, 255, 0.92);
}

.hero-carousel {
  position: relative;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.82);
  padding: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-slide {
  display: none;
  min-height: 438px;
  border-radius: 26px;
  overflow: hidden;
  position: relative;
  background: var(--gray-100);
}

.hero-slide.is-active {
  display: block;
  animation: fadeIn 0.55s ease;
}

.hero-slide img {
  width: 100%;
  height: 438px;
  object-fit: cover;
  transform: scale(1.02);
}

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

.hero-slide-content {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  color: #fff;
  z-index: 2;
}

.hero-slide-content h2 {
  font-size: 30px;
  line-height: 1.2;
  margin: 0 0 10px;
}

.hero-slide-content p {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.65;
  margin: 0 0 16px;
}

.hero-dots {
  display: flex;
  gap: 9px;
  position: absolute;
  top: 28px;
  right: 28px;
  z-index: 3;
}

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

.hero-dot.is-active {
  width: 28px;
  background: #fff;
}

.section {
  padding: 64px 20px;
}

.section.alt {
  background: linear-gradient(180deg, #fff 0%, var(--rose-50) 100%);
}

.container {
  max-width: 1180px;
  margin: 0 auto;
}

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

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

.section-heading p {
  margin: 0;
  color: var(--gray-500);
  line-height: 1.7;
}

.section-more {
  color: var(--rose-600);
  font-weight: 800;
  white-space: nowrap;
}

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

.feature-card {
  padding: 28px;
  border-radius: 26px;
  background: linear-gradient(135deg, #fff, var(--rose-50));
  box-shadow: 0 10px 34px rgba(17, 24, 39, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover,
.movie-card:hover,
.category-tile:hover,
.rank-row:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.feature-card b {
  display: inline-flex;
  width: 54px;
  height: 54px;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: #fff;
  color: var(--rose-600);
  box-shadow: var(--shadow-soft);
  margin-bottom: 16px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.feature-card p {
  margin: 0;
  color: var(--gray-500);
  line-height: 1.7;
}

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

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

.movie-card {
  display: block;
  border-radius: 20px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 8px 26px rgba(17, 24, 39, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  min-width: 0;
}

.poster-wrap {
  display: block;
  position: relative;
  aspect-ratio: 2 / 3;
  background: var(--gray-100);
  overflow: hidden;
}

.movie-grid.large .poster-wrap,
.movie-card.horizontal .poster-wrap {
  aspect-ratio: 16 / 10;
}

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

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

.card-badge,
.rank-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  border-radius: 999px;
  padding: 5px 9px;
  color: #fff;
  background: linear-gradient(90deg, var(--rose-600), var(--pink-600));
  font-size: 12px;
  font-weight: 800;
}

.rank-badge {
  left: 10px;
  right: auto;
}

.play-mark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 38px;
  background: rgba(17, 24, 39, 0.38);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .play-mark {
  opacity: 1;
}

.card-body {
  display: grid;
  gap: 7px;
  padding: 14px;
}

.card-body strong {
  font-size: 15px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-body em {
  color: var(--rose-600);
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
}

.card-body small {
  color: var(--gray-500);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.category-tile {
  min-height: 156px;
  padding: 24px;
  border-radius: 26px;
  color: #fff;
  background: linear-gradient(135deg, var(--rose-600), var(--pink-600));
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile span {
  font-size: 24px;
  font-weight: 900;
}

.category-tile strong {
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  line-height: 1.65;
  font-weight: 500;
}

.page-hero {
  padding: 74px 20px 50px;
  background: radial-gradient(circle at 12% 15%, rgba(244, 63, 94, 0.25), transparent 26%), linear-gradient(135deg, var(--rose-600), var(--pink-600));
  color: #fff;
}

.page-hero .container {
  display: grid;
  gap: 18px;
}

.page-hero h1 {
  max-width: 820px;
  font-size: clamp(36px, 6vw, 62px);
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 740px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.8;
}

.filter-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 28px;
  padding: 18px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.06);
}

.filter-bar input,
.filter-bar select {
  min-height: 46px;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  padding: 0 16px;
  font: inherit;
  color: var(--gray-700);
  outline: none;
  background: #fff;
}

.filter-bar input {
  flex: 1 1 260px;
}

.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--rose-500);
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.12);
}

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

.rank-row {
  display: grid;
  grid-template-columns: 86px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rank-poster {
  width: 86px;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  border-radius: 16px;
  background: var(--gray-100);
}

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

.rank-main strong {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
}

.rank-main span,
.rank-score {
  color: var(--gray-500);
  font-size: 14px;
}

.rank-index {
  color: var(--rose-600);
  font-weight: 900;
  font-size: 22px;
}

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

.player-card,
.detail-card,
.side-card {
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.player-card {
  margin-bottom: 24px;
}

.player-box {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0f172a;
}

.player-box video {
  width: 100%;
  height: 100%;
  display: block;
  background: #0f172a;
  object-fit: contain;
}

.player-overlay {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.15), rgba(15, 23, 42, 0.82));
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.player-overlay.is-hidden {
  display: none;
}

.player-overlay span {
  display: inline-flex;
  width: 86px;
  height: 86px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose-600), var(--pink-600));
  box-shadow: 0 20px 52px rgba(225, 29, 72, 0.38);
  font-size: 32px;
  padding-left: 6px;
}

.player-meta,
.detail-card,
.side-card {
  padding: 24px;
}

.player-meta h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.18;
  letter-spacing: -0.04em;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.meta-line span,
.tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--rose-50);
  color: var(--rose-600);
  font-size: 13px;
  font-weight: 800;
}

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

.detail-card p {
  color: var(--gray-700);
  line-height: 1.85;
  margin: 0 0 18px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

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

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

.related-item img {
  width: 82px;
  aspect-ratio: 16 / 11;
  border-radius: 14px;
  object-fit: cover;
  background: var(--gray-100);
}

.related-item strong {
  display: block;
  line-height: 1.4;
  margin-bottom: 5px;
}

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

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

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

.search-empty {
  padding: 32px;
  border-radius: 24px;
  text-align: center;
  background: #fff;
  color: var(--gray-500);
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
}

.site-footer {
  border-top: 1px solid var(--rose-100);
  background: linear-gradient(180deg, var(--rose-50), #fff);
  padding: 48px 20px 24px;
}

.footer-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 30px;
}

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

.site-footer p,
.site-footer a {
  display: block;
  color: var(--gray-500);
  line-height: 1.75;
  font-size: 14px;
}

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

.footer-bottom {
  max-width: 1180px;
  margin: 30px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--rose-100);
  color: var(--gray-500);
  font-size: 13px;
  text-align: center;
}

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

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

@media (max-width: 980px) {
  .hero-inner,
  .detail-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

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

  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .brand-name {
    font-size: 18px;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding: 42px 16px;
    gap: 28px;
  }

  .hero-slide,
  .hero-slide img {
    min-height: 350px;
    height: 350px;
  }

  .section,
  .page-hero {
    padding-left: 16px;
    padding-right: 16px;
  }

  .section-heading {
    display: grid;
    gap: 12px;
  }

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

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

  .rank-row {
    grid-template-columns: 72px 1fr;
  }

  .rank-score {
    grid-column: 2;
  }

  .player-overlay span {
    width: 68px;
    height: 68px;
  }
}
