* {
  box-sizing: border-box;
}

:root {
  --pink: #ec4899;
  --pink-dark: #be185d;
  --amber: #f59e0b;
  --orange: #f97316;
  --ink: #111827;
  --muted: #6b7280;
  --soft: #f9fafb;
  --line: #e5e7eb;
  --card: #ffffff;
  --shadow: 0 24px 70px rgba(17, 24, 39, 0.12);
}

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(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(236, 72, 153, 0.12), transparent 34rem),
    radial-gradient(circle at 92% 12%, rgba(245, 158, 11, 0.16), transparent 32rem),
    linear-gradient(180deg, #fff7fb 0%, #ffffff 38%, #fffaf2 100%);
  min-height: 100vh;
}

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

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

.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.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
}

.header-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--pink), var(--amber));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
  box-shadow: 0 16px 30px rgba(236, 72, 153, 0.28);
}

.brand-text strong {
  display: block;
  font-size: 22px;
  line-height: 1;
  background: linear-gradient(90deg, var(--pink), var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-weight: 700;
  color: #374151;
}

.nav a {
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--pink);
}

.menu-toggle {
  display: none;
  border: 0;
  background: linear-gradient(135deg, var(--pink), var(--amber));
  color: white;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 800;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  padding: 0 0 18px;
}

.mobile-panel a {
  display: block;
  padding: 12px 0;
  color: #374151;
  border-top: 1px solid rgba(229, 231, 235, 0.7);
}

.hero-carousel {
  position: relative;
  margin: 32px auto 44px;
  overflow: hidden;
  border-radius: 34px;
  min-height: 560px;
  box-shadow: var(--shadow);
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 40px;
  align-items: center;
  padding: 68px;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.5s ease, transform 0.7s ease;
}

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

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.95) 0%, rgba(17, 24, 39, 0.8) 38%, rgba(17, 24, 39, 0.34) 100%),
    var(--hero-image);
  background-size: cover;
  background-position: center;
  filter: saturate(1.08);
}

.hero-slide::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: 12%;
  top: 8%;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.35), transparent 65%);
}

.hero-content,
.hero-poster {
  position: relative;
  z-index: 2;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fed7aa;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.hero-content h1,
.hero-content h2 {
  margin: 18px 0 16px;
  color: white;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.hero-content p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.75;
  max-width: 720px;
}

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

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

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

.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--pink), var(--amber));
  box-shadow: 0 20px 34px rgba(236, 72, 153, 0.26);
}

.btn-ghost {
  color: white;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(14px);
}

.hero-poster img {
  width: min(360px, 100%);
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
  margin-left: auto;
}

.hero-controls {
  position: absolute;
  z-index: 5;
  left: 60px;
  right: 60px;
  bottom: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.hero-arrows,
.hero-dots {
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
}

.hero-prev,
.hero-next,
.hero-dot {
  border: 0;
  cursor: pointer;
}

.hero-prev,
.hero-next {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: white;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  font-size: 22px;
}

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

.hero-dot.is-active {
  width: 34px;
  background: linear-gradient(90deg, var(--pink), var(--amber));
}

.section {
  padding: 42px 0;
}

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

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

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

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

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

.movie-card {
  position: relative;
  background: var(--card);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.08);
  border: 1px solid rgba(229, 231, 235, 0.85);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 54px rgba(17, 24, 39, 0.14);
}

.movie-card[hidden] {
  display: none;
}

.poster {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.16), rgba(245, 158, 11, 0.22));
}

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

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

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 900;
  color: #9f1239;
  background: #ffe4e6;
}

.poster .badge {
  position: absolute;
  left: 12px;
  top: 12px;
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
  color: var(--muted);
  font-size: 13px;
}

.card-body p {
  margin: 0;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.65;
}

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

