:root {
  --bg: #fff7f4;
  --panel: #ffffff;
  --panel-soft: #fff0ec;
  --text: #1f1f23;
  --muted: #6f6b76;
  --line: rgba(127, 29, 29, 0.12);
  --red: #dc2626;
  --red-dark: #991b1b;
  --orange: #f97316;
  --gold: #f59e0b;
  --shadow: 0 24px 70px rgba(127, 29, 29, 0.16);
  --radius: 28px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(248, 113, 113, 0.18), transparent 32rem),
    linear-gradient(180deg, #fff7f4 0%, #ffffff 38%, #fff7f4 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

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

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

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

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

.brand-text strong {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--red-dark), var(--red), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.nav-link {
  padding: 9px 13px;
  border-radius: 999px;
  color: #554b4b;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  background: #fee2e2;
  color: var(--red-dark);
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: #fff1f1;
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: var(--red-dark);
}

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

.mobile-nav a {
  display: block;
  padding: 12px 16px;
  border-radius: 16px;
  color: #554b4b;
  font-weight: 800;
}

.mobile-nav a:hover {
  background: #fee2e2;
  color: var(--red-dark);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 44px;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.34), transparent 22rem),
    linear-gradient(135deg, #7f1d1d 0%, #dc2626 47%, #f97316 100%);
  color: #ffffff;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -25% -10%;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(255, 247, 244, 0.96));
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 28px;
  align-items: stretch;
}

.hero-stage {
  position: relative;
  min-height: 520px;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.28);
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: end;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.55s ease, transform 0.55s ease;
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0.18)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.82), transparent 58%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: 46px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffe7df;
  font-size: 13px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.hero h1,
.hero h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.hero p {
  max-width: 660px;
  margin: 18px 0 0;
  color: #ffe7df;
  font-size: 18px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  color: var(--red);
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 16px 38px rgba(127, 29, 29, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 22px 48px rgba(127, 29, 29, 0.28);
}

.btn.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  backdrop-filter: blur(12px);
}

.hero-side {
  display: grid;
  gap: 18px;
}

.hero-search-card,
.hero-picks {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-search-card {
  padding: 26px;
}

.hero-search-card h2 {
  font-size: 30px;
}

.search-shell {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(127, 29, 29, 0.16);
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 12px;
  color: var(--text);
  background: transparent;
}

.search-box button {
  min-width: 88px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  color: #ffffff;
  font-weight: 900;
  cursor: pointer;
}

.hero-chip-row,
.filter-row,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-chip-row a,
.filter-chip,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid rgba(220, 38, 38, 0.14);
  border-radius: 999px;
  background: #fff3f0;
  color: var(--red-dark);
  font-size: 12px;
  font-weight: 800;
}

.hero-chip-row a {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.hero-picks {
  padding: 20px;
}

.hero-picks h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.hero-mini-list {
  display: grid;
  gap: 12px;
}

.hero-mini {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 13px;
  align-items: center;
  padding: 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.14);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-mini:hover {
  background: rgba(255, 255, 255, 0.23);
  transform: translateX(3px);
}

.hero-mini img {
  width: 78px;
  height: 98px;
  border-radius: 16px;
  object-fit: cover;
}

.hero-mini strong,
.hero-mini em {
  display: block;
}

.hero-mini strong {
  font-size: 16px;
  line-height: 1.35;
}

.hero-mini em {
  margin-top: 6px;
  color: #ffe7df;
  font-size: 13px;
  font-style: normal;
}

.hero-dots {
  position: absolute;
  z-index: 4;
  right: 28px;
  bottom: 28px;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.46);
  cursor: pointer;
}

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

.section {
  padding: 58px 0;
}

.section-tight {
  padding: 36px 0;
}

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

.section-head h2,
.page-title h1,
.detail-title h1 {
  margin: 0;
  color: #231b1b;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.section-head p,
.page-title p,
.detail-title p {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--muted);
}

.more-link {
  min-width: max-content;
  color: var(--red);
  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;
  min-height: 150px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: linear-gradient(135deg, #ffffff, #fff0ec);
  box-shadow: 0 20px 52px rgba(127, 29, 29, 0.1);
}

.stat-card strong,
.category-card strong {
  display: block;
  color: var(--red-dark);
  font-size: 28px;
  line-height: 1.15;
}

.stat-card span,
.category-card span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
}

.category-card::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -28px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(220, 38, 38, 0.1);
}

.category-card:hover {
  transform: translateY(-3px);
  border-color: rgba(220, 38, 38, 0.32);
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: 0 20px 50px rgba(127, 29, 29, 0.09);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(220, 38, 38, 0.34);
  box-shadow: 0 26px 58px rgba(127, 29, 29, 0.15);
}

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

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

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

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

.poster-play {
  position: absolute;
  z-index: 2;
  right: 14px;
  bottom: 14px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--red);
  font-size: 17px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
}

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

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.movie-meta span + span::before {
  content: "·";
  margin-right: 7px;
  color: #d6a2a2;
}

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

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

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

