:root {
  --bg: #f9fafb;
  --card: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --red: #ef4444;
  --red-dark: #dc2626;
  --orange: #f97316;
  --yellow: #facc15;
  --shadow: 0 20px 50px rgba(17, 24, 39, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
}

.nav-wrap {
  max-width: 1240px;
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: #111827;
  white-space: nowrap;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 12px 28px rgba(239, 68, 68, 0.32);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: #4b5563;
  font-weight: 700;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--red-dark);
  background: #fff1f2;
}

.nav-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  background: #f3f4f6;
  border-radius: 999px;
}

.nav-search input,
.big-search input,
.filter-bar input {
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.nav-search input {
  width: 220px;
  padding: 8px 12px;
}

.nav-search button,
.big-search button {
  border: 0;
  cursor: pointer;
  color: #ffffff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--red), var(--orange));
  border-radius: 999px;
  padding: 9px 18px;
  box-shadow: 0 10px 20px rgba(239, 68, 68, 0.18);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 0;
  border-radius: 12px;
  background: #fff1f2;
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--red-dark);
  border-radius: 2px;
}

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #fff1f2 0%, #fff7ed 52%, #fefce8 100%);
  padding: 64px 20px 48px;
}

.hero-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.24;
  animation: pulseGlow 8s ease-in-out infinite;
}

.hero-glow-left {
  left: -140px;
  top: -120px;
  background: var(--red);
}

.hero-glow-right {
  right: -150px;
  bottom: -160px;
  background: var(--orange);
  animation-delay: 2s;
}

@keyframes pulseGlow {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

.hero-inner {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: 42px;
  align-items: center;
  min-height: 520px;
}

.hero-slide.is-active {
  display: grid;
  animation: fadeUp 0.62s ease both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.eyebrow,
.page-hero span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  color: var(--red-dark);
  background: #fee2e2;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
}

.hero-copy h1 {
  margin: 18px 0 18px;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero-copy p {
  max-width: 680px;
  margin: 0;
  color: #4b5563;
  font-size: 18px;
}

.hero-tags,
.detail-tags,
.tag-row,
.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags {
  margin-top: 22px;
}

.hero-tags span,
.detail-tags span,
.tag-row span,
.movie-meta span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(239, 68, 68, 0.12);
  color: #4b5563;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 13px 24px;
  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: #ffffff;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 16px 30px rgba(239, 68, 68, 0.25);
}

.btn-ghost {
  color: var(--red-dark);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(239, 68, 68, 0.18);
}

.hero-cover {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  border-radius: 32px;
  box-shadow: var(--shadow);
  transform: rotate(1deg);
}

.hero-cover img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.hero-cover:hover img {
  transform: scale(1.05);
}

.hero-cover-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.16), transparent);
}

.hero-cover-caption {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 26px;
  color: #ffffff;
}

.hero-cover-caption b {
  display: block;
  font-size: 28px;
  line-height: 1.2;
}

.hero-cover-caption em {
  display: inline-flex;
  margin-top: 8px;
  font-style: normal;
  color: #fecaca;
  font-weight: 800;
}

.hero-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: #fecaca;
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: var(--red);
}

.quick-search-block {
  max-width: 960px;
  margin: -28px auto 0;
  position: relative;
  z-index: 3;
  padding: 0 20px;
}

.big-search {
  display: flex;
  gap: 10px;
  padding: 10px;
  background: #ffffff;
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.big-search input {
  flex: 1;
  padding: 14px 18px;
  min-width: 0;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.quick-links a {
  color: #7f1d1d;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 14px;
  font-weight: 800;
}

.section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 72px 20px;
}

.section-soft {
  max-width: none;
  background: #ffffff;
  padding-left: max(20px, calc((100% - 1240px) / 2 + 20px));
  padding-right: max(20px, calc((100% - 1240px) / 2 + 20px));
}

.section-narrow {
  max-width: 960px;
  margin: 0 auto;
}

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

.section-heading h2,
.detail-text h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.18;
  letter-spacing: -0.02em;
}

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

.section-heading a,
.text-link,
.filter-bar a {
  color: var(--red-dark);
  font-weight: 900;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

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

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

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

.movie-type,
.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  border-radius: 999px;
  padding: 5px 10px;
  color: #ffffff;
  background: rgba(239, 68, 68, 0.92);
  font-size: 12px;
  font-weight: 900;
}

.rank-badge {
  left: auto;
  right: 12px;
  background: rgba(17, 24, 39, 0.82);
}

.movie-card-body {
  padding: 16px;
}

