:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-850: #121c31;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-500: #64748b;
  --slate-300: #cbd5e1;
  --slate-100: #f1f5f9;
  --rose-600: #e11d48;
  --rose-500: #f43f5e;
  --rose-400: #fb7185;
  --orange-400: #fb923c;
  --amber-400: #fbbf24;
  --white: #ffffff;
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --shadow-soft: 0 18px 55px rgba(15, 23, 42, 0.18);
  --shadow-card: 0 12px 35px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: #111827;
  background: #f8fafc;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--white);
  background: linear-gradient(90deg, var(--slate-950), var(--slate-850), var(--slate-900));
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.25);
}

.nav-shell {
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: 1280px;
  height: 72px;
  padding: 0 28px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: var(--white);
  font-size: 22px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--rose-500), var(--orange-400));
  box-shadow: 0 12px 25px rgba(244, 63, 94, 0.35);
}

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

.brand-text strong,
.footer-brand {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.04em;
  background: linear-gradient(90deg, var(--rose-400), var(--orange-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text em {
  margin-top: 5px;
  color: #94a3b8;
  font-size: 12px;
  font-style: normal;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: 0;
  flex: 1;
}

.nav-link {
  color: #e2e8f0;
  font-size: 15px;
  white-space: nowrap;
  transition: color 0.2s ease;
}

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

.top-search,
.mobile-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-search input,
.mobile-search input,
.filter-panel input,
.filter-panel select {
  border: 1px solid rgba(148, 163, 184, 0.25);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.top-search input {
  width: 230px;
  padding: 10px 15px;
  color: var(--white);
  background: rgba(51, 65, 85, 0.75);
  border-radius: 999px;
}

.top-search input::placeholder,
.mobile-search input::placeholder {
  color: #94a3b8;
}

.top-search button,
.mobile-search button {
  border: 0;
  color: var(--white);
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  background: var(--rose-600);
}

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

.mobile-panel {
  display: none;
  padding: 16px 24px 22px;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  background: var(--slate-900);
}

.mobile-panel.open {
  display: block;
}

.mobile-search {
  margin-bottom: 14px;
}

.mobile-search input {
  flex: 1;
  padding: 11px 14px;
  color: var(--white);
  background: rgba(51, 65, 85, 0.8);
  border-radius: 14px;
}

.mobile-link {
  display: block;
  padding: 12px 0;
  color: #e2e8f0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

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

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

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

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 35%, rgba(251, 113, 133, 0.28), transparent 28%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.95) 0%, rgba(15, 23, 42, 0.7) 42%, rgba(15, 23, 42, 0.15) 72%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.9), transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 116px 28px 110px;
  margin: 0 auto;
  transform: translateX(-260px);
}

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

.hero-content h1,
.hero-content h2 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.04;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.hero-feature-title {
  margin: 18px 0 0;
  color: #fecdd3;
  font-size: 30px;
  font-weight: 800;
}

.hero-desc {
  max-width: 650px;
  margin: 22px 0 0;
  color: #e2e8f0;
  font-size: 19px;
}

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

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

.hero-tags span,
.detail-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.hero-tags span,
.detail-tags span {
  color: #ffe4e6;
  background: rgba(244, 63, 94, 0.22);
  border: 1px solid rgba(251, 113, 133, 0.32);
}

.tag-row span {
  color: #9f1239;
  background: #fff1f2;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  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(--white);
  background: linear-gradient(135deg, var(--rose-600), var(--orange-400));
  box-shadow: 0 16px 30px rgba(225, 29, 72, 0.28);
}

.btn.ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(10px);
}

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

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

.hero-dot.active {
  width: 36px;
  background: var(--rose-500);
}

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

.content-section.inner {
  padding-top: 58px;
  padding-bottom: 58px;
}

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

.section-head h2,
.rank-panel-head h2,
.story-panel h2,
.player-caption h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.section-head p:not(.section-eyebrow) {
  max-width: 650px;
  margin: 10px 0 0;
  color: var(--slate-500);
}

.section-link,
.text-link {
  color: var(--rose-600);
  font-weight: 800;
}

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

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

.movie-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(250px, 1fr);
  gap: 22px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.movie-row::-webkit-scrollbar {
  display: none;
}

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

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

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

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

.movie-card:hover .poster-frame img,
.category-card:hover img,
.rank-card:hover img {
  transform: scale(1.06);
}

.poster-shade {
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.78), transparent);
}

