
* {
  box-sizing: border-box;
}

:root {
  --bg: #f8fafc;
  --text: #111827;
  --muted: #64748b;
  --line: #e5e7eb;
  --card: #ffffff;
  --amber: #f59e0b;
  --orange: #f97316;
  --slate: #0f172a;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
  --soft-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius: 22px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #eef2ff 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.65;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

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

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.35);
}

.brand-text strong {
  display: block;
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: #d97706;
}

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

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

.nav-link {
  padding: 10px 16px;
  border-radius: 14px;
  font-weight: 700;
  color: #475569;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.nav-link:hover {
  color: #0f172a;
  background: #f1f5f9;
  transform: translateY(-1px);
}

.nav-link.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.24);
}

.mobile-toggle {
  display: none;
  border: 0;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #f1f5f9;
  color: #0f172a;
  font-size: 22px;
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 12px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.mobile-panel a {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 700;
  color: #334155;
}

.mobile-panel a:hover {
  background: #f8fafc;
}

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

.hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: radial-gradient(circle at 15% 20%, rgba(245, 158, 11, 0.28), transparent 34%), linear-gradient(135deg, #020617 0%, #111827 48%, #1e293b 100%);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.35) 1px, transparent 0);
  background-size: 34px 34px;
}

.hero-wrap {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  min-height: 640px;
  margin: 0 auto;
  padding: 74px 0;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 44px;
}

.hero-copy .pill,
.detail-hero .pill,
.page-hero .pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  margin-bottom: 20px;
  border-radius: 999px;
  color: #fde68a;
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.3);
  backdrop-filter: blur(10px);
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 74px);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.gradient-text {
  color: transparent;
  background: linear-gradient(90deg, #fde68a, #fb923c, #fcd34d);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-copy p {
  max-width: 560px;
  margin: 22px 0 0;
  font-size: 18px;
  color: #cbd5e1;
}

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

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 16px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 16px 32px rgba(249, 115, 22, 0.34);
}

.btn-secondary {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

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

.hero-showcase {
  position: relative;
}

.hero-slides {
  position: relative;
  min-height: 470px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(22px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

.hero-card {
  position: relative;
  height: 100%;
  min-height: 470px;
  overflow: hidden;
  border-radius: 30px;
  background: #111827;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
}

.hero-card img {
  width: 100%;
  height: 100%;
  min-height: 470px;
  object-fit: cover;
  background: linear-gradient(135deg, #1e293b, #0f172a);
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.18) 55%, rgba(2, 6, 23, 0.18));
}

.hero-card-content {
  position: absolute;
  z-index: 2;
  left: 28px;
  right: 28px;
  bottom: 28px;
}

.hero-card-content h2 {
  margin: 10px 0 10px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
}

.hero-card-content p {
  margin: 0;
  color: #d1d5db;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #fef3c7;
  font-weight: 700;
}

.meta-line span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.14);
}

.hero-dots {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  justify-content: center;
}

.hero-dots button {
  width: 34px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.hero-dots button.active {
  background: linear-gradient(135deg, var(--amber), var(--orange));
}

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

.section {
  padding: 58px 0 0;
}

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

.section-kicker {
  display: block;
  color: #d97706;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.section-head h2 {
  margin: 4px 0 8px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.section-link {
  flex: 0 0 auto;
  padding: 10px 16px;
  border-radius: 14px;
  color: #ea580c;
  font-weight: 800;
  background: #fff7ed;
}

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: var(--soft-shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #111827;
}

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

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

.poster::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.76), transparent);
}

.poster-badge {
  position: absolute;
  z-index: 2;
  left: 12px;
  top: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--amber), var(--orange));
}

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

.movie-meta {
  display: flex;
  gap: 8px;
  color: #d97706;
  font-size: 13px;
  font-weight: 900;
}

.movie-card h3 {
  margin: 8px 0;
  font-size: 19px;
  line-height: 1.25;
}

.movie-card h3 a:hover {
  color: #ea580c;
}

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

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

.tag-row span {
  color: #92400e;
  font-size: 12px;
  background: #fff7ed;
}

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

