* {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-850: #111827;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
  --orange-600: #ea580c;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.14), transparent 32rem),
    linear-gradient(180deg, var(--slate-900), var(--slate-800) 42%, var(--slate-900));
  color: var(--slate-200);
}

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

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

button,
input {
  font: inherit;
}

.site-shell {
  min-height: 100vh;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid rgba(245, 158, 11, 0.18);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 22px;
}

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

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  color: var(--white);
  box-shadow: 0 16px 36px rgba(245, 158, 11, 0.28);
  transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.06) rotate(-2deg);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.08;
}

.brand-copy strong {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 800;
  background: linear-gradient(90deg, var(--amber-400), var(--orange-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.brand-copy small {
  color: var(--slate-400);
  font-size: 0.78rem;
  margin-top: 4px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  color: var(--slate-300);
  font-weight: 650;
  transition: color 0.2s ease;
}

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

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.82);
  color: var(--slate-200);
  cursor: pointer;
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.mobile-nav a {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--slate-300);
}

.mobile-nav a:hover {
  background: rgba(30, 41, 59, 0.88);
  color: var(--amber-400);
}

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

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

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

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

.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-shade-bottom {
  background: linear-gradient(0deg, var(--slate-900) 4%, rgba(15, 23, 42, 0.62) 46%, transparent 100%);
}

.hero-shade-side {
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.34) 48%, transparent 100%);
}

.hero-content {
  position: absolute;
  left: 50%;
  bottom: 64px;
  transform: translateX(-50%);
  z-index: 2;
  max-width: 1180px;
}

.hero-content h1,
.hero-content h2 {
  max-width: 720px;
  margin: 0 0 18px;
  color: var(--white);
  font-size: clamp(2.35rem, 5vw, 5.2rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-content h2 {
  font-size: clamp(2rem, 4vw, 4.3rem);
}

.hero-content p {
  max-width: 640px;
  margin: 0 0 28px;
  color: var(--slate-200);
  font-size: clamp(1rem, 1.4vw, 1.14rem);
  line-height: 1.85;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.9);
  color: var(--white);
  font-weight: 750;
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.22);
}

.hero-actions,
.more-line {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

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

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

.btn-primary {
  background: var(--amber-500);
  color: var(--white);
  box-shadow: 0 18px 36px rgba(245, 158, 11, 0.25);
}

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

.btn-ghost {
  border: 1px solid rgba(251, 191, 36, 0.32);
  background: rgba(15, 23, 42, 0.52);
  color: var(--slate-200);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  border-color: rgba(251, 191, 36, 0.72);
  color: var(--amber-400);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.82);
  color: var(--white);
  font-size: 2.25rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(15, 23, 42, 0.96);
  transform: translateY(-2px);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dots button {
  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-dots button.is-active {
  width: 36px;
  background: var(--amber-500);
}

.intro-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: -34px;
  position: relative;
  z-index: 4;
}

.intro-band a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.intro-band a:hover {
  transform: translateY(-4px);
  border-color: rgba(251, 191, 36, 0.42);
}

.intro-band strong {
  color: var(--white);
  font-size: 1.12rem;
}

.intro-band span {
  color: var(--slate-400);
}

.page-section {
  padding: 72px 0;
}

.section-surface {
  background: rgba(15, 23, 42, 0.48);
  border-block: 1px solid rgba(148, 163, 184, 0.1);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 30px;
}

.section-heading h2 {
  display: inline;
  margin: 0;
  color: var(--white);
  font-size: clamp(1.6rem, 3vw, 2.35rem);
}

.section-heading p {
  margin: 10px 0 0;
  color: var(--slate-400);
  line-height: 1.7;
}

.section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-right: 10px;
  border-radius: 11px;
  background: rgba(245, 158, 11, 0.16);
  color: var(--amber-400);
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.13);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.75);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(251, 191, 36, 0.38);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.34);
}

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

.movie-card-small .card-cover {
  aspect-ratio: 2 / 2.7;
}

.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.card-cover::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 58%;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.82), transparent);
}

.card-category,
.rank-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.92);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 800;
}

.rank-badge {
  left: auto;
  right: 12px;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(251, 191, 36, 0.36);
}

.card-body {
  padding: 17px;
}

.card-body h2 {
  margin: 0 0 8px;
  color: var(--white);
  font-size: 1.08rem;
  line-height: 1.35;
}

.card-body h2 a:hover {
  color: var(--amber-400);
}

.card-meta {
  margin: 0 0 10px;
  color: var(--slate-400);
  font-size: 0.86rem;
}

.card-desc {
  min-height: 48px;
  margin: 0 0 14px;
  color: var(--slate-300);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.tag-row span,
.meta-pills span,
.rank-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.92);
  color: var(--slate-300);
  font-size: 0.78rem;
}

.large-tags span {
  min-height: 32px;
  padding-inline: 12px;
}

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

.category-tile,
.collection-card {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.82);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.2);
}

.category-tile img,
.collection-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
  transition: transform 0.42s ease, opacity 0.42s ease;
}

.category-tile::after,
.collection-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.9), rgba(15, 23, 42, 0.28));
}

.category-tile span,
.category-tile p,
.collection-card div {
  position: relative;
  z-index: 2;
}

