* {
  box-sizing: border-box;
}

:root {
  --stone-950: #1c1917;
  --stone-900: #292524;
  --stone-800: #44403c;
  --stone-700: #57534e;
  --stone-600: #78716c;
  --stone-500: #a8a29e;
  --stone-300: #d6d3d1;
  --stone-200: #e7e5e4;
  --stone-100: #f5f5f4;
  --stone-50: #fafaf9;
  --amber-700: #b45309;
  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
  --white: #ffffff;
  --shadow: 0 20px 40px rgba(28, 25, 23, 0.13);
  --radius: 18px;
}

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

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--white);
  background: linear-gradient(90deg, var(--stone-800), var(--stone-700), var(--stone-800));
  box-shadow: 0 12px 32px rgba(28, 25, 23, 0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

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

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  color: var(--stone-900);
  background: linear-gradient(135deg, var(--amber-400), var(--amber-600));
  box-shadow: 0 12px 24px rgba(217, 119, 6, 0.35);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 20px;
  letter-spacing: 0.04em;
}

.brand-text small {
  margin-top: 3px;
  color: var(--stone-300);
  font-size: 12px;
  font-weight: 500;
}

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

.nav-link,
.mobile-link {
  border-radius: 12px;
  color: var(--stone-200);
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.nav-link {
  padding: 10px 14px;
  font-size: 14px;
}

.nav-link:hover,
.mobile-link:hover,
.nav-link.is-active,
.mobile-link.is-active {
  color: var(--white);
  background: rgba(217, 119, 6, 0.95);
}

.nav-link:hover {
  transform: translateY(-1px);
}

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

.mobile-nav {
  display: none;
  padding: 10px 16px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.mobile-nav.is-open {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mobile-link {
  padding: 10px 12px;
  font-size: 14px;
}

.hero-slider {
  position: relative;
  height: 70vh;
  min-height: 520px;
  overflow: hidden;
  background: var(--stone-900);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 0.7s ease;
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(28, 25, 23, 0.96), rgba(28, 25, 23, 0.58), rgba(28, 25, 23, 0.18));
}

.hero-content {
  position: absolute;
  inset: auto 0 0 0;
  padding-bottom: 76px;
}

.hero-copy {
  width: min(760px, 100%);
  color: var(--white);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--white);
  background: var(--amber-600);
  font-size: 14px;
  font-weight: 700;
}

.hero-copy h1,
.compact-hero h1,
.detail-copy h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 66px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero-copy p {
  max-width: 680px;
  margin: 18px 0 22px;
  color: var(--stone-200);
  font-size: clamp(16px, 2vw, 20px);
}

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

.hero-tags span,
.detail-tags span,
.tag-row span {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--stone-100);
  padding: 5px 10px;
  font-size: 12px;
}

.tag-row span {
  color: var(--stone-700);
  background: var(--stone-100);
}

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

.primary-button,
.ghost-button,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-weight: 800;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.primary-button {
  min-height: 46px;
  padding: 0 24px;
  color: var(--white);
  background: var(--amber-600);
  box-shadow: 0 16px 32px rgba(217, 119, 6, 0.3);
}

.primary-button:hover,
.section-link:hover {
  background: var(--amber-500);
  transform: translateY(-1px);
}

