:root {
  --red: #dc2626;
  --red-dark: #b91c1c;
  --orange: #ea580c;
  --amber: #fbbf24;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #f8fafc;
  --white: #ffffff;
  --shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 8px 24px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: linear-gradient(135deg, #f9fafb 0%, #ffffff 46%, #f8fafc 100%);
  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(16px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

.nav-shell {
  max-width: 1180px;
  height: 64px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  color: var(--white);
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 10px 26px rgba(220, 38, 38, 0.24);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.brand:hover .brand-mark {
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 14px 30px rgba(220, 38, 38, 0.3);
}

.brand-text {
  background: linear-gradient(90deg, var(--red), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #374151;
  font-weight: 650;
}

.desktop-nav a {
  transition: color 0.22s ease;
}

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

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

.mobile-nav {
  display: none;
  padding: 8px 20px 16px;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.mobile-nav a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: #374151;
  font-weight: 650;
}

.mobile-nav a:hover {
  color: var(--red);
  background: #fef2f2;
}

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

.hero-section {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  color: var(--white);
  background: radial-gradient(circle at 16% 20%, rgba(251, 191, 36, 0.4), transparent 28%), linear-gradient(135deg, #b91c1c 0%, #dc2626 42%, #ea580c 100%);
}

.hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.18);
  pointer-events: none;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image: linear-gradient(rgba(255, 255, 255, 0.2) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.2) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-shell {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  min-height: 560px;
  margin: 0 auto;
  padding: 72px 20px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.75fr);
  align-items: center;
  gap: 54px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(10px);
  font-size: 14px;
  font-weight: 750;
}

.hero-main-copy h1 {
  margin: 22px 0 18px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.05em;
  max-width: 760px;
}

.hero-main-copy p {
  max-width: 680px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 20px;
}

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

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

.primary-action {
  color: var(--red);
  background: var(--white);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.16);
}

.secondary-action {
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.primary-action:hover,
.secondary-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 42px rgba(0, 0, 0, 0.2);
}

.secondary-action:hover {
  background: rgba(255, 255, 255, 0.18);
}

.hero-search {
  max-width: 560px;
  margin-bottom: 18px;
}

.hero-search input,
.filter-card input,
.filter-card select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  outline: none;
  border-radius: 15px;
  padding: 0 18px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-soft);
}

.hero-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 680px;
}

.hero-chip-row a {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 14px;
}

.hero-chip-row a:hover {
  background: rgba(255, 255, 255, 0.24);
}

.hero-carousel {
  position: relative;
  min-height: 460px;
}

.hero-slides {
  position: relative;
  height: 420px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  align-items: end;
  gap: 22px;
  opacity: 0;
  transform: translateX(22px) scale(0.98);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
}

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

.hero-poster {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(135deg, #7f1d1d, #f97316);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  min-height: 330px;
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.2s ease;
}

.hero-poster:hover img {
  transform: scale(1.06);
}

.hero-poster-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.38));
}

.hero-film-copy {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 26px;
  background: rgba(17, 24, 39, 0.38);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

.hero-kicker {
  color: #fde68a;
  font-size: 14px;
  font-weight: 800;
}

.hero-film-copy h2 {
  margin: 8px 0 10px;
  font-size: 28px;
  line-height: 1.18;
}

.hero-film-copy p {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.84);
}

.hero-tags,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.tag-cloud span {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.hero-tags span {
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.14);
}

.hero-detail-link {
  display: inline-flex;
  margin-top: 16px;
  color: #fff7ed;
  font-weight: 800;
}

.hero-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.hero-arrow,
.hero-dot {
  border: 0;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.hero-arrow {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  font-size: 26px;
  line-height: 1;
}

.hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 99px;
  padding: 0;
  opacity: 0.68;
}

.hero-dot.is-active {
  width: 28px;
  opacity: 1;
  background: var(--white);
}

.section-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 20px;
}

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

.section-heading h2 {
  margin: 0 0 4px;
  font-size: 28px;
  line-height: 1.2;
}

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

.section-heading a {
  color: var(--red);
  font-weight: 800;
  white-space: nowrap;
}

.warm-section {
  background: linear-gradient(135deg, #fff7ed 0%, #fef2f2 100%);
}

.deep-section {
  color: var(--white);
  background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
}

.dark-heading p {
  color: #d1d5db;
}

.dark-heading a {
  color: #fed7aa;
}

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

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

.category-movie-grid {
  align-items: start;
}

.movie-card {
  display: block;
  min-width: 0;
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(135deg, #991b1b, #f97316);
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.04) 0%, rgba(0, 0, 0, 0.15) 42%, rgba(0, 0, 0, 0.84) 100%);
}

.year-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 8px;
  border-radius: 9px;
  color: var(--white);
  background: var(--red);
  font-size: 12px;
  font-weight: 800;
}

.play-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  color: var(--red);
  background: rgba(255, 255, 255, 0.92);
  transform: translate(-50%, -50%) scale(0.85);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.poster-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 42px 12px 12px;
  color: var(--white);
}

.poster-info strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.34;
}

.poster-info small {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.78);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.split-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 28px;
}

