:root {
  --bg: #0f172a;
  --bg-soft: #111827;
  --panel: rgba(15, 23, 42, 0.86);
  --panel-solid: #1e293b;
  --panel-light: #253449;
  --text: #f8fafc;
  --muted: #94a3b8;
  --line: rgba(148, 163, 184, 0.22);
  --amber: #f59e0b;
  --amber-strong: #d97706;
  --orange: #f97316;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.16), transparent 34rem),
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 32rem),
    linear-gradient(180deg, #0f172a 0%, #1e293b 48%, #0f172a 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: 80;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96));
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
}

.nav-wrap {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.brand-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  font-size: 15px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.35);
  transition: transform 0.28s ease;
}

.brand:hover .brand-icon {
  transform: scale(1.08) rotate(-4deg);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #cbd5e1;
  font-size: 15px;
  font-weight: 700;
}

.nav-link {
  position: relative;
  padding: 23px 0;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  height: 2px;
  border-radius: 999px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.menu-button {
  width: 42px;
  height: 42px;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 0;
  border-radius: 12px;
  color: #ffffff;
  background: rgba(51, 65, 85, 0.75);
  cursor: pointer;
}

.menu-button span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #ffffff;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.98);
  box-shadow: var(--shadow);
}

.mobile-nav.open {
  display: grid;
  gap: 6px;
  animation: slideDown 0.28s ease;
}

.mobile-nav-link {
  padding: 12px 14px;
  border-radius: 12px;
  color: #cbd5e1;
}

.mobile-nav-link:hover {
  color: #ffffff;
  background: rgba(51, 65, 85, 0.92);
}

.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: #020617;
}

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

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #1e293b, #0f172a 52%, #92400e);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.2) 0%, rgba(15, 23, 42, 0.72) 52%, #0f172a 100%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.58) 44%, rgba(15, 23, 42, 0.12) 100%);
}

.hero-content {
  position: absolute;
  left: 50%;
  bottom: 72px;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--amber);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-kicker a {
  padding: 6px 12px;
  border: 1px solid rgba(245, 158, 11, 0.34);
  border-radius: 999px;
  color: #fde68a;
  background: rgba(245, 158, 11, 0.14);
  backdrop-filter: blur(8px);
}

.hero h1,
.hero h2 {
  max-width: 780px;
  margin: 18px 0 14px;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

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

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

.hero-meta span,
.detail-meta-grid span,
.wide-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

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

.primary-button,
.secondary-button,
.ghost-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 20px 40px rgba(245, 158, 11, 0.32);
}

.secondary-button,
.ghost-link {
  color: #e2e8f0;
  background: rgba(51, 65, 85, 0.74);
  border: 1px solid rgba(148, 163, 184, 0.24);
}

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

.secondary-button:hover,
.ghost-link:hover {
  background: rgba(71, 85, 105, 0.94);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #ffffff;
  font-size: 38px;
  line-height: 1;
  background: rgba(0, 0, 0, 0.45);
  transform: translateY(-50%);
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: background 0.25s ease, transform 0.25s ease;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: translateY(-50%) scale(1.06);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

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

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

.main-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 64px;
}

.page-shell {
  padding-top: 36px;
}

.content-section,
.search-section,
.rank-section,
.story-section,
.player-section {
  margin-top: 56px;
}

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

.section-header h2,
.page-hero h1,
.detail-copy h1,
.text-panel h2 {
  margin: 8px 0 0;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.16;
  letter-spacing: -0.03em;
}

.split-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

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

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

.movie-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 22px;
  background: rgba(30, 41, 59, 0.82);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.42);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.36);
}

.poster-wrap,
.detail-cover,
.wide-cover,
.rank-thumb {
  position: relative;
  overflow: hidden;
  display: block;
  background:
    radial-gradient(circle at 30% 20%, rgba(245, 158, 11, 0.22), transparent 38%),
    linear-gradient(135deg, #334155, #0f172a 64%, #92400e);
}

.poster-wrap {
  aspect-ratio: 3 / 4.2;
}

.poster-wrap img,
.detail-cover img,
.wide-cover img,
.rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.movie-card:hover .poster-wrap img,
.wide-card:hover .wide-cover img {
  transform: scale(1.06);
}

.poster-badge {
  position: absolute;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(10px);
}

.year-badge {
  left: 10px;
  top: 10px;
}

.type-badge {
  right: 10px;
  bottom: 10px;
  color: #1f2937;
  background: rgba(245, 158, 11, 0.92);
}

.movie-body {
  padding: 16px;
}

.movie-title {
  display: -webkit-box;
  min-height: 48px;
  overflow: hidden;
  color: #ffffff;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.42;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-title:hover {
  color: #fbbf24;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
  color: var(--muted);
  font-size: 13px;
}

.movie-meta a {
  color: #fbbf24;
}

.movie-body p,
.wide-copy p,
.page-hero p,
.detail-one-line,
.text-panel p,
.site-footer p {
  color: #cbd5e1;
  line-height: 1.78;
}

.movie-body p {
  display: -webkit-box;
  min-height: 48px;
  margin: 0;
  overflow: hidden;
  color: #aebbd0;
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.tag-row span {
  padding: 5px 9px;
  border-radius: 999px;
  color: #fef3c7;
  font-size: 12px;
  background: rgba(245, 158, 11, 0.13);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.scroll-row {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 4px 0 18px;
  scroll-snap-type: x mandatory;
}

.scroll-card {
  width: 280px;
  flex: 0 0 280px;
  scroll-snap-align: start;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 24px;
}

.filter-chip {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  color: #cbd5e1;
  font-weight: 800;
  background: rgba(51, 65, 85, 0.76);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.filter-chip:hover,
.filter-chip.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  transform: translateY(-1px);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.center-actions {
  margin-top: 24px;
  text-align: center;
}

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

.wide-card {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 16px;
  min-height: 156px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 22px;
  background: rgba(30, 41, 59, 0.82);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.wide-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.42);
}

.wide-cover {
  border-radius: 16px;
}

.wide-copy {
  min-width: 0;
}

.wide-copy a {
  display: -webkit-box;
  margin: 10px 0 6px;
  overflow: hidden;
  color: #ffffff;
  font-weight: 800;
  line-height: 1.4;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.wide-copy a:hover {
  color: #fbbf24;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px 160px;
  gap: 12px;
  padding: 14px;
  margin-bottom: 18px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.search-panel input,
.search-panel select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  color: #ffffff;
  background: rgba(30, 41, 59, 0.92);
  outline: none;
}

.search-panel input {
  padding: 0 16px;
}

.search-panel select {
  padding: 0 12px;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 30px;
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.22), transparent 34rem),
    linear-gradient(135deg, rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.94));
  box-shadow: var(--shadow);
}

.page-hero {
  padding: 44px;
}

.page-hero p {
  max-width: 780px;
  font-size: 17px;
}

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

.category-card {
  padding: 24px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 24px;
  background: rgba(30, 41, 59, 0.78);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.42);
}

