* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  background: #0f172a;
  color: #e5e7eb;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

.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(51, 65, 85, 0.75);
  backdrop-filter: blur(16px);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  box-shadow: 0 10px 28px rgba(245, 158, 11, 0.32);
}

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

.nav-link {
  color: #d1d5db;
  font-weight: 600;
  transition: color 0.25s ease;
}

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

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 0;
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.9);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #e5e7eb;
  border-radius: 99px;
}

.mobile-panel {
  display: none;
  padding: 10px 16px 18px;
  border-top: 1px solid rgba(51, 65, 85, 0.8);
  background: rgba(15, 23, 42, 0.98);
}

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

.hero {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

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

.hero-bg {
  position: absolute;
  inset: -18px;
  background-size: cover;
  background-position: center;
  filter: brightness(0.45) blur(2px);
  transform: scale(1.04);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(245, 158, 11, 0.28), transparent 32%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.24), #0f172a 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(860px, calc(100% - 32px));
  text-align: center;
  padding: 88px 0 112px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  padding: 8px 16px;
  border: 1px solid rgba(245, 158, 11, 0.42);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.62);
  color: #fbbf24;
  font-weight: 700;
}

.hero h1 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: clamp(34px, 6vw, 72px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero h2 {
  margin: 0 0 18px;
  color: #fbbf24;
  font-size: clamp(24px, 4vw, 44px);
  line-height: 1.2;
}

.hero p {
  margin: 0 auto 26px;
  max-width: 760px;
  color: #e5e7eb;
  font-size: clamp(16px, 2vw, 22px);
}

.hero-tags,
.tag-row,
.meta-row,
.detail-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags {
  justify-content: center;
  margin-bottom: 30px;
}

.hero-tags span,
.tag-row span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.92);
  color: #cbd5e1;
  font-size: 13px;
  padding: 5px 10px;
}

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

.primary-btn,
.ghost-btn,
.more-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.primary-btn {
  min-height: 48px;
  padding: 0 28px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  box-shadow: 0 18px 34px rgba(245, 158, 11, 0.28);
}

.ghost-btn {
  min-height: 48px;
  padding: 0 26px;
  color: #ffffff;
  border: 1px solid rgba(245, 158, 11, 0.5);
  background: rgba(15, 23, 42, 0.55);
}

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

.ghost-btn:hover {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.12);
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: rgba(226, 232, 240, 0.55);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.active {
  width: 30px;
  background: #f59e0b;
}

.search-feature {
  position: relative;
  z-index: 8;
  margin-top: -40px;
  padding: 22px;
  border: 1px solid rgba(51, 65, 85, 0.78);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.92);
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.38);
  backdrop-filter: blur(18px);
}

.search-box {
  position: relative;
  width: 100%;
}

.search-box input {
  width: 100%;
  height: 54px;
  padding: 0 52px 0 18px;
  border: 1px solid rgba(71, 85, 105, 0.9);
  border-radius: 18px;
  outline: none;
  color: #ffffff;
  background: rgba(2, 6, 23, 0.62);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.search-box input:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

.search-box span {
  position: absolute;
  right: 18px;
  top: 50%;
  color: #f59e0b;
  font-size: 24px;
  transform: translateY(-50%);
}

.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.category-chips a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(30, 41, 59, 0.92);
  transition: color 0.25s ease, background 0.25s ease;
}

.category-chips a:hover {
  color: #ffffff;
  background: rgba(245, 158, 11, 0.95);
}

.section-block {
  padding: 76px 0 0;
}

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

.section-head h2 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.15;
}

.section-head p {
  margin: 0;
  color: #94a3b8;
}

.more-link {
  min-height: 40px;
  padding: 0 18px;
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.36);
}

.more-link:hover {
  color: #ffffff;
  background: rgba(245, 158, 11, 0.9);
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(51, 65, 85, 0.72);
  border-radius: 22px;
  background: #1e293b;
  box-shadow: 0 18px 44px rgba(2, 6, 23, 0.28);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(245, 158, 11, 0.62);
  box-shadow: 0 26px 60px rgba(2, 6, 23, 0.42);
}

.poster-wrap {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #020617;
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(15, 23, 42, 0.95));
  transition: opacity 0.3s ease;
}

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

.year-badge,
.rank-num,
.play-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.year-badge {
  top: 10px;
  right: 10px;
  min-height: 26px;
  padding: 0 8px;
  border-radius: 8px;
  color: #ffffff;
  background: #f59e0b;
  font-size: 12px;
}

.rank-num {
  left: 10px;
  top: 10px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(220, 38, 38, 0.92);
  box-shadow: 0 10px 24px rgba(220, 38, 38, 0.34);
}

