:root {
  --rose-50: #fff1f2;
  --rose-100: #ffe4e6;
  --rose-200: #fecdd3;
  --rose-400: #fb7185;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --pink-500: #ec4899;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: rgba(244, 63, 94, 0.16);
  --shadow: 0 18px 45px rgba(225, 29, 72, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: linear-gradient(180deg, #fff8fb 0%, #ffffff 38%, #fff7f8 100%);
}

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

.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.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 36px rgba(244, 63, 94, 0.08);
}

.nav-wrap {
  min-height: 76px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: white;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose-400), var(--pink-500));
  box-shadow: 0 12px 28px rgba(244, 63, 94, 0.26);
}

.brand-text {
  display: grid;
  gap: 2px;
}

.brand-text strong {
  font-size: 22px;
  line-height: 1;
  letter-spacing: 0.04em;
  background: linear-gradient(90deg, var(--rose-600), var(--pink-500), var(--rose-400));
  -webkit-background-clip: text;
  color: transparent;
}

.brand-text small {
  color: var(--muted);
  font-size: 12px;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  color: #4b5563;
  font-weight: 700;
  font-size: 14px;
}

.main-nav a {
  padding: 9px 0;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--rose-600);
  border-bottom-color: var(--rose-400);
}

.nav-search {
  display: flex;
  width: 280px;
  padding: 4px;
  background: var(--rose-50);
  border: 1px solid var(--rose-100);
  border-radius: 999px;
}

.nav-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  padding: 10px 12px;
  background: transparent;
  color: var(--ink);
}

.nav-search button,
.btn,
.ghost-btn {
  border: 0;
  cursor: pointer;
  font-weight: 800;
  border-radius: 999px;
}

.nav-search button,
.btn {
  color: white;
  padding: 10px 18px;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
  box-shadow: 0 12px 24px rgba(244, 63, 94, 0.22);
}

.ghost-btn {
  color: var(--rose-600);
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(244, 63, 94, 0.24);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--rose-50);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--rose-600);
  border-radius: 2px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 34px 0 22px;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(8px);
  pointer-events: none;
}

.hero::before {
  top: -120px;
  left: -80px;
  width: 340px;
  height: 340px;
  background: rgba(251, 113, 133, 0.18);
}

.hero::after {
  right: -110px;
  bottom: -150px;
  width: 420px;
  height: 420px;
  background: rgba(236, 72, 153, 0.14);
}

.hero-shell {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: 36px;
  background: #111827;
  box-shadow: 0 32px 80px rgba(244, 63, 94, 0.20);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 22px;
  align-items: stretch;
  padding: 54px;
  opacity: 0;
  transform: translateX(30px);
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(17, 24, 39, 0.95) 0%, rgba(17, 24, 39, 0.76) 44%, rgba(244, 63, 94, 0.20) 100%), var(--hero-image);
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
}

.hero-content,
.hero-preview {
  position: relative;
  z-index: 1;
}

.hero-content {
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 680px;
}

.hero-kicker {
  width: fit-content;
  padding: 8px 14px;
  margin-bottom: 18px;
  color: #ffe4e6;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  font-weight: 800;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

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

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

.hero-tags span,
.tag-row span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  font-size: 12px;
}

.hero-tags span {
  color: white;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.16);
}

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

.hero-preview {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-card {
  width: min(330px, 100%);
  min-height: 430px;
  overflow: hidden;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px);
}

.hero-poster {
  height: 330px;
  display: block;
  background-image: linear-gradient(180deg, rgba(244, 63, 94, 0.10), rgba(17, 24, 39, 0.48)), var(--hero-image);
  background-size: cover;
  background-position: center;
}

.hero-card strong {
  display: block;
  color: white;
  padding: 18px 20px 4px;
  font-size: 20px;
}

.hero-card span:last-child {
  display: block;
  color: rgba(255, 255, 255, 0.74);
  padding: 0 20px 20px;
}

.hero-dots {
  position: absolute;
  left: 54px;
  bottom: 34px;
  z-index: 5;
  display: flex;
  gap: 10px;
}

.hero-dots button {
  width: 36px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.35);
}

.hero-dots button.is-active {
  background: white;
}

.section {
  padding: 48px 0;
}

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

.section-title {
  margin: 0;
  font-size: clamp(26px, 3vw, 40px);
  letter-spacing: -0.03em;
}

.section-desc {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

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

.category-tile,
.info-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover,
.movie-card:hover,
.info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 58px rgba(225, 29, 72, 0.17);
}

.category-tile strong {
  display: block;
  color: var(--rose-600);
  font-size: 18px;
  margin-bottom: 8px;
}

.category-tile span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

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

