html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #111827;
  background: linear-gradient(180deg, #fff7ed 0%, #f9fafb 22%, #f3f4f6 100%);
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(17, 24, 39, 0.92);
  backdrop-filter: blur(18px);
  color: #ffffff;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.22);
}

.site-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.35);
}

.brand-text {
  font-size: 1.12rem;
}

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

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #ffffff;
  background: rgba(245, 158, 11, 0.20);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  padding: 9px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #ffffff;
  border-radius: 999px;
}

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

.hero-section {
  position: relative;
  height: 590px;
  overflow: hidden;
  background: #111827;
  color: #ffffff;
}

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

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.04) contrast(1.04);
}

.hero-layer {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.32), transparent 34%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.52) 46%, rgba(0, 0, 0, 0.1)),
    linear-gradient(0deg, #000000 0%, transparent 52%);
}

.hero-content {
  position: absolute;
  left: max(24px, calc((100vw - 1280px) / 2 + 24px));
  right: 24px;
  bottom: 72px;
  max-width: 760px;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  font-weight: 700;
  margin-bottom: 18px;
}

.hero-content h1,
.hero-content h2 {
  margin: 0 0 18px;
  font-size: clamp(2.4rem, 6vw, 5.8rem);
  line-height: 0.96;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.hero-content p {
  max-width: 660px;
  margin: 0 0 24px;
  font-size: 1.08rem;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.88);
}

.hero-actions,
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  background: #ffffff;
  color: #111827;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.18);
}

.btn-primary {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #ffffff;
  border-color: transparent;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(12px);
}

.hero-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.36);
  font-size: 28px;
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dots button {
  width: 10px;
  height: 10px;
  border: 0;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.is-active {
  width: 34px;
  background: #f59e0b;
}

main {
  padding-bottom: 56px;
}

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

.section-card {
  margin: 56px 0;
  padding: 34px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.10);
}

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

.section-heading h2,
.page-title h1,
.detail-title h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.section-heading p,
.page-title p,
.category-intro,
.detail-lead {
  color: #6b7280;
  line-height: 1.85;
}

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

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.10);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.16);
}

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

.movie-card-large .poster-link {
  aspect-ratio: 16 / 9;
}

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

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

.play-dot {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(245, 158, 11, 0.92);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  min-width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0 10px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #ef4444, #f59e0b);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.26);
}

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

.movie-card h3 {
  margin: 8px 0 8px;
  font-size: 1.05rem;
  line-height: 1.35;
  font-weight: 850;
}

.movie-card-large h3 {
  font-size: 1.45rem;
}

.movie-card p {
  margin: 0 0 14px;
  color: #6b7280;
  line-height: 1.7;
  font-size: 0.94rem;
}

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #d97706;
  font-size: 0.83rem;
  font-weight: 800;
}

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

.tag-row span,
.meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: #fff7ed;
  color: #b45309;
  font-size: 0.78rem;
  font-weight: 700;
}

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

.category-card {
  display: block;
  padding: 22px;
  min-height: 178px;
  border-radius: 28px;
  color: #ffffff;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.22), transparent 40%),
    linear-gradient(135deg, #1f2937, #111827 55%, #7c2d12);
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.16);
  transition: transform 0.2s ease;
}

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

.category-card h2,
.category-card h3 {
  margin: 0 0 10px;
  font-size: 1.35rem;
  font-weight: 900;
}

.category-card p {
  margin: 0;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.78);
}

.filter-panel {
  margin: 28px 0 34px;
  padding: 18px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 14px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.08);
}

.filter-panel label {
  display: grid;
  gap: 7px;
  color: #374151;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 0 14px;
  background: #ffffff;
  color: #111827;
  outline: none;
}

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

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

.page-hero {
  padding: 64px 0 36px;
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.20), transparent 28%),
    linear-gradient(180deg, #111827, #1f2937);
  color: #ffffff;
}

.page-title {
  width: min(960px, 100%);
}

.page-title h1 {
  color: #ffffff;
}

.page-title p {
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.05rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.72);
}

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

.detail-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 34px;
  align-items: start;
  margin-top: -42px;
}

.player-panel,
.detail-panel,
.related-panel {
  border-radius: 30px;
  background: #ffffff;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.12);
  overflow: hidden;
}

.player-shell {
  position: relative;
  background: #000000;
  aspect-ratio: 16 / 9;
}

.player-shell video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.44), rgba(0, 0, 0, 0.18));
  cursor: pointer;
}

.player-cover span {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
  font-size: 28px;
}

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

.player-caption,
.detail-panel,
.related-panel {
  padding: 24px;
}

.detail-title h1 {
  margin-bottom: 14px;
}

.meta-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.detail-poster {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.14);
}

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

.prose-section {
  margin-top: 28px;
}

.prose-section h2 {
  margin: 0 0 12px;
  font-size: 1.45rem;
}

.prose-section p {
  margin: 0;
  color: #4b5563;
  line-height: 1.95;
}

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

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

.compact-card h3 {
  font-size: 0.98rem;
}

.site-footer {
  background: #111827;
  color: rgba(255, 255, 255, 0.74);
  padding-top: 48px;
}

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

.footer-inner h2,
.footer-inner h3 {
  margin: 0 0 14px;
  color: #ffffff;
}

.footer-inner p {
  line-height: 1.8;
}

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

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

.footer-bottom {
  margin-top: 36px;
  padding: 18px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}

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

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

@media (max-width: 860px) {
  .site-header-inner {
    padding: 12px 16px;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 64px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 22px;
    background: rgba(17, 24, 39, 0.98);
  }

  .main-nav.is-open {
    display: flex;
  }

  .hero-section {
    height: 620px;
  }

  .hero-content {
    left: 20px;
    bottom: 58px;
  }

  .hero-control {
    display: none;
  }

  .movie-grid,
  .movie-grid.two-col,
  .movie-grid.ranking-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .category-grid,
  .footer-inner,
  .detail-shell,
  .filter-panel {
    grid-template-columns: 1fr;
  }

  .section-card {
    padding: 22px;
    border-radius: 26px;
  }
}

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

  .brand-text {
    font-size: 1rem;
  }

  .hero-section {
    height: 560px;
  }

  .hero-content h1,
  .hero-content h2 {
    font-size: 2.25rem;
  }

  .movie-grid,
  .movie-grid.two-col,
  .movie-grid.ranking-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

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