.page-hero {
  padding: 48px 0 30px;
  background:
    radial-gradient(circle at 80% 20%, rgba(249, 115, 22, 0.18), transparent 24rem),
    linear-gradient(180deg, #fff7f4 0%, #ffffff 100%);
}

.page-title {
  display: grid;
  gap: 16px;
}

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

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

.toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-top: 24px;
}

.toolbar .search-box {
  border: 1px solid var(--line);
}

.filter-row {
  justify-content: flex-end;
}

.filter-chip {
  cursor: pointer;
}

.filter-chip.is-active,
.filter-chip:hover {
  border-color: rgba(220, 38, 38, 0.3);
  background: linear-gradient(135deg, var(--red), var(--orange));
  color: #ffffff;
}

.ranking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}

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

.ranking-item,
.compact-item {
  display: grid;
  grid-template-columns: 54px 76px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 16px 42px rgba(127, 29, 29, 0.08);
}

.compact-item {
  grid-template-columns: 44px 62px 1fr;
}

.ranking-item:hover,
.compact-item:hover {
  border-color: rgba(220, 38, 38, 0.32);
  transform: translateY(-2px);
}

.rank-no {
  display: grid;
  min-width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 16px;
  background: #fee2e2;
  color: var(--red-dark);
  font-weight: 900;
}

.ranking-item:nth-child(1) .rank-no,
.ranking-item:nth-child(2) .rank-no,
.ranking-item:nth-child(3) .rank-no {
  background: linear-gradient(135deg, var(--red), var(--orange));
  color: #ffffff;
}

.ranking-item img,
.compact-item img {
  width: 76px;
  height: 98px;
  border-radius: 14px;
  object-fit: cover;
}

.compact-item img {
  width: 62px;
  height: 78px;
}

.ranking-info strong,
.compact-item strong {
  display: block;
  color: #231b1b;
  font-size: 18px;
  line-height: 1.35;
}

.compact-item strong {
  font-size: 15px;
}

.ranking-info p {
  margin: 6px 0 0;
  color: var(--muted);
}

.ranking-info em,
.compact-item em {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.side-panel {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 20px 50px rgba(127, 29, 29, 0.1);
}

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

.detail-hero {
  padding: 38px 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(220, 38, 38, 0.2), transparent 20rem),
    linear-gradient(180deg, #fff7f4, #ffffff);
}

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

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(135deg, #7f1d1d, #f97316);
  box-shadow: var(--shadow);
}

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

.detail-title {
  display: grid;
  gap: 16px;
}

.detail-title .tag-row span {
  background: #ffffff;
}

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

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  background: #fee2e2;
  color: var(--red-dark);
  font-weight: 800;
}

.player-section {
  padding: 28px 0 52px;
}

.player-wrap {
  overflow: hidden;
  border-radius: 28px;
  background: #111111;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.24);
}

.video-box {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.movie-video {
  display: block;
  width: 100%;
  height: 100%;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  background: rgba(0, 0, 0, 0.26);
  color: #ffffff;
  cursor: pointer;
}

.player-cover.is-hidden {
  display: none;
}

.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(220, 38, 38, 0.28), transparent 18rem),
    linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.72));
}

.player-face {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  gap: 14px;
  text-align: center;
}

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

.player-face strong {
  font-size: clamp(22px, 4vw, 42px);
  line-height: 1.2;
}

.player-copy {
  padding: 24px;
  background: #171717;
  color: #ffffff;
}

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

.player-copy p {
  margin: 0;
  color: #d6d3d1;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}

.article-panel {
  display: grid;
  gap: 22px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 18px 46px rgba(127, 29, 29, 0.08);
}

.article-panel h2 {
  margin: 0;
  color: #231b1b;
  font-size: 28px;
}

.article-panel p {
  margin: 0;
  color: #4d4545;
  font-size: 17px;
}

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

.site-footer {
  margin-top: 32px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-inner p {
  margin: 6px 0 0;
  color: var(--muted);
}

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

.footer-links a {
  color: var(--red);
  font-weight: 800;
}

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

@media (max-width: 1100px) {
  .hero-grid,
  .ranking-layout,
  .content-layout {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    min-height: 460px;
  }

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

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

  .side-panel {
    position: static;
  }
}

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

  .mobile-toggle {
    display: block;
  }

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

  .hero {
    padding-top: 30px;
  }

  .hero-stage {
    min-height: 430px;
  }

  .hero-content {
    padding: 28px;
  }

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

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

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

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

  .filter-row {
    justify-content: flex-start;
  }

  .ranking-item {
    grid-template-columns: 44px 66px 1fr;
  }

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

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

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

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

  .brand-text em {
    display: none;
  }

  .hero-stage {
    min-height: 420px;
    border-radius: 22px;
  }

  .hero-content {
    padding: 22px;
  }

  .hero-actions,
  .section-head,
  .footer-inner {
    align-items: stretch;
    flex-direction: column;
  }

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

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

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

  .movie-card p {
    min-height: 0;
    font-size: 13px;
  }

  .tag-row {
    display: none;
  }

  .article-panel,
  .player-copy {
    padding: 20px;
  }

  .ranking-item,
  .compact-item {
    border-radius: 18px;
  }
}
