:root {
  --rose: #f43f5e;
  --pink: #ec4899;
  --purple: #8b5cf6;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #fff1f2;
  --panel: rgba(255, 255, 255, 0.92);
  --shadow: 0 24px 60px rgba(15, 23, 42, 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", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #fff1f2 0%, #ffffff 32%, #eef2ff 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

.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(18px);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.header-inner {
  min-height: 68px;
  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 span {
  font-size: 22px;
  background: linear-gradient(90deg, var(--rose), var(--pink));
  -webkit-background-clip: text;
  color: transparent;
}

.logo-icon {
  width: 34px;
  height: 34px;
  fill: var(--rose);
  filter: drop-shadow(0 8px 16px rgba(244, 63, 94, 0.28));
}

.logo-icon-line {
  fill: none;
  stroke: #fff;
  stroke-width: 3;
  stroke-linecap: round;
}

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

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

.nav-link:hover,
.nav-link.active {
  color: var(--rose);
  transform: translateY(-1px);
}

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

.header-search input,
.mobile-search input,
.filter-panel input,
.filter-panel select,
.search-page input {
  border: 1px solid #fbcfe8;
  border-radius: 999px;
  padding: 11px 16px;
  background: #fff;
  outline: none;
  color: #111827;
  box-shadow: 0 8px 18px rgba(244, 63, 94, 0.08);
}

.header-search input:focus,
.mobile-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus,
.search-page input:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.14);
}

.header-search button,
.mobile-search button,
.search-page button,
.btn-primary,
.btn-secondary,
.hero-arrow,
.play-button {
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 800;
  cursor: pointer;
}

.header-search button,
.mobile-search button,
.search-page button,
.btn-primary,
.play-button {
  color: #fff;
  background: linear-gradient(90deg, var(--rose), var(--pink));
  box-shadow: 0 14px 30px rgba(244, 63, 94, 0.28);
}

.btn-secondary {
  color: var(--rose);
  background: #fff;
  box-shadow: 0 14px 30px rgba(255, 255, 255, 0.16);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #fff1f2;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--rose);
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  padding: 16px;
  background: #fff;
}

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

.mobile-panel nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.mobile-panel a {
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff1f2;
  font-weight: 800;
  color: #9f1239;
}

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: #111827;
}

.hero-track {
  position: relative;
  min-height: 620px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

hero-slide:first-child {
  opacity: 1;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05);
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.92) 0%, rgba(136, 19, 55, 0.76) 45%, rgba(15, 23, 42, 0.46) 100%);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 180px;
  background: linear-gradient(180deg, transparent, rgba(255, 241, 242, 0.96));
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.8fr);
  gap: 54px;
  align-items: center;
  min-height: 620px;
  padding: 64px 0;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  font-weight: 900;
  letter-spacing: 0.04em;
}

.section-kicker {
  color: var(--rose);
  background: #fff1f2;
}

.hero h1,
.hero h2 {
  max-width: 760px;
  margin: 22px 0 18px;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 0.98;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.hero p {
  max-width: 760px;
  margin: 0 0 24px;
  color: #ffe4e6;
  font-size: 19px;
  line-height: 1.8;
}

.hero-meta,
.detail-meta,
.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 26px;
}

.hero-meta span,
.detail-meta span,
.rank-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: inherit;
  font-weight: 800;
  font-size: 14px;
}

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

.hero-poster {
  position: relative;
}

.hero-poster img {
  width: min(410px, 100%);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
  transform: rotate(2deg);
}

.hero-poster-card {
  position: absolute;
  left: -22px;
  bottom: 28px;
  width: min(280px, 80%);
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
}

.hero-poster-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
}

.hero-poster-card small {
  color: #ffe4e6;
}

.hero-controls {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-arrow {
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--rose);
  background: #fff;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

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

.hero-dot.active {
  width: 28px;
  border-radius: 999px;
  background: #fff;
}

.section {
  padding: 72px 0;
}

.section-tight {
  padding: 42px 0;
}

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

.section-head h2,
.page-title h1,
.detail-title h1 {
  margin: 12px 0 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.section-head p,
.page-title p,
.detail-title p {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.8;
}

.feature-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.75fr);
  gap: 34px;
  align-items: center;
  padding: 34px;
  border-radius: 30px;
  background: #fff;
  box-shadow: var(--shadow);
}

.feature-card img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  border-radius: 24px;
}

.feature-card h2 {
  margin: 16px 0 14px;
  font-size: clamp(28px, 5vw, 46px);
  line-height: 1.1;
  font-weight: 950;
}

.feature-card p {
  color: var(--muted);
  line-height: 1.8;
}

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 150px;
  padding: 22px;
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--purple));
  box-shadow: 0 18px 40px rgba(244, 63, 94, 0.18);
}

