* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #111827;
  background: #f9fafb;
}

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

img {
  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: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(16px);
}

.nav-shell {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  color: #fff;
  font-size: 23px;
  font-weight: 800;
  background: linear-gradient(135deg, #dc2626, #f97316);
  box-shadow: 0 10px 20px rgba(220, 38, 38, 0.25);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 21px;
  color: #111827;
}

.brand-text small {
  margin-top: 5px;
  color: #6b7280;
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 13px;
  border-radius: 11px;
  color: #374151;
  font-size: 14px;
  font-weight: 700;
  transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: #dc2626;
  box-shadow: 0 8px 18px rgba(220, 38, 38, 0.22);
}

.search-badge,
.menu-button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #4b5563;
  background: #f3f4f6;
  cursor: pointer;
  font-size: 24px;
  transition: 0.2s ease;
}

.search-badge:hover,
.menu-button:hover {
  color: #dc2626;
  background: #fee2e2;
}

.menu-button {
  display: none;
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
  border-top: 1px solid #e5e7eb;
}

.mobile-nav.open {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: linear-gradient(135deg, #7f1d1d 0%, #9a3412 48%, #b45309 100%);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.55s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(251, 191, 36, 0.28), transparent 30%), linear-gradient(135deg, #7f1d1d, #c2410c);
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
  filter: saturate(1.08) contrast(1.08);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.2)), radial-gradient(circle at 75% 25%, rgba(255, 255, 255, 0.18), transparent 26%);
}

.hero-inner {
  min-height: 620px;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 340px;
  align-items: center;
  gap: 56px;
  z-index: 2;
}

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

.hero-kicker,
.page-hero span,
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  background: rgba(220, 38, 38, 0.94);
}

.hero h1 {
  margin: 18px 0 18px;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero h1 em {
  color: #fcd34d;
  font-style: normal;
}

.hero p {
  max-width: 680px;
  color: #f3f4f6;
  font-size: 20px;
  line-height: 1.8;
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #92400e;
  font-size: 12px;
  font-weight: 800;
  background: #fffbeb;
}

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

.btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 13px;
  font-weight: 900;
  transition: 0.22s ease;
}

.btn.primary {
  color: #7f1d1d;
  background: #fff;
  box-shadow: 0 16px 36px rgba(255, 255, 255, 0.24);
}

.btn.primary:hover {
  transform: translateY(-2px);
  background: #fef3c7;
}

.btn.ghost {
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.86);
}

.btn.ghost:hover,
.btn.text:hover {
  color: #7f1d1d;
  background: #fff;
}

.btn.text {
  color: #fff;
}

.hero-poster {
  display: block;
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 26px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.28), rgba(248, 113, 113, 0.28));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
  transform: rotate(2deg);
}

.hero-poster::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 20px;
  z-index: 2;
}

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

.hero-controls {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.38);
  backdrop-filter: blur(10px);
}

.hero-controls button {
  border: 0;
  cursor: pointer;
}

.hero-controls > button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  font-size: 26px;
  line-height: 1;
}

.hero-dots {
  display: inline-flex;
  gap: 8px;
}

.hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.42);
}

.hero-dot.active {
  width: 28px;
  border-radius: 999px;
  background: #fcd34d;
}

.section {
  padding: 70px 0;
}

.section-white {
  background: #fff;
}

.section-head,
.category-row-head,
.rank-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.section-head.compact {
  margin-bottom: 20px;
}

.section-head h2,
.category-row h2,
.rank-head h2,
.detail-article h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 3vw, 36px);
  color: #111827;
  letter-spacing: -0.03em;
}

.section-head p,
.category-row p,
.page-hero p,
.detail-article p {
  margin: 0;
  color: #6b7280;
  line-height: 1.8;
}

.section-link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 14px;
  border-radius: 12px;
  color: #dc2626;
  background: #fee2e2;
  font-weight: 900;
  white-space: nowrap;
}

.section-link:hover {
  color: #fff;
  background: #dc2626;
}

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

.feature-card {
  position: relative;
  min-height: 440px;
  display: block;
  overflow: hidden;
  border-radius: 26px;
  background: #111827;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.22);
  transition: 0.24s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 32px 64px rgba(15, 23, 42, 0.28);
}

.feature-poster {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #991b1b, #f97316);
}

.feature-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.88;
  transition: 0.5s ease;
}

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

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

.feature-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: grid;
  gap: 10px;
  padding: 26px;
  color: #fff;
}

.feature-content strong {
  font-size: 24px;
}

.feature-content span:not(.pill),
.feature-content small {
  color: #e5e7eb;
  line-height: 1.55;
}

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

.category-tile {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  padding: 22px;
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  color: #fff;
  background: linear-gradient(135deg, #991b1b, #ea580c);
  box-shadow: 0 18px 38px rgba(153, 27, 27, 0.18);
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.62));
}

.category-stack {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  opacity: 0.55;
}

.category-stack img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-tile strong,
.category-tile small {
  position: relative;
  z-index: 2;
}

.category-tile strong {
  font-size: 23px;
}

.category-tile small {
  color: #f3f4f6;
  line-height: 1.6;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 34px;
  align-items: start;
}

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

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

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

.movie-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
  transition: 0.22s ease;
}

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

