:root {
  --red: #dc2626;
  --red-dark: #991b1b;
  --orange: #f97316;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #f8fafc;
  --white: #ffffff;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #fff 0%, #fff7f7 42%, #f8fafc 100%);
  -webkit-font-smoothing: antialiased;
}

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

img {
  display: block;
  width: 100%;
  height: auto;
}

img.is-missing {
  opacity: 0;
}

button,
input {
  font: inherit;
}

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

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

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--orange));
  border-radius: 14px;
  box-shadow: 0 12px 25px rgba(220, 38, 38, 0.25);
}

.brand-text {
  display: grid;
  gap: 1px;
}

.brand-text strong {
  font-size: 22px;
  line-height: 1.05;
  background: linear-gradient(135deg, var(--red), #ef4444);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text em {
  font-size: 12px;
  color: var(--muted);
  font-style: normal;
}

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

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

.nav-links a:hover,
.mobile-panel a:hover {
  color: var(--red);
}

.nav-search {
  padding: 10px 18px;
  color: var(--red);
  background: #fef2f2;
  border-radius: 999px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: #f3f4f6;
  border-radius: 12px;
}

.menu-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  margin: 4px auto;
  background: #111827;
  border-radius: 2px;
}

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

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

.hero {
  position: relative;
  min-height: 690px;
  overflow: hidden;
  background: radial-gradient(circle at 20% 20%, #f97316 0%, transparent 32%), linear-gradient(135deg, #b91c1c 0%, #ef4444 48%, #f97316 100%);
}

.hero-bg-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.3), transparent 30%), radial-gradient(circle at 20% 90%, rgba(255, 255, 255, 0.16), transparent 30%);
  pointer-events: none;
}

.hero-slides,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  transition: opacity 0.7s ease;
}

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

.hero-slide > img {
  position: absolute;
  inset: auto 8% 5% auto;
  width: min(390px, 38vw);
  height: min(520px, 58vw);
  object-fit: cover;
  border-radius: 34px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.34);
  transform: rotate(4deg);
  background: linear-gradient(135deg, #7f1d1d, #fb923c);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(127, 29, 29, 0.72) 0%, rgba(185, 28, 28, 0.58) 52%, rgba(249, 115, 22, 0.36) 100%);
}

.hero-content {
  position: relative;
  min-height: 690px;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 690px;
  color: #fff;
  padding-top: 20px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--red);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .eyebrow,
.detail-hero .eyebrow,
.page-hero .eyebrow {
  color: #fee2e2;
}

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

.hero h2 {
  margin: 24px 0 0;
  font-size: clamp(25px, 3vw, 42px);
  line-height: 1.15;
}

.hero-text {
  max-width: 620px;
  margin: 18px 0 0;
  font-size: clamp(17px, 2vw, 22px);
  color: #ffe4e6;
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.hero-tags span {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.26);
}

.tag-row span {
  color: #b91c1c;
  background: #fef2f2;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
  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);
  background: #fff;
  box-shadow: 0 16px 30px rgba(255, 255, 255, 0.22);
}

.btn-dark {
  color: #fff;
  background: rgba(127, 29, 29, 0.86);
  box-shadow: 0 16px 30px rgba(127, 29, 29, 0.24);
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 38px;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 3;
}

.hero-dots button {
  width: 34px;
  height: 8px;
  border: 0;
  background: rgba(255, 255, 255, 0.42);
  border-radius: 99px;
  cursor: pointer;
}

.hero-dots button.is-active {
  width: 56px;
  background: #fff;
}

.metric-strip {
  margin-top: -54px;
  position: relative;
  z-index: 4;
}

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

.metric-grid div {
  padding: 28px;
  text-align: center;
  background: #fff;
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.metric-grid strong {
  display: block;
  color: var(--red);
  font-size: 36px;
  line-height: 1;
}

.metric-grid span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
}

.section-block {
  padding: 76px 0;
}

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

.section-head h2,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.section-head p:not(.eyebrow),
.page-hero p:not(.eyebrow) {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.section-more {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 18px;
  color: var(--red);
  background: #fff;
  border: 1px solid #fecaca;
  border-radius: 999px;
  font-weight: 800;
}

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

.movie-grid.dense {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}

.movie-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(229, 231, 235, 0.92);
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 26px 48px rgba(15, 23, 42, 0.14);
}

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

.poster-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.32), transparent 26%), linear-gradient(135deg, #991b1b, #fb923c);
}

.poster-link img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

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

