:root {
  --amber: #d97706;
  --amber-dark: #b45309;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #f9fafb;
  --panel: #ffffff;
  --deep: #0f172a;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--soft);
  line-height: 1.6;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  max-width: 1200px;
  height: 68px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #b45309);
  box-shadow: 0 12px 26px rgba(217, 119, 6, 0.32);
}

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

.nav-link {
  position: relative;
  font-size: 15px;
  font-weight: 650;
  color: #374151;
  padding: 22px 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 15px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--amber);
  transition: transform 0.22s ease;
}

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

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

.header-search,
.mobile-search,
.filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input,
.filter-bar input,
.filter-bar select {
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 12px;
  color: #374151;
  background: #fff;
  outline: none;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.14);
}

.header-search button,
.mobile-search button,
.filter-bar button,
.primary-btn,
.secondary-btn,
.card-action,
.play-overlay button {
  border: 0;
  border-radius: 12px;
  padding: 10px 16px;
  font-weight: 750;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #b45309);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  box-shadow: 0 12px 24px rgba(217, 119, 6, 0.24);
}

.header-search button:hover,
.mobile-search button:hover,
.filter-bar button:hover,
.primary-btn:hover,
.secondary-btn:hover,
.card-action:hover,
.play-overlay button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(217, 119, 6, 0.32);
}

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

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  padding: 14px 20px 20px;
  background: #fff;
}

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

.mobile-panel nav {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.mobile-panel .nav-link {
  padding: 9px 0;
}

.page-main,
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 54px 20px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 630px;
  color: #fff;
  background: radial-gradient(circle at 20% 25%, rgba(245, 158, 11, 0.34), transparent 30%), linear-gradient(135deg, #09090b 0%, #1f2937 44%, #3a1d06 100%);
}

.hero-slider {
  position: relative;
  min-height: 630px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  transform: scale(1.01);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  filter: saturate(1.08) contrast(1.05);
}

.hero-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(2, 6, 23, 0.66) 45%, rgba(2, 6, 23, 0.25) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 72px 20px 96px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.72fr);
  gap: 48px;
  align-items: center;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: #fde68a;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.hero h1,
.page-title h1,
.detail-copy h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 66px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.hero p {
  margin: 18px 0 0;
  max-width: 660px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

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

.secondary-btn {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: none;
}

.hero-poster {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  min-height: 440px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
  transform: rotate(1.4deg);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: cover;
}

.hero-poster-card {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
}

.hero-poster-card strong {
  display: block;
  font-size: 20px;
}

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

.hero-dots button {
  width: 42px;
  height: 5px;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.hero-dots button.active {
  background: #f59e0b;
}

.section-title,
.page-title {
  margin-bottom: 26px;
}

.section-title h2,
.page-title h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-title p,
.page-title p {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 780px;
}

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

.category-chip,
.category-tile {
  display: block;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.05);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.category-chip:hover,
.category-tile:hover {
  transform: translateY(-3px);
  border-color: rgba(217, 119, 6, 0.45);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.09);
}

.category-chip strong,
.category-tile strong {
  display: block;
  font-size: 18px;
}

.category-chip span,
.category-tile span {
  color: var(--muted);
  font-size: 14px;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.07);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(217, 119, 6, 0.42);
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.13);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #111827, #78350f);
}

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

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

.poster-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  border-radius: 999px;
  padding: 5px 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(12px);
}

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

.movie-meta-line {
  display: flex;
  gap: 8px;
  color: var(--amber-dark);
  font-size: 13px;
  font-weight: 800;
}

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

.movie-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  min-height: 44px;
}

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

.tag-row span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 9px;
  color: #92400e;
  font-size: 12px;
  font-weight: 760;
  background: #fef3c7;
}

.card-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 14px;
}

.rank-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.rank-item {
  display: grid;
  grid-template-columns: 42px 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 10px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.05);
}

.rank-num {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  color: #fff;
  font-weight: 900;
  background: var(--deep);
}

.rank-item:nth-child(-n+3) .rank-num {
  background: linear-gradient(135deg, #f59e0b, #b45309);
}

.rank-item img {
  width: 56px;
  height: 74px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}

.rank-extra {
  color: var(--muted);
  font-size: 13px;
}

.filter-bar {
  align-items: stretch;
  flex-wrap: wrap;
  margin: 18px 0 28px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}

.filter-bar input {
  min-width: 250px;
  flex: 1;
}

.detail-hero {
  background: linear-gradient(135deg, #111827, #3a1d06);
  color: #fff;
}

.detail-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 54px 20px;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 34px;
  align-items: end;
}

.detail-cover {
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.34);
}

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

.breadcrumb {
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

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

.detail-copy p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.detail-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.detail-facts span {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 7px 12px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.1);
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #000;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.16);
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.58));
  cursor: pointer;
  z-index: 2;
}

.play-overlay.hidden {
  display: none;
}

.play-overlay button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  padding: 14px 24px;
}

.content-block {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.05);
}

.content-block h2 {
  margin: 0 0 10px;
  font-size: 26px;
  font-weight: 900;
}

.content-block p {
  margin: 0 0 14px;
  color: #4b5563;
}

.site-footer {
  margin-top: 40px;
  color: #d1d5db;
  background: #111827;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 42px 20px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
}

.site-footer h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 18px;
}

.site-footer p {
  max-width: 520px;
  color: #d1d5db;
}

.site-footer a {
  display: block;
  margin-bottom: 8px;
  color: #d1d5db;
}

.site-footer a:hover {
  color: #f59e0b;
}

.footer-logo {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 20px;
  text-align: center;
  color: #9ca3af;
}

.empty-state {
  display: none;
  border: 1px dashed #d1d5db;
  border-radius: 20px;
  padding: 30px;
  color: var(--muted);
  text-align: center;
  background: #fff;
}

@media (max-width: 1024px) {
  .header-search {
    display: none;
  }

  .hero-inner,
  .detail-wrap {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    min-height: auto;
    max-width: 360px;
    transform: none;
  }

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

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

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

  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero,
  .hero-slider,
  .hero-slide {
    min-height: 720px;
  }

  .hero-inner {
    padding-top: 42px;
    gap: 26px;
  }

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

  .movie-grid,
  .rank-panel,
  .footer-grid,
  .category-strip,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: 36px 50px minmax(0, 1fr);
  }

  .rank-extra {
    display: none;
  }

  .detail-wrap,
  .page-main,
  .section {
    padding-top: 34px;
    padding-bottom: 34px;
  }

  .filter-bar input,
  .filter-bar select,
  .filter-bar button {
    width: 100%;
  }
}

.category-wide {
  min-height: 250px;
}

.tile-preview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 16px;
}

.tile-preview img {
  aspect-ratio: 3 / 4;
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  background: linear-gradient(135deg, #111827, #78350f);
}