.poster-frame {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: radial-gradient(circle at 30% 20%, rgba(252, 211, 77, 0.38), transparent 28%), linear-gradient(135deg, #991b1b, #ea580c);
}

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

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

.poster-frame em {
  position: absolute;
  left: 12px;
  top: 12px;
  min-height: 27px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  background: rgba(220, 38, 38, 0.92);
}

.card-body {
  min-height: 196px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
}

.card-body strong {
  color: #111827;
  font-size: 17px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-body small {
  color: #9ca3af;
  font-size: 12px;
  font-weight: 800;
}

.card-desc {
  color: #6b7280;
  font-size: 13px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rank-panel {
  position: sticky;
  top: 92px;
  padding: 24px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.1);
}

.rank-head {
  margin-bottom: 16px;
}

.rank-head a {
  color: #dc2626;
  font-weight: 900;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 36px 54px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: #f9fafb;
  transition: 0.2s ease;
}

.rank-item:hover {
  background: #fee2e2;
}

.rank-no {
  color: #dc2626;
  font-size: 18px;
  font-weight: 1000;
  text-align: center;
}

.rank-thumb {
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(135deg, #991b1b, #ea580c);
}

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

.rank-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.rank-copy strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-copy small {
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-hero,
.detail-head {
  position: relative;
  padding: 80px 0;
  color: #fff;
  background: radial-gradient(circle at 75% 20%, rgba(252, 211, 77, 0.26), transparent 28%), linear-gradient(135deg, #7f1d1d, #c2410c 62%, #92400e);
  overflow: hidden;
}

.page-hero::after,
.detail-head::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(0, 0, 0, 0.18), transparent);
}

.page-hero .container,
.detail-head .container {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  max-width: 780px;
  margin: 18px 0 14px;
  font-size: clamp(36px, 6vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.page-hero p {
  max-width: 760px;
  color: #f3f4f6;
  font-size: 18px;
}

.category-overview {
  display: grid;
  gap: 28px;
}

.category-row {
  padding: 24px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 200px;
  gap: 14px;
  padding: 18px;
  margin-bottom: 28px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: #6b7280;
  font-size: 13px;
  font-weight: 900;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 0 14px;
  color: #111827;
  background: #f9fafb;
  font: inherit;
  outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: #f97316;
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.podium-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 46px;
}

.podium-card {
  min-height: 390px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 24px;
  border-radius: 26px;
  color: #fff;
  background: #111827;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
}

.podium-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
}

.podium-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, 0.86));
}

.podium-card strong,
.podium-card small,
.podium-num {
  position: relative;
  z-index: 2;
}

.podium-card strong {
  font-size: 24px;
}

.podium-card small {
  color: #e5e7eb;
}

.podium-num {
  width: max-content;
  padding: 7px 11px;
  border-radius: 999px;
  color: #7f1d1d;
  background: #fcd34d;
  font-weight: 1000;
}

.detail-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.crumb a:hover {
  color: #fcd34d;
}

.detail-poster {
  aspect-ratio: 3 / 4;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.26), rgba(248, 113, 113, 0.26));
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.36);
}

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

.detail-copy h1 {
  margin: 18px 0 16px;
  font-size: clamp(36px, 6vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.lead {
  margin: 0 0 18px;
  color: #f3f4f6;
  font-size: 19px;
  line-height: 1.75;
}

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

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  font-size: 13px;
  font-weight: 800;
}

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

.player-card {
  padding: 16px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 22px 56px rgba(15, 23, 42, 0.12);
}

.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 22px;
  background: radial-gradient(circle at 30% 20%, rgba(252, 211, 77, 0.14), transparent 26%), #050505;
}

.movie-player {
  width: 100%;
  height: 100%;
  display: block;
  background: #050505;
  object-fit: contain;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.5));
  cursor: pointer;
}

.play-overlay span {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  padding-left: 6px;
  color: #7f1d1d;
  background: #fff;
  font-size: 32px;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.34);
}

.play-overlay strong {
  font-size: 18px;
}

.play-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.detail-article article {
  max-width: 920px;
  padding: 34px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}

.detail-article p {
  color: #374151;
  font-size: 17px;
}

.site-footer {
  background: #111827;
  color: #d1d5db;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 30px;
  padding: 54px 0;
}

.footer-brand {
  margin-bottom: 12px;
  color: #fff;
  font-size: 22px;
  font-weight: 1000;
}

.site-footer h3 {
  margin: 0 0 12px;
  color: #fff;
}

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

.footer-links {
  display: grid;
  gap: 9px;
}

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

.footer-bottom {
  padding: 18px 16px;
  border-top: 1px solid #1f2937;
  color: #9ca3af;
  text-align: center;
  font-size: 14px;
}

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

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

  .menu-button {
    display: inline-flex;
  }

  .brand {
    min-width: 0;
  }

  .hero-inner,
  .detail-layout,
  .two-col {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    display: none;
  }

  .rank-panel {
    position: static;
  }

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

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

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

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

  .search-badge {
    display: none;
  }

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

  .hero,
  .hero-inner {
    min-height: 590px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero p,
  .page-hero p,
  .lead {
    font-size: 16px;
  }

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

  .btn {
    width: 100%;
  }

  .section {
    padding: 48px 0;
  }

  .section-head,
  .category-row-head,
  .rank-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .feature-grid,
  .category-grid,
  .movie-grid,
  .small-grid,
  .mini-grid,
  .podium-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .feature-card {
    min-height: 360px;
  }

  .card-body {
    min-height: 182px;
    padding: 13px;
  }

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

  .detail-poster {
    width: min(260px, 100%);
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    padding: 40px 0;
  }
}

@media (max-width: 480px) {
  .mobile-nav.open,
  .movie-grid,
  .small-grid,
  .mini-grid,
  .podium-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-controls {
    bottom: 18px;
  }
}