.category-card {
  min-height: 168px;
  border-radius: 24px;
  padding: 22px;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.96), rgba(245, 158, 11, 0.92));
  color: white;
  box-shadow: 0 18px 40px rgba(236, 72, 153, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease;
}

.category-card:hover {
  transform: translateY(-5px);
}

.category-card h3 {
  margin: 0;
  font-size: 22px;
}

.category-card p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.6;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 64px 82px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(229, 231, 235, 0.85);
  box-shadow: 0 10px 26px rgba(17, 24, 39, 0.07);
}

.rank-num {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 18px;
  color: white;
  background: linear-gradient(135deg, var(--pink), var(--amber));
  font-size: 20px;
  font-weight: 1000;
}

.rank-thumb {
  width: 82px;
  height: 112px;
  border-radius: 16px;
  object-fit: cover;
  background: #fff1f2;
}

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

.rank-item p {
  margin: 0;
  color: #4b5563;
  line-height: 1.65;
}

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

.page-hero-card {
  border-radius: 32px;
  padding: 48px;
  background:
    linear-gradient(135deg, rgba(17, 24, 39, 0.88), rgba(157, 23, 77, 0.78)),
    radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.3), transparent 30rem);
  color: white;
  box-shadow: var(--shadow);
}

.page-hero-card h1 {
  margin: 14px 0;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

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

.tools {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 180px 180px;
  gap: 14px;
  margin: 0 0 24px;
}

.input,
.select {
  width: 100%;
  height: 50px;
  border-radius: 999px;
  border: 1px solid rgba(229, 231, 235, 0.95);
  background: rgba(255, 255, 255, 0.9);
  padding: 0 18px;
  font: inherit;
  outline: none;
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.05);
}

.input:focus,
.select:focus {
  border-color: rgba(236, 72, 153, 0.55);
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.12);
}

.empty-state {
  padding: 34px;
  text-align: center;
  background: white;
  border-radius: 22px;
  color: var(--muted);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(280px, 0.72fr);
  gap: 30px;
  padding: 38px 0 20px;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #030712;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.player-box video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: white;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.42), rgba(157, 23, 77, 0.46));
  cursor: pointer;
  font: inherit;
}

.play-icon {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--pink), var(--amber));
  font-size: 30px;
  box-shadow: 0 18px 40px rgba(236, 72, 153, 0.3);
}

.play-overlay strong {
  font-size: 22px;
}

.player-box.is-playing .play-overlay {
  display: none;
}

.detail-panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(229, 231, 235, 0.85);
  border-radius: 30px;
  padding: 28px;
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.08);
}

.detail-panel img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 24px;
  margin-bottom: 18px;
  background: #fff1f2;
}

.detail-title {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  padding-top: 30px;
  font-size: 14px;
}

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

.prose {
  max-width: 900px;
  line-height: 1.9;
  color: #374151;
  font-size: 17px;
}

.prose h2 {
  margin: 34px 0 12px;
  color: var(--ink);
  font-size: 28px;
  letter-spacing: -0.03em;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.tag {
  border-radius: 999px;
  padding: 7px 12px;
  background: #fff1f2;
  color: #9f1239;
  font-size: 13px;
  font-weight: 800;
}

.site-footer {
  margin-top: 60px;
  padding: 34px 0 46px;
  border-top: 1px solid rgba(229, 231, 235, 0.8);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.58);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-weight: 800;
}

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

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

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

  .hero-poster {
    display: none;
  }

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

@media (max-width: 760px) {
  .nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

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

  .header-inner {
    height: 64px;
  }

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

  .hero-carousel {
    min-height: 620px;
    border-radius: 24px;
  }

  .hero-slide {
    padding: 34px 24px 92px;
  }

  .hero-controls {
    left: 24px;
    right: 24px;
    bottom: 24px;
  }

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

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

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

  .rank-thumb {
    width: 72px;
    height: 98px;
  }

  .page-hero-card {
    padding: 30px;
    border-radius: 24px;
  }
}