.showcase-panel,
.rank-panel,
.detail-card,
.side-card,
.filter-card,
.category-card {
  border: 1px solid rgba(229, 231, 235, 0.8);
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.showcase-panel,
.rank-panel {
  padding: 24px;
}

.compact-heading {
  margin-bottom: 18px;
}

.compact-heading h2 {
  font-size: 23px;
}

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

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

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

.rank-row {
  display: grid;
  grid-template-columns: 38px 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
  background: #f9fafb;
  transition: transform 0.22s ease, background 0.22s ease;
}

.rank-row:hover {
  transform: translateX(3px);
  background: #fef2f2;
}

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

.rank-thumb {
  display: block;
  width: 54px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(135deg, #991b1b, #f97316);
}

.rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-copy {
  min-width: 0;
}

.rank-copy strong,
.rank-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-copy small {
  color: var(--muted);
  font-size: 13px;
}

.rank-score {
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--red);
  background: #fee2e2;
  font-size: 12px;
  font-weight: 900;
}

.page-hero {
  color: var(--white);
  background: linear-gradient(135deg, #991b1b 0%, #dc2626 50%, #f97316 100%);
}

.hot-hero {
  background: radial-gradient(circle at 80% 20%, rgba(251, 191, 36, 0.45), transparent 28%), linear-gradient(135deg, #111827, #991b1b 52%, #ea580c);
}

.category-hero {
  background: linear-gradient(135deg, #dc2626, #ea580c);
}

.page-hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px 20px;
}

.page-hero h1 {
  margin: 18px 0 10px;
  font-size: clamp(34px, 5vw, 50px);
  line-height: 1.1;
}

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

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

.category-card {
  padding: 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.category-title {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--red);
  font-size: 22px;
  font-weight: 900;
}

.category-card p {
  margin: 0 0 16px;
  color: var(--muted);
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-samples a {
  padding: 6px 9px;
  border-radius: 999px;
  background: #fef2f2;
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
}

.filter-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 14px;
  margin-bottom: 28px;
  padding: 18px;
}

.filter-card input,
.filter-card select {
  border-color: var(--line);
  box-shadow: none;
  background: #f9fafb;
}

.rank-page-shell {
  max-width: 960px;
}

.large-rank-list .rank-row {
  grid-template-columns: 50px 70px minmax(0, 1fr) auto;
  padding: 12px;
}

.large-rank-list .rank-thumb {
  width: 70px;
}

.detail-hero {
  background: #f9fafb;
}

.detail-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 20px 64px;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 14px;
}

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

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

.detail-main {
  min-width: 0;
}

.video-panel {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  background: #000000;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
}

.movie-video {
  width: 100%;
  height: 100%;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  border: 0;
  color: var(--white);
  background: radial-gradient(circle at center, rgba(220, 38, 38, 0.45), rgba(0, 0, 0, 0.7));
  cursor: pointer;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.player-cover:hover {
  transform: scale(1.01);
}

.video-panel.is-playing .player-cover {
  opacity: 0;
  pointer-events: none;
}

.player-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 999px;
  color: var(--red);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
  font-size: 28px;
}

.player-cover strong {
  font-size: 24px;
}

.player-cover small {
  max-width: 80%;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
}

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

.detail-card h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.16;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--muted);
}

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

.detail-meta a:hover {
  color: var(--red);
  background: #fef2f2;
}

.tag-cloud {
  margin-bottom: 24px;
}

.tag-cloud span {
  color: var(--red);
  background: #fef2f2;
}

.text-block {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.text-block h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.text-block p {
  margin: 0;
  color: #374151;
  white-space: pre-line;
}

.lead-block {
  padding: 20px;
  border: 0;
  border-left: 5px solid var(--red);
  border-radius: 18px;
  background: #fff7ed;
}

.review-block p {
  padding: 18px;
  border-radius: 18px;
  background: #f9fafb;
}

.detail-side {
  display: grid;
  align-content: start;
  gap: 20px;
}

.side-card {
  padding: 20px;
}

.side-card h2 {
  margin: 0 0 16px;
  font-size: 21px;
}

.poster-side {
  padding: 0;
  overflow: hidden;
}

.detail-poster {
  border-radius: 24px;
}

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

.footer-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 42px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.footer-brand {
  margin-bottom: 8px;
  color: var(--white);
  font-size: 22px;
  font-weight: 900;
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-weight: 700;
}

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

.movie-card.is-hidden {
  display: none;
}

@media (max-width: 1060px) {
  .hero-shell,
  .detail-layout,
  .split-showcase {
    grid-template-columns: 1fr;
  }

  .hero-carousel {
    min-height: 420px;
  }

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

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

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

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .hero-shell {
    padding: 52px 16px;
  }

  .hero-slide {
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 14px;
  }

  .hero-poster,
  .hero-poster img {
    min-height: 240px;
  }

  .hero-film-copy {
    padding: 18px;
  }

  .hero-film-copy h2 {
    font-size: 22px;
  }

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

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

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

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

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

  .rank-row,
  .large-rank-list .rank-row {
    grid-template-columns: 38px 52px minmax(0, 1fr);
  }

  .rank-score {
    display: none;
  }

  .detail-card {
    padding: 22px;
  }
}

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

  .hero-section,
  .hero-shell {
    min-height: auto;
  }

  .hero-main-copy h1 {
    font-size: 38px;
  }

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

  .hero-slides {
    height: 520px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .hero-poster,
  .hero-poster img {
    min-height: 260px;
  }

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

  .section-shell {
    padding: 42px 14px;
  }
}