.poster-label,
.poster-year {
  position: absolute;
  top: 10px;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(8px);
}

.poster-label {
  left: 10px;
}

.poster-year {
  right: 10px;
}

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

.movie-title {
  display: -webkit-box;
  overflow: hidden;
  min-height: 52px;
  color: #0f172a;
  font-size: 19px;
  line-height: 1.35;
  font-weight: 900;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-title:hover {
  color: var(--rose-600);
}

.movie-meta,
.movie-desc {
  margin: 9px 0 0;
  color: var(--slate-500);
  font-size: 14px;
}

.movie-desc {
  display: -webkit-box;
  overflow: hidden;
  min-height: 44px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row {
  margin-top: 14px;
}

.category-pill {
  display: inline-flex;
  margin-top: 14px;
  color: var(--rose-600);
  font-size: 13px;
  font-weight: 800;
}

.band-section {
  background: linear-gradient(100deg, #fff1f2, #fff7ed);
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 34px;
  align-items: start;
}

.rank-panel {
  position: sticky;
  top: 96px;
  padding: 24px;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.rank-panel-head {
  margin-bottom: 18px;
}

.rank-panel-head p {
  margin: 0 0 8px;
  color: var(--rose-500);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.rank-card {
  display: grid;
  grid-template-columns: 42px 74px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #e5e7eb;
}

.rank-card:last-child {
  border-bottom: 0;
}

.rank-number {
  color: var(--slate-300);
  font-size: 24px;
  font-weight: 950;
}

.rank-card.top .rank-number {
  color: var(--rose-600);
}

.rank-poster {
  overflow: hidden;
  border-radius: 12px;
  background: var(--slate-900);
}

.rank-poster img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.rank-info a {
  display: block;
  overflow: hidden;
  color: #111827;
  font-size: 16px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-info p,
.rank-info span {
  display: block;
  margin: 4px 0 0;
  color: var(--slate-500);
  font-size: 13px;
}

.rank-info span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.category-card,
.category-overview-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

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

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

.category-card-images,
.category-overview-images {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 16px;
}

.category-card-images img,
.category-overview-images img {
  aspect-ratio: 2 / 3;
  border-radius: 10px;
  object-fit: cover;
  background: var(--slate-900);
}

.category-card strong,
.category-overview-card h2 {
  display: block;
  color: #0f172a;
  font-size: 20px;
  font-weight: 950;
}

.category-card em {
  display: block;
  margin-top: 8px;
  color: var(--slate-500);
  font-size: 14px;
  font-style: normal;
}

.page-hero {
  color: var(--white);
  background:
    radial-gradient(circle at 75% 30%, rgba(244, 63, 94, 0.35), transparent 26%),
    linear-gradient(135deg, var(--slate-950), var(--slate-800));
}

.page-hero > div {
  max-width: 1280px;
  padding: 82px 28px;
  margin: 0 auto;
}

.small-hero > div,
.category-hero > div {
  padding-top: 72px;
  padding-bottom: 72px;
}

.page-hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.page-hero p:not(.section-eyebrow) {
  max-width: 760px;
  margin: 18px 0 0;
  color: #e2e8f0;
  font-size: 18px;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 170px 170px;
  gap: 14px;
  margin-bottom: 28px;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  color: #111827;
  background: #f8fafc;
}

.filter-panel input:focus,
.filter-panel select:focus,
.top-search input:focus,
.mobile-search input:focus {
  border-color: var(--rose-400);
  box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.16);
}

.empty-state {
  display: none;
  padding: 32px;
  margin: 22px 0 0;
  text-align: center;
  color: var(--slate-500);
  border-radius: var(--radius-lg);
  background: var(--white);
}

.empty-state.show {
  display: block;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
  padding: 18px;
}

.category-overview-images {
  margin-bottom: 0;
}

.category-overview-card p {
  color: var(--slate-500);
}

.ranking-page .ranking-list {
  display: grid;
  gap: 0;
  padding: 8px 22px;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.ranking-page .rank-card {
  grid-template-columns: 58px 88px minmax(0, 1fr);
  padding: 16px 0;
}

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

.detail-backdrop {
  position: absolute;
  inset: 0;
}

.detail-backdrop img {
  height: 100%;
  object-fit: cover;
  filter: blur(18px) saturate(1.1);
  transform: scale(1.08);
  opacity: 0.42;
}

.detail-backdrop span {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(15, 23, 42, 0.78));
}

.detail-shell {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  padding: 38px 28px 64px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 28px;
  color: #cbd5e1;
  font-size: 14px;
}

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

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

.detail-cover {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--slate-900);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.detail-cover img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.detail-info h1 {
  margin: 0;
  max-width: 880px;
  font-size: clamp(38px, 6vw, 66px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.detail-one-line {
  max-width: 820px;
  margin: 20px 0 0;
  color: #e2e8f0;
  font-size: 19px;
}

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

.detail-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  max-width: 860px;
  margin: 26px 0;
}

.detail-meta div {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.detail-meta dt {
  color: #94a3b8;
  font-size: 12px;
}

.detail-meta dd {
  margin: 5px 0 0;
  color: var(--white);
  font-weight: 800;
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 28px;
  align-items: start;
}

.player-card,
.story-panel {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.player-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}

.movie-player {
  width: 100%;
  height: 100%;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: #000;
}

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

.player-cover img {
  height: 100%;
  object-fit: cover;
  opacity: 0.68;
}

.play-circle {
  position: absolute;
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  color: var(--white);
  font-size: 34px;
  background: linear-gradient(135deg, var(--rose-600), var(--orange-400));
  box-shadow: 0 20px 50px rgba(225, 29, 72, 0.42);
}

.player-caption {
  padding: 22px 24px 26px;
}

.player-caption p,
.story-panel p {
  color: var(--slate-500);
}

.story-panel {
  padding: 28px;
}

.story-panel h2 + p {
  margin-top: 10px;
}

.story-panel p + h2 {
  margin-top: 28px;
}

.site-footer {
  color: #cbd5e1;
  background: var(--slate-950);
}

.footer-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.8fr);
  gap: 30px;
  max-width: 1280px;
  padding: 46px 28px;
  margin: 0 auto;
}

.footer-about p {
  max-width: 640px;
  color: #94a3b8;
}

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

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

.footer-bottom {
  padding: 18px 28px;
  color: #94a3b8;
  text-align: center;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

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

  .top-search input {
    width: 180px;
  }

  .hero-content {
    transform: none;
    max-width: 1280px;
  }

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

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

  .rank-panel {
    position: static;
  }
}

@media (max-width: 860px) {
  .nav-shell {
    height: auto;
    min-height: 68px;
    padding: 12px 18px;
  }

  .desktop-nav,
  .top-search {
    display: none;
  }

  .mobile-toggle {
    display: inline-grid;
    place-items: center;
    margin-left: auto;
  }

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

  .hero-content {
    padding-top: 92px;
    padding-bottom: 104px;
  }

  .section-head {
    display: block;
  }

  .section-link {
    display: inline-flex;
    margin-top: 12px;
  }

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

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

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

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

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

  .footer-shell {
    grid-template-columns: 1fr;
  }
}

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

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

  .hero-content,
  .content-section,
  .page-hero > div,
  .detail-shell {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

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

  .rank-card,
  .ranking-page .rank-card {
    grid-template-columns: 42px 70px minmax(0, 1fr);
  }

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

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