.category-tile span,
.collection-card h2 {
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 850;
}

.category-tile p,
.collection-card p {
  margin: 10px 0 0;
  color: var(--slate-300);
  line-height: 1.7;
}

.category-tile:hover img,
.collection-card:hover img {
  transform: scale(1.08);
  opacity: 0.42;
}

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

.collection-card {
  display: flex;
  min-height: 240px;
  align-items: end;
}

.collection-card span {
  display: inline-flex;
  margin-top: 18px;
  color: var(--amber-400);
  font-weight: 800;
}

.page-hero {
  padding: 78px 0 40px;
}

.compact-hero h1 {
  max-width: 760px;
  margin: 0 0 16px;
  color: var(--white);
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.compact-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--slate-300);
  font-size: 1.1rem;
  line-height: 1.85;
}

.filter-bar {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.72);
}

.filter-bar label {
  color: var(--white);
  font-weight: 800;
}

.filter-bar input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  outline: 0;
  background: rgba(2, 6, 23, 0.58);
  color: var(--white);
  padding: 0 16px;
}

.filter-bar input:focus {
  border-color: rgba(251, 191, 36, 0.62);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

.search-wide {
  grid-template-columns: 140px 1fr;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 92px 64px 1fr;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.75);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-row:hover {
  transform: translateX(4px);
  border-color: rgba(251, 191, 36, 0.38);
}

.rank-image {
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 1 / 1.2;
  background: var(--slate-800);
}

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

.rank-number {
  color: var(--amber-400);
  font-size: 1.7rem;
  font-weight: 900;
  text-align: center;
}

.rank-content h2 {
  margin: 0 0 8px;
  color: var(--white);
  font-size: 1.2rem;
}

.rank-content h2 a:hover {
  color: var(--amber-400);
}

.rank-content p {
  margin: 0 0 12px;
  color: var(--slate-300);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.breadcrumb {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 28px 0 0;
  color: var(--slate-400);
  font-size: 0.94rem;
}

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

.detail-hero {
  display: grid;
  grid-template-columns: minmax(240px, 340px) 1fr;
  align-items: center;
  gap: 36px;
  padding: 46px 0 42px;
}

.detail-poster {
  overflow: hidden;
  border: 1px solid rgba(251, 191, 36, 0.24);
  border-radius: 28px;
  background: var(--slate-800);
  box-shadow: var(--shadow);
  aspect-ratio: 2 / 2.8;
}

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

.detail-info h1 {
  margin: 0 0 18px;
  color: var(--white);
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.detail-one-line {
  margin: 0 0 22px;
  color: var(--slate-200);
  font-size: 1.12rem;
  line-height: 1.85;
}

.meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 16px;
}

.player-section {
  padding: 18px 0 42px;
}

.player-section h2,
.article-section h2 {
  margin: 0 0 18px;
  color: var(--white);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.video-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(251, 191, 36, 0.26);
  border-radius: 26px;
  background: #000;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.movie-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
  cursor: pointer;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: var(--white);
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.2), rgba(2, 6, 23, 0.72));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 78px;
  border-radius: 999px;
  background: var(--amber-500);
  color: var(--white);
  font-size: 2rem;
  box-shadow: 0 20px 50px rgba(245, 158, 11, 0.34);
}

.article-section {
  padding: 34px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 26px;
  background: rgba(15, 23, 42, 0.68);
}

.article-section p {
  margin: 0 0 26px;
  color: var(--slate-300);
  font-size: 1.04rem;
  line-height: 2;
}

.article-section p:last-child {
  margin-bottom: 0;
}

.site-footer {
  margin-top: 30px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  background: var(--slate-950);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 34px;
  padding: 46px 0;
}

.footer-brand p {
  max-width: 560px;
  color: var(--slate-400);
  line-height: 1.8;
}

.footer-logo {
  margin-bottom: 16px;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 1rem;
}

.site-footer a {
  display: block;
  margin: 10px 0;
  color: var(--slate-400);
}

.site-footer a:hover {
  color: var(--amber-400);
}

.footer-bottom {
  padding: 18px 0 24px;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  color: var(--slate-500, #64748b);
  text-align: center;
}

[hidden] {
  display: none !important;
}

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

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

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

  .hero {
    height: 66vh;
    min-height: 470px;
  }

  .hero-arrow {
    display: none;
  }

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

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

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

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .brand-copy small {
    display: none;
  }

  .header-inner {
    height: 64px;
  }

  .hero {
    min-height: 520px;
  }

  .hero-content {
    bottom: 68px;
  }

  .hero-content h1,
  .hero-content h2,
  .detail-info h1,
  .compact-hero h1 {
    letter-spacing: -0.03em;
  }

  .intro-band {
    margin-top: 16px;
  }

  .page-section {
    padding: 52px 0;
  }

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

  .filter-bar,
  .search-wide {
    grid-template-columns: 1fr;
  }

  .rank-row {
    grid-template-columns: 72px 48px 1fr;
    gap: 12px;
  }

  .rank-content p {
    -webkit-line-clamp: 3;
  }

  .detail-hero {
    gap: 24px;
  }

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

  .article-section {
    padding: 24px;
  }
}
