:root {
  --rose-700: #be123c;
  --rose-600: #e11d48;
  --orange-500: #f97316;
  --amber-400: #fbbf24;
  --ink: #111827;
  --muted: #6b7280;
  --line: #f1f5f9;
  --card: #ffffff;
  --soft: #fff7ed;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body.no-scroll {
  overflow: hidden;
}

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;
  background: linear-gradient(90deg, var(--rose-600), var(--orange-500), var(--amber-400));
  box-shadow: 0 12px 32px rgba(190, 18, 60, 0.22);
}

.navbar {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.26);
}

.logo-mark svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #fff;
  font-weight: 700;
}

.nav-links a {
  opacity: 0.92;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-search {
  position: relative;
}

.nav-search input {
  width: 260px;
  border: 0;
  outline: 0;
  border-radius: 999px;
  padding: 10px 16px 10px 42px;
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.nav-search input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.nav-search svg {
  position: absolute;
  width: 18px;
  height: 18px;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  fill: rgba(255, 255, 255, 0.82);
}

.menu-toggle {
  display: none;
  border: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  width: 42px;
  height: 42px;
  border-radius: 14px;
  font-size: 22px;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  background: rgba(190, 18, 60, 0.96);
  backdrop-filter: blur(16px);
  padding: 16px 0 22px;
}

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

.mobile-panel a {
  display: block;
  color: #fff;
  font-weight: 800;
  padding: 12px 0;
}

.mobile-panel form {
  margin-top: 10px;
}

.mobile-panel input {
  width: 100%;
  border: 0;
  outline: 0;
  border-radius: 16px;
  padding: 13px 16px;
}

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

.hero-slider,
.hero-slide,
.hero-bg,
.hero-bg img,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
}

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

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(1.08) contrast(1.02);
}

.hero-shade {
  background:
    radial-gradient(circle at 78% 18%, rgba(251, 191, 36, 0.24), transparent 34%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.84) 0%, rgba(0, 0, 0, 0.38) 48%, rgba(0, 0, 0, 0.15) 100%),
    linear-gradient(0deg, rgba(17, 24, 39, 0.82) 0%, transparent 40%);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 560px;
  height: 70vh;
  display: flex;
  align-items: center;
  padding-top: 20px;
}

.hero-copy {
  max-width: 650px;
  color: #fff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  font-weight: 800;
  backdrop-filter: blur(10px);
}

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

.hero p {
  max-width: 610px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2vw, 21px);
}

.hero-meta,
.detail-meta,
.card-meta,
.tag-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-meta {
  margin: 18px 0 28px;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 13px;
  font-weight: 800;
  color: #9f1239;
  background: #ffe4e6;
}

.badge.light {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

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

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

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

.btn-primary {
  color: #fff;
  background: linear-gradient(90deg, var(--rose-600), var(--orange-500));
  box-shadow: 0 16px 35px rgba(225, 29, 72, 0.28);
}

.btn-white {
  color: var(--rose-700);
  background: #fff;
  box-shadow: 0 14px 35px rgba(255, 255, 255, 0.22);
}

.btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

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

.hero-arrow,
.hero-dot {
  border: 0;
  cursor: pointer;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

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

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

.hero-dot.is-active {
  width: 34px;
  opacity: 1;
  background: linear-gradient(90deg, var(--rose-600), var(--amber-400));
}

main {
  position: relative;
}

.page-hero {
  padding: 58px 0 34px;
  background:
    radial-gradient(circle at 18% 18%, rgba(225, 29, 72, 0.16), transparent 28%),
    radial-gradient(circle at 86% 8%, rgba(249, 115, 22, 0.16), transparent 30%);
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.section {
  padding: 46px 0;
}

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

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: clamp(25px, 4vw, 36px);
  line-height: 1.15;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.title-bar {
  width: 5px;
  height: 30px;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--rose-600), var(--orange-500));
}

.section-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #fee2e2, #ffedd5);
}

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

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

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

.poster-layer {
  position: absolute;
  inset: auto 0 0;
  padding: 24px 14px 12px;
  color: #fff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent);
}

.poster-layer span {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 900;
  background: rgba(225, 29, 72, 0.92);
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 900;
}

