* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(12px);
}

.nav-shell {
  max-width: 1280px;
  height: 68px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  box-shadow: 0 12px 24px rgba(220, 38, 38, 0.28);
  font-size: 15px;
}

.brand-text {
  font-size: 20px;
  color: #111827;
  white-space: nowrap;
}

.site-menu {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  min-width: 0;
}

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

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

.nav-cats {
  display: flex;
  gap: 12px;
  overflow: hidden;
  white-space: nowrap;
  color: #6b7280;
  font-size: 14px;
}

.nav-cats a:hover {
  color: #dc2626;
}

.header-search {
  width: 310px;
  display: flex;
  align-items: center;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: inset 0 1px 1px rgba(15, 23, 42, 0.03);
}

.header-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 10px 12px;
  color: #111827;
}

.header-search button {
  border: 0;
  padding: 10px 14px;
  color: #ffffff;
  background: #dc2626;
  cursor: pointer;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 10px;
  background: #f3f4f6;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: #111827;
  border-radius: 999px;
}

.hero {
  color: #ffffff;
  background:
    radial-gradient(circle at top left, rgba(248, 113, 113, 0.42), transparent 32%),
    linear-gradient(135deg, #7f1d1d 0%, #b91c1c 48%, #450a0a 100%);
  padding: 72px 0 64px;
  overflow: hidden;
}

.shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero-copy {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 40px;
}

.hero-copy h1 {
  margin: 0 0 14px;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.05;
  font-weight: 850;
  letter-spacing: -0.04em;
}

.hero-copy p {
  margin: 0 auto;
  max-width: 720px;
  font-size: 20px;
  color: #fee2e2;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 750;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  color: #b91c1c;
  background: #ffffff;
  box-shadow: 0 20px 35px rgba(69, 10, 10, 0.22);
}

.btn-ghost {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.12);
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-auto-rows: 190px;
  gap: 16px;
}

.hero-card {
  position: relative;
  min-height: 190px;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(17, 24, 39, 0.5);
  box-shadow: 0 24px 52px rgba(69, 10, 10, 0.34);
}

.hero-card:first-child {
  grid-column: span 3;
  grid-row: span 2;
}

.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.78));
}

.hero-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 22px;
}

.hero-info strong {
  display: block;
  font-size: 20px;
  line-height: 1.25;
  margin-bottom: 6px;
}

.hero-card:first-child .hero-info strong {
  font-size: clamp(24px, 3vw, 38px);
}

.hero-info span,
.hero-info p {
  display: block;
  color: #e5e7eb;
  font-size: 14px;
}

.section {
  padding: 56px 0;
}

.section.white {
  background: #ffffff;
}

.section.soft {
  background: #f9fafb;
}

.section.red-soft {
  background: #fef2f2;
}

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

.section-heading h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 820;
  color: #111827;
}

.section-heading p {
  margin: 8px 0 0;
  color: #6b7280;
}

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

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

.category-tile {
  min-height: 132px;
  padding: 24px;
  color: #ffffff;
  border-radius: 18px;
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  box-shadow: 0 18px 32px rgba(220, 38, 38, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 44px rgba(220, 38, 38, 0.28);
}

.category-tile strong {
  display: block;
  font-size: 22px;
  margin-bottom: 8px;
}

.category-tile span {
  color: #fee2e2;
  font-size: 14px;
}

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

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

.card-link {
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.14);
}

.poster-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #fecaca, #991b1b);
}

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

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

.type-badge,
.rank-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  padding: 4px 9px;
  border-radius: 999px;
  color: #ffffff;
  background: #dc2626;
  font-size: 12px;
  font-weight: 750;
}

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

.card-body {
  flex: 1;
  padding: 16px;
}

.card-body h3 {
  min-height: 48px;
  margin: 0 0 8px;
  color: #111827;
  font-size: 17px;
  line-height: 1.42;
  font-weight: 780;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: #6b7280;
  font-size: 13px;
}

.scroller {
  overflow-x: auto;
  padding-bottom: 16px;
}

.scroller-track {
  width: max-content;
  display: flex;
  gap: 18px;
}

.scroller .movie-card {
  width: 286px;
  flex: 0 0 auto;
}

.list-stack {
  display: grid;
  gap: 16px;
}

.wide-card .card-link {
  display: grid;
  grid-template-columns: 340px 1fr;
}

.wide-card .poster-wrap {
  aspect-ratio: auto;
  min-height: 220px;
}

.wide-card .card-body {
  padding: 24px;
}

.wide-card .card-body h3 {
  min-height: auto;
  font-size: 22px;
}

.wide-card .card-body p {
  min-height: auto;
  font-size: 15px;
  -webkit-line-clamp: 3;
}

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

.feature-card {
  min-height: 360px;
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  color: #ffffff;
  background: #7f1d1d;
  box-shadow: 0 26px 48px rgba(127, 29, 29, 0.24);
}

