:root {
  --red-950: #450a0a;
  --red-900: #7f1d1d;
  --red-800: #991b1b;
  --red-700: #b91c1c;
  --red-600: #dc2626;
  --yellow-400: #facc15;
  --yellow-500: #eab308;
  --gray-950: #111827;
  --gray-900: #1f2937;
  --gray-700: #374151;
  --gray-500: #6b7280;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --white: #ffffff;
  --shadow-soft: 0 18px 45px rgba(17, 24, 39, 0.14);
  --shadow-card: 0 12px 32px rgba(127, 29, 29, 0.14);
  --radius-xl: 24px;
  --radius-lg: 18px;
}

* {
  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(--gray-950);
  background: var(--gray-100);
  line-height: 1.65;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, var(--red-700), var(--red-800));
  box-shadow: 0 12px 30px rgba(127, 29, 29, 0.25);
}

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

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

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--gray-950);
  background: var(--yellow-400);
  box-shadow: 0 8px 20px rgba(250, 204, 21, 0.28);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--white);
  font-weight: 650;
}

.nav-link {
  padding: 20px 0;
  opacity: 0.92;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--yellow-400);
  opacity: 1;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  border-radius: 999px;
}

.hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: var(--red-950);
  color: var(--white);
}

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

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  transform: scale(1.06);
  filter: blur(6px) saturate(1.05);
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 42%, rgba(250, 204, 21, 0.18), transparent 32%),
    linear-gradient(90deg, rgba(69, 10, 10, 0.95), rgba(127, 29, 29, 0.72), rgba(17, 24, 39, 0.84));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  min-height: 560px;
  margin: 0 auto;
  padding: 72px 20px 86px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: center;
  gap: 60px;
}

.hero-copy h1 {
  max-width: 850px;
  margin: 0 0 16px;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-copy h2 {
  margin: 0 0 14px;
  color: var(--yellow-400);
  font-size: clamp(24px, 3vw, 42px);
  line-height: 1.15;
}

.hero-copy p {
  max-width: 760px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(16px, 2vw, 21px);
}

.hero-kicker,
.eyebrow {
  margin: 0 0 12px;
  color: var(--yellow-400);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

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

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

.btn-primary {
  color: var(--gray-950);
  background: var(--yellow-400);
  box-shadow: 0 14px 30px rgba(250, 204, 21, 0.24);
}

.btn-primary:hover {
  background: var(--yellow-500);
}

.btn-ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(14px);
}

.btn-small {
  min-height: 40px;
  padding: 0 16px;
  color: var(--white);
  background: var(--red-700);
}

.hero-poster {
  position: relative;
  min-height: 440px;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.36);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: cover;
}

.hero-poster span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(250, 204, 21, 0.95);
  color: var(--gray-950);
  font-size: 13px;
  font-weight: 900;
}

.hero-controls {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-arrow,
.hero-dot {
  border: 0;
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  font-size: 30px;
  line-height: 1;
}

.hero-arrow:hover,
.hero-dot:hover,
.hero-dot.is-active {
  background: var(--yellow-400);
  color: var(--gray-950);
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border-radius: 50%;
}

.stat-band {
  max-width: 1180px;
  margin: -36px auto 0;
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding: 0 20px;
}

.stat-band div {
  padding: 24px;
  border-radius: var(--radius-lg);
  color: var(--white);
  background: linear-gradient(135deg, var(--red-700), var(--red-900));
  box-shadow: var(--shadow-card);
}

.stat-band strong {
  display: block;
  margin-bottom: 6px;
  font-size: 22px;
}

.stat-band span {
  color: rgba(255, 255, 255, 0.76);
}

.section-shell,
.page-main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 70px 20px 0;
}

.page-main {
  padding-top: 34px;
}

.no-top {
  padding-top: 28px;
}

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

.section-heading h2,
.page-hero h1,
.detail-info h1,
.detail-text h2 {
  margin: 0;
  color: var(--gray-950);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-heading.slim h2 {
  font-size: 28px;
}

.text-link {
  color: var(--red-700);
  font-weight: 850;
}

.text-link:hover {
  color: var(--red-900);
}

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

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

.movie-card {
  min-width: 0;
  border-radius: var(--radius-xl);
  background: var(--white);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(127, 29, 29, 0.2);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--red-900);
}

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

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