.card-body p {
  min-height: 45px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 172px;
  padding: 24px;
  border-radius: var(--radius);
  color: #fff;
  background: linear-gradient(135deg, var(--rose-600), var(--orange-500));
  box-shadow: 0 20px 45px rgba(225, 29, 72, 0.18);
}

.category-card:nth-child(2n) {
  background: linear-gradient(135deg, #2563eb, #ef4444);
}

.category-card:nth-child(3n) {
  background: linear-gradient(135deg, #db2777, #f59e0b);
}

.category-card:nth-child(4n) {
  background: linear-gradient(135deg, #7c3aed, #ec4899);
}

.category-card::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  right: -46px;
  top: -46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.category-card h2,
.category-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 950;
}

.category-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
}

.category-card strong {
  position: relative;
  z-index: 1;
  display: inline-flex;
  margin-top: 16px;
  font-size: 14px;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 14px;
  padding: 18px;
  margin-bottom: 28px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid #fee2e2;
  outline: 0;
  border-radius: 16px;
  padding: 13px 14px;
  background: #fff7ed;
  color: var(--ink);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 70px 92px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.07);
}

.rank-num {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  color: #fff;
  font-size: 20px;
  font-weight: 950;
  background: linear-gradient(135deg, var(--rose-600), var(--orange-500));
}

.rank-thumb {
  width: 92px;
  height: 62px;
  border-radius: 16px;
  overflow: hidden;
  background: #ffe4e6;
}

.rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-copy h3 {
  margin: 0 0 5px;
  font-size: 18px;
  font-weight: 900;
}

.rank-copy p {
  margin: 0;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.detail-hero {
  padding: 42px 0;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.42)),
    var(--detail-bg, linear-gradient(135deg, #111827, #7f1d1d));
}

.detail-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 34px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
  aspect-ratio: 2 / 3;
  background: #111827;
}

.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

.detail-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.detail-copy p {
  margin: 16px 0 22px;
  max-width: 840px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.player-section {
  padding: 42px 0 20px;
}

.player-frame {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #030712;
  box-shadow: 0 28px 90px rgba(15, 23, 42, 0.25);
  aspect-ratio: 16 / 9;
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  color: #fff;
  background: radial-gradient(circle, rgba(225, 29, 72, 0.26), rgba(0, 0, 0, 0.42));
}

.play-overlay span {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  padding-left: 6px;
  font-size: 36px;
  background: linear-gradient(135deg, var(--rose-600), var(--orange-500));
  box-shadow: 0 18px 50px rgba(225, 29, 72, 0.38);
}

.player-frame.is-playing .play-overlay {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.article-box {
  padding: 28px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
}

.article-box h2 {
  margin: 0 0 12px;
  font-size: 26px;
  font-weight: 950;
}

.article-box p {
  margin: 0 0 16px;
  color: #374151;
}

.article-box p:last-child {
  margin-bottom: 0;
}

.empty-state {
  display: none;
  padding: 34px;
  border-radius: var(--radius);
  text-align: center;
  color: var(--muted);
  background: #fff;
}

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

.site-footer {
  margin-top: 42px;
  padding: 36px 0;
  color: rgba(255, 255, 255, 0.86);
  background: linear-gradient(90deg, #111827, #7f1d1d);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-inner strong {
  color: #fff;
  font-size: 20px;
}

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

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

  .nav-search input {
    width: 210px;
  }
}

@media (max-width: 820px) {
  .nav-links,
  .nav-actions .nav-search {
    display: none;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .hero,
  .hero-content {
    height: 72vh;
    min-height: 570px;
  }

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

  .filter-panel {
    grid-template-columns: 1fr;
  }

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

  .detail-poster {
    max-width: 280px;
  }

  .rank-item {
    grid-template-columns: 48px 76px 1fr;
  }

  .rank-item .btn {
    grid-column: 2 / 4;
  }
}

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

  .logo {
    font-size: 19px;
  }

  .hero,
  .hero-content {
    height: auto;
    min-height: 620px;
  }

  .hero-content {
    padding: 72px 0 110px;
  }

  .hero-controls {
    bottom: 22px;
  }

  .section {
    padding: 34px 0;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

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

  .rank-item {
    grid-template-columns: 42px 1fr;
  }

  .rank-thumb {
    display: none;
  }

  .rank-item .btn {
    grid-column: 1 / 3;
  }

  .article-box {
    padding: 22px;
  }
}