.category-main-link span {
  display: block;
  color: #fbbf24;
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 8px;
}

.category-main-link strong {
  display: block;
  color: #e2e8f0;
  font-weight: 500;
  line-height: 1.7;
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.category-samples a {
  padding: 7px 10px;
  border-radius: 999px;
  color: #cbd5e1;
  font-size: 13px;
  background: rgba(15, 23, 42, 0.58);
}

.rank-list {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

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

.rank-item a {
  display: grid;
  grid-template-columns: 54px 70px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 20px;
  background: rgba(30, 41, 59, 0.78);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.rank-item a:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 158, 11, 0.44);
}

.rank-number {
  color: #fbbf24;
  font-size: 22px;
  font-weight: 900;
  text-align: center;
}

.rank-thumb {
  width: 70px;
  height: 92px;
  border-radius: 14px;
}

.rank-copy {
  min-width: 0;
}

.rank-copy strong {
  display: block;
  overflow: hidden;
  color: #ffffff;
  font-size: 17px;
  font-weight: 900;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-copy em {
  display: block;
  margin-top: 7px;
  color: #94a3b8;
  font-size: 13px;
  font-style: normal;
}

.rank-score {
  padding: 8px 12px;
  border-radius: 999px;
  color: #1f2937;
  font-size: 13px;
  font-weight: 900;
  background: #fbbf24;
}

.detail-hero {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 34px;
  padding: 28px;
}

.detail-cover {
  aspect-ratio: 3 / 4.2;
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

.detail-copy {
  align-self: center;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #94a3b8;
  font-size: 14px;
}

.breadcrumbs a {
  color: #fbbf24;
}

.detail-one-line {
  max-width: 760px;
  font-size: 18px;
}

.player-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 10%, rgba(245, 158, 11, 0.18), transparent 34rem),
    #020617;
  box-shadow: var(--shadow);
}

.video-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  color: #ffffff;
  background:
    radial-gradient(circle at center, rgba(245, 158, 11, 0.2), transparent 26rem),
    rgba(2, 6, 23, 0.56);
  cursor: pointer;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.play-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-circle {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-size: 28px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 18px 48px rgba(245, 158, 11, 0.38);
}

.play-overlay strong {
  font-size: 22px;
}

.story-section {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
}

.text-panel {
  padding: 26px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 26px;
  background: rgba(30, 41, 59, 0.76);
}

.text-panel h2 {
  font-size: 26px;
}

.text-panel p {
  margin-bottom: 0;
  font-size: 16px;
}

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(2, 6, 23, 0.52);
}

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

.footer-brand {
  color: #ffffff;
}

.site-footer h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: #94a3b8;
}

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

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

.is-hidden-card {
  display: none !important;
}

.image-empty img {
  display: none;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .menu-button {
    display: flex;
  }

  .hero {
    height: 560px;
  }

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

  .wide-grid,
  .compact-rank,
  .story-section {
    grid-template-columns: 1fr;
  }

  .detail-hero {
    grid-template-columns: 260px minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .nav-wrap,
  .main-shell,
  .footer-grid,
  .footer-bottom,
  .mobile-nav {
    width: min(100% - 24px, 1180px);
  }

  .hero {
    height: 560px;
  }

  .hero-content {
    bottom: 70px;
    width: min(100% - 28px, 1180px);
  }

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

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

  .hero-arrow {
    display: none;
  }

  .split-header {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .movie-body {
    padding: 13px;
  }

  .movie-title {
    min-height: 44px;
    font-size: 15px;
  }

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

  .category-grid,
  .footer-grid,
  .detail-hero {
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding: 28px;
  }

  .detail-cover {
    width: min(100%, 280px);
  }

  .rank-item a {
    grid-template-columns: 42px 58px minmax(0, 1fr);
  }

  .rank-thumb {
    width: 58px;
    height: 76px;
  }

  .rank-score {
    grid-column: 3;
    justify-self: start;
  }

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

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

  .scroll-card {
    width: 238px;
    flex-basis: 238px;
  }

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