:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --text: #111827;
  --muted: #64748b;
  --orange: #f97316;
  --pink: #db2777;
  --cyan: #06b6d4;
  --radius: 22px;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, #0f172a 0%, #1e293b 52%, #0f172a 100%);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 18px 50px rgba(2, 6, 23, 0.26);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.brand span:last-child {
  background: linear-gradient(90deg, #fb923c, #ec4899);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.32);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.nav-link,
.dropdown-button {
  color: #e5e7eb;
  border: 0;
  background: transparent;
  padding: 8px 0;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.dropdown-button:hover {
  color: #fb923c;
}

.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 190px;
  padding: 10px;
  display: grid;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.96);
  box-shadow: var(--shadow);
  transition: all 0.2s ease;
}

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

.dropdown-menu a {
  padding: 9px 12px;
  border-radius: 10px;
  color: #cbd5e1;
}

.dropdown-menu a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-search input,
.mobile-search input {
  width: 220px;
  color: #ffffff;
  padding: 10px 14px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  outline: 0;
  background: rgba(51, 65, 85, 0.92);
}

.nav-search input::placeholder,
.mobile-search input::placeholder {
  color: #cbd5e1;
}

.nav-search button,
.mobile-search button {
  border: 0;
  color: #ffffff;
  padding: 10px 15px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--orange), var(--pink));
  cursor: pointer;
}

.mobile-toggle {
  display: none;
  color: #ffffff;
  border: 0;
  border-radius: 10px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.1);
}

.mobile-panel {
  display: none;
  padding: 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.98);
}

.mobile-panel.open {
  display: grid;
  gap: 10px;
}

.mobile-panel a {
  padding: 10px 12px;
  border-radius: 12px;
  color: #e2e8f0;
}

.mobile-panel a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.mobile-search {
  display: flex;
  gap: 8px;
}

.mobile-search input {
  flex: 1;
  width: auto;
}

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

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

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

.hero-bg,
.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1) brightness(0.62);
  transform: scale(1.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 36%, rgba(249, 115, 22, 0.24), transparent 30%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(15, 23, 42, 0.8) 44%, rgba(15, 23, 42, 0.2));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 650px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 360px;
  gap: 58px;
  align-items: center;
  color: #ffffff;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
  color: #fb923c;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0 0 20px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.hero-copy p {
  max-width: 720px;
  margin: 0;
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.85;
}

.hero-tags,
.detail-tags,
.card-tags,
.rank-tags,
.detail-keywords,
.detail-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags {
  margin: 24px 0 30px;
}

.hero-tags span,
.detail-tags span,
.card-tags span,
.rank-tags span,
.detail-keywords span,
.detail-stats span {
  border-radius: 999px;
  padding: 7px 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}

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

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

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

.btn-primary {
  color: #ffffff;
  background: linear-gradient(90deg, var(--orange), var(--pink));
  box-shadow: 0 18px 34px rgba(249, 115, 22, 0.28);
}

.btn-ghost {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.12);
}

.hero-poster {
  position: relative;
  display: block;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.45);
  transform: rotate(1deg);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.hero-poster span,
.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 16px 38px rgba(249, 115, 22, 0.34);
}

.hero-poster span {
  width: 82px;
  height: 82px;
  font-size: 30px;
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  font-size: 34px;
  line-height: 1;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.hero-control.prev {
  left: 24px;
}

.hero-control.next {
  right: 24px;
}

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

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

.hero-dots button.active {
  width: 64px;
  background: linear-gradient(90deg, var(--orange), var(--pink));
}

.section {
  padding: 72px 0;
}

.section-light {
  background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
}

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

.section-pink {
  background: linear-gradient(135deg, #fdf2f8 0%, #f5f3ff 100%);
}

.section-dark {
  color: #ffffff;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

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

.section-head.split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.section-head h2,
.page-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-head p,
.page-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.dark-title p,
.section-dark .section-head p {
  color: #cbd5e1;
}

.link-more {
  color: var(--orange);
  font-weight: 800;
}

.link-more.light {
  color: #67e8f9;
}

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

.category-tile {
  position: relative;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  overflow: hidden;
  border-radius: var(--radius);
  color: #ffffff;
  box-shadow: var(--shadow);
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.category-tile:hover img {
  transform: scale(1.08);
}

.tile-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.9), rgba(2, 6, 23, 0.16));
}

.category-tile strong,
.category-tile small {
  position: relative;
  z-index: 2;
}

.category-tile strong {
  font-size: 22px;
  margin-bottom: 8px;
}

.category-tile small {
  color: #e2e8f0;
  line-height: 1.6;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
}

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--slate-800);
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: rgba(0, 0, 0, 0.42);
  transition: opacity 0.25s ease;
}

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

.play-badge {
  width: 56px;
  height: 56px;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.duration {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 5px 8px;
  border-radius: 8px;
  color: #ffffff;
  font-size: 12px;
  background: rgba(0, 0, 0, 0.72);
}

.card-body {
  padding: 16px;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 800;
}

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

.movie-card h3 a:hover,
.rank-info h3 a:hover {
  color: var(--orange);
}

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

.card-tags span {
  color: #9a3412;
  background: #ffedd5;
  font-size: 12px;
  padding: 5px 9px;
}

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

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

.rank-row {
  display: grid;
  grid-template-columns: auto 158px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, background 0.2s ease;
}

.rank-row:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.13);
}

