:root {
  --red-700: #b91c1c;
  --red-600: #dc2626;
  --red-500: #ef4444;
  --red-100: #fee2e2;
  --red-50: #fef2f2;
  --orange-500: #f97316;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --card: #ffffff;
  --bg: #fff7f7;
  --shadow: 0 18px 45px rgba(185, 28, 28, 0.10);
  --shadow-strong: 0 24px 60px rgba(17, 24, 39, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input {
  font: inherit;
}

.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.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.85);
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.06);
}

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

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

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--red-600), var(--orange-500));
  box-shadow: 0 12px 24px rgba(220, 38, 38, 0.22);
}

.brand-copy {
  display: grid;
  line-height: 1.1;
}

.brand-copy strong {
  font-size: 22px;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, var(--red-700), var(--red-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-copy small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

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

.nav-link {
  padding: 10px 16px;
  border-radius: 999px;
  color: #374151;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--red-600);
  background: var(--red-50);
  transform: translateY(-1px);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.mobile-nav.is-open {
  display: grid;
  gap: 8px;
}

.mobile-category-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 8px;
}

.mobile-category-row a {
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--red-50);
  color: var(--red-700);
  font-size: 13px;
  font-weight: 700;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 20%, rgba(255, 255, 255, 0.20), transparent 18%),
    radial-gradient(circle at 84% 28%, rgba(255, 255, 255, 0.18), transparent 22%),
    linear-gradient(120deg, var(--red-700), var(--red-600) 58%, var(--red-500));
  color: #ffffff;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  animation: pulseGlow 7s ease-in-out infinite;
}

.hero::before {
  width: 220px;
  height: 220px;
  left: 8%;
  top: 15%;
}

.hero::after {
  width: 320px;
  height: 320px;
  right: 7%;
  bottom: -110px;
  animation-delay: 1.4s;
}

.hero-wrap {
  position: relative;
  z-index: 2;
  padding: 72px 0 78px;
}

.hero-slider {
  position: relative;
}

.hero-slide {
  display: none;
  align-items: center;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.7fr);
  gap: 46px;
  min-height: 510px;
}

.hero-slide.is-active {
  display: grid;
}

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

.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.03;
  letter-spacing: -0.05em;
}

.hero p {
  margin: 0;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(18px, 2.2vw, 24px);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  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) scale(1.02);
}

.btn-light {
  color: var(--red-700);
  background: #ffffff;
  box-shadow: 0 18px 35px rgba(17, 24, 39, 0.16);
}

.btn-red {
  color: #ffffff;
  background: rgba(127, 29, 29, 0.64);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

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

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

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

.hero-media-card {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 2;
  padding: 20px;
  border-radius: 24px;
  background: rgba(17, 24, 39, 0.62);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-media-card strong {
  display: block;
  font-size: 24px;
  line-height: 1.25;
}

.hero-media-card span {
  display: inline-flex;
  margin-top: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--red-600);
  font-size: 13px;
  font-weight: 800;
}

.hero-dots {
  position: absolute;
  left: 0;
  bottom: 8px;
  z-index: 3;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 42px;
  height: 5px;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
}

.hero-dot.is-active {
  background: #ffffff;
}

.section {
  padding: 68px 0;
}

.section-soft {
  background: linear-gradient(180deg, #ffffff, var(--red-50));
}

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

.section-title h1,
.section-title h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section-title p {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 700px;
}

.link-more {
  color: var(--red-600);
  font-weight: 900;
}

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

.stat-card,
.category-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow);
  border: 1px solid rgba(229, 231, 235, 0.82);
}

.stat-card strong {
  display: block;
  font-size: 30px;
  color: var(--red-600);
}

.stat-card span,
.category-card p {
  color: var(--muted);
}

.category-card {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 50px rgba(185, 28, 28, 0.16);
}

.category-card em {
  font-style: normal;
  font-size: 34px;
}

.category-card h2,
.category-card h3 {
  margin: 12px 0 8px;
  font-size: 22px;
}

.category-card span {
  display: inline-flex;
  width: max-content;
  margin-top: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--red-600), var(--orange-500));
  font-size: 13px;
  font-weight: 900;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 26px;
  background: #ffffff;
  border: 1px solid rgba(229, 231, 235, 0.86);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #7f1d1d, #ef4444);
}

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

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

.poster-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(0, 0, 0, 0.66));
}

.play-chip {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: var(--red-600);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
}

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

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--red-700);
  font-size: 12px;
  font-weight: 900;
}

.movie-meta-line span {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--red-50);
}

.movie-card h2,
.movie-card h3 {
  margin: 12px 0 8px;
  font-size: 20px;
  line-height: 1.25;
}

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

.movie-card p {
  min-height: 64px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.tag-row span {
  padding: 5px 8px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #4b5563;
  font-size: 12px;
}

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

.featured-card {
  position: relative;
  min-height: 310px;
  overflow: hidden;
  border-radius: 30px;
  color: #ffffff;
  box-shadow: var(--shadow-strong);
}

.featured-card img {
  width: 100%;
  height: 100%;
  min-height: 310px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.featured-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.10), rgba(0, 0, 0, 0.82));
}