.category-tile:nth-child(2n) {
  background: linear-gradient(135deg, #f97316, var(--rose));
}

.category-tile:nth-child(3n) {
  background: linear-gradient(135deg, #6366f1, var(--pink));
}

.category-tile h3 {
  position: relative;
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 950;
}

.category-tile p {
  position: relative;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.7;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(244, 63, 94, 0.08);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 52px rgba(15, 23, 42, 0.14);
}

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  background: #111827;
}

.poster-wrap img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.poster-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(15, 23, 42, 0.72));
}

.poster-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 7px 10px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(90deg, var(--rose), var(--pink));
  font-size: 12px;
  font-weight: 900;
}

.poster-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--rose);
  background: #fff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

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

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.card-tags span,
.tag-list span {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  color: #be123c;
  background: #fff1f2;
  font-size: 12px;
  font-weight: 800;
}

.movie-card h3 {
  margin: 0 0 8px;
  font-size: 19px;
  line-height: 1.3;
  font-weight: 950;
}

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

.movie-card p {
  min-height: 68px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #6b7280;
  font-size: 13px;
  font-weight: 800;
}

.card-meta span {
  padding: 5px 8px;
  border-radius: 999px;
  background: #f9fafb;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 54px 86px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.rank-no {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  font-weight: 950;
}

.rank-item img {
  width: 86px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 14px;
}

.rank-item h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.rank-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.page-hero {
  padding: 72px 0 42px;
  background: radial-gradient(circle at top left, rgba(244, 63, 94, 0.18), transparent 34%), linear-gradient(180deg, #fff1f2, rgba(255, 255, 255, 0.3));
}

.page-title {
  max-width: 860px;
}

.filter-panel {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 28px;
  padding: 18px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.filter-panel input {
  flex: 1;
  min-width: 0;
}

.detail-hero {
  padding: 38px 0 68px;
  background: linear-gradient(180deg, #111827 0%, #881337 100%);
  color: #fff;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
  color: #fecdd3;
  font-size: 14px;
  font-weight: 800;
}

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

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
  gap: 34px;
  align-items: start;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

.player-box video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: rgba(15, 23, 42, 0.42);
  cursor: pointer;
}

.play-overlay span {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: linear-gradient(90deg, var(--rose), var(--pink));
  box-shadow: 0 18px 44px rgba(244, 63, 94, 0.38);
  font-size: 42px;
  padding-left: 6px;
}

.play-overlay.hidden {
  display: none;
}

.detail-title {
  padding: 26px;
  border-radius: 28px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.18);
}

.detail-title img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 22px;
  margin-bottom: 22px;
}

.detail-meta span {
  color: #9f1239;
  background: #fff1f2;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.content-panel {
  padding: 34px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
}

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

.content-panel p {
  margin: 0 0 20px;
  color: #374151;
  line-height: 1.9;
}

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

.compact-card {
  display: block;
  padding: 10px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.compact-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 10px;
}

.compact-card span {
  display: block;
  font-weight: 900;
  line-height: 1.35;
}

.compact-card small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
}

.search-page {
  padding: 72px 0;
}

.search-box {
  display: flex;
  gap: 12px;
  margin: 26px 0 32px;
}

.search-box input {
  flex: 1;
}

.no-results {
  padding: 30px;
  border-radius: 24px;
  background: #fff;
  color: var(--muted);
  text-align: center;
}

.site-footer {
  color: #d1d5db;
  background: #111827;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 28px;
  padding: 52px 0;
}

.footer-brand {
  color: #fff;
  margin-bottom: 14px;
}

.footer-brand .logo-icon {
  fill: #fb7185;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: #fff;
}

.site-footer p {
  margin: 0;
  color: #9ca3af;
  line-height: 1.75;
}

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

.footer-links a {
  color: #d1d5db;
}

.footer-links a:hover {
  color: #fb7185;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px;
  text-align: center;
  color: #9ca3af;
}

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

  .menu-toggle {
    display: block;
  }

  .hero-content,
  .feature-card,
  .detail-grid {
    grid-template-columns: 1fr;
  }

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

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

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

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

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

  .hero-track,
  .hero-content {
    min-height: 720px;
  }

  .hero h1,
  .hero h2 {
    font-size: 42px;
  }

  .hero-poster img {
    max-height: 360px;
  }

  .section {
    padding: 46px 0;
  }

  .section-head,
  .filter-panel,
  .search-box {
    align-items: stretch;
    flex-direction: column;
  }

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

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

  .movie-card p {
    min-height: auto;
  }

  .category-strip,
  .related-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: 42px 70px minmax(0, 1fr);
  }

  .rank-item .btn-primary {
    grid-column: 1 / -1;
    text-align: center;
  }
}
