:root {
  --rose: #e11d48;
  --rose-dark: #be123c;
  --pink: #ec4899;
  --amber: #f59e0b;
  --blue: #3b82f6;
  --green: #10b981;
  --text: #111827;
  --muted: #6b7280;
  --soft: #fff1f5;
  --line: #f3f4f6;
  --shadow: 0 18px 45px rgba(17, 24, 39, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #fff1f5 0%, #ffffff 34%, #f9fafb 100%);
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(244, 63, 94, 0.12);
  backdrop-filter: blur(18px);
  box-shadow: 0 1px 12px rgba(17, 24, 39, 0.06);
}

.nav-wrap {
  width: min(1280px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: #111827;
  white-space: nowrap;
}

.logo-mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(225, 29, 72, 0.35);
  font-size: 16px;
}

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

.nav-links a {
  padding: 10px 16px;
  border-radius: 999px;
  color: #4b5563;
  font-weight: 700;
  transition: 0.25s ease;
}

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

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #f9fafb;
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #111827;
  border-radius: 99px;
}

.hero {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  transform: scale(1.02);
  pointer-events: none;
  transition: opacity 0.7s ease, transform 1.3s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  z-index: 2;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) brightness(0.78);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.56), rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.72));
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 96px 0 112px;
  color: #fff;
  text-align: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(12px);
  font-weight: 800;
}

.hero h1 {
  margin: 18px 0 16px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 900;
  text-shadow: 0 18px 45px rgba(0, 0, 0, 0.42);
}

.hero p {
  max-width: 800px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 2vw, 24px);
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 0;
  font-weight: 850;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  box-shadow: 0 16px 30px rgba(225, 29, 72, 0.35);
}

.btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(12px);
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.hero-pills span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
  font-weight: 750;
}

.hero-search {
  width: min(620px, 100%);
  margin: 30px auto 0;
  display: flex;
  gap: 10px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(14px);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: #fff;
  border-radius: 999px;
  padding: 0 18px;
  color: #111827;
}

.hero-search button {
  white-space: nowrap;
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: 0.25s ease;
}

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

.section {
  padding: 72px 0;
}

.section-alt {
  background: linear-gradient(90deg, #fff7ed, #fff1f5);
}

.section-soft {
  background: linear-gradient(90deg, #ecfdf5, #f0fdfa);
}

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

.section-head h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.section-more {
  flex: 0 0 auto;
  color: var(--rose);
  background: #fff;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.08);
}

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

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

.movie-card {
  min-width: 0;
}

.poster-link {
  display: block;
  height: 100%;
  overflow: hidden;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.poster-link:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 48px rgba(17, 24, 39, 0.16);
}

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: #e5e7eb;
}

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

.poster-link:hover .poster-wrap img {
  transform: scale(1.08);
}

.poster-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.08), rgba(17, 24, 39, 0.74));
  transition: opacity 0.25s ease;
}

.poster-link:hover .poster-overlay {
  opacity: 1;
}

.play-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  padding-left: 4px;
  border-radius: 999px;
  color: #fff;
  background: var(--rose);
  box-shadow: 0 18px 28px rgba(225, 29, 72, 0.35);
  font-size: 24px;
}

.badge {
  position: absolute;
  top: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.18);
}

.badge-primary {
  left: 12px;
  background: var(--rose);
}

.badge-secondary {
  right: 12px;
  background: var(--blue);
}

.card-body {
  display: block;
  padding: 16px;
}

.card-body strong {
  display: block;
  color: #111827;
  font-size: 18px;
  line-height: 1.35;
  transition: color 0.25s ease;
}

.poster-link:hover .card-body strong {
  color: var(--rose);
}

.card-meta,
.card-desc {
  display: block;
  margin-top: 8px;
  color: #6b7280;
  font-size: 14px;
}

.card-desc {
  color: #374151;
  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: 24px;
}

.category-card {
  position: relative;
  min-height: 240px;
  overflow: hidden;
  border-radius: 24px;
  color: #fff;
  box-shadow: var(--shadow);
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.68) saturate(1.08);
  transition: transform 0.45s ease;
}

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

.category-card span {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 24px;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0), rgba(17, 24, 39, 0.78));
}

.category-card strong {
  font-size: 24px;
  line-height: 1.2;
}

.category-card small {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.82);
}

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

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

.rank-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(17, 24, 39, 0.12);
}

.rank-no {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  color: var(--rose);
  background: var(--soft);
  font-size: 20px;
  font-weight: 900;
}

.rank-item img {
  width: 86px;
  height: 120px;
  border-radius: 12px;
  object-fit: cover;
  background: #e5e7eb;
}

.rank-copy strong {
  display: block;
  font-size: 20px;
}

.rank-copy p {
  margin: 6px 0 0;
  color: #6b7280;
}

