* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #111827;
  background: #f9fafb;
  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,
select {
  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.94);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(16px);
}

.nav-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #111827;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.logo-mark {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-radius: 12px;
  background: linear-gradient(135deg, #dc2626, #991b1b);
  box-shadow: 0 12px 22px rgba(220, 38, 38, 0.28);
  font-size: 14px;
}

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

.nav-links a:hover,
.mobile-menu a:hover,
.section-more:hover {
  color: #dc2626;
}

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

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #111827;
}

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

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

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

.hero {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  color: #fff;
  background: #111827;
}

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

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

.hero-bg,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-bg {
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  opacity: 0.42;
  filter: saturate(1.1);
}

.hero-shade {
  background:
    radial-gradient(circle at 72% 24%, rgba(220, 38, 38, 0.42), transparent 34%),
    linear-gradient(110deg, rgba(17, 24, 39, 0.98) 0%, rgba(127, 29, 29, 0.88) 42%, rgba(17, 24, 39, 0.72) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 86px 0 112px;
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #fecaca;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.hero h2 {
  margin: 18px 0 12px;
  font-size: clamp(24px, 4vw, 42px);
  line-height: 1.16;
  font-weight: 800;
}

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

.hero-tags,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.hero-tags span,
.tag-list span {
  padding: 6px 12px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: #dc2626;
  box-shadow: 0 18px 30px rgba(220, 38, 38, 0.34);
}

.btn-primary:hover {
  background: #b91c1c;
}

.btn-light {
  color: #111827;
  background: #fff;
}

.hero-side {
  position: relative;
  z-index: 4;
  display: flex;
  justify-content: flex-end;
  min-height: 1px;
}

.hero-card-panel {
  width: min(430px, 42vw);
  margin-top: 92px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 26px;
  background: rgba(17, 24, 39, 0.54);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

.hero-card-panel h3 {
  margin: 0 0 14px;
  font-size: 18px;
}

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

.hero-card {
  position: relative;
  min-height: 144px;
  overflow: hidden;
  border-radius: 18px;
  background: #111827;
}

.hero-card img {
  width: 100%;
  height: 144px;
  object-fit: cover;
  opacity: 0.72;
  transition: transform 300ms ease;
}

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

.hero-card span {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
}

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

.hero-dot {
  width: 28px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
}

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

.section {
  padding: 64px 0;
}

.section-white {
  background: #fff;
}

.section-muted {
  background: #f3f4f6;
}

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

.section-head h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.section-head p {
  margin: 10px 0 0;
  color: #6b7280;
}

.section-more {
  color: #dc2626;
  font-weight: 800;
  white-space: nowrap;
}

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

.category-tile,
.category-overview-card {
  display: block;
  overflow: hidden;
  border: 1px solid #fee2e2;
  border-radius: 24px;
  background: linear-gradient(135deg, #fff, #fff7ed);
  box-shadow: 0 18px 40px rgba(127, 29, 29, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.category-tile {
  padding: 24px;
}

.category-tile:hover,
.category-overview-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 60px rgba(127, 29, 29, 0.14);
}

.category-tile strong,
.category-overview-card h2 {
  display: block;
  margin: 0 0 8px;
  color: #991b1b;
  font-size: 22px;
  font-weight: 900;
}

.category-tile span,
.category-overview-card p {
  color: #6b7280;
  font-size: 14px;
}

.category-overview-card {
  display: grid;
  grid-template-rows: 160px 1fr;
}

.category-overview-card > div:last-child {
  padding: 22px;
}

.category-overview-card span {
  display: inline-block;
  margin-top: 14px;
  color: #dc2626;
  font-weight: 800;
}

.category-covers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: #111827;
}

.category-covers img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.filter-panel {
  margin: 0 0 28px;
  padding: 18px;
  border: 1px solid #e5e7eb;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.06);
}

.filter-row {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 14px;
}

.filter-row label {
  display: grid;
  gap: 7px;
  color: #6b7280;
  font-size: 13px;
  font-weight: 800;
}

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

.filter-row input:focus,
.filter-row select:focus {
  border-color: #dc2626;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.08);
}

.filter-empty {
  display: none;
  margin: 14px 0 0;
  color: #dc2626;
  font-weight: 700;
}

.filter-empty.is-visible {
  display: block;
}

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

.compact-grid {
  gap: 18px;
}

.movie-card {
  min-width: 0;
}

.movie-card a {
  display: block;
}

.poster-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: 18px;
  background: linear-gradient(145deg, #111827, #7f1d1d);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.16);
}

.poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease, opacity 200ms ease;
}

.poster-img.is-missing {
  opacity: 0;
}

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

.rating-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 8px;
  color: #fff;
  border-radius: 999px;
  background: rgba(220, 38, 38, 0.92);
  font-size: 12px;
  font-weight: 900;
}

.play-mask {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 42px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.76));
  opacity: 0;
  transition: opacity 220ms ease;
}

.movie-card:hover .play-mask {
  opacity: 1;
}

.movie-info {
  padding: 12px 2px 0;
}

.movie-info h3 {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 4px;
  overflow: hidden;
  color: #111827;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 800;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card:hover h3 {
  color: #dc2626;
}

.meta-line,
.card-desc {
  margin: 0;
  color: #6b7280;
  font-size: 12px;
}

