:root {
  color-scheme: light;
  --rose-50: #fff1f2;
  --rose-100: #ffe4e6;
  --rose-400: #fb7185;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --rose-700: #be123c;
  --amber-400: #fbbf24;
  --orange-400: #fb923c;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-850: #111827;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 10px 28px rgba(15, 23, 42, 0.12);
  --shadow-xl: 0 24px 60px rgba(15, 23, 42, 0.22);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--gray-900);
  background: var(--gray-50);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.wrap {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  color: var(--white);
  background: linear-gradient(90deg, var(--slate-950), var(--slate-850), var(--slate-900));
  box-shadow: var(--shadow-md);
}

.header-inner {
  width: min(1240px, calc(100% - 32px));
  height: 68px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-500), var(--orange-400));
  box-shadow: 0 14px 34px rgba(244, 63, 94, 0.36);
}

.logo-text {
  display: grid;
  line-height: 1.15;
}

.logo-text strong {
  font-size: 20px;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, var(--rose-400), var(--orange-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo-text small {
  color: var(--gray-400);
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
  font-size: 15px;
  color: var(--gray-200);
  white-space: nowrap;
}

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

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

.header-search,
.mobile-search {
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(51, 65, 85, 0.9);
}

.header-search input,
.mobile-search input {
  width: 190px;
  border: 0;
  outline: 0;
  color: var(--white);
  background: transparent;
  padding: 10px 12px 10px 16px;
}

.header-search input::placeholder,
.mobile-search input::placeholder {
  color: var(--gray-400);
}

.header-search button,
.mobile-search button {
  border: 0;
  color: var(--white);
  background: var(--rose-500);
  padding: 10px 16px;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  color: var(--white);
  background: transparent;
  font-size: 28px;
}

.mobile-menu {
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--slate-850);
  padding: 16px;
}

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

.mobile-menu nav {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.mobile-menu nav a {
  color: var(--gray-200);
  padding: 9px 2px;
}

.hero {
  position: relative;
  min-height: 600px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: stretch;
  padding: 24px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--slate-950), var(--slate-800));
}

.hero-stage {
  position: relative;
  min-height: 552px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  background: var(--slate-900);
}

.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;
  opacity: 0.48;
  transform: scale(1.03);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(244, 63, 94, 0.26), transparent 30%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(15, 23, 42, 0.58), rgba(2, 6, 23, 0.18)),
    linear-gradient(0deg, rgba(2, 6, 23, 0.82), transparent 48%);
}

.hero-content {
  position: absolute;
  inset: 0;
  width: min(680px, 90%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(36px, 7vw, 86px);
  color: var(--white);
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 999px;
  color: var(--white);
  background: var(--rose-500);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 7px 13px;
  box-shadow: 0 10px 24px rgba(244, 63, 94, 0.28);
}

.eyebrow {
  margin-bottom: 12px;
}

.hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero p {
  max-width: 760px;
  margin: 0 0 24px;
  color: var(--gray-200);
  font-size: clamp(17px, 2vw, 22px);
}

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

.hero-tags span,
.detail-tags span,
.movie-tags span {
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
}

.hero-tags span,
.detail-tags span {
  color: var(--gray-100);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.movie-tags span {
  color: var(--rose-700);
  background: var(--rose-50);
}

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

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

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

.btn-primary {
  color: var(--white);
  background: var(--rose-500);
  box-shadow: 0 16px 32px rgba(244, 63, 94, 0.32);
}

.btn-primary:hover {
  background: var(--rose-600);
}

.btn-ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

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

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

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

.hero-panel {
  border-radius: var(--radius-xl);
  padding: 22px;
  color: var(--white);
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.94), rgba(15, 23, 42, 0.96));
  box-shadow: var(--shadow-xl);
}

.panel-title,
.section-head,
.category-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.panel-title span {
  font-size: 22px;
  font-weight: 800;
}

.panel-title a,
.more-link {
  color: var(--rose-600);
  font-size: 14px;
  font-weight: 800;
}

.hero-panel .panel-title a {
  color: var(--rose-400);
}

.hero-mini-list,
.ranking-list,
.preview-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.mini-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  border-radius: var(--radius-md);
  padding: 10px;
  background: rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, background 0.2s ease;
}

.mini-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.14);
}

.mini-card img {
  width: 96px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
  background: var(--slate-800);
}

.mini-info {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.mini-info strong {
  overflow: hidden;
  color: currentColor;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-info small {
  color: var(--gray-400);
}

.mini-rank {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  background: var(--rose-500);
  font-size: 12px;
  font-weight: 800;
}

.section {
  padding: 56px 0;
}

.section-soft {
  background: linear-gradient(90deg, var(--rose-50), #fff7ed);
}

.section-head {
  margin-bottom: 24px;
}

.section-head.compact {
  margin-bottom: 18px;
}

.section-head h2,
.category-preview h2,
.story-card h2 {
  margin: 0;
  color: var(--gray-900);
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.2;
}

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

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

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

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

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

.movie-card-wide .movie-poster {
  aspect-ratio: 16 / 10;
}

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

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

.movie-region,
.movie-duration,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  padding: 6px 9px;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(8px);
}

.movie-region {
  left: 10px;
  top: 10px;
}

.movie-duration {
  right: 10px;
  bottom: 10px;
}

.rank-badge {
  left: 10px;
  bottom: 10px;
  min-width: 30px;
  text-align: center;
  background: var(--rose-500);
}

.movie-card-body {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.movie-card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.32;
}

.movie-card h3 a {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  transition: color 0.2s ease;
}

.movie-card h3 a:hover {
  color: var(--rose-600);
}

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

.movie-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--gray-500);
  font-size: 12px;
}

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