.rank-score {
  min-width: 72px;
  color: var(--amber);
  font-size: 22px;
  font-weight: 900;
  text-align: right;
}

.filter-panel {
  padding: 24px;
  margin-bottom: 28px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.08);
}

.search-line {
  display: flex;
  gap: 12px;
}

.search-line input,
.search-line select {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  outline: none;
  background: #fff;
}

.search-line input:focus,
.search-line select:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.12);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.filter-chip {
  min-height: 40px;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  color: #374151;
  background: #f3f4f6;
  cursor: pointer;
  font-weight: 800;
}

.filter-chip.active,
.filter-chip:hover {
  color: #fff;
  background: var(--rose);
}

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

.page-hero {
  padding: 64px 0 42px;
  background: linear-gradient(135deg, #fff1f5, #fff7ed);
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 760px;
  margin: 14px 0 0;
  color: #6b7280;
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #9ca3af;
  font-size: 14px;
}

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

.detail-page {
  background: #f9fafb;
}

.detail-hero {
  padding: 42px 0 70px;
  background: linear-gradient(135deg, #111827, #3f1222 58%, #111827);
}

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

.detail-title {
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.detail-one {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.detail-meta span,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  font-size: 14px;
  font-weight: 750;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.45);
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.66));
  cursor: pointer;
  transition: opacity 0.28s ease;
}

.play-overlay span {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  padding-left: 5px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  font-size: 34px;
  box-shadow: 0 18px 48px rgba(225, 29, 72, 0.42);
}

.player-box.is-playing .play-overlay {
  opacity: 0;
  pointer-events: none;
}

.detail-side {
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.26);
}

.detail-side img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: #e5e7eb;
}

.side-content {
  padding: 20px;
  color: #fff;
}

.side-content strong {
  display: block;
  font-size: 20px;
}

.side-content p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.74);
}

.detail-body {
  padding: 56px 0 72px;
}

.content-card {
  padding: 30px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.08);
}

.content-card + .content-card {
  margin-top: 24px;
}

.content-card h2 {
  margin: 0 0 16px;
  font-size: 28px;
}

.content-card p {
  margin: 0;
  color: #374151;
  font-size: 17px;
}

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

.tag-list .tag {
  color: var(--rose);
  background: #fff1f5;
  border-color: #ffe4e6;
}

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

.compact-card a {
  display: block;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.08);
}

.compact-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: #e5e7eb;
}

.compact-card span {
  display: block;
  padding: 12px;
}

.compact-card strong,
.compact-card em,
.compact-card small {
  display: block;
}

.compact-card strong {
  line-height: 1.35;
}

.compact-card em {
  margin-top: 4px;
  color: #6b7280;
  font-size: 12px;
  font-style: normal;
}

.compact-card small {
  margin-top: 6px;
  color: #4b5563;
  line-height: 1.45;
}

.cta-panel {
  display: grid;
  gap: 22px;
  justify-items: center;
  padding: 56px 24px;
  border-radius: 32px;
  color: #fff;
  text-align: center;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  box-shadow: 0 24px 60px rgba(225, 29, 72, 0.26);
}

.cta-panel h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
}

.cta-panel p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
}

.site-footer {
  padding: 42px 0;
  color: #d1d5db;
  background: #111827;
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-footer strong {
  display: block;
  color: #fff;
  font-size: 20px;
}

.site-footer p {
  margin: 8px 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a {
  color: #fff;
  font-weight: 750;
}

@media (max-width: 1100px) {
  .movie-grid,
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

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

  .detail-side {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .nav-wrap {
    height: 64px;
  }

  .logo {
    font-size: 18px;
  }

  .logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 12px;
  }

  .mobile-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 64px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow);
  }

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

  .nav-links a {
    text-align: center;
  }

  .hero {
    min-height: 76vh;
  }

  .hero-content {
    padding: 88px 0 108px;
  }

  .hero-search {
    flex-direction: column;
    border-radius: 24px;
  }

  .hero-search input {
    min-height: 48px;
  }

  .section {
    padding: 48px 0;
  }

  .section-head {
    display: block;
  }

  .section-more {
    display: inline-flex;
    margin-top: 16px;
  }

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

  .rank-item {
    grid-template-columns: 48px 74px minmax(0, 1fr);
    gap: 12px;
  }

  .rank-no {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 16px;
  }

  .rank-item img {
    width: 74px;
    height: 104px;
  }

  .rank-score {
    grid-column: 3;
    text-align: left;
    font-size: 18px;
  }

  .search-line {
    display: grid;
  }

  .detail-side {
    display: block;
  }

  .footer-grid {
    display: grid;
  }
}

@media (max-width: 460px) {
  .movie-grid,
  .movie-grid.tight,
  .category-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }
}
