:root {
  --bg: #fafaf9;
  --surface: #ffffff;
  --surface-soft: #f5f5f4;
  --text: #1c1917;
  --muted: #78716c;
  --line: #e7e5e4;
  --accent: #f59e0b;
  --accent-dark: #b45309;
  --dark: #1c1917;
  --dark-soft: #292524;
  --shadow: 0 20px 50px rgba(28, 25, 23, 0.14);
}

body {
  min-height: 100vh;
  background: linear-gradient(180deg, #fafaf9 0%, #fff7ed 52%, #fafaf9 100%);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

a {
  color: inherit;
}

img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header.is-scrolled,
.site-header:hover {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 30px rgba(28, 25, 23, 0.12);
  backdrop-filter: blur(14px);
}

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

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.03em;
}

.site-header.is-scrolled .site-logo,
.site-header:hover .site-logo {
  color: var(--text);
}

.site-logo-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.32);
}

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

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 650;
  font-size: 14px;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.site-header.is-scrolled .nav-link,
.site-header:hover .nav-link {
  color: #57534e;
}

.nav-link:hover,
.nav-link.is-active {
  color: #ffffff;
  background: rgba(245, 158, 11, 0.92);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: #ffffff;
  border-radius: 999px;
}

.site-header.is-scrolled .nav-toggle span,
.site-header:hover .nav-toggle span {
  background: var(--text);
}

.hero {
  position: relative;
  min-height: 82vh;
  overflow: hidden;
  background: #0c0a09;
}

.hero-track,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

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

.hero-slide img {
  position: absolute;
  inset: 0;
  transform: scale(1.02);
  filter: saturate(1.05) contrast(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 35%, rgba(245, 158, 11, 0.28), transparent 34%),
    linear-gradient(90deg, rgba(12, 10, 9, 0.92) 0%, rgba(12, 10, 9, 0.68) 46%, rgba(12, 10, 9, 0.20) 100%),
    linear-gradient(0deg, rgba(12, 10, 9, 0.88), transparent 38%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 18vh 24px 120px;
  margin-left: max(24px, calc((100vw - 1280px) / 2));
  color: #ffffff;
}

.eyebrow {
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero h1 {
  font-size: clamp(42px, 7vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.07em;
  font-weight: 900;
  margin-bottom: 22px;
  text-shadow: 0 18px 60px rgba(0, 0, 0, 0.38);
}

.hero-line {
  font-size: clamp(18px, 2.2vw, 26px);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.94);
  max-width: 680px;
  margin-bottom: 16px;
}

.hero-summary {
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.8;
  max-width: 660px;
  margin-bottom: 22px;
}

.hero-tags,
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
}

.card-tags .tag,
.detail-info .tag {
  background: #fef3c7;
  color: #92400e;
}

.hero-actions,
.detail-info .hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

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

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 18px 36px rgba(245, 158, 11, 0.32);
}

.btn-primary:hover {
  background: var(--accent-dark);
}

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

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

.hero-arrow,
.hero-dot {
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
}

.hero-arrow {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font-size: 30px;
  line-height: 1;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  opacity: 0.75;
}

.hero-dot.is-active {
  width: 34px;
  background: var(--accent);
  opacity: 1;
}

.quick-search,
.page-shell,
.detail-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.quick-search {
  margin-top: -48px;
  position: relative;
  z-index: 4;
}

.quick-search-inner,
.page-hero,
.content-section,
.detail-hero,
.player-section,
.detail-content article {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(231, 229, 228, 0.88);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.quick-search-inner {
  padding: 28px;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 24px;
  align-items: center;
  backdrop-filter: blur(16px);
}

.search-panel label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-weight: 700;
}

.search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.search-row input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 14px 18px;
  outline: 0;
  background: #ffffff;
  color: var(--text);
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.search-row input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15);
}

.search-row button {
  border: 0;
  border-radius: 999px;
  padding: 0 22px;
  background: var(--dark);
  color: #ffffff;
  font-weight: 800;
}

.content-section {
  margin: 44px 0;
  padding: 32px;
}

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

.section-heading h2,
.page-hero h1,
.detail-info h1,
.detail-content h2,
.sticky-rank h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1.08;
}

.section-link {
  color: var(--accent-dark);
  font-weight: 800;
}

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

.movie-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 12px 26px rgba(28, 25, 23, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: #fcd34d;
  box-shadow: 0 22px 44px rgba(28, 25, 23, 0.14);
}

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

.movie-poster img {
  transition: transform 0.35s ease;
}

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

.poster-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

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

.movie-meta {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 8px;
}

.movie-card h2 {
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.25;
  margin-bottom: 10px;
}

.movie-card p {
  color: var(--muted);
  line-height: 1.65;
}

.card-tags {
  margin: 16px 0 0;
}

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

.category-card,
.category-overview-card {
  display: block;
  border-radius: 24px;
  padding: 24px;
  background: linear-gradient(135deg, #1c1917, #44403c);
  color: #ffffff;
  min-height: 150px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 34px rgba(28, 25, 23, 0.16);
}

.category-card::after,
.category-overview-card::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  right: -60px;
  bottom: -70px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.38);
}