.feature-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

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

.feature-card div {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 28px;
}

.feature-card h3 {
  margin: 0 0 10px;
  font-size: 28px;
}

.feature-card p {
  margin: 0 0 16px;
  color: #fee2e2;
}

.timeline {
  position: relative;
  display: grid;
  gap: 18px;
  padding-left: 38px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: #fca5a5;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 28px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 4px solid #ffffff;
  background: #dc2626;
  box-shadow: 0 6px 16px rgba(220, 38, 38, 0.28);
}

.timeline-item img {
  width: 180px;
  height: 110px;
  object-fit: cover;
  border-radius: 14px;
}

.timeline-item strong {
  display: block;
  margin-bottom: 5px;
  font-size: 18px;
}

.timeline-item span {
  display: block;
  margin-bottom: 6px;
  color: #dc2626;
  font-size: 14px;
  font-weight: 700;
}

.timeline-item p {
  margin: 0;
  color: #6b7280;
  font-size: 14px;
}

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

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

.media-row {
  display: grid;
  grid-template-columns: auto 92px 1fr;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.media-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
}

.media-row img {
  width: 92px;
  height: 62px;
  object-fit: cover;
  border-radius: 12px;
}

.media-row strong {
  display: block;
  color: #111827;
  line-height: 1.35;
}

.media-row em {
  display: block;
  color: #6b7280;
  font-style: normal;
  font-size: 13px;
}

.mini-rank {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #ffffff;
  background: #dc2626;
  font-weight: 800;
}

.page-hero {
  color: #ffffff;
  background:
    radial-gradient(circle at top right, rgba(248, 113, 113, 0.45), transparent 28%),
    linear-gradient(135deg, #7f1d1d, #b91c1c);
  padding: 64px 0;
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.12;
}

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

.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: #fee2e2;
  font-size: 14px;
}

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

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

.detail-card,
.side-card,
.copy-block {
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

.detail-card {
  overflow: hidden;
}

.player-wrap {
  position: relative;
  background: #000000;
}

.player-wrap video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.58));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.player-play {
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 999px;
  color: #dc2626;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  font-size: 28px;
  cursor: pointer;
}

.player-message {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: none;
  padding: 12px 14px;
  border-radius: 12px;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.82);
  text-align: center;
}

.player-message.is-visible {
  display: block;
}

.detail-body {
  padding: 26px;
}

.detail-body h2,
.copy-block h2,
.side-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

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

.detail-meta span,
.tag-list span,
.filter-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #374151;
  background: #f3f4f6;
  font-size: 13px;
  font-weight: 650;
}

.detail-body p,
.copy-block p {
  color: #4b5563;
  font-size: 16px;
}

.copy-block {
  margin-top: 20px;
  padding: 26px;
}

.review-box {
  border-left: 4px solid #dc2626;
  background: #fef2f2;
}

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

.side-card {
  padding: 20px;
  position: sticky;
  top: 88px;
}

.side-card .media-row {
  grid-template-columns: 84px 1fr;
  box-shadow: none;
  padding: 10px 0;
  border-bottom: 1px solid #f3f4f6;
  border-radius: 0;
}

.side-card .media-row img {
  width: 84px;
  height: 58px;
}

.side-card .media-row:last-child {
  border-bottom: 0;
}

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

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

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

.search-note {
  margin: -10px 0 22px;
  color: #6b7280;
}

.empty-result {
  display: none;
  padding: 36px;
  border-radius: 18px;
  text-align: center;
  color: #6b7280;
  background: #ffffff;
}

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

.hidden-card {
  display: none;
}

@media (max-width: 1120px) {
  .header-search {
    width: 250px;
  }

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

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

@media (max-width: 900px) {
  .nav-shell {
    height: auto;
    min-height: 64px;
    flex-wrap: wrap;
    padding: 12px 18px;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .site-menu {
    order: 4;
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 0;
  }

  .site-menu.open {
    display: flex;
  }

  .nav-cats {
    width: 100%;
    flex-wrap: wrap;
    white-space: normal;
  }

  .header-search {
    order: 3;
    width: 100%;
  }

  .hero-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 170px;
  }

  .hero-card:first-child {
    grid-column: span 2;
  }

  .movie-grid,
  .rank-grid,
  .feature-grid,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .wide-card .card-link,
  .timeline-item {
    grid-template-columns: 1fr;
  }

  .timeline-item img {
    width: 100%;
    height: 180px;
  }

  .side-card {
    position: static;
  }

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

@media (max-width: 620px) {
  .shell {
    padding: 0 16px;
  }

  .hero {
    padding: 48px 0;
  }

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

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

  .hero-card:first-child {
    grid-column: span 1;
    grid-row: span 1;
  }

  .section {
    padding: 42px 0;
  }

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

  .media-row {
    grid-template-columns: 30px 82px 1fr;
  }

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