.ghost-button {
  min-height: 46px;
  padding: 0 22px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.hero-controls {
  position: absolute;
  right: 50%;
  bottom: 26px;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateX(50%);
}

.hero-arrow,
.hero-dot {
  border: 0;
  cursor: pointer;
}

.hero-arrow {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  font-size: 28px;
  line-height: 1;
}

.hero-dot {
  width: 10px;
  height: 10px;
  margin: 0 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
}

.hero-dot.is-active {
  width: 26px;
  background: var(--amber-500);
}

.quick-links {
  margin-top: -34px;
  position: relative;
  z-index: 3;
}

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

.quick-grid a,
.category-card a {
  display: block;
  min-height: 96px;
  padding: 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  border: 1px solid rgba(214, 211, 209, 0.8);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quick-grid a:hover,
.category-card a:hover,
.movie-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(28, 25, 23, 0.16);
}

.quick-grid a {
  font-weight: 800;
  color: var(--stone-900);
}

.quick-grid span,
.category-card span {
  display: block;
  margin-top: 8px;
  color: var(--stone-600);
  font-size: 13px;
  font-weight: 500;
}

.content-section {
  padding: 58px 0;
}

.light-panel {
  background: linear-gradient(90deg, #fff7ed, #fffbeb, var(--stone-50));
}

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

.section-heading h2 {
  margin: 0 0 6px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
}

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

.section-link {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 16px;
  color: var(--white);
  background: var(--amber-600);
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 10px 28px rgba(28, 25, 23, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--stone-800);
}

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

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

.card-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
}

.card-badge {
  left: 10px;
  bottom: 10px;
  max-width: calc(100% - 20px);
  padding: 5px 10px;
  background: rgba(28, 25, 23, 0.78);
  backdrop-filter: blur(6px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-badge {
  top: 10px;
  left: 10px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  background: var(--amber-600);
  box-shadow: 0 10px 20px rgba(217, 119, 6, 0.35);
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.35;
}

.card-body h3 a:hover {
  color: var(--amber-700);
}

.card-body p {
  display: -webkit-box;
  min-height: 46px;
  margin: 0 0 12px;
  color: var(--stone-600);
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.page-hero {
  color: var(--white);
  background: radial-gradient(circle at top left, rgba(245, 158, 11, 0.26), transparent 34%), linear-gradient(135deg, var(--stone-900), var(--stone-800));
}

.compact-hero {
  padding: 68px 0;
}

.compact-hero p {
  max-width: 780px;
  margin: 18px 0 0;
  color: var(--stone-200);
  font-size: 18px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--stone-300);
  font-size: 14px;
}

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

.filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 180px 200px;
  gap: 14px;
  margin-bottom: 26px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 32px rgba(28, 25, 23, 0.08);
}

.filter-panel label {
  display: grid;
  gap: 6px;
  color: var(--stone-700);
  font-size: 13px;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--stone-200);
  border-radius: 12px;
  padding: 0 12px;
  color: var(--stone-900);
  background: var(--stone-50);
  outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--amber-500);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.16);
}

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

.category-card h2 {
  margin: 0 0 10px;
}

.category-card p {
  margin: 0;
  color: var(--stone-600);
}

.detail-hero {
  padding: 54px 0;
  color: var(--white);
  background: radial-gradient(circle at 20% 0%, rgba(245, 158, 11, 0.22), transparent 30%), linear-gradient(135deg, var(--stone-950), var(--stone-800));
}

.detail-layout {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 34px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 26px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

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

.detail-copy .lead {
  max-width: 760px;
  color: var(--stone-200);
  font-size: 18px;
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0 0;
}

.detail-meta div {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
}

.detail-meta dt {
  color: var(--stone-300);
  font-size: 12px;
}

.detail-meta dd {
  margin: 4px 0 0;
  font-weight: 800;
}

.player-section {
  padding-bottom: 20px;
}

.player-card {
  padding: 18px;
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.player-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

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

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: var(--white);
  background: radial-gradient(circle, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.62));
  cursor: pointer;
}

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

.play-symbol {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border-radius: 999px;
  background: var(--amber-600);
  box-shadow: 0 18px 36px rgba(217, 119, 6, 0.38);
  font-size: 28px;
  text-indent: 4px;
}

.article-panel {
  padding: 28px;
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 12px 32px rgba(28, 25, 23, 0.08);
}

.article-panel h2 {
  margin: 0 0 12px;
}

.article-panel h2 + p {
  margin-top: 0;
}

.article-panel p {
  color: var(--stone-700);
  font-size: 17px;
}

.site-footer {
  margin-top: 60px;
  color: var(--stone-300);
  background: linear-gradient(180deg, var(--stone-800), var(--stone-950));
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
  padding: 48px 0 34px;
}

.footer-brand {
  color: var(--white);
  font-size: 22px;
}

.footer-about p,
.site-footer li {
  color: var(--stone-400);
}

.site-footer h2 {
  margin: 0 0 12px;
  color: var(--white);
  font-size: 17px;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li {
  margin: 8px 0;
}

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

.footer-bottom {
  padding: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: var(--stone-500);
  font-size: 13px;
}

.is-filtered-out {
  display: none !important;
}

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

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

  .detail-layout {
    grid-template-columns: 240px 1fr;
  }
}

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

  .menu-button {
    display: inline-grid;
    place-items: center;
  }

  .hero-slider {
    min-height: 560px;
  }

  .hero-content {
    padding-bottom: 88px;
  }

  .quick-links {
    margin-top: 18px;
  }

  .quick-grid,
  .movie-grid,
  .ranking-strip,
  .category-grid,
  .footer-grid,
  .filter-panel,
  .detail-layout,
  .detail-meta {
    grid-template-columns: 1fr;
  }

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

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

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

  .brand-text strong {
    font-size: 17px;
  }

  .brand-text small {
    font-size: 11px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .primary-button,
  .ghost-button {
    width: 100%;
  }

  .content-section {
    padding: 42px 0;
  }

  .compact-hero,
  .detail-hero {
    padding: 48px 0;
  }
}