.poster-play {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: #fff;
  background: rgba(220, 38, 38, 0.92);
  border-radius: 50%;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.card-body {
  padding: 18px;
}

.card-meta {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

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

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

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

.movie-card.compact .card-body {
  padding: 14px;
}

.movie-card.compact h3 {
  font-size: 16px;
}

.movie-card.compact p {
  display: none;
}

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

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

.category-card {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  padding: 22px;
  color: #fff;
  background: linear-gradient(135deg, #991b1b, #f97316);
  border-radius: 26px;
  box-shadow: var(--shadow);
}

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

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

.category-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(127, 29, 29, 0.1), rgba(127, 29, 29, 0.86));
}

.category-name,
.category-desc {
  position: relative;
  z-index: 1;
  display: block;
}

.category-name {
  margin-top: 70px;
  font-size: 24px;
  font-weight: 900;
}

.category-desc {
  margin-top: 8px;
  color: #fee2e2;
  font-size: 14px;
  line-height: 1.55;
}

.rank-section,
.category-section {
  background: #fff;
}

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

.rank-item,
.wide-rank-item {
  display: grid;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item {
  grid-template-columns: 40px 70px 1fr;
  gap: 14px;
  padding: 12px;
}

.rank-item:hover,
.wide-rank-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.rank-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  font-weight: 900;
  font-size: 20px;
}

.rank-item img,
.wide-rank-item img {
  width: 70px;
  height: 92px;
  object-fit: cover;
  border-radius: 14px;
  background: linear-gradient(135deg, #991b1b, #f97316);
}

.rank-copy strong,
.wide-rank-item strong {
  display: block;
  font-size: 16px;
  line-height: 1.35;
}

.rank-copy em,
.wide-rank-item em {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  line-height: 1.4;
}

.page-hero {
  color: #fff;
  background: radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.3), transparent 28%), linear-gradient(135deg, #991b1b, #ef4444 58%, #f97316);
}

.small-hero {
  padding: 92px 0 72px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.filter-bar button {
  min-height: 38px;
  padding: 0 16px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  cursor: pointer;
}

.filter-bar button.is-active,
.filter-bar button:hover {
  color: var(--red);
  background: #fff;
}

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

.wide-rank-item {
  grid-template-columns: 52px 72px 1fr;
  gap: 18px;
  padding: 14px 18px;
}

.search-box {
  display: flex;
  max-width: 720px;
  margin-top: 28px;
  padding: 8px;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 24px 45px rgba(127, 29, 29, 0.18);
}

.search-box input {
  flex: 1;
  min-width: 0;
  padding: 0 20px;
  color: #111827;
  border: 0;
  outline: 0;
  background: transparent;
}

.search-box button {
  min-height: 48px;
  padding: 0 24px;
  color: #fff;
  background: var(--red);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  color: #fff;
  background: linear-gradient(135deg, #111827, #991b1b 55%, #f97316);
}

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

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  filter: blur(10px) saturate(1.2);
  transform: scale(1.06);
}

.detail-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.9), rgba(127, 29, 29, 0.58));
}

.detail-head {
  position: relative;
  z-index: 1;
  padding: 42px 0 80px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
  color: #fecaca;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #fff;
}

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

.detail-poster {
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.35);
  background: linear-gradient(135deg, #991b1b, #f97316);
}

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

.detail-copy h1 {
  max-width: 820px;
  font-size: clamp(38px, 6vw, 68px);
}

.detail-one-line {
  max-width: 830px;
  margin: 18px 0 0;
  color: #fee2e2;
  font-size: 21px;
  line-height: 1.65;
}

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

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

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

.detail-tags span {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.detail-copy .btn {
  margin-top: 30px;
}

.player-section {
  background: #fff;
}

.video-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #020617;
  border-radius: 30px;
  box-shadow: 0 36px 80px rgba(15, 23, 42, 0.28);
}

.movie-video {
  width: 100%;
  height: 100%;
  background: #020617;
}

.play-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: #fff;
  background: radial-gradient(circle at 50% 35%, rgba(220, 38, 38, 0.58), transparent 28%), rgba(2, 6, 23, 0.42);
  border: 0;
  cursor: pointer;
}

.play-cover span {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  padding-left: 6px;
  color: var(--red);
  background: #fff;
  border-radius: 50%;
  font-size: 34px;
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.35);
}

.play-cover strong {
  max-width: 90%;
  font-size: clamp(18px, 3vw, 32px);
  line-height: 1.3;
}

.video-shell.is-playing .play-cover {
  display: none;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
}

.text-panel,
.side-panel {
  padding: 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.text-panel h2,
.side-panel h2 {
  margin: 0 0 16px;
  font-size: 24px;
}

.text-panel p {
  margin: 0 0 24px;
  color: #374151;
  font-size: 17px;
  line-height: 1.9;
}

.text-panel p:last-child {
  margin-bottom: 0;
}

.side-panel dl {
  display: grid;
  gap: 13px;
  margin: 0;
}

.side-panel dt {
  color: var(--muted);
  font-size: 13px;
}

.side-panel dd {
  margin: -8px 0 0;
  color: #111827;
  font-weight: 800;
}

.site-footer {
  padding: 56px 0;
  color: #d1d5db;
  background: #111827;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 34px;
}

.footer-brand {
  color: #fff;
  margin-bottom: 16px;
}

.site-footer p {
  margin: 0;
  color: #9ca3af;
  line-height: 1.75;
}

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

.site-footer a {
  display: block;
  margin: 9px 0;
  color: #d1d5db;
}

.site-footer a:hover {
  color: #fff;
}

[data-filter-item].is-hidden {
  display: none;
}

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

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

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

  .menu-toggle {
    display: block;
  }

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

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

  .hero-slide > img {
    width: 220px;
    height: 300px;
    inset: auto 24px 90px auto;
    opacity: 0.62;
  }

  .hero-copy {
    padding-top: 0;
  }

  .metric-grid,
  .movie-grid,
  .movie-grid.dense,
  .category-grid,
  .category-grid.large,
  .rank-grid,
  .footer-grid,
  .detail-layout,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .metric-strip {
    margin-top: -26px;
  }

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

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

  .search-box {
    border-radius: 26px;
    flex-direction: column;
    gap: 8px;
  }

  .search-box input {
    min-height: 48px;
  }
}

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

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

  .hero {
    min-height: 760px;
  }

  .hero-content {
    min-height: 760px;
  }

  .hero-actions,
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .btn,
  .filter-bar button {
    width: 100%;
  }

  .section-block {
    padding: 52px 0;
  }

  .wide-rank-item,
  .rank-item {
    grid-template-columns: 38px 58px 1fr;
    gap: 12px;
  }

  .rank-item img,
  .wide-rank-item img {
    width: 58px;
    height: 78px;
  }
}
