:root {
  --red: #dc2626;
  --red-dark: #b91c1c;
  --red-soft: #fef2f2;
  --gray-950: #030712;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50: #f9fafb;
  --white: #ffffff;
  --shadow-sm: 0 4px 16px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 12px 30px rgba(15, 23, 42, 0.14);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.2);
  --radius: 18px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Microsoft YaHei", "PingFang SC", "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--gray-900);
  background: var(--gray-50);
  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);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
}

.header-inner {
  max-width: var(--max);
  height: 64px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-size: 14px;
  box-shadow: 0 10px 20px rgba(220, 38, 38, 0.28);
}

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

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

.nav-link {
  color: var(--gray-700);
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--red);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--gray-100);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.menu-button span {
  width: 20px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--gray-200);
  background: var(--white);
  padding: 10px 20px 18px;
}

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

.mobile-nav-link {
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--gray-700);
  font-weight: 700;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  background: var(--red-soft);
  color: var(--red);
}

.hero {
  position: relative;
  height: 70vh;
  min-height: 540px;
  overflow: hidden;
  background: var(--gray-900);
}

.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-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.08));
}

.hero-content {
  position: absolute;
  inset: 0;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: var(--white);
}

.eyebrow,
.section-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.hero-content h1 {
  max-width: 720px;
  margin: 18px 0 16px;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.hero-content p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 19px;
}

.hero-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 28px;
}

.hero-meta span,
.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
}

.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 24px;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.primary-button {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 14px 30px rgba(220, 38, 38, 0.32);
}

.primary-button:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
}

.ghost-button {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.12);
}

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: translateY(-2px);
}

.ghost-button.dark {
  color: var(--gray-900);
  border-color: var(--gray-300);
  background: var(--white);
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
  font-size: 38px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transform: translateY(-50%);
  transition: background 0.2s ease;
}