.card-desc {
  display: -webkit-box;
  min-height: 36px;
  margin-top: 6px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.page-hero {
  padding: 72px 0;
  color: #fff;
  background:
    radial-gradient(circle at 80% 20%, rgba(220, 38, 38, 0.42), transparent 34%),
    linear-gradient(120deg, #111827, #7f1d1d 54%, #111827);
}

.page-hero p:last-child {
  max-width: 760px;
  margin: 16px 0 0;
  color: #fecaca;
  font-size: 18px;
}

.category-page-hero {
  background:
    radial-gradient(circle at 84% 10%, rgba(248, 113, 113, 0.42), transparent 35%),
    linear-gradient(120deg, #111827, #991b1b 50%, #111827);
}

.rank-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.rank-feature {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border-radius: 24px;
  background: #111827;
  box-shadow: 0 20px 46px rgba(15, 23, 42, 0.2);
}

.rank-feature img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  opacity: 0.6;
  transition: transform 300ms ease;
}

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

.rank-feature div {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  color: #fff;
}

.rank-feature span {
  color: #fecaca;
  font-weight: 900;
}

.rank-feature h2 {
  margin: 6px 0;
  font-size: 22px;
}

.rank-feature p {
  margin: 0;
  color: #e5e7eb;
  font-size: 14px;
}

.rank-table {
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  background: #fff;
}

.rank-row {
  display: grid;
  grid-template-columns: 70px 58px 1fr 110px 90px 90px;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 10px 18px;
  border-bottom: 1px solid #f3f4f6;
}

.rank-row:last-child {
  border-bottom: 0;
}

.rank-row:hover {
  background: #fff7ed;
}

.rank-no {
  color: #dc2626;
  font-size: 22px;
  font-weight: 900;
}

.rank-row img {
  width: 48px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
  background: #111827;
}

.rank-title {
  min-width: 0;
  overflow: hidden;
  color: #111827;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-main {
  min-height: 100vh;
  color: #fff;
  background: #111827;
}

.detail-wrap {
  padding: 28px 0 64px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #9ca3af;
  font-size: 14px;
}

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

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000;
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.45);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
  color: #fff;
  border: 0;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.16), rgba(0, 0, 0, 0.48));
  cursor: pointer;
}

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

.player-overlay span {
  display: inline-flex;
  width: 82px;
  height: 82px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #dc2626;
  box-shadow: 0 20px 40px rgba(220, 38, 38, 0.34);
  font-size: 32px;
}

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

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  margin-top: 24px;
}

.detail-content,
.side-panel {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background: #1f2937;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
}

.detail-content {
  padding: 28px;
}

.side-panel {
  padding: 24px;
  align-self: start;
}

.detail-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.detail-content h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.16;
  font-weight: 900;
}

.detail-rating {
  flex-shrink: 0;
  padding: 10px 14px;
  color: #fff;
  border-radius: 999px;
  background: #dc2626;
  font-weight: 900;
}

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

.detail-meta span {
  padding: 12px;
  color: #d1d5db;
  border-radius: 14px;
  background: #111827;
  font-size: 14px;
}

.detail-content .tag-list span {
  color: #fecaca;
  border-color: rgba(248, 113, 113, 0.28);
  background: rgba(127, 29, 29, 0.38);
}

.text-block {
  margin-top: 24px;
}

.text-block h2,
.side-panel h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 22px;
}

.text-block p {
  margin: 0;
  color: #d1d5db;
  font-size: 16px;
  line-height: 1.9;
}

.detail-pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.detail-pager a {
  min-width: 0;
  overflow: hidden;
  padding: 12px 14px;
  color: #fecaca;
  border-radius: 14px;
  background: #111827;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-pager a:hover {
  color: #fff;
  background: #7f1d1d;
}

.side-panel dl {
  margin: 0;
}

.side-panel dt {
  margin-top: 14px;
  color: #9ca3af;
  font-size: 13px;
}

.side-panel dd {
  margin: 4px 0 0;
  color: #fff;
  font-weight: 700;
}

.related-section {
  padding-bottom: 0;
}

.related-section .section-head h2,
.related-section .section-head p,
.related-section .movie-info h3 {
  color: #fff;
}

.related-section .section-head p,
.related-section .meta-line,
.related-section .card-desc {
  color: #9ca3af;
}

.site-footer {
  color: #d1d5db;
  background: linear-gradient(135deg, #111827, #1f2937);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
  padding: 46px 0;
}

.footer-logo {
  color: #fff;
}

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

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

.site-footer a:not(.footer-logo) {
  display: block;
  margin: 8px 0;
  color: #d1d5db;
}

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

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

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

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

  .hero-card-panel {
    display: none;
  }

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

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

  .menu-toggle {
    display: block;
  }

  .hero {
    min-height: 590px;
  }

  .hero-content {
    padding-top: 64px;
  }

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

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

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

  .rank-row {
    grid-template-columns: 48px 48px 1fr 70px;
  }

  .rank-row span:nth-child(4),
  .rank-row span:nth-child(5) {
    display: none;
  }

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

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

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

  .hero {
    min-height: 640px;
  }

  .hero-content {
    padding: 46px 0 94px;
  }

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

  .hero h2 {
    font-size: 26px;
  }

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

  .section {
    padding: 44px 0;
  }

  .section-head {
    display: block;
  }

  .section-more {
    display: inline-block;
    margin-top: 12px;
  }

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

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

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

  .movie-info h3 {
    font-size: 14px;
  }

  .card-desc {
    display: none;
  }

  .rank-row {
    grid-template-columns: 44px 44px 1fr;
    gap: 10px;
    padding: 10px 12px;
  }

  .rank-row strong {
    display: none;
  }

  .detail-content,
  .side-panel {
    padding: 18px;
    border-radius: 18px;
  }

  .player-card {
    border-radius: 18px;
  }

  .detail-title-row,
  .detail-pager {
    display: block;
  }

  .detail-rating {
    display: inline-block;
    margin-top: 14px;
  }

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

  .detail-pager a {
    display: block;
    margin-top: 10px;
  }
}