.poster-glow {
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.7), transparent);
}

.card-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--gray-950);
  background: var(--yellow-400);
  font-size: 12px;
  font-weight: 900;
}

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

.movie-card h3 {
  margin: 0 0 8px;
  color: var(--gray-950);
  font-size: 18px;
  line-height: 1.28;
  font-weight: 900;
}

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

.card-desc {
  min-height: 52px;
  margin: 0 0 14px;
  color: var(--gray-500);
  font-size: 14px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 9px;
  border-radius: 999px;
  color: var(--red-800);
  background: #fee2e2;
  font-size: 12px;
  font-weight: 750;
}

.hero-tags span,
.detail-tags span {
  color: var(--white);
  background: rgba(255, 255, 255, 0.15);
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 26px;
}

.feature-panel,
.rank-panel,
.page-hero,
.detail-text,
.category-overview-card {
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.feature-panel,
.rank-panel {
  padding: 30px;
}

.feature-panel h2,
.rank-panel h2 {
  margin: 0 0 14px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
}

.feature-panel p {
  color: var(--gray-500);
}

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

.category-tile {
  min-height: 122px;
  padding: 20px;
  border-radius: var(--radius-lg);
  color: var(--white);
  background: linear-gradient(135deg, var(--red-700), var(--red-900));
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 32px rgba(127, 29, 29, 0.22);
}

.category-tile span {
  display: block;
  margin-bottom: 10px;
  font-size: 22px;
  font-weight: 900;
}

.category-tile em {
  color: rgba(255, 255, 255, 0.78);
  font-style: normal;
  font-size: 14px;
}

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

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

.mini-card {
  display: grid;
  grid-template-columns: 40px 54px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  background: #fff7ed;
  transition: background 0.2s ease, transform 0.2s ease;
}

.mini-card:hover {
  background: #fee2e2;
  transform: translateX(4px);
}

.mini-card img {
  width: 54px;
  height: 74px;
  object-fit: cover;
  border-radius: 12px;
}

.rank-num {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--gray-950);
  background: var(--yellow-400);
  font-weight: 950;
}

.mini-card strong,
.mini-card em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-card strong {
  font-size: 15px;
  font-weight: 900;
}

.mini-card em {
  color: var(--gray-500);
  font-style: normal;
  font-size: 13px;
}

.inline-search,
.search-panel {
  display: flex;
  gap: 10px;
}

.inline-search input,
.search-panel input {
  width: min(360px, 72vw);
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  outline: none;
  background: var(--white);
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.06);
}

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

.inline-search.wide input,
.search-panel input {
  width: min(620px, 100%);
}

.search-panel button {
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 14px;
  color: var(--white);
  background: var(--red-700);
  font-weight: 850;
}

.page-hero {
  padding: clamp(32px, 6vw, 60px);
  background:
    radial-gradient(circle at top right, rgba(250, 204, 21, 0.2), transparent 34%),
    linear-gradient(135deg, var(--white), #fff7ed);
}

.page-hero p {
  max-width: 780px;
  margin: 16px 0 0;
  color: var(--gray-500);
  font-size: 18px;
}

.small-hero,
.rank-hero,
.search-hero {
  position: relative;
  overflow: hidden;
}

.breadcrumb {
  margin: 0 0 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  color: var(--gray-500);
  font-size: 14px;
}

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

.category-overview-list {
  display: grid;
  gap: 24px;
  margin-top: 30px;
}

.category-overview-card {
  padding: 26px;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 24px;
  align-items: center;
}

.category-overview-text h2 {
  margin: 0 0 10px;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.12;
}

.category-overview-text p {
  margin: 0 0 20px;
  color: var(--gray-500);
}

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

.category-preview a {
  position: relative;
  min-height: 210px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--red-900);
}