.featured-card-copy {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 2;
}

.featured-card-copy h2 {
  margin: 10px 0;
  font-size: 26px;
}

.featured-card-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge-row span {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(220, 38, 38, 0.92);
  font-size: 13px;
  font-weight: 900;
}

.search-panel {
  margin: 0 0 28px;
  padding: 18px;
  border-radius: 28px;
  background: #ffffff;
  border: 1px solid rgba(229, 231, 235, 0.86);
  box-shadow: var(--shadow);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 18px;
  background: #f9fafb;
  border: 1px solid var(--line);
}

.search-box span {
  color: var(--red-600);
  font-size: 22px;
  font-weight: 900;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.filter-chip {
  border: 0;
  border-radius: 999px;
  padding: 8px 13px;
  color: #4b5563;
  background: #f3f4f6;
  cursor: pointer;
  font-weight: 800;
}

.filter-chip.active,
.filter-chip:hover {
  color: #ffffff;
  background: var(--red-600);
}

.page-hero {
  padding: 58px 0 42px;
  background:
    radial-gradient(circle at 12% 20%, rgba(239, 68, 68, 0.13), transparent 18%),
    linear-gradient(180deg, #fff7f7, #ffffff);
}

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

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 70px 120px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(229, 231, 235, 0.86);
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.06);
}

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

.rank-item img {
  width: 120px;
  height: 78px;
  border-radius: 16px;
  object-fit: cover;
}

.rank-item h2,
.rank-item h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.rank-item p {
  margin: 0;
  color: var(--muted);
}

.rank-score {
  display: grid;
  gap: 4px;
  text-align: right;
  color: var(--muted);
  font-size: 13px;
  min-width: 92px;
}

.rank-score strong {
  color: var(--red-600);
  font-size: 22px;
}

.detail-hero {
  padding: 44px 0 38px;
  color: #ffffff;
  background:
    linear-gradient(120deg, rgba(127, 29, 29, 0.92), rgba(220, 38, 38, 0.86)),
    linear-gradient(135deg, var(--red-700), var(--red-500));
}

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

.detail-cover {
  overflow: hidden;
  border-radius: 30px;
  box-shadow: var(--shadow-strong);
}

.detail-cover img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.detail-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.detail-copy p {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

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

.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-weight: 800;
}

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

.content-card,
.sidebar-card {
  border-radius: 28px;
  background: #ffffff;
  border: 1px solid rgba(229, 231, 235, 0.88);
  box-shadow: var(--shadow);
}

.content-card {
  padding: 28px;
}

.content-card h2,
.sidebar-card h2 {
  margin: 0 0 16px;
  font-size: 26px;
}

.content-card p {
  margin: 0 0 18px;
  color: #374151;
}

.player-wrap {
  position: relative;
  overflow: hidden;
  margin-bottom: 26px;
  border-radius: 30px;
  background: #111827;
  box-shadow: var(--shadow-strong);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.66));
}

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

.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.player-button {
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: var(--red-600);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  font-size: 30px;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: #f9fafb;
  transition: background 0.2s ease, transform 0.2s ease;
}

.compact-card:hover {
  background: var(--red-50);
  transform: translateY(-2px);
}

.compact-card img {
  width: 92px;
  height: 62px;
  border-radius: 14px;
  object-fit: cover;
}

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

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

.compact-card em {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.sidebar-card {
  padding: 20px;
}

.side-list {
  display: grid;
  gap: 10px;
}

.site-footer {
  margin-top: 72px;
  color: #d1d5db;
  background: #111827;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding: 48px 0;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 22px;
}

.footer-brand span {
  color: var(--red-500);
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 18px;
}

.site-footer p {
  max-width: 520px;
  margin: 14px 0 0;
}

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

.footer-links a {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.2s ease;
}

.footer-links a:hover {
  background: var(--red-600);
}

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

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

@keyframes pulseGlow {
  0%, 100% {
    transform: scale(1);
    opacity: 0.72;
  }
  50% {
    transform: scale(1.12);
    opacity: 0.36;
  }
}

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

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

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

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

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

  .hero-wrap {
    padding: 48px 0 66px;
  }

  .hero-media {
    min-height: 320px;
  }

  .hero-media img {
    min-height: 320px;
  }

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

  .section-title {
    display: block;
  }

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

  .rank-score {
    grid-column: 3;
    text-align: left;
  }
}

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

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

  .brand-copy small {
    display: none;
  }

  .movie-grid,
  .stats-grid,
  .category-grid,
  .featured-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .hero h1,
  .page-hero h1,
  .detail-copy h1 {
    letter-spacing: -0.02em;
  }

  .hero-actions {
    display: grid;
  }

  .detail-cover {
    max-width: 100%;
  }

  .content-card {
    padding: 20px;
  }

  .rank-item {
    grid-template-columns: 44px 86px 1fr;
    gap: 12px;
  }

  .rank-item img {
    width: 86px;
    height: 62px;
  }

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