.category-card {
  min-height: 156px;
  padding: 22px;
  border-radius: var(--radius);
  color: #ffffff;
  background: linear-gradient(135deg, #111827, #1e293b 58%, #7c2d12);
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease;
}

.category-card:hover {
  transform: translateY(-4px);
}

.category-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 23px;
}

.category-card p {
  margin: 0;
  color: #d1d5db;
  font-size: 14px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 48px 74px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: var(--soft-shadow);
}

.rank-num {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--amber), var(--orange));
}

.rank-item img {
  width: 74px;
  height: 96px;
  object-fit: cover;
  border-radius: 14px;
  background: #111827;
}

.rank-item strong {
  display: block;
  font-size: 17px;
}

.rank-item em {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.page-hero {
  padding: 64px 0;
  color: #ffffff;
  background: radial-gradient(circle at 85% 0%, rgba(245, 158, 11, 0.24), transparent 32%), linear-gradient(135deg, #020617, #111827 60%, #1e293b);
}

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

.page-hero h1,
.detail-hero h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.1;
}

.page-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  color: #cbd5e1;
  font-size: 18px;
}

.filter-panel {
  display: flex;
  gap: 12px;
  margin: 28px 0;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(14px);
}

.filter-panel input,
.filter-panel select {
  min-height: 46px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 0 14px;
  color: #0f172a;
  background: #ffffff;
  font: inherit;
}

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

.detail-hero {
  color: #ffffff;
  background: linear-gradient(135deg, #020617, #111827 60%, #1e293b);
}

.detail-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 60px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 42px;
}

.breadcrumb {
  margin-bottom: 20px;
  color: #cbd5e1;
  font-size: 14px;
}

.breadcrumb a {
  color: #fcd34d;
}

.detail-intro p {
  color: #cbd5e1;
  font-size: 18px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.35);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #111827;
}

.player-section {
  margin-top: -28px;
  position: relative;
  z-index: 2;
}

.player-box {
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.24);
}

.video-shell {
  position: relative;
  background: #020617;
}

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

.play-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.62), rgba(2, 6, 23, 0.28));
  cursor: pointer;
}

.play-layer span {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  font-size: 30px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 20px 45px rgba(249, 115, 22, 0.32);
}

.play-layer.is-hidden {
  display: none;
}

.content-panel {
  padding: 34px;
  margin-top: 28px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.content-panel h2 {
  margin: 0 0 14px;
  font-size: 30px;
}

.content-panel p {
  margin: 0 0 18px;
  color: #334155;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.compact-card img {
  width: 74px;
  height: 96px;
  object-fit: cover;
  border-radius: 14px;
  background: #111827;
}

.compact-card strong {
  display: block;
  line-height: 1.25;
}

.compact-card em {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.site-footer {
  margin-top: 70px;
  padding: 44px 0 24px;
  color: #cbd5e1;
  background: linear-gradient(135deg, #020617, #111827);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer-logo {
  display: inline-block;
  color: #fcd34d;
  font-size: 22px;
  font-weight: 900;
}

.footer-inner p {
  max-width: 640px;
  margin: 8px 0 0;
  color: #94a3b8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-content: flex-start;
}

.footer-links a {
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.copyright {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #64748b;
}

.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  font-size: 22px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 18px 35px rgba(249, 115, 22, 0.32);
}

.back-top.show {
  display: block;
}

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

@media (max-width: 980px) {
  .hero-wrap,
  .detail-wrap {
    grid-template-columns: 1fr;
  }

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

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

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

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

  .mobile-toggle {
    display: grid;
    place-items: center;
  }

  .nav-shell {
    min-height: 66px;
  }

  .hero-wrap {
    min-height: auto;
    padding: 48px 0;
  }

  .hero-slides,
  .hero-card,
  .hero-card img {
    min-height: 360px;
  }

  .movie-grid,
  .rank-list,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .filter-panel {
    flex-direction: column;
  }

  .footer-inner {
    flex-direction: column;
  }
}

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

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

  .brand-text strong {
    font-size: 17px;
  }

  .hero-card-content {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }

  .content-panel {
    padding: 22px;
  }
}