.category-preview img {
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.category-preview a:hover img {
  transform: scale(1.06);
}

.category-preview span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 12px 12px;
  color: var(--white);
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.88), transparent);
  font-weight: 850;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.filter-bar button {
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  color: var(--red-800);
  background: #fee2e2;
  font-weight: 800;
}

.filter-bar button.is-active,
.filter-bar button:hover {
  color: var(--gray-950);
  background: var(--yellow-400);
}

.detail-main {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.detail-main .breadcrumb,
.detail-main .section-shell {
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
}

.detail-main .breadcrumb {
  padding: 0 20px;
}

.detail-hero {
  position: relative;
  color: var(--white);
  background: var(--red-950);
  overflow: hidden;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  filter: blur(7px) saturate(1.05);
  transform: scale(1.08);
}

.detail-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 34%, rgba(250, 204, 21, 0.18), transparent 34%),
    linear-gradient(90deg, rgba(69, 10, 10, 0.95), rgba(127, 29, 29, 0.82));
}

.detail-layout {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  padding: 58px 20px;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}

.detail-poster img {
  width: 270px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 26px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.36);
}

.detail-info h1 {
  color: var(--white);
  font-size: clamp(34px, 5vw, 64px);
}

.detail-one-line {
  max-width: 860px;
  margin: 18px 0 18px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 20px;
}

.detail-meta {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
}

.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 28px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 30px 70px rgba(17, 24, 39, 0.34);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: var(--white);
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.24));
  text-align: center;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-icon {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--gray-950);
  background: var(--yellow-400);
  font-size: 30px;
  box-shadow: 0 20px 42px rgba(250, 204, 21, 0.26);
}

.player-cover strong {
  max-width: min(780px, 84vw);
  font-size: clamp(22px, 4vw, 42px);
  line-height: 1.2;
}

.player-cover em {
  max-width: min(680px, 82vw);
  color: rgba(255, 255, 255, 0.82);
  font-style: normal;
}

.detail-text {
  padding: 34px;
}

.detail-text h2 {
  margin: 0 0 14px;
  font-size: 28px;
}

.detail-text p {
  margin: 0 0 24px;
  color: var(--gray-700);
  font-size: 18px;
}

.site-footer {
  margin-top: 80px;
  color: #d1d5db;
  background: var(--gray-950);
}

.footer-grid {
  max-width: 1240px;
  margin: 0 auto;
  padding: 46px 20px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 32px;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 18px;
}

.site-footer p {
  margin: 0;
  color: #9ca3af;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.footer-links a:hover {
  color: var(--yellow-400);
}

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

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

.empty-state {
  grid-column: 1 / -1;
  padding: 38px;
  border-radius: var(--radius-xl);
  color: var(--gray-500);
  background: var(--white);
  text-align: center;
  box-shadow: var(--shadow-card);
}

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

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

  .split-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    left: 0;
    right: 0;
    top: 64px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 20px 18px;
    background: var(--red-800);
    box-shadow: 0 20px 32px rgba(69, 10, 10, 0.24);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-link {
    padding: 11px 0;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 48px;
  }

  .hero-poster {
    display: none;
  }

  .stat-band {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .category-overview-card,
  .detail-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .detail-poster img {
    width: 210px;
  }

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

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

  .hero,
  .hero-content {
    min-height: 620px;
  }

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

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

  .stat-band,
  .movie-grid,
  .compact-grid,
  .rank-grid,
  .category-grid,
  .category-preview {
    grid-template-columns: 1fr;
  }

  .section-shell,
  .page-main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .detail-main {
    padding-left: 0;
    padding-right: 0;
  }

  .detail-main .breadcrumb,
  .detail-main .section-shell,
  .detail-layout {
    padding-left: 16px;
    padding-right: 16px;
  }

  .page-hero,
  .feature-panel,
  .rank-panel,
  .detail-text,
  .category-overview-card {
    border-radius: 20px;
    padding: 22px;
  }

  .inline-search,
  .search-panel {
    flex-direction: column;
  }

  .inline-search input,
  .search-panel input {
    width: 100%;
  }
}