.category-tile,
.category-preview,
.story-card,
.filter-panel {
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.category-tile {
  display: grid;
  gap: 12px;
  padding: 22px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover,
.category-preview:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.category-tile span {
  color: var(--rose-600);
  font-size: 22px;
  font-weight: 900;
}

.category-tile p,
.category-tile small,
.category-preview p {
  margin: 0;
  color: var(--gray-600);
}

.category-tile small {
  color: var(--gray-500);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.8fr);
  gap: 28px;
}

.feature-block,
.ranking-block {
  min-width: 0;
}

.scroll-row {
  display: grid;
  grid-auto-columns: minmax(300px, 360px);
  grid-auto-flow: column;
  gap: 16px;
  overflow-x: auto;
  padding: 2px 2px 14px;
  scrollbar-width: none;
}

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

.ranking-block {
  border-radius: var(--radius-lg);
  padding: 24px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.ranking-block .mini-card {
  color: var(--gray-900);
  background: var(--gray-50);
}

.ranking-block .mini-card:hover {
  background: var(--rose-50);
}

.page-hero {
  color: var(--white);
  background:
    radial-gradient(circle at 14% 20%, rgba(244, 63, 94, 0.36), transparent 26%),
    linear-gradient(135deg, var(--slate-950), var(--slate-800));
  padding: 72px 0 54px;
}

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

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

.filter-panel {
  display: flex;
  gap: 12px;
  max-width: 760px;
  margin-top: 24px;
  padding: 12px;
}

.filter-panel.single {
  max-width: 560px;
}

.filter-panel input,
.filter-panel select {
  min-height: 46px;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  outline: 0;
  padding: 0 16px;
  background: var(--white);
}

.filter-panel input {
  flex: 1 1 auto;
}

.filter-panel select {
  width: 180px;
}

.empty-state {
  display: none;
  color: var(--gray-500);
  text-align: center;
  padding: 32px;
}

.empty-state.is-visible {
  display: block;
}

.category-overview {
  display: grid;
  gap: 24px;
  padding: 48px 0;
}

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

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

.preview-list .mini-card {
  color: var(--gray-900);
  background: var(--gray-50);
}

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

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

.detail-hero {
  padding: 24px 0 18px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.8fr);
  gap: 28px;
  align-items: stretch;
}

.player-card,
.detail-info {
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.player-card {
  overflow: hidden;
  padding: 12px;
}

.player-frame {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-video,
.player-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.player-video {
  z-index: 1;
  object-fit: contain;
  background: #000000;
}

.player-cover {
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: var(--white);
  background: rgba(0, 0, 0, 0.2);
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}

.play-circle,
.play-copy {
  position: relative;
  z-index: 2;
}

.play-circle {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--rose-500);
  box-shadow: 0 18px 48px rgba(244, 63, 94, 0.42);
  font-size: 34px;
  padding-left: 5px;
}

.play-copy {
  font-weight: 900;
  font-size: 18px;
}

.detail-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px;
}

.detail-info h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.15;
}

.detail-info p {
  margin: 0;
  color: var(--gray-600);
  font-size: 17px;
}

.detail-tags span {
  color: var(--rose-700);
  background: var(--rose-50);
}

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

.detail-meta div {
  border-radius: 14px;
  padding: 12px;
  background: var(--gray-50);
}

.detail-meta dt {
  color: var(--gray-500);
  font-size: 12px;
}

.detail-meta dd {
  margin: 4px 0 0;
  font-weight: 800;
}

.detail-info .btn {
  width: fit-content;
  margin-top: auto;
}

.detail-content {
  padding-top: 24px;
}

.story-card {
  padding: clamp(24px, 4vw, 40px);
}

.story-card h2 + p {
  margin-top: 12px;
}

.story-card p {
  color: var(--gray-700);
  font-size: 17px;
}

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

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

  .header-search input {
    width: 150px;
  }

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

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

  .menu-toggle {
    display: block;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .hero-panel {
    display: none;
  }

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

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

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

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

@media (max-width: 700px) {
  .wrap,
  .header-inner {
    width: min(100% - 24px, 1180px);
  }

  .hero-stage {
    min-height: 560px;
    border-radius: 24px;
  }

  .hero-content {
    width: 100%;
    padding: 28px;
  }

  .hero-actions,
  .filter-panel,
  .section-head,
  .category-preview-head {
    align-items: stretch;
    flex-direction: column;
  }

  .filter-panel select {
    width: 100%;
  }

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

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

  .movie-card h3 {
    font-size: 16px;
  }

  .movie-tags {
    display: none;
  }

  .mini-card {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .mini-card img {
    width: 82px;
  }

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

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

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

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

.site-footer {
  color: var(--gray-300);
  background: var(--slate-900);
  margin-top: 36px;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.5fr 0.75fr 1fr;
  gap: 36px;
  padding: 48px 0;
}

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

.footer-group h3 {
  margin: 0 0 14px;
  color: var(--white);
}

.footer-group ul {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-group a {
  color: var(--gray-400);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--gray-400);
  text-align: center;
  padding: 18px 16px;
}

@media (max-width: 700px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
}
