* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

img {
  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.94);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  backdrop-filter: blur(14px);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: #111827;
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #dc2626, #991b1b);
  color: #ffffff;
  font-size: 13px;
  box-shadow: 0 12px 24px rgba(220, 38, 38, 0.28);
}

.brand-name {
  font-size: 21px;
  letter-spacing: -0.03em;
}

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

.nav-link {
  font-weight: 650;
  color: #4b5563;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #dc2626;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #f3f4f6;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 99px;
  background: #374151;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
}

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

.mobile-link {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  color: #4b5563;
  background: #ffffff;
}

.mobile-link.active,
.mobile-link:hover {
  color: #dc2626;
  background: #fef2f2;
}

.hero {
  position: relative;
  height: 70vh;
  min-height: 520px;
  overflow: hidden;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.8s ease, transform 1.2s ease;
  pointer-events: none;
}

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.56), rgba(0, 0, 0, 0.1));
}

.hero-content {
  position: absolute;
  inset: 0;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: #ffffff;
  max-width: 1180px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  background: #dc2626;
  color: #ffffff;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.02em;
}

.hero-content h1 {
  width: min(680px, 100%);
  margin: 18px 0 16px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero-content p {
  width: min(650px, 100%);
  margin: 0 0 24px;
  color: #e5e7eb;
  font-size: 18px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
  color: #f3f4f6;
}

.hero-meta span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

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

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 13px;
  font-weight: 750;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-button {
  color: #ffffff;
  background: #dc2626;
  box-shadow: 0 18px 28px rgba(220, 38, 38, 0.26);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
}

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

.ghost-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.3);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 32px;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

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

.category-strip {
  background: #f3f4f6;
  border-bottom: 1px solid #e5e7eb;
}

.category-strip-inner {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 22px 0;
}

.category-strip a {
  flex: 0 0 auto;
  padding: 12px 18px;
  border-radius: 14px;
  background: #ffffff;
  color: #374151;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.05);
  transition: color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.category-strip a:hover {
  color: #dc2626;
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(17, 24, 39, 0.08);
}

.section {
  padding: 70px 0;
}

.section-soft {
  background: #ffffff;
}

.editor-section {
  background: linear-gradient(135deg, #fef2f2, #f9fafb);
}

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

.section-head.compact {
  align-items: center;
  margin-bottom: 22px;
}

.section-head h2 {
  margin: 10px 0 0;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.section-kicker {
  background: #fee2e2;
  color: #dc2626;
}

.section-link {
  color: #dc2626;
  font-weight: 750;
}

.movie-grid {
  display: grid;
  gap: 22px;
}

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

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

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

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

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

.card-link {
  display: block;
  height: 100%;
  overflow: hidden;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-link:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 34px rgba(17, 24, 39, 0.12);
}

.poster-wrap {
  position: relative;
  height: 260px;
  overflow: hidden;
  background: #111827;
}

.movie-card-small .poster-wrap {
  height: 190px;
}

.movie-card-large .poster-wrap {
  height: 330px;
}

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

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

.poster-mask {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.68), transparent 58%);
  transition: opacity 0.25s ease;
}

.card-link:hover .poster-mask {
  opacity: 1;
}

.year-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.year-badge {
  right: 12px;
  background: #dc2626;
}

.rank-badge {
  left: 12px;
  background: rgba(17, 24, 39, 0.86);
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.2s ease;
}

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

.card-body p {
  display: -webkit-box;
  min-height: 44px;
  margin: 7px 0 13px;
  overflow: hidden;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6b7280;
  font-size: 12px;
}

.card-meta span:last-child {
  margin-left: auto;
  padding: 4px 8px;
  border-radius: 8px;
  color: #374151;
  background: #f3f4f6;
}

.two-column-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 40px;
}

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

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