.rank-page-section .rank-row {
  background: rgba(15, 23, 42, 0.55);
}

.rank-num {
  width: 48px;
  color: #67e8f9;
  font-size: 32px;
  font-weight: 900;
  text-align: center;
}

.rank-cover {
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 16 / 10;
  background: var(--slate-800);
}

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

.rank-info h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.rank-info p {
  margin: 0 0 12px;
  color: #cbd5e1;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rank-tags span {
  color: #e0f2fe;
  background: rgba(14, 165, 233, 0.18);
  font-size: 12px;
}

.page-main {
  min-height: 70vh;
}

.page-hero {
  padding: 96px 0 64px;
  color: #ffffff;
  background:
    radial-gradient(circle at 80% 20%, rgba(249, 115, 22, 0.28), transparent 32%),
    linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.page-hero.slim {
  padding: 88px 0 56px;
}

.page-hero p {
  color: #cbd5e1;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 760px;
  margin-top: 28px;
}

.filter-bar.wide {
  max-width: 960px;
}

.filter-bar input,
.filter-bar select {
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 999px;
  outline: 0;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.96);
}

.filter-bar input {
  flex: 1 1 300px;
}

.filter-bar select {
  min-width: 160px;
}

.stacked-panels {
  display: grid;
  gap: 26px;
}

.category-panel {
  padding: 28px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.category-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.category-panel h2 {
  margin: 0 0 8px;
  font-size: 30px;
}

.category-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

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

.detail-mask {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 24%, rgba(219, 39, 119, 0.24), transparent 32%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.68), #020617 100%);
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  padding: 34px 0 62px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
  color: #cbd5e1;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #fb923c;
}

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

.player-card {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  border-radius: 28px;
  background: #000000;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5);
}

.movie-video {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: contain;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.player-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.player-overlay span {
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 34px;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 20px 46px rgba(249, 115, 22, 0.36);
}

.player-message {
  position: absolute;
  left: 18px;
  bottom: 18px;
  max-width: calc(100% - 36px);
  color: #ffffff;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.62);
  display: none;
}

.player-message.show {
  display: block;
}

.detail-side {
  overflow: hidden;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
}

.detail-side img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.side-rating {
  padding: 18px;
  color: #facc15;
  font-size: 24px;
  font-weight: 900;
  text-align: center;
}

.detail-content {
  max-width: 980px;
}

.detail-main-card {
  padding: 34px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.detail-tags span {
  color: #9a3412;
  background: #ffedd5;
}

.detail-main-card h1 {
  margin: 22px 0 14px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.detail-main-card .lead {
  color: #334155;
  font-size: 20px;
  line-height: 1.75;
}

.detail-stats {
  margin: 24px 0 30px;
}

.detail-stats span {
  color: #0f172a;
  background: #e2e8f0;
}

.detail-main-card h2 {
  margin: 32px 0 12px;
  font-size: 26px;
}

.detail-main-card p {
  color: #475569;
  line-height: 1.9;
}

.detail-keywords {
  margin-top: 26px;
}

.detail-keywords span {
  color: #be123c;
  background: #ffe4e6;
}

.site-footer {
  color: #cbd5e1;
  background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0 34px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 30px;
}

.footer-grid p {
  color: #94a3b8;
  line-height: 1.8;
}

.footer-grid h3 {
  margin: 0 0 16px;
  color: #ffffff;
}

.footer-grid a,
.footer-grid span {
  display: block;
  margin: 9px 0;
  color: #94a3b8;
}

.footer-grid a:hover {
  color: #fb923c;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 30px;
  color: #64748b;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.hidden-by-filter {
  display: none !important;
}

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

  .mobile-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 94px 0 90px;
  }

  .hero-poster {
    width: min(360px, 100%);
  }

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

  .rank-list.compact,
  .footer-grid,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-side {
    display: none;
  }
}

@media (max-width: 760px) {
  .header-inner {
    height: 62px;
  }

  .brand {
    font-size: 20px;
  }

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

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

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

  .hero-poster {
    display: none;
  }

  .hero-control {
    display: none;
  }

  .section {
    padding: 48px 0;
  }

  .section-head.split,
  .category-panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .rank-row {
    grid-template-columns: 44px 108px minmax(0, 1fr);
    gap: 12px;
  }

  .rank-num {
    width: 38px;
    font-size: 24px;
  }

  .rank-info p,
  .rank-tags {
    display: none;
  }

  .player-card,
  .movie-video {
    min-height: 240px;
  }

  .detail-main-card {
    padding: 24px;
  }
}

@media (max-width: 520px) {
  .category-grid,
  .movie-grid,
  .movie-grid.mini,
  .movie-grid.small-grid {
    grid-template-columns: 1fr;
  }

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

  .rank-cover {
    width: 100%;
  }

  .rank-num {
    text-align: left;
  }
}
