* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background: #fafaf9;
  color: #1c1917;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(28, 25, 23, 0.92);
  color: #fafaf9;
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 30px rgba(28, 25, 23, 0.22);
}

.nav-container {
  height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.brand-mark {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #b45309);
  color: #fff7ed;
  box-shadow: 0 10px 28px rgba(245, 158, 11, 0.28);
}

.brand-name {
  font-size: 1.2rem;
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  padding: 8px 13px;
  border-radius: 999px;
  color: #d6d3d1;
  transition: 0.2s ease;
}

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

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

.header-search {
  margin-left: auto;
  min-width: 300px;
}

.header-search input,
.mobile-search input,
.hero-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid rgba(214, 211, 209, 0.55);
  border-radius: 999px;
  padding: 11px 15px;
  color: #292524;
  background: rgba(255, 255, 255, 0.92);
  outline: none;
  transition: 0.2s ease;
}

.header-search input {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fafaf9;
}

.header-search input::placeholder,
.mobile-search input::placeholder,
.hero-search input::placeholder,
.filter-panel input::placeholder {
  color: #a8a29e;
}

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

.header-search button,
.mobile-search button,
.hero-search button,
.filter-panel button,
.primary-button,
.text-button {
  border: 0;
  border-radius: 999px;
  background: #d97706;
  color: #fff7ed;
  padding: 11px 18px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(217, 119, 6, 0.25);
  transition: 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.hero-search button:hover,
.filter-panel button:hover,
.primary-button:hover,
.text-button:hover {
  background: #b45309;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #fafaf9;
}

.mobile-panel {
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 14px 16px 18px;
}

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

.hero-slider {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  color: #fff;
  background: #292524;
}

.hero-track,
.hero-slide {
  min-height: 560px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 0.55s ease;
}

.hero-slide.is-active {
  position: relative;
  opacity: 1;
}

.hero-content {
  min-height: 560px;
  display: flex;
  align-items: center;
  padding: 48px 0 128px;
}

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

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

.hero-copy h1,
.page-hero h1,
.detail-intro h1 {
  margin: 0 0 18px;
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
  font-weight: 900;
}

.hero-copy p,
.page-hero p,
.detail-intro p {
  max-width: 760px;
  margin: 0 0 28px;
  color: #e7e5e4;
  font-size: clamp(1.05rem, 2vw, 1.38rem);
}

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

.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 11px 18px;
  color: #fff7ed;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.08);
  transition: 0.2s ease;
}

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.18);
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 104px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 3;
}

.hero-controls > button,
.hero-dot {
  border: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  transition: 0.2s ease;
}

.hero-controls > button {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font-size: 1.8rem;
  line-height: 1;
}

.hero-controls > button:hover,
.hero-dot.is-active {
  background: #d97706;
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 999px;
}

.hero-search-wrap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 24px;
  z-index: 4;
}

.hero-search {
  max-width: 820px;
  padding: 12px;
  border-radius: 28px;
  background: rgba(28, 25, 23, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px);
}

.hero-category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.hero-category-links a {
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.12);
  color: #f5f5f4;
  font-size: 0.92rem;
}

.hero-category-links a:hover {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.16);
}

.section {
  padding: 68px 0;
}

.soft-section {
  width: 100%;
  background: #f5f5f4;
}

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

.section-head h2 {
  margin: 0 0 6px;
  color: #1c1917;
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  line-height: 1.2;
  font-weight: 900;
}

.section-head p {
  margin: 0;
  color: #78716c;
}

.section-more {
  color: #b45309;
  font-weight: 800;
  white-space: nowrap;
}

.section-more span {
  padding-left: 4px;
}

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

.four-grid,
.category-movie-grid,
.rank-grid,
.related-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.movie-card {
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(41, 37, 36, 0.09);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 42px rgba(41, 37, 36, 0.18);
}

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #d6d3d1;
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(28, 25, 23, 0.58));
  opacity: 0.7;
  transition: 0.3s ease;
}

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

