:root {
  --rose: #e11d48;
  --rose-soft: #fff1f2;
  --amber: #d97706;
  --amber-soft: #fffbeb;
  --sky: #0284c7;
  --sky-soft: #f0f9ff;
  --purple: #9333ea;
  --ink: #172033;
  --muted: #667085;
  --panel: rgba(255, 255, 255, 0.84);
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.14);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background: linear-gradient(135deg, #fffbeb 0%, #fff1f2 48%, #f0f9ff 100%);
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(16px);
}

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

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #111827;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber), var(--rose));
  box-shadow: 0 12px 32px rgba(225, 29, 72, 0.28);
}

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

.nav-link,
.mobile-link {
  color: #475467;
  font-weight: 700;
  border-radius: 999px;
  transition: 0.2s ease;
}

.nav-link {
  padding: 10px 15px;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: var(--rose);
  background: rgba(225, 29, 72, 0.08);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.menu-button span {
  display: block;
  width: 21px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: #1f2937;
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
}

.mobile-link {
  display: block;
  padding: 12px 14px;
}

.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}

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

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(120, 53, 15, 0.92), rgba(136, 19, 55, 0.88), rgba(12, 74, 110, 0.9));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-copy {
  width: min(760px, 100%);
  text-align: left;
}

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

.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(40px, 8vw, 82px);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.hero p {
  width: min(680px, 100%);
  margin: 0 0 28px;
  color: #fef3c7;
  font-size: clamp(17px, 2.2vw, 24px);
  line-height: 1.7;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.btn-primary,
.btn-soft,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: 0.2s ease;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #f43f5e);
  box-shadow: 0 20px 45px rgba(225, 29, 72, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 24px 55px rgba(225, 29, 72, 0.38);
}

.btn-soft {
  color: var(--rose);
  background: #fff;
}

.btn-outline {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.12);
}

.hero-controls {
  position: absolute;
  right: 26px;
  bottom: 26px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-dot,
.hero-arrow {
  border: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: 0.2s ease;
}

.hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border-radius: 999px;
}

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

.hero-arrow {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font-size: 18px;
}

.page-hero {
  padding: 82px 0 42px;
  background: radial-gradient(circle at top left, rgba(244, 63, 94, 0.17), transparent 34%), radial-gradient(circle at top right, rgba(14, 165, 233, 0.18), transparent 34%);
}

.page-hero h1,
.section-title {
  margin: 0;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.page-hero p,
.section-subtitle {
  max-width: 780px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.section {
  padding: 76px 0;
}

.section-alt {
  padding: 76px 0;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(8px);
}

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

.section-title.gradient-rose {
  color: transparent;
  background: linear-gradient(135deg, var(--rose), #db2777);
  -webkit-background-clip: text;
  background-clip: text;
}

.section-title.gradient-amber {
  color: transparent;
  background: linear-gradient(135deg, var(--amber), #ea580c);
  -webkit-background-clip: text;
  background-clip: text;
}

.section-title.gradient-sky {
  color: transparent;
  background: linear-gradient(135deg, var(--sky), #0d9488);
  -webkit-background-clip: text;
  background-clip: text;
}

.grid {
  display: grid;
  gap: 24px;
}

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

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

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

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

.card-link {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.11);
  transition: 0.25s ease;
}

.card-link:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow);
}

.poster-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #111827;
}

.poster-wrap.is-wide {
  aspect-ratio: 16 / 9;
}

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

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

.poster-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.58));
  opacity: 0.9;
}

.score-pill,
.type-pill {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  background: linear-gradient(135deg, #f59e0b, #f43f5e);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
}

.card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 17px;
}

.card-body h3 {
  margin: 0;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 17px;
  line-height: 1.35;
}

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

.card-desc {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
}

.tag-row span,
.meta-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 9px;
  color: #9f1239;
  background: rgba(255, 228, 230, 0.86);
  font-size: 12px;
  font-weight: 800;
}