.compact-row {
  display: grid;
  grid-template-columns: 46px 58px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.compact-row:hover {
  transform: translateX(4px);
  box-shadow: 0 14px 28px rgba(17, 24, 39, 0.1);
}

.compact-rank {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: #dc2626;
  background: #fee2e2;
  font-weight: 850;
}

.compact-row img {
  width: 58px;
  height: 78px;
  border-radius: 10px;
  object-fit: cover;
  background: #111827;
}

.compact-info {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.compact-info strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-info em {
  overflow: hidden;
  color: #6b7280;
  font-size: 13px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-hero {
  padding: 84px 0;
  color: #ffffff;
  background: linear-gradient(135deg, #111827, #374151);
}

.page-hero-red {
  background: linear-gradient(135deg, #dc2626, #991b1b);
}

.page-hero-dark {
  background: radial-gradient(circle at top left, rgba(220, 38, 38, 0.45), transparent 32%), linear-gradient(135deg, #111827, #030712);
}

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

.page-hero p {
  width: min(720px, 100%);
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
}

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

.category-panel-link {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 220px;
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-panel-link:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 38px rgba(17, 24, 39, 0.13);
}

.category-cover-stack {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  background: #111827;
}

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

.category-panel-body {
  padding: 26px;
}

.category-panel-body span {
  color: #dc2626;
  font-weight: 800;
  font-size: 13px;
}

.category-panel-body h2 {
  margin: 8px 0 10px;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.category-panel-body p {
  margin: 0 0 20px;
  color: #6b7280;
}

.category-panel-body em {
  color: #dc2626;
  font-style: normal;
  font-weight: 800;
}

.filter-bar {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
  padding: 18px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.06);
}

.filter-bar-large {
  padding: 22px;
}

.filter-bar label {
  color: #374151;
  font-weight: 800;
}

.filter-bar input {
  width: 100%;
  height: 48px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 0 16px;
  outline: none;
  color: #111827;
  background: #f9fafb;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.empty-state {
  display: none;
  margin-top: 24px;
  padding: 26px;
  border-radius: 18px;
  color: #6b7280;
  background: #ffffff;
  text-align: center;
}

.empty-state.show {
  display: block;
}

.detail-main {
  background: #f3f4f6;
}

.detail-container {
  padding-top: 32px;
  padding-bottom: 70px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  color: #6b7280;
  font-size: 14px;
}

.breadcrumb a {
  color: #dc2626;
  font-weight: 700;
}

.breadcrumb strong {
  color: #111827;
  font-weight: 700;
}

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

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: #000000;
  aspect-ratio: 16 / 9;
  box-shadow: 0 18px 34px rgba(17, 24, 39, 0.2);
}

.movie-player {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
  cursor: pointer;
}

.video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 84px;
  height: 84px;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  color: #dc2626;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.video-play:hover {
  transform: translate(-50%, -50%) scale(1.08);
}

.video-play span {
  margin-left: 5px;
  font-size: 34px;
}

.video-shell.playing .video-play {
  opacity: 0;
  pointer-events: none;
}

.video-status {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: none;
  padding: 10px 12px;
  border-radius: 12px;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.78);
  font-size: 14px;
}

.video-status.show {
  display: block;
}

.detail-card,
.info-card {
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.07);
}

.detail-card {
  margin-top: 24px;
  padding: 28px;
}

.detail-card h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e5e7eb;
}

.detail-meta span,
.detail-meta a {
  padding: 7px 12px;
  border-radius: 999px;
  color: #374151;
  background: #f3f4f6;
  font-size: 14px;
  font-weight: 700;
}

.detail-meta a {
  color: #dc2626;
  background: #fee2e2;
}

.detail-card section + section {
  margin-top: 26px;
}

.detail-card h2 {
  margin: 0 0 10px;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.detail-card p {
  margin: 0;
  color: #4b5563;
}

.lead-text {
  margin-bottom: 10px !important;
  color: #111827 !important;
  font-weight: 700;
}

.review-box {
  padding: 18px;
  border-radius: 16px;
  color: #4b5563;
  background: #f9fafb;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-list span {
  padding: 7px 12px;
  border-radius: 999px;
  color: #374151;
  background: #f3f4f6;
  font-size: 14px;
  font-weight: 700;
}

.sticky-card {
  position: sticky;
  top: 88px;
  overflow: hidden;
}

.info-card img {
  width: 100%;
  height: 430px;
  object-fit: cover;
  background: #111827;
}

.info-card dl {
  margin: 0;
  padding: 20px;
}

.info-card div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 0;
  border-bottom: 1px solid #f3f4f6;
}

.info-card div:last-child {
  border-bottom: 0;
}

.info-card dt {
  color: #6b7280;
}

.info-card dd {
  margin: 0;
  color: #111827;
  font-weight: 750;
  text-align: right;
}

.info-card a {
  color: #dc2626;
}

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

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

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 30px;
}

.footer-logo {
  margin-bottom: 12px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 850;
}

.footer-brand p {
  max-width: 560px;
  margin: 0;
  color: #9ca3af;
}

.footer-links {
  display: grid;
  gap: 10px;
  align-content: start;
}

.footer-links a {
  color: #d1d5db;
  transition: color 0.2s ease;
}

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

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

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

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

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

  .sticky-card {
    position: static;
  }

  .info-card img {
    height: 360px;
  }
}

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

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

  .hero {
    height: 68vh;
    min-height: 500px;
  }

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

  .hero-arrow {
    display: none;
  }

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

  .two-column-layout,
  .category-panel-grid,
  .footer-inner,
  .compact-list-grid {
    grid-template-columns: 1fr;
  }

  .category-panel-link {
    grid-template-columns: 180px minmax(0, 1fr);
  }
}

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

  .brand-name {
    font-size: 19px;
  }

  .hero {
    height: 72vh;
    min-height: 520px;
  }

  .hero-overlay {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.26));
  }

  .hero-content {
    justify-content: flex-end;
    padding-bottom: 92px;
  }

  .hero-content h1 {
    font-size: 36px;
  }

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

  .hero-meta {
    gap: 8px;
  }

  .section {
    padding: 48px 0;
  }

  .section-head {
    display: grid;
  }

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

  .poster-wrap {
    height: 220px;
  }

  .movie-card-small .poster-wrap {
    height: 190px;
  }

  .card-body {
    padding: 13px;
  }

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

  .card-meta span:last-child {
    margin-left: 0;
    text-align: center;
  }

  .compact-row {
    grid-template-columns: 38px 52px minmax(0, 1fr);
    gap: 10px;
  }

  .compact-row img {
    width: 52px;
    height: 70px;
  }

  .page-hero {
    padding: 58px 0;
  }

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

  .category-cover-stack img {
    height: 100px;
  }

  .detail-card {
    padding: 22px;
  }

  .video-play {
    width: 68px;
    height: 68px;
  }

  .video-play span {
    font-size: 28px;
  }
}

@media (max-width: 420px) {
  .movie-grid-2,
  .movie-grid-4,
  .movie-grid-5,
  .movie-grid-6 {
    grid-template-columns: 1fr;
  }

  .poster-wrap,
  .movie-card-small .poster-wrap {
    height: 280px;
  }
}
