:root {
  --red-900: #7f1d1d;
  --red-800: #991b1b;
  --red-700: #b91c1c;
  --red-600: #dc2626;
  --red-100: #fee2e2;
  --red-50: #fef2f2;
  --amber-600: #d97706;
  --gray-950: #020617;
  --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-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-strong: 0 20px 45px rgba(15, 23, 42, 0.18);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--gray-900);
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

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

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--white);
  color: var(--red-800);
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-text strong {
  font-size: 20px;
  letter-spacing: 0.02em;
}

.brand-text small {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
}

.desktop-nav > a,
.nav-dropdown > a {
  padding: 22px 0;
  transition: color 0.2s ease;
}

.desktop-nav > a:hover,
.nav-dropdown > a:hover {
  color: var(--white);
}

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  top: 100%;
  left: 0;
  width: 190px;
  padding: 8px;
  display: grid;
  gap: 2px;
  border-radius: 14px;
  background: var(--white);
  color: var(--gray-700);
  box-shadow: var(--shadow-strong);
  opacity: 0;
  transform: translateY(8px);
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.dropdown-panel a {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
}

.dropdown-panel a:hover {
  background: var(--red-50);
  color: var(--red-800);
}

.mobile-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  cursor: pointer;
}

.mobile-menu-button span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--white);
  border-radius: 99px;
}

.mobile-nav {
  display: none;
  padding: 12px 24px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.92);
}

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

.mobile-cat-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
  padding-left: 12px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
}

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

.hero {
  position: relative;
  height: 560px;
  overflow: hidden;
  background: linear-gradient(90deg, #111827, #1f2937);
}

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

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

.hero-slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  transform: scale(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 25%, rgba(220, 38, 38, 0.22), transparent 32%),
    linear-gradient(0deg, rgba(17, 24, 39, 0.96), rgba(17, 24, 39, 0.42) 48%, rgba(17, 24, 39, 0.75)),
    linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(17, 24, 39, 0.38));
}

.hero-content {
  position: absolute;
  left: calc(50% - 616px);
  bottom: 92px;
  width: min(680px, calc(100% - 48px));
  color: var(--white);
}

.hero-badge,
.page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(220, 38, 38, 0.88);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(220, 38, 38, 0.22);
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero p {
  margin: 0 0 22px;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.75;
}

.hero-meta,
.detail-meta,
.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-meta {
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.82);
}

.hero-meta span,
.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(220, 38, 38, 0.72);
  color: var(--white);
  font-size: 14px;
  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: 48px;
  padding: 0 28px;
  border-radius: 13px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

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

.primary-button:hover {
  background: var(--red-700);
  box-shadow: 0 22px 42px rgba(220, 38, 38, 0.38);
}

.ghost-button {
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
  backdrop-filter: blur(10px);
}

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

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

.hero-prev {
  left: 32px;
}

.hero-next {
  right: 32px;
}

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

.hero-dots button {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
  cursor: pointer;
}

.hero-dots button.is-active {
  width: 30px;
  background: var(--white);
}

.home-search {
  padding-bottom: 10px;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) repeat(3, minmax(150px, 190px));
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.filter-panel label {
  display: grid;
  gap: 7px;
  color: var(--gray-500);
  font-size: 13px;
  font-weight: 700;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  background: var(--white);
  color: var(--gray-900);
  outline: none;
}

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

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

.section-heading > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-heading span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--red-50);
  color: var(--red-700);
  font-weight: 900;
}

.section-heading h2 {
  margin: 0;
  color: var(--gray-900);
  font-size: 30px;
  letter-spacing: -0.02em;
}

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

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

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

.category-tile,
.category-overview-card {
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 20px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at top right, rgba(220, 38, 38, 0.20), transparent 34%),
    linear-gradient(135deg, var(--white), #fff7ed);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-tile strong,
.category-overview-card span {
  color: var(--gray-900);
  font-size: 21px;
  font-weight: 900;
}

.category-tile span,
.category-overview-card strong {
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.6;
}

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

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

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--gray-200);
}

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

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

.poster-layer {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.12), transparent);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.movie-card:hover .poster-layer {
  opacity: 1;
}

.play-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--amber-600);
  color: var(--white);
  font-size: 22px;
  transform: translate(-50%, -50%) scale(0.8);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.corner-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 8px;
  border-radius: 8px;
  background: var(--amber-600);
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
}

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

.movie-card h3 {
  margin: 0 0 8px;
  color: var(--gray-900);
  font-size: 16px;
  line-height: 1.35;
}

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

.movie-card p {
  display: -webkit-box;
  min-height: 42px;
  margin: 0 0 10px;
  overflow: hidden;
  color: var(--gray-600);
  font-size: 13px;
  line-height: 1.6;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  margin-bottom: 10px;
  color: var(--gray-500);
  font-size: 12px;
}

.card-meta span {
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--gray-100);
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.card-tags span,
.tag-list span {
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--red-50);
  color: var(--red-800);
  font-size: 12px;
  font-weight: 700;
}

.compact-grid .movie-card:nth-child(n+13) {
  display: none;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: start;
  gap: 32px;
}