.play-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%) scale(0.9);
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.92);
  color: #fff;
  opacity: 0;
  transition: 0.24s ease;
}

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

.year-badge,
.rank-badge {
  position: absolute;
  top: 10px;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 0.78rem;
  font-weight: 800;
  color: #fff;
}

.year-badge {
  right: 10px;
  background: rgba(28, 25, 23, 0.74);
}

.rank-badge {
  left: 10px;
  background: #d97706;
}

.movie-body {
  padding: 16px;
}

.movie-body h3 {
  margin: 0 0 9px;
  color: #1c1917;
  font-size: 1.05rem;
  line-height: 1.35;
  font-weight: 850;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-body h3 a:hover {
  color: #b45309;
}

.movie-body p {
  min-height: 45px;
  margin: 0 0 14px;
  color: #57534e;
  font-size: 0.92rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: #78716c;
  font-size: 0.78rem;
}

.movie-meta span {
  border-radius: 999px;
  padding: 4px 8px;
  background: #f5f5f4;
}

.two-column-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 190px 1fr;
  align-items: stretch;
}

.compact-card .movie-poster {
  aspect-ratio: auto;
  height: 100%;
  min-height: 126px;
}

.dark-panel {
  position: sticky;
  top: 96px;
  border-radius: 24px;
  padding: 28px;
  background: linear-gradient(145deg, #292524, #1c1917 60%, #78350f);
  color: #fff7ed;
  box-shadow: 0 18px 45px rgba(28, 25, 23, 0.22);
}

.dark-panel h2 {
  margin: 0 0 8px;
  font-size: 1.8rem;
}

.dark-panel p {
  margin: 0 0 20px;
  color: #d6d3d1;
}

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

.spotlight-list a {
  display: grid;
  grid-template-columns: 90px 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
}

.spotlight-list img {
  width: 90px;
  height: 58px;
  border-radius: 12px;
  object-fit: cover;
}

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

.category-card,
.category-overview-card {
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(41, 37, 36, 0.08);
  transition: 0.22s ease;
}

.category-card {
  display: block;
  min-height: 210px;
  padding: 22px;
  background: radial-gradient(circle at top right, rgba(245, 158, 11, 0.16), transparent 38%), #fff;
}

.category-card:hover,
.category-overview-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(41, 37, 36, 0.15);
}

.category-name {
  display: block;
  margin-bottom: 10px;
  color: #1c1917;
  font-size: 1.35rem;
  font-weight: 900;
}

.category-card p {
  margin: 0 0 18px;
  color: #78716c;
}

.category-mini-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.category-mini-list span {
  border-radius: 999px;
  padding: 4px 8px;
  background: #f5f5f4;
  color: #57534e;
  font-size: 0.78rem;
}

.page-hero,
.detail-hero {
  color: #fff;
  background: linear-gradient(135deg, #292524, #44403c 55%, #78350f);
}

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

.page-hero-small {
  padding: 72px 0 54px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: #d6d3d1;
  font-size: 0.92rem;
}

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

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 170px auto auto;
  gap: 10px;
  align-items: end;
  max-width: 980px;
  margin-top: 26px;
  padding: 14px;
  border-radius: 24px;
  background: rgba(28, 25, 23, 0.64);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
}

.filter-panel label {
  display: grid;
  gap: 6px;
  color: #f5f5f4;
  font-weight: 700;
}

.filter-panel select {
  height: 48px;
}

.filter-state {
  margin: 0;
  color: #d6d3d1;
  font-size: 0.9rem;
  white-space: nowrap;
}

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

.category-overview-grid {
  display: grid;
  gap: 22px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  padding: 20px;
}

.category-cover-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.category-cover-row img {
  width: 100%;
  height: 160px;
  border-radius: 14px;
  object-fit: cover;
}

.category-overview-card h2 {
  margin: 0 0 8px;
  font-size: 1.6rem;
}

