:root {
  --stone-950: #0c0a09;
  --stone-900: #1c1917;
  --stone-800: #292524;
  --stone-700: #44403c;
  --stone-600: #57534e;
  --stone-500: #78716c;
  --stone-300: #d6d3d1;
  --stone-200: #e7e5e4;
  --stone-100: #f5f5f4;
  --amber-700: #b45309;
  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
  --white: #ffffff;
  --shadow-soft: 0 18px 50px rgba(28, 25, 23, 0.12);
  --shadow-card: 0 12px 30px rgba(28, 25, 23, 0.14);
  --radius-xl: 28px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--stone-900);
  background: linear-gradient(180deg, #fffbeb 0%, var(--stone-100) 38%, #ffffff 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(28, 25, 23, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.02em;
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--stone-950);
  background: linear-gradient(135deg, var(--amber-400), var(--amber-600));
  border-radius: 999px;
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.35);
}

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

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

.nav-link:hover,
.nav-link.active {
  color: var(--white);
  background: rgba(245, 158, 11, 0.18);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.mobile-menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--white);
  border-radius: 999px;
}

.hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: radial-gradient(circle at 15% 15%, rgba(251, 191, 36, 0.32), transparent 32%), linear-gradient(135deg, var(--stone-900), var(--stone-800) 55%, #78350f);
}

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

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.24;
  filter: saturate(1.1) contrast(1.05);
  transform: scale(1.04);
}

.hero-backdrop::after,
.detail-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12, 10, 9, 0.92), rgba(28, 25, 23, 0.68), rgba(120, 53, 15, 0.42));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(var(--container), calc(100% - 32px));
  min-height: 560px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  align-items: center;
  gap: 48px;
  padding: 72px 0 98px;
}

.hero-copy {
  color: var(--white);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--amber-300, #fcd34d);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero h1,
.page-hero h1,
.detail-copy h1 {
  margin: 14px 0 18px;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero p,
.page-hero p,
.detail-one-line {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.85;
}

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

.hero-tags span,
.tag-row span,
.tag-row a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #78350f;
  background: #fef3c7;
  font-size: 12px;
  font-weight: 700;
}

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

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

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

.button-primary {
  color: var(--stone-950);
  background: linear-gradient(135deg, var(--amber-400), var(--amber-600));
  box-shadow: 0 18px 35px rgba(217, 119, 6, 0.28);
}

.button-soft {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-poster {
  display: block;
  position: relative;
  padding: 12px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(16px);
}

.hero-poster-img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 22px;
  background: var(--stone-700);
}

.hero-poster span {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 26px;
  padding: 12px 14px;
  color: var(--white);
  background: rgba(12, 10, 9, 0.72);
  border-radius: 16px;
  font-weight: 700;
  backdrop-filter: blur(12px);
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
}

.hero-dot.active {
  width: 34px;
  background: var(--amber-400);
}

.hero-search {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: -28px;
  transform: translateX(-50%);
  width: min(760px, calc(100% - 32px));
  display: flex;
  gap: 10px;
  padding: 10px;
  border-radius: 999px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.hero-search input,
.search-panel input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--stone-200);
  border-radius: 999px;
  padding: 0 18px;
  outline: none;
  color: var(--stone-900);
  background: var(--white);
}

.hero-search button,
.search-panel button {
  min-width: 108px;
  border: 0;
  border-radius: 999px;
  color: var(--stone-950);
  background: var(--amber-400);
  font-weight: 800;
  cursor: pointer;
}

.section {
  padding: 76px 0;
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading span {
  color: var(--amber-700);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 6px 0 8px;
  color: var(--stone-900);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
}

.section-heading p {
  max-width: 760px;
  margin: 0;
  color: var(--stone-600);
}

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

.text-link {
  color: var(--amber-700);
  font-weight: 800;
}

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

.category-tile {
  min-height: 156px;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--white), #fff7ed);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(214, 211, 209, 0.65);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover,
.movie-card:hover,
.compact-card:hover,
.category-card-wide:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 55px rgba(28, 25, 23, 0.16);
}

.category-tile span {
  display: block;
  margin-bottom: 10px;
  color: var(--stone-900);
  font-size: 20px;
  font-weight: 900;
}

.category-tile p {
  margin: 0;
  color: var(--stone-600);
  font-size: 14px;
}

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(214, 211, 209, 0.65);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-cover {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--stone-300);
}