.movie-card h3 {
  min-height: 3em;
  margin: 0 0 8px;
  color: #111827;
  font-size: 17px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card h3 a:hover {
  color: var(--red-dark);
}

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

.movie-meta,
.tag-row {
  gap: 6px;
}

.movie-meta span,
.tag-row span {
  background: #f9fafb;
  border-color: #edf2f7;
  padding: 4px 8px;
}

.tag-row {
  margin-top: 10px;
}

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

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

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

.movie-card-compact {
  display: grid;
  grid-template-columns: 150px 1fr;
  min-height: 210px;
}

.movie-card-compact .movie-poster {
  aspect-ratio: auto;
  height: 100%;
}

.movie-card-compact .movie-card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

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

.category-card {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-radius: 24px;
  color: #ffffff;
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.13);
}

.category-card img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.category-card span {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.22), transparent);
}

.category-card strong,
.category-card em {
  position: absolute;
  left: 18px;
  right: 18px;
}

.category-card strong {
  bottom: 58px;
  font-size: 22px;
}

.category-card em {
  bottom: 18px;
  color: #fef3c7;
  font-style: normal;
  font-size: 13px;
  line-height: 1.4;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 20px;
  background: linear-gradient(135deg, #fff1f2, #fff7ed 58%, #fefce8);
}

.page-hero > div {
  max-width: 960px;
  margin: 0 auto;
}

.page-hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(36px, 6vw, 60px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

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

.filter-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
}

.filter-bar input {
  flex: 1;
  min-width: 0;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 14px 18px;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.05);
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 22px;
  align-items: center;
  padding: 18px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.08);
}

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

.category-collage img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 14px;
}

.category-overview-card h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

.category-overview-card p {
  margin: 0 0 12px;
  color: var(--muted);
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: #111827;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.35;
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(8px);
  transform: scale(1.04);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(17, 24, 39, 0.74), rgba(17, 24, 39, 0.38));
}

.detail-inner {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  padding: 32px 20px 70px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: #fecaca;
  margin-bottom: 30px;
  font-size: 14px;
}

.breadcrumb em {
  color: #ffffff;
  font-style: normal;
}

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

.detail-poster {
  overflow: hidden;
  border-radius: 26px;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.38);
}

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

.detail-copy h1 {
  margin: 16px 0;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.lead {
  max-width: 840px;
  color: #e5e7eb;
  font-size: 19px;
}

.detail-tags {
  margin: 22px 0 30px;
}

.detail-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.18);
}

.detail-section {
  padding-top: 54px;
  padding-bottom: 54px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #000000;
  box-shadow: var(--shadow);
}

.movie-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.play-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.24), rgba(0, 0, 0, 0.38));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-layer span {
  width: 88px;
  height: 88px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 18px 42px rgba(239, 68, 68, 0.35);
  position: relative;
}

.play-layer span::after {
  content: "";
  position: absolute;
  left: 36px;
  top: 28px;
  width: 0;
  height: 0;
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
  border-left: 24px solid #ffffff;
}

.video-shell.is-playing .play-layer {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.detail-text {
  max-width: 920px;
}

.detail-text p {
  color: #374151;
  font-size: 17px;
  margin: 14px 0 28px;
}

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

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand {
  color: #ffffff;
}

.site-footer p {
  margin: 12px 0 0;
  color: #9ca3af;
  max-width: 560px;
}

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

.footer-links a {
  color: #fca5a5;
  font-weight: 800;
}

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

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

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

  .nav-search {
    display: none;
  }
}

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

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .main-nav {
    position: absolute;
    top: 64px;
    left: 14px;
    right: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
  }

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

  .main-nav a {
    border-radius: 12px;
  }

  .hero {
    padding-top: 36px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-cover,
  .hero-cover img {
    min-height: 320px;
    height: 360px;
  }

  .big-search,
  .filter-bar,
  .footer-inner {
    flex-direction: column;
    align-items: stretch;
  }

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

  .movie-card-compact {
    grid-template-columns: 120px 1fr;
    min-height: 180px;
  }

  .category-overview-card,
  .detail-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 540px) {
  .brand span:last-child {
    max-width: 8em;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .hero-copy h1,
  .page-hero h1,
  .detail-copy h1 {
    font-size: 34px;
  }

  .movies-grid,
  .all-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .movie-card-compact {
    grid-template-columns: 110px 1fr;
  }

  .movie-card h3,
  .movie-card p {
    min-height: 0;
  }

  .section,
  .section-soft {
    padding-top: 48px;
    padding-bottom: 48px;
  }
}
