:root {
  --red: #dc2626;
  --red-deep: #991b1b;
  --red-soft: #fee2e2;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --paper: #ffffff;
  --wash: #f9fafb;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--wash);
  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 {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(16px);
}

.nav-wrap {
  max-width: 1280px;
  height: 68px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 14px;
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  box-shadow: 0 10px 22px rgba(220, 38, 38, 0.28);
}

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

.desktop-nav a,
.mobile-nav a {
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  color: var(--red);
}

.menu-button {
  display: none;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 26px;
}

.mobile-nav {
  display: none;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 18px;
  flex-direction: column;
  gap: 12px;
  color: #374151;
  font-weight: 600;
}

.mobile-nav.open {
  display: flex;
}

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

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

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

.hero-bg,
.detail-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.hero-bg::after,
.detail-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(248, 113, 113, 0.32), transparent 36%), linear-gradient(180deg, rgba(17, 24, 39, 0.06), rgba(17, 24, 39, 0.88));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  min-height: 600px;
  margin: 0 auto;
  padding: 86px 24px 150px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 56px;
  align-items: center;
  color: #ffffff;
}

.hero-copy h1,
.detail-info h1,
.page-hero h1 {
  margin: 0;
  max-width: 840px;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 900;
}

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

.hero-text,
.detail-line,
.page-hero p {
  max-width: 760px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
}

.tag-row span {
  background: var(--red-soft);
  color: var(--red-deep);
}

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

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  box-shadow: 0 16px 34px rgba(220, 38, 38, 0.35);
}

.ghost-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

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

.hero-poster {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.36);
}

.hero-poster img,
.detail-cover img,
.poster img,
.category-card-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-poster span {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--red);
  font-weight: 900;
}

.hero-panel {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 44px;
  width: min(1180px, calc(100% - 48px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-search {
  display: flex;
  gap: 12px;
}

.hero-search input,
.filter-input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  padding: 0 18px;
  outline: none;
}

.hero-search input:focus,
.filter-input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12);
}

.hero-search button {
  min-width: 108px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: var(--red);
  font-weight: 800;
}

.hero-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-shortcuts a {
  padding: 9px 13px;
  border-radius: 999px;
  color: #7f1d1d;
  background: #fee2e2;
  font-size: 13px;
  font-weight: 800;
}

.hero-dots {
  position: absolute;
  z-index: 6;
  right: 46px;
  bottom: 132px;
  display: flex;
  gap: 8px;
}

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

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

main {
  overflow: hidden;
}

.content-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 24px;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--muted);
}

.section-link {
  color: var(--red);
  font-weight: 800;
}

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

.category-tile,
.category-card-large {
  position: relative;
  overflow: hidden;
  min-height: 148px;
  padding: 22px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #ffffff, #fff1f2);
  border: 1px solid rgba(254, 202, 202, 0.9);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-tile span,
.category-card-large span {
  display: block;
  position: relative;
  z-index: 2;
  font-size: 20px;
  font-weight: 900;
}

.category-tile p,
.category-card-large p {
  position: relative;
  z-index: 2;
  margin: 10px 0 0;
  color: #6b7280;
  font-size: 14px;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.95);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #e5e7eb;
}

.poster img {
  transition: transform 0.28s ease;
}

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

.score,
.card-type,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  background: var(--red);
}

.score {
  top: 10px;
  right: 10px;
}

.card-type {
  left: 10px;
  bottom: 10px;
  background: rgba(17, 24, 39, 0.78);
}

.rank-badge {
  left: 10px;
  top: 10px;
  min-width: 34px;
  background: linear-gradient(135deg, #f59e0b, #dc2626);
}

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

.movie-card h3 {
  min-height: 48px;
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 900;
}

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

.card-meta {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.card-summary {
  min-height: 66px;
  margin: 10px 0 0;
  color: #4b5563;
  font-size: 14px;
}

.card-summary.compact {
  min-height: 44px;
}

.movie-card .tag-row {
  margin-top: 12px;
}

.movie-card .tag-row span {
  min-height: 24px;
  padding: 4px 8px;
  font-size: 12px;
}

.toolbar {
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.filter-note {
  min-width: 92px;
  color: var(--muted);
  font-size: 14px;
}

.page-hero {
  position: relative;
  color: #ffffff;
  background: linear-gradient(135deg, #111827, #7f1d1d);
}

.page-hero.slim {
  max-width: 1280px;
  margin: 32px auto 0;
  border-radius: 28px;
  padding: 72px 48px;
  box-shadow: var(--shadow);
}

.page-hero .crumbs {
  margin-top: 24px;
}

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

.category-card-large {
  min-height: 240px;
  color: #ffffff;
  background: #111827;
}

.category-card-large img {
  position: absolute;
  inset: 0;
  opacity: 0.36;
}

.category-card-large::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.86), rgba(127, 29, 29, 0.72));
}

.category-card-large span,
.category-card-large p {
  color: #ffffff;
}

.detail-hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  color: #ffffff;
  background: #111827;
}