.card-cover {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.movie-badge,
.movie-type {
  position: absolute;
  top: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.movie-badge {
  left: 12px;
  background: rgba(217, 119, 6, 0.9);
}

.movie-type {
  right: 12px;
  background: rgba(28, 25, 23, 0.75);
}

.movie-info {
  padding: 16px;
}

.movie-info h2 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.movie-info h2 a:hover {
  color: var(--amber-700);
}

.movie-info p {
  min-height: 52px;
  margin: 0 0 12px;
  color: var(--stone-600);
  font-size: 14px;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--stone-500);
  font-size: 12px;
}

.highlight-band {
  color: var(--white);
  background: radial-gradient(circle at 85% 10%, rgba(251, 191, 36, 0.28), transparent 30%), linear-gradient(135deg, var(--stone-900), var(--stone-800) 60%, #78350f);
  padding: 72px 0;
}

.highlight-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 44px;
  align-items: center;
}

.highlight-grid h2 {
  margin: 10px 0 16px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.15;
}

.highlight-grid p {
  color: rgba(255, 255, 255, 0.78);
}

.rank-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

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

.rank-item {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.rank-link {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 10px;
  padding: 13px 14px;
  align-items: center;
}

.rank-number {
  color: var(--amber-400);
  font-size: 22px;
  font-weight: 900;
}

.rank-title {
  min-width: 0;
  color: var(--white);
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-meta {
  grid-column: 2;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.two-column-showcase {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.compact-heading {
  margin-bottom: 18px;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(214, 211, 209, 0.65);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.compact-cover {
  width: 82px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 12px;
  background: var(--stone-300);
}

.compact-title {
  display: block;
  min-width: 0;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.compact-meta {
  color: var(--stone-500);
  font-size: 13px;
}

.page-hero {
  position: relative;
  color: var(--white);
  background: radial-gradient(circle at 12% 20%, rgba(251, 191, 36, 0.24), transparent 30%), linear-gradient(135deg, var(--stone-900), var(--stone-800) 58%, #78350f);
  padding: 78px 0 84px;
  overflow: hidden;
}

.page-hero.slim-hero {
  padding: 70px 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--amber-400);
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 14px;
  margin-bottom: 24px;
  padding: 14px;
  border-radius: 999px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

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

.category-card-wide {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: 22px;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(214, 211, 209, 0.65);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-cover-stack img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 14px;
  background: var(--stone-300);
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--stone-900);
}

.detail-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.24;
  filter: blur(2px) saturate(1.1);
  transform: scale(1.04);
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  padding: 54px 0 68px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 36px;
  align-items: end;
}

.detail-poster {
  padding: 10px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.detail-poster-img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 18px;
  background: var(--stone-700);
}

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

.detail-meta-list span {
  padding: 8px 12px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.12);
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #000000;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: var(--stone-950);
  background: linear-gradient(180deg, rgba(12, 10, 9, 0.12), rgba(12, 10, 9, 0.52));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.player-play-button {
  width: 84px;
  height: 84px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--stone-950);
  background: linear-gradient(135deg, var(--amber-400), var(--amber-600));
  font-size: 32px;
  box-shadow: 0 18px 42px rgba(217, 119, 6, 0.4);
}

.article-card {
  padding: 30px;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(214, 211, 209, 0.65);
}

.article-card h2 {
  margin: 0 0 16px;
  font-size: 30px;
}

.article-card p {
  margin: 0 0 16px;
  color: var(--stone-700);
  font-size: 17px;
  line-height: 1.95;
}

.full-rank .rank-item {
  background: var(--white);
  border-color: rgba(214, 211, 209, 0.65);
  box-shadow: var(--shadow-card);
}

.full-rank .rank-title {
  color: var(--stone-900);
}

.full-rank .rank-meta {
  color: var(--stone-500);
}

.search-panel {
  width: min(760px, 100%);
  display: flex;
  gap: 10px;
  padding: 10px;
  margin-top: 26px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-soft);
}

.site-footer {
  color: rgba(255, 255, 255, 0.76);
  background: var(--stone-950);
  padding: 54px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(180px, 0.7fr) minmax(180px, 0.7fr);
  gap: 34px;
}

.footer-grid p {
  max-width: 460px;
  color: rgba(255, 255, 255, 0.62);
}

.footer-grid h2 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 18px;
}

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

.footer-links a:hover {
  color: var(--amber-400);
}

.footer-bottom {
  width: min(var(--container), calc(100% - 32px));
  margin: 36px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.48);
  font-size: 14px;
}

.hidden-by-filter {
  display: none;
}

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

  .hero-content {
    grid-template-columns: minmax(0, 1fr) 280px;
  }
}

@media (max-width: 860px) {
  .mobile-menu-button {
    display: block;
  }

  .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 18px;
    background: rgba(28, 25, 23, 0.96);
    box-shadow: var(--shadow-soft);
  }

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

  .hero-content,
  .highlight-grid,
  .two-column-showcase,
  .detail-layout,
  .category-card-wide,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding-top: 50px;
    gap: 26px;
  }

  .hero-poster {
    max-width: 300px;
  }

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

  .filter-bar,
  .search-panel,
  .hero-search {
    border-radius: 24px;
    grid-template-columns: 1fr;
    flex-direction: column;
  }
}

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

  .hero,
  .hero-content {
    min-height: 680px;
  }

  .hero h1,
  .page-hero h1,
  .detail-copy h1 {
    font-size: 34px;
  }

  .category-grid,
  .movie-grid,
  .compact-grid,
  .home-rank {
    grid-template-columns: 1fr;
  }

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

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

  .section {
    padding: 52px 0;
  }
}