.category-overview-card p {
  margin: 0 0 14px;
  color: #57534e;
}

.category-title-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.category-title-links a,
.tag-links a {
  border-radius: 999px;
  padding: 6px 10px;
  background: #f5f5f4;
  color: #57534e;
  font-size: 0.86rem;
}

.category-title-links a:hover,
.tag-links a:hover {
  color: #b45309;
  background: #fef3c7;
}

.text-button {
  display: inline-flex;
}

.detail-hero {
  background-size: cover;
  background-position: center;
}

.detail-hero-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  min-height: 560px;
  padding: 54px 0;
}

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

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

.detail-intro h1 {
  max-width: 820px;
}

.detail-pills,
.tag-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 16px;
}

.detail-pills span {
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.12);
  color: #f5f5f4;
}

.tag-links a {
  background: rgba(255, 255, 255, 0.14);
  color: #fff7ed;
}

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

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #111827;
  box-shadow: 0 22px 50px rgba(28, 25, 23, 0.28);
}

.movie-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111827;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: radial-gradient(circle at center, rgba(245, 158, 11, 0.22), rgba(28, 25, 23, 0.52));
  color: #fff;
  transition: 0.24s ease;
}

.player-overlay span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #d97706;
  font-size: 2rem;
  box-shadow: 0 18px 36px rgba(217, 119, 6, 0.34);
}

.player-overlay:hover span {
  transform: scale(1.04);
}

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

.detail-copy-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.detail-copy,
.detail-side-card {
  border-radius: 24px;
  background: #fff;
  padding: 28px;
  box-shadow: 0 8px 24px rgba(41, 37, 36, 0.08);
}

.detail-copy h2,
.detail-side-card h2 {
  margin: 0 0 14px;
  color: #1c1917;
  font-size: 1.55rem;
}

.detail-copy h2:not(:first-child) {
  margin-top: 28px;
}

.detail-copy p {
  margin: 0;
  color: #44403c;
  font-size: 1.04rem;
}

.detail-side-card dl {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px 12px;
  margin: 0 0 22px;
}

.detail-side-card dt {
  color: #78716c;
}

.detail-side-card dd {
  margin: 0;
  color: #292524;
  font-weight: 700;
}

.full-button {
  display: flex;
  justify-content: center;
}

.site-footer {
  padding: 42px 0;
  background: #1c1917;
  color: #d6d3d1;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 28px;
}

.footer-brand {
  color: #fff7ed;
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.site-footer p {
  margin: 8px 0 0;
  color: #a8a29e;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

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

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

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

  .two-column-section,
  .detail-copy-grid {
    grid-template-columns: 1fr;
  }

  .dark-panel {
    position: static;
  }
}

@media (max-width: 820px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

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

  .hero-slider,
  .hero-track,
  .hero-slide,
  .hero-content {
    min-height: 620px;
  }

  .hero-copy h1,
  .page-hero h1,
  .detail-intro h1 {
    font-size: clamp(2.2rem, 13vw, 3.5rem);
  }

  .hero-search {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-controls {
    bottom: 146px;
  }

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

  .filter-panel {
    grid-template-columns: 1fr;
  }

  .detail-hero-grid,
  .category-overview-card {
    grid-template-columns: 1fr;
  }

  .detail-cover {
    max-width: 320px;
  }

  .category-cover-row img {
    height: 120px;
  }
}

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

  .movie-grid,
  .four-grid,
  .category-movie-grid,
  .rank-grid,
  .related-grid,
  .rank-preview-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .compact-card {
    grid-template-columns: 1fr;
  }

  .compact-card .movie-poster {
    min-height: auto;
    aspect-ratio: 16 / 9;
  }

  .section {
    padding: 48px 0;
  }

  .page-hero {
    padding: 64px 0 46px;
  }

  .detail-hero-grid {
    min-height: auto;
    gap: 24px;
  }

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