.rank-panel,
.content-panel {
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.rank-list {
  display: grid;
  gap: 0;
}

.rank-row {
  display: grid;
  grid-template-columns: 46px 92px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(229, 231, 235, 0.85);
  transition: 0.2s ease;
}

.rank-row:hover {
  background: linear-gradient(90deg, var(--amber-soft), var(--rose-soft));
}

.rank-row img {
  width: 92px;
  height: 62px;
  object-fit: cover;
  border-radius: 13px;
}

.rank-number {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--amber), var(--rose));
  font-weight: 900;
}

.rank-main strong,
.rank-main em {
  display: block;
}

.rank-main strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-main em {
  margin-top: 5px;
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.rank-score {
  color: var(--amber);
  font-weight: 900;
}

.category-card {
  position: relative;
  min-height: 260px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #111827;
  box-shadow: var(--shadow);
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.18));
}

.category-content {
  position: relative;
  z-index: 1;
  padding: 24px;
  color: #fff;
}

.category-content h2,
.category-content h3 {
  margin: 0 0 10px;
  font-size: 26px;
}

.category-content p {
  margin: 0;
  color: #f8fafc;
  line-height: 1.65;
}

.toolbar {
  display: grid;
  grid-template-columns: 1fr 190px 190px;
  gap: 14px;
  margin: 28px 0 32px;
}

.toolbar input,
.toolbar select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 16px;
  padding: 0 16px;
  color: #1f2937;
  background: rgba(255, 255, 255, 0.92);
  outline: none;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
}

.toolbar input:focus,
.toolbar select:focus {
  border-color: rgba(225, 29, 72, 0.5);
  box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.08);
}

.hidden-by-filter {
  display: none;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 14px;
}

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

.detail-hero {
  padding: 42px 0 74px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(290px, 0.7fr);
  gap: 28px;
  align-items: start;
}

.player-box {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #020617;
  box-shadow: var(--shadow);
}

.player-frame {
  position: relative;
  aspect-ratio: 16 / 9;
}

.player-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #020617;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #fff;
  cursor: pointer;
  background: rgba(2, 6, 23, 0.52);
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-badge {
  width: 92px;
  height: 92px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber), var(--rose));
  box-shadow: 0 22px 60px rgba(244, 63, 94, 0.42);
  font-size: 34px;
}

.detail-panel {
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.detail-poster {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  width: 100%;
}

.detail-info {
  padding: 24px;
}

.detail-info h1 {
  margin: 0 0 16px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.meta-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 18px 0;
}

.prose-block {
  margin-top: 28px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 36px);
}

.prose-block h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.prose-block p {
  margin: 0 0 18px;
  color: #344054;
  font-size: 17px;
  line-height: 1.9;
}

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

.related-card {
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.11);
}

.related-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.related-card strong {
  display: -webkit-box;
  overflow: hidden;
  min-height: 42px;
  padding: 12px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 14px;
  line-height: 1.45;
}

.category-strip {
  padding: 26px;
}

.category-preview {
  margin-top: 22px;
}

.inner-head {
  margin-bottom: 22px;
}

.action-button {
  border: 0;
  font: inherit;
  cursor: pointer;
}

.site-footer {
  margin-top: 46px;
  color: #e5e7eb;
  background: #111827;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 32px;
  padding: 46px 0;
}

.footer-logo {
  color: #fff;
}

.site-footer p {
  max-width: 460px;
  color: #cbd5e1;
  line-height: 1.8;
}

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

.footer-links strong {
  color: #fff;
  margin-bottom: 4px;
}

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

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

.footer-bottom {
  padding: 18px 16px;
  text-align: center;
  color: #94a3b8;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

  .menu-button {
    display: block;
  }

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

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

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

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

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

  .hero {
    height: 560px;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-controls {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  .section,
  .section-alt {
    padding: 52px 0;
  }

  .section-head {
    display: block;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .rank-row {
    grid-template-columns: 36px 78px 1fr;
    gap: 12px;
    padding: 14px;
  }

  .rank-row img {
    width: 78px;
    height: 56px;
  }

  .rank-score {
    grid-column: 2 / 4;
    padding-left: 90px;
  }
}