.ranking-panel,
.side-card,
.info-card {
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.ranking-panel {
  position: sticky;
  top: 88px;
  padding: 22px;
}

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

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

.rank-row {
  display: grid;
  grid-template-columns: auto 64px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
  background: var(--gray-50);
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-row:hover {
  background: var(--red-50);
  transform: translateX(3px);
}

.rank-row img {
  width: 64px;
  height: 86px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--gray-200);
}

.rank-row span:not(.rank-num) {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.rank-row strong {
  overflow: hidden;
  color: var(--gray-900);
  font-size: 15px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-row small {
  display: -webkit-box;
  overflow: hidden;
  color: var(--gray-500);
  font-size: 12px;
  line-height: 1.5;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.rank-num {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--red-600);
  color: var(--white);
  font-size: 13px;
  font-weight: 900;
}

.page-hero {
  background: linear-gradient(90deg, var(--red-800), var(--red-600));
  color: var(--white);
}

.page-hero .content-shell {
  padding-top: 70px;
  padding-bottom: 70px;
}

.small-hero .content-shell {
  padding-top: 54px;
  padding-bottom: 54px;
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.detail-content .breadcrumb {
  color: var(--gray-500);
}

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

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

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

.empty-note {
  padding: 36px;
  border-radius: var(--radius-lg);
  background: var(--white);
  color: var(--gray-500);
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.player-stage {
  background: #000000;
}

.player-shell {
  position: relative;
  max-width: 1280px;
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  background: #000000;
}

.site-video,
.player-cover,
.player-cover img {
  width: 100%;
  height: 100%;
}

.site-video {
  display: block;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: #000000;
  cursor: pointer;
}

.player-cover[hidden] {
  display: none;
}

.player-cover img {
  object-fit: cover;
  opacity: 0.56;
}

.player-mask {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle, rgba(220, 38, 38, 0.22), transparent 34%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.18));
}

.big-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--red-600);
  color: var(--white);
  font-size: 34px;
  transform: translate(-50%, -50%);
  box-shadow: 0 20px 40px rgba(220, 38, 38, 0.36);
}

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

.detail-content h1 {
  margin: 0 0 16px;
  color: var(--gray-900);
  font-size: clamp(32px, 5vw, 46px);
  line-height: 1.12;
}

.detail-meta {
  margin-bottom: 24px;
}

.info-card {
  margin-bottom: 22px;
  padding: 26px;
}

.info-card h2,
.side-card h2 {
  margin: 0 0 14px;
  color: var(--gray-900);
  font-size: 22px;
}

.info-card p {
  margin: 0;
  color: var(--gray-700);
  font-size: 16px;
  line-height: 1.9;
}

.highlight-card {
  background: linear-gradient(135deg, var(--red-50), #fff7ed);
}

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

.detail-side {
  position: sticky;
  top: 88px;
}

.side-card {
  padding: 22px;
}

.side-card .rank-row {
  grid-template-columns: 72px minmax(0, 1fr);
}

.side-card .rank-row .rank-num {
  display: none;
}

.side-card .rank-row img {
  width: 72px;
  height: 96px;
}

.site-footer {
  margin-top: 48px;
  background: linear-gradient(180deg, var(--gray-800), var(--gray-900));
  color: var(--gray-300);
}

.footer-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 44px 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

.footer-shell h2 {
  margin: 0 0 10px;
  color: var(--white);
  font-size: 22px;
}

.footer-shell p {
  max-width: 640px;
  margin: 0;
  color: var(--gray-300);
  line-height: 1.8;
}

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

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

[data-card][hidden] {
  display: none !important;
}

@media (max-width: 1180px) {
  .movie-grid,
  .large-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

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

  .hero-content {
    left: 64px;
  }
}

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

  .mobile-menu-button {
    display: block;
  }

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

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

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

  .ranking-panel,
  .detail-side {
    position: static;
  }

  .rank-page-list {
    grid-template-columns: 1fr;
  }
}

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

  .brand-text small {
    display: none;
  }

  .brand-text strong {
    font-size: 17px;
  }

  .content-shell {
    padding: 32px 16px;
  }

  .hero {
    height: 600px;
  }

  .hero-content {
    left: 20px;
    bottom: 92px;
    width: calc(100% - 40px);
  }

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

  .hero-arrow {
    top: auto;
    bottom: 24px;
    transform: none;
  }

  .hero-prev {
    left: 20px;
  }

  .hero-next {
    right: 20px;
  }

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

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

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

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

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

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

  .page-hero .content-shell {
    padding-top: 46px;
    padding-bottom: 46px;
  }

  .footer-shell {
    flex-direction: column;
  }

  .big-play {
    width: 68px;
    height: 68px;
    font-size: 28px;
  }
}

@media (max-width: 420px) {
  .movie-grid,
  .large-list {
    grid-template-columns: 1fr 1fr;
  }

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

  .primary-button,
  .ghost-button {
    width: 100%;
  }

  .rank-row {
    grid-template-columns: auto 56px minmax(0, 1fr);
  }

  .rank-row img {
    width: 56px;
    height: 76px;
  }
}