.movie-card {
  min-width: 0;
  border-radius: var(--radius);
  background: white;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card a {
  display: grid;
  height: 100%;
}

.poster {
  position: relative;
  display: block;
  min-height: 270px;
  overflow: hidden;
  background-image: linear-gradient(180deg, rgba(251, 113, 133, 0.10), rgba(17, 24, 39, 0.46)), var(--poster-image);
  background-size: cover;
  background-position: center;
}

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

.poster em,
.poster strong,
.rank-no {
  position: absolute;
  z-index: 1;
  border-radius: 999px;
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
}

.poster em {
  top: 12px;
  left: 12px;
  color: white;
  padding: 6px 10px;
  background: rgba(244, 63, 94, 0.88);
}

.poster strong {
  right: 12px;
  bottom: 12px;
  color: white;
  padding: 6px 10px;
  background: rgba(17, 24, 39, 0.72);
}

.rank-no {
  top: 12px;
  right: 12px;
  color: var(--rose-600);
  padding: 6px 10px;
  background: white;
}

.card-body {
  display: grid;
  gap: 9px;
  padding: 18px;
}

.card-title {
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
}

.movie-card:hover .card-title {
  color: var(--rose-600);
}

.card-line,
.card-meta {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-row span,
.detail-tags span {
  color: var(--rose-600);
  padding: 5px 9px;
  background: var(--rose-50);
}

.filter-panel {
  display: flex;
  gap: 12px;
  margin: 0 0 22px;
  padding: 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.filter-panel input,
.filter-panel select {
  min-height: 44px;
  border: 0;
  outline: 0;
  border-radius: 999px;
  background: var(--rose-50);
  color: var(--ink);
  padding: 0 16px;
}

.filter-panel input {
  flex: 1;
}

.page-hero {
  padding: 58px 0 30px;
}

.page-panel {
  padding: 38px;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(255, 241, 242, 0.96), rgba(255, 255, 255, 0.94));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.page-panel h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 5vw, 58px);
  letter-spacing: -0.04em;
}

.page-panel p {
  max-width: 860px;
  margin: 0;
  color: var(--muted);
  line-height: 1.9;
  font-size: 17px;
}

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

.category-card-title {
  color: var(--rose-600);
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 10px;
}

.category-card-desc {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 16px;
}

.sample-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sample-links span {
  padding: 6px 10px;
  border-radius: 999px;
  color: #4b5563;
  background: var(--rose-50);
  font-size: 12px;
}

.ranking-list {
  display: grid;
  gap: 12px;
}

.ranking-item {
  display: grid;
  grid-template-columns: 64px 86px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: white;
  box-shadow: 0 10px 28px rgba(244, 63, 94, 0.08);
}

.ranking-index {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--rose-600);
  font-weight: 900;
  border-radius: 50%;
  background: var(--rose-50);
}

.ranking-thumb {
  height: 76px;
  border-radius: 14px;
  background-image: linear-gradient(180deg, rgba(244, 63, 94, 0.10), rgba(17, 24, 39, 0.40)), var(--poster-image);
  background-size: cover;
  background-position: center;
}

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

.ranking-main span,
.ranking-meta {
  color: var(--muted);
  font-size: 13px;
}

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

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

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

.player-box video {
  display: block;
  width: 100%;
  height: 100%;
  background: #111827;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  background-image: linear-gradient(180deg, rgba(17, 24, 39, 0.20), rgba(17, 24, 39, 0.66)), var(--poster-image);
  background-size: cover;
  background-position: center;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-circle {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  color: white;
  font-size: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.36);
}

.player-title {
  padding: 22px 24px;
}

.player-title h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.04em;
}

.player-title p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.detail-card {
  padding: 24px;
}

.detail-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.detail-card p {
  color: #4b5563;
  line-height: 2;
}

.detail-meta {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.detail-meta div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line);
}

.detail-meta span {
  color: var(--muted);
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.side-card {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 14px;
}

.side-poster {
  min-height: 460px;
  border-radius: 30px;
  background-image: linear-gradient(180deg, rgba(251, 113, 133, 0.08), rgba(17, 24, 39, 0.40)), var(--poster-image);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.breadcrumb {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 14px;
}

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

.site-footer {
  margin-top: 52px;
  padding: 46px 0 24px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, var(--rose-50));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 34px;
}

.footer-logo {
  color: var(--rose-600);
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 10px;
}

.site-footer p {
  color: var(--muted);
  line-height: 1.8;
}

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

.site-footer a {
  display: block;
  color: #4b5563;
  margin: 9px 0;
}

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

.copyright {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 0;
  padding-top: 22px;
  color: var(--muted);
  text-align: center;
  border-top: 1px solid var(--line);
}

.is-hidden-card {
  display: none !important;
}

.empty-state {
  display: none;
  padding: 28px;
  text-align: center;
  color: var(--muted);
  border-radius: var(--radius);
  background: white;
  border: 1px solid var(--line);
}

.empty-state.is-visible {
  display: block;
}

@media (max-width: 980px) {
  .nav-wrap {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav,
  .nav-search {
    grid-column: 1 / -1;
    display: none;
  }

  .main-nav.is-open,
  .nav-search.is-open {
    display: flex;
  }

  .main-nav {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .nav-search {
    width: 100%;
  }

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

  .hero-preview {
    display: none;
  }

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

  .detail-layout {
    grid-template-columns: 1fr;
  }

  .side-card {
    position: static;
  }
}

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

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

  .hero-shell {
    min-height: 580px;
    border-radius: 24px;
  }

  .hero-slide {
    padding: 24px;
  }

  .hero-dots {
    left: 24px;
    bottom: 24px;
  }

  .section-head {
    display: block;
  }

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

  .filter-panel {
    display: grid;
    border-radius: 24px;
  }

  .ranking-item {
    grid-template-columns: 44px 70px 1fr;
  }

  .ranking-meta {
    display: none;
  }

  .poster {
    min-height: 360px;
  }
}