.play-badge {
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  opacity: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(245, 158, 11, 0.95);
  transform: translate(-50%, -50%) scale(0.88);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.card-body {
  padding: 16px;
}

.movie-card h3 {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 8px;
  overflow: hidden;
  color: #ffffff;
  font-size: 18px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.25s ease;
}

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

.movie-card p {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 12px;
  overflow: hidden;
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.meta-row {
  color: #cbd5e1;
  font-size: 12px;
  margin-bottom: 10px;
}

.meta-row span + span::before {
  content: "·";
  margin-right: 8px;
  color: #64748b;
}

.tag-row span {
  font-size: 12px;
}

.movie-card.compact {
  border-radius: 18px;
}

.movie-card.compact .card-body {
  padding: 12px;
}

.movie-card.compact h3 {
  min-height: 40px;
  font-size: 15px;
}

.movie-card.compact p {
  min-height: 38px;
  font-size: 12px;
}

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

.category-tile,
.category-preview {
  overflow: hidden;
  border: 1px solid rgba(51, 65, 85, 0.74);
  border-radius: 24px;
  background: rgba(30, 41, 59, 0.78);
}

.category-tile {
  padding: 16px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 158, 11, 0.62);
}

.tile-images {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 16px;
}

.tile-images img {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  object-fit: cover;
}

.category-tile h3 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 20px;
}

.category-tile p {
  margin: 0;
  color: #94a3b8;
  font-size: 14px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0 52px;
  background:
    radial-gradient(circle at 15% 20%, rgba(245, 158, 11, 0.22), transparent 30%),
    linear-gradient(135deg, #020617, #172554 48%, #0f172a);
}

.page-hero h1 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: clamp(32px, 5vw, 56px);
}

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

.spaced-blocks {
  display: grid;
  gap: 34px;
  padding-bottom: 78px;
}

.category-preview {
  padding: 28px;
}

.category-preview .section-head {
  margin-bottom: 22px;
}

.category-list {
  padding-bottom: 70px;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 42px 0 74px;
  background: #020617;
}

.detail-bg {
  position: absolute;
  inset: -20px;
  background-size: cover;
  background-position: center;
  filter: blur(12px) brightness(0.32);
  transform: scale(1.08);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(245, 158, 11, 0.24), transparent 34%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.18), #0f172a 100%);
}

.detail-wrap {
  position: relative;
  z-index: 2;
}

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

.breadcrumb a {
  color: #fbbf24;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 34px;
  align-items: end;
}

.detail-poster {
  overflow: hidden;
  border-radius: 26px;
  box-shadow: 0 28px 70px rgba(2, 6, 23, 0.52);
}

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

.detail-info h1 {
  margin: 0 0 18px;
  color: #ffffff;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.08;
}

.lead-text {
  max-width: 820px;
  margin: 0 0 18px;
  color: #e2e8f0;
  font-size: 20px;
}

.detail-meta {
  margin-bottom: 18px;
}

.wide-tags {
  margin-bottom: 28px;
}

.player-section {
  padding-top: 56px;
}

.player-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(51, 65, 85, 0.82);
  border-radius: 26px;
  background: #020617;
  box-shadow: 0 24px 70px rgba(2, 6, 23, 0.45);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: rgba(2, 6, 23, 0.28);
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-overlay span {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  box-shadow: 0 18px 44px rgba(245, 158, 11, 0.34);
  font-size: 34px;
  text-indent: 5px;
}

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

.detail-text {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding-top: 34px;
}

.detail-text article {
  padding: 26px;
  border: 1px solid rgba(51, 65, 85, 0.74);
  border-radius: 24px;
  background: rgba(30, 41, 59, 0.7);
}

.detail-text h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 24px;
}

.detail-text p {
  margin: 0;
  color: #cbd5e1;
}

.site-footer {
  margin-top: 90px;
  border-top: 1px solid rgba(51, 65, 85, 0.78);
  background: #020617;
}

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

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

.site-footer p {
  max-width: 520px;
  margin: 14px 0 0;
  color: #94a3b8;
}

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

.site-footer ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a:not(.brand) {
  color: #94a3b8;
  transition: color 0.25s ease;
}

.site-footer a:not(.brand):hover {
  color: #f59e0b;
}

.footer-bottom {
  padding: 20px 0;
  border-top: 1px solid rgba(51, 65, 85, 0.58);
  color: #64748b;
  text-align: center;
  font-size: 14px;
}

[data-card].is-hidden {
  display: none;
}

@media (max-width: 1100px) {
  .movie-grid,
  .movie-grid.small-grid,
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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

  .nav-toggle {
    display: inline-flex;
  }

  .hero {
    min-height: 76vh;
  }

  .hero-content {
    padding: 70px 0 96px;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

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

  .detail-layout,
  .detail-text,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

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

  .brand {
    font-size: 15px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero h2 {
    font-size: 24px;
  }

  .hero p,
  .lead-text {
    font-size: 16px;
  }

  .search-feature {
    padding: 16px;
    border-radius: 20px;
  }

  .section-block {
    padding-top: 54px;
  }

  .movie-grid,
  .movie-grid.small-grid,
  .category-grid {
    gap: 12px;
  }

  .card-body {
    padding: 12px;
  }

  .movie-card h3 {
    min-height: 40px;
    font-size: 15px;
  }

  .movie-card p,
  .movie-card .tag-row {
    display: none;
  }

  .detail-hero {
    padding-top: 26px;
  }

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

  .player-overlay span {
    width: 68px;
    height: 68px;
    font-size: 28px;
  }
}