.hero-control:hover {
  background: rgba(255, 255, 255, 0.32);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

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

.hero-dot.active {
  width: 34px;
  background: var(--white);
}

.category-strip {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}

.strip-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 20px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.strip-inner a {
  padding: 12px 18px;
  border-radius: 14px;
  background: var(--white);
  color: var(--gray-700);
  font-weight: 800;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.strip-inner a:hover {
  color: var(--red);
  background: var(--red-soft);
  transform: translateY(-2px);
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 70px 20px;
}

.soft-section {
  max-width: none;
  margin: 0;
  padding-left: max(20px, calc((100vw - var(--max)) / 2 + 20px));
  padding-right: max(20px, calc((100vw - var(--max)) / 2 + 20px));
  background: linear-gradient(135deg, #fff5f5, var(--gray-50));
}

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

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

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

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

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

.movie-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.movie-card-link {
  display: block;
  height: 100%;
}

.poster-wrap {
  position: relative;
  height: 270px;
  overflow: hidden;
  background: var(--gray-200);
}

.movie-card.compact .poster-wrap {
  height: 220px;
}

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

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

.type-badge,
.rank-badge {
  position: absolute;
  top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
}

.type-badge {
  right: 12px;
  background: rgba(17, 24, 39, 0.78);
}

.rank-badge {
  left: 12px;
  background: var(--red);
}

.play-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: rgba(220, 38, 38, 0.92);
  transform: translate(-50%, -50%) scale(0.86);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .play-dot {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.movie-body {
  padding: 18px;
}

.movie-body h2 {
  margin: 0 0 8px;
  color: var(--gray-900);
  font-size: 18px;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.movie-card:hover .movie-body h2 {
  color: var(--red);
}

.movie-meta {
  margin: 0 0 10px;
  color: var(--gray-500);
  font-size: 14px;
  font-weight: 700;
}

.movie-desc {
  margin: 0;
  color: var(--gray-600);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.card-tags span,
.tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--gray-100);
  color: var(--gray-700);
  font-size: 12px;
  font-weight: 800;
}

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

.rank-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.rank-link {
  display: grid;
  grid-template-columns: 60px 120px 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 14px 18px;
}

.rank-num {
  color: var(--red);
  font-size: 28px;
  font-weight: 900;
}

.rank-link img {
  width: 120px;
  height: 76px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-info h2 {
  margin: 0 0 4px;
  font-size: 18px;
}

.rank-info p {
  margin: 0 0 4px;
  color: var(--gray-600);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rank-info span {
  color: var(--gray-500);
  font-size: 13px;
  font-weight: 700;
}

.rank-link strong {
  color: var(--red);
  white-space: nowrap;
}

.page-hero {
  padding: 92px 20px 76px;
  text-align: center;
  color: var(--white);
  background: radial-gradient(circle at top left, rgba(220, 38, 38, 0.42), transparent 34%), linear-gradient(135deg, var(--gray-950), var(--gray-800));
}

.page-hero h1 {
  max-width: 780px;
  margin: 18px auto 12px;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.1;
  letter-spacing: -0.06em;
}

.page-hero p {
  max-width: 720px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.center-actions {
  justify-content: center;
  margin-top: 26px;
}

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

.category-card {
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.category-card > a {
  display: block;
  padding: 28px;
  background: linear-gradient(135deg, #ffffff, #fff1f2);
}

.category-card span {
  color: var(--red);
  font-weight: 900;
}

.category-card h2 {
  margin: 12px 0 20px;
  color: var(--gray-900);
  font-size: 22px;
  line-height: 1.45;
}

.category-card strong {
  color: var(--red);
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 18px 28px 26px;
}

.category-samples a {
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--gray-100);
  color: var(--gray-700);
  font-size: 13px;
  font-weight: 800;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 16px;
  padding: 18px;
  margin-bottom: 26px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.filter-search label,
.filter-selects label {
  display: grid;
  gap: 8px;
  color: var(--gray-700);
  font-size: 13px;
  font-weight: 900;
}

.filter-search input,
.filter-selects select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  background: var(--gray-50);
  color: var(--gray-900);
  outline: none;
}

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

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

.detail-hero {
  min-height: 560px;
  background-size: cover;
  background-position: center;
  color: var(--white);
}

.detail-hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 20px 70px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

.breadcrumbs a:hover {
  color: var(--white);
}

.detail-headline {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.detail-headline img {
  width: 250px;
  height: 360px;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}

.detail-headline h1 {
  margin: 16px 0 14px;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.06em;
}

.detail-headline p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 18px;
}

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

.detail-section {
  padding-top: 48px;
}

.player-card {
  border-radius: 26px;
  padding: 14px;
  background: var(--gray-900);
  box-shadow: var(--shadow-lg);
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 20px;
  background: #000;
}

.movie-player-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.62));
  color: var(--white);
  cursor: pointer;
  transition: opacity 0.2s ease;
}

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

.big-play {
  width: 78px;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-size: 30px;
  box-shadow: 0 18px 38px rgba(220, 38, 38, 0.34);
}

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

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

.content-main,
.content-side {
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  padding: 28px;
}

.content-main h2,
.content-side h2 {
  margin: 0 0 14px;
  color: var(--gray-900);
  font-size: 24px;
}

.content-main h2:not(:first-child) {
  margin-top: 28px;
}

.content-main p {
  margin: 0;
  color: var(--gray-700);
  font-size: 17px;
}

.content-side dl {
  margin: 0;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px 12px;
}

.content-side dt {
  color: var(--gray-500);
  font-weight: 900;
}

.content-side dd {
  margin: 0;
  color: var(--gray-900);
  font-weight: 700;
}

.side-tags {
  margin-top: 20px;
}

.site-footer {
  margin-top: 40px;
  color: var(--gray-100);
  background: var(--gray-900);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 52px 20px;
  display: grid;
  grid-template-columns: 1.1fr 1.4fr;
  gap: 36px;
}

.footer-logo {
  color: var(--white);
}

.footer-brand p {
  max-width: 460px;
  color: var(--gray-300);
}

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

.footer-links h2 {
  margin: 0 0 14px;
  color: #fca5a5;
  font-size: 17px;
}

.footer-links a {
  display: block;
  margin: 8px 0;
  color: var(--gray-300);
}

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

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

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

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

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

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

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

  .menu-button {
    display: flex;
  }

  .hero {
    min-height: 560px;
  }

  .hero-content {
    padding-right: 70px;
  }

  .hero-control {
    width: 42px;
    height: 42px;
    font-size: 30px;
  }

  .hero-prev {
    left: 10px;
  }

  .hero-next {
    right: 10px;
  }

  .section,
  .soft-section {
    padding-top: 46px;
    padding-bottom: 46px;
  }

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

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

  .poster-wrap,
  .movie-card.compact .poster-wrap {
    height: 220px;
  }

  .movie-body {
    padding: 14px;
  }

  .rank-link {
    grid-template-columns: 44px 96px 1fr;
    gap: 12px;
  }

  .rank-link strong {
    display: none;
  }

  .rank-link img {
    width: 96px;
    height: 68px;
  }

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

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

  .detail-headline img {
    width: 190px;
    height: 280px;
  }

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

@media (max-width: 520px) {
  .brand-name {
    font-size: 18px;
  }

  .hero-content {
    padding: 0 58px 0 18px;
  }

  .hero-content p,
  .page-hero p,
  .detail-headline p {
    font-size: 16px;
  }

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

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

  .rank-link {
    grid-template-columns: 38px 82px 1fr;
    padding: 12px;
  }

  .rank-link img {
    width: 82px;
    height: 60px;
  }

  .rank-info p {
    display: none;
  }

  .page-hero {
    padding-top: 68px;
    padding-bottom: 58px;
  }

  .detail-hero-inner {
    padding-top: 30px;
  }

  .content-main,
  .content-side {
    padding: 22px;
  }
}