.category-card span,
.category-overview-card h2 {
  display: block;
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 12px;
}

.category-card p,
.category-overview-card p {
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.7;
  position: relative;
  z-index: 2;
}

.category-kicker {
  display: inline-flex;
  color: #fbbf24;
  margin-bottom: 12px;
  font-weight: 800;
}

.rank-section {
  background: linear-gradient(135deg, #1c1917, #0c0a09);
  color: #ffffff;
}

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

.rank-item {
  display: grid;
  grid-template-columns: auto 82px 1fr;
  gap: 14px;
  align-items: center;
  border-radius: 18px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.25s ease, transform 0.25s ease;
}

.rank-item:hover {
  background: rgba(245, 158, 11, 0.18);
  transform: translateX(4px);
}

.rank-number {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 900;
}

.rank-item img {
  width: 82px;
  height: 58px;
  border-radius: 14px;
}

.rank-item strong,
.rank-item em {
  display: block;
}

.rank-item em {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.62);
  font-style: normal;
  font-size: 13px;
}

.page-shell {
  padding-top: 110px;
}

.page-hero {
  padding: 46px;
  background: linear-gradient(135deg, #ffffff, #fff7ed);
}

.page-hero p {
  max-width: 820px;
  color: var(--muted);
  line-height: 1.8;
}

.category-hero .search-panel,
.rank-hero .search-panel {
  margin-top: 28px;
  max-width: 760px;
}

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

.empty-state {
  padding: 30px;
  text-align: center;
  color: var(--muted);
  font-weight: 800;
}

.rank-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  align-items: start;
}

.sticky-rank {
  position: sticky;
  top: 100px;
  background: #1c1917;
  color: #ffffff;
  border-radius: 24px;
  padding: 22px;
}

.long-rank {
  grid-template-columns: 1fr;
  max-height: 72vh;
  overflow: auto;
  padding-right: 6px;
}

.detail-shell {
  padding-top: 104px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 24px;
}

.breadcrumb a {
  color: var(--accent-dark);
}

.detail-hero {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 32px;
  padding: 32px;
  background: linear-gradient(135deg, #ffffff, #fff7ed);
}

.detail-cover {
  aspect-ratio: 3 / 4;
  border-radius: 26px;
  overflow: hidden;
  background: #292524;
  box-shadow: var(--shadow);
}

.detail-info {
  align-self: center;
}

.detail-info h1 {
  margin-bottom: 16px;
}

.detail-one-line {
  font-size: 20px;
  line-height: 1.7;
  color: #44403c;
  margin-bottom: 20px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.detail-meta span {
  border-radius: 999px;
  padding: 7px 12px;
  background: #ffffff;
  color: #57534e;
  border: 1px solid var(--line);
  font-weight: 800;
  font-size: 13px;
}

.player-section {
  margin: 32px 0;
  padding: 18px;
  background: #0c0a09;
}

.player-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.movie-player {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
}

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

.player-cover.is-hidden {
  display: none;
}

.play-icon {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  font-size: 32px;
  box-shadow: 0 20px 44px rgba(245, 158, 11, 0.34);
}

.player-cover strong {
  font-size: clamp(20px, 3vw, 36px);
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.44);
}

.detail-content article {
  padding: 36px;
}

.detail-content h2 {
  font-size: 30px;
  margin: 0 0 16px;
}

.detail-content p {
  color: #44403c;
  line-height: 2;
  margin-bottom: 26px;
  font-size: 17px;
}

.site-footer {
  margin-top: 70px;
  padding: 56px 24px 28px;
  background: #1c1917;
  color: rgba(255, 255, 255, 0.82);
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 32px;
}

.footer-logo {
  color: #ffffff;
  margin-bottom: 14px;
}

.site-footer p {
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.8;
}

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

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

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

.footer-bottom {
  max-width: 1280px;
  margin: 36px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.54);
}

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

  .rank-layout,
  .detail-hero {
    grid-template-columns: 1fr;
  }

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

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

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
  }

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

  .nav-link,
  .site-header:hover .nav-link,
  .site-header.is-scrolled .nav-link {
    color: var(--text);
  }

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

  .hero {
    min-height: 760px;
  }

  .hero-content {
    padding: 130px 20px 110px;
    margin-left: 0;
  }

  .quick-search,
  .page-shell,
  .detail-shell {
    padding-left: 16px;
    padding-right: 16px;
  }

  .quick-search-inner,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .content-section,
  .page-hero,
  .detail-hero {
    padding: 22px;
    border-radius: 22px;
  }

  .section-heading {
    display: block;
  }

  .section-link {
    display: inline-flex;
    margin-top: 12px;
  }

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

@media (max-width: 560px) {
  .movie-grid,
  .full-grid,
  .category-grid,
  .category-overview-grid,
  .rank-list {
    grid-template-columns: 1fr;
  }

  .search-row {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: auto 70px 1fr;
  }

  .rank-item img {
    width: 70px;
    height: 52px;
  }

  .detail-content article {
    padding: 22px;
  }
}