.detail-wrap {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 24px;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 52px;
  align-items: center;
}

.detail-cover {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  aspect-ratio: 3 / 4;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
}

.detail-score {
  top: 18px;
  right: 18px;
  min-height: 36px;
  padding: 7px 13px;
  font-size: 15px;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: #6b7280;
  font-size: 14px;
  font-weight: 700;
}

.crumbs.dark {
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.7);
}

.crumbs a:hover {
  color: var(--red);
}

.watch-section {
  max-width: 1180px;
  margin: -90px auto 0;
  padding: 0 24px;
  position: relative;
  z-index: 4;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  aspect-ratio: 16 / 9;
  background: #000000;
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.35);
  cursor: pointer;
}

.main-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.55));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 20px;
  font-weight: 900;
  transition: opacity 0.2s ease;
}

.play-icon {
  width: 76px;
  height: 76px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--red);
  box-shadow: 0 18px 40px rgba(220, 38, 38, 0.42);
}

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

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

.article-panel {
  padding: 34px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.article-panel h2 {
  margin: 0 0 12px;
  font-size: 26px;
  font-weight: 900;
}

.article-panel h2:not(:first-child) {
  margin-top: 30px;
}

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

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

.detail-meta-grid div {
  padding: 16px;
  border-radius: 16px;
  background: #f9fafb;
  border: 1px solid #edf0f3;
}

.detail-meta-grid span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.detail-meta-grid strong {
  display: block;
  margin-top: 4px;
  font-size: 16px;
}

.detail-tags {
  margin-top: 24px;
}

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

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 24px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 34px;
}

.footer-brand {
  margin-bottom: 14px;
  color: #ffffff;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 17px;
}

.site-footer p {
  margin: 0;
  color: #d1d5db;
  font-size: 14px;
}

.site-footer a {
  display: block;
  margin-top: 8px;
  color: #d1d5db;
  font-size: 14px;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 24px;
  text-align: center;
  color: #9ca3af;
  font-size: 13px;
}

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

@media (max-width: 1180px) {
  .desktop-nav {
    gap: 14px;
    font-size: 14px;
  }

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

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

  .menu-button {
    display: block;
  }

  .hero {
    min-height: 780px;
  }

  .hero-content,
  .detail-wrap {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero-poster,
  .detail-cover {
    max-width: 280px;
  }

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

  .hero-dots {
    right: 24px;
    bottom: 188px;
  }

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

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

@media (max-width: 620px) {
  .nav-wrap {
    height: 62px;
    padding: 0 16px;
  }

  .brand {
    font-size: 18px;
  }

  .hero-content {
    min-height: 690px;
    padding: 54px 18px 214px;
  }

  .hero-copy h1,
  .detail-info h1,
  .page-hero h1 {
    font-size: 38px;
  }

  .hero-text,
  .detail-line,
  .page-hero p {
    font-size: 16px;
  }

  .hero-panel {
    bottom: 20px;
    width: calc(100% - 28px);
  }

  .hero-search {
    flex-direction: column;
  }

  .hero-search button {
    min-height: 46px;
  }

  .hero-dots {
    display: none;
  }

  .content-section {
    padding: 48px 16px;
  }

  .section-heading,
  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .movie-grid,
  .category-grid,
  .category-large-grid,
  .detail-meta-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .page-hero.slim {
    margin: 18px 16px 0;
    padding: 44px 24px;
    border-radius: 22px;
  }

  .detail-wrap {
    padding: 42px 16px 112px;
  }

  .watch-section {
    margin-top: -76px;
    padding: 0 16px;
  }

  .video-shell {
    border-radius: 20px;
  }

  .article-panel {
    padding: 22px;
    border-radius: 22px;
  }
}
