* {
  box-sizing: border-box;
}

:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-300: #fcd34d;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-300: #d6d3d1;
  --stone-500: #78716c;
  --stone-600: #57534e;
  --stone-700: #44403c;
  --stone-800: #292524;
  --stone-900: #1c1917;
  --shadow-soft: 0 22px 60px rgba(28, 25, 23, 0.16);
  --shadow-card: 0 12px 30px rgba(28, 25, 23, 0.13);
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--stone-800);
  background: linear-gradient(180deg, #fffaf0 0%, #f8f6f1 46%, #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;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(
    90deg,
    var(--stone-800),
    #78350f,
    var(--stone-800)
  );
  border-bottom: 2px solid var(--amber-600);
  box-shadow: 0 16px 36px rgba(28, 25, 23, 0.28);
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1240px;
  min-height: 66px;
  margin: 0 auto;
  padding: 0 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: white;
}

.brand-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--amber-500), var(--amber-700));
  box-shadow: 0 10px 26px rgba(180, 83, 9, 0.38);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.brand:hover .brand-icon {
  transform: scale(1.08);
  box-shadow: 0 14px 36px rgba(180, 83, 9, 0.52);
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-name {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: transparent;
  background: linear-gradient(90deg, var(--amber-200), var(--amber-400));
  -webkit-background-clip: text;
  background-clip: text;
}

.brand-subtitle {
  color: var(--amber-300);
  font-size: 12px;
}

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

.nav-link,
.mobile-nav-link {
  color: var(--amber-100);
  border-radius: 12px;
  font-weight: 700;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}

.nav-link {
  padding: 10px 15px;
}

.nav-link:hover,
.nav-link.active,
.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: white;
  background: var(--amber-600);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--amber-700);
  cursor: pointer;
}

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

.mobile-nav {
  display: none;
  padding: 14px 22px 18px;
  background: var(--stone-900);
  border-top: 1px solid rgba(245, 158, 11, 0.42);
}

.mobile-nav-link {
  display: block;
  padding: 12px 14px;
}

.hero-section {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  color: white;
  background: linear-gradient(
    135deg,
    var(--stone-900),
    #78350f,
    var(--stone-800)
  );
}

.hero-backdrop,
.detail-backdrop {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-backdrop img,
.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  filter: saturate(1.05);
}

.hero-backdrop span,
.detail-backdrop span {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.76),
    rgba(0, 0, 0, 0.28),
    rgba(28, 25, 23, 0.7)
  );
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 44px;
  align-items: center;
  max-width: 1240px;
  min-height: 600px;
  margin: 0 auto;
  padding: 56px 22px;
}

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

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--amber-400);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.eyebrow::before,
.section-kicker::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--amber-400);
  box-shadow: 0 0 0 7px rgba(251, 191, 36, 0.16);
}

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

.hero-lead {
  max-width: 670px;
  margin: 0 0 28px;
  color: var(--stone-200);
  font-size: clamp(18px, 2.2vw, 22px);
}

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

.hero-tags span,
.detail-meta span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #7c2d12;
  background: rgba(253, 230, 138, 0.94);
  font-size: 13px;
  font-weight: 750;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.primary-button,
.ghost-button,
.hero-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 14px;
  padding: 0 24px;
  border: 0;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease,
    background 0.24s ease;
}

.primary-button,
.hero-search button {
  color: white;
  background: linear-gradient(90deg, var(--amber-600), var(--amber-500));
  box-shadow: 0 16px 30px rgba(217, 119, 6, 0.34);
}

.ghost-button {
  color: var(--amber-100);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(253, 230, 138, 0.24);
}

.primary-button:hover,
.ghost-button:hover,
.hero-search button:hover {
  transform: translateY(-2px);
}

.hero-search,
.inline-filter {
  display: flex;
  gap: 10px;
  margin-top: 26px;
}

.hero-search input,
.inline-filter input,
.inline-filter select {
  min-height: 48px;
  border: 1px solid rgba(180, 83, 9, 0.18);
  border-radius: 14px;
  padding: 0 16px;
  color: var(--stone-800);
  background: rgba(255, 255, 255, 0.95);
  outline: none;
  box-shadow: 0 12px 28px rgba(28, 25, 23, 0.08);
}

.hero-search input {
  width: min(100%, 430px);
}

.hero-panel {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(10px);
}

.hero-poster {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.hero-panel-content {
  padding: 20px;
}

.hero-panel-content span {
  color: var(--amber-300);
  font-weight: 800;
}

.hero-panel-content strong {
  display: block;
  margin: 4px 0 8px;
  color: white;
  font-size: 24px;
}

.hero-panel-content p {
  margin: 0;
  color: var(--stone-200);
}

.hero-mini-list {
  display: grid;
  gap: 10px;
  padding: 0 20px 20px;
}

.hero-mini {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: rgba(28, 25, 23, 0.58);
  transition:
    transform 0.24s ease,
    background 0.24s ease;
}

.hero-mini:hover {
  transform: translateX(4px);
  background: rgba(146, 64, 14, 0.62);
}

.hero-mini img {
  width: 64px;
  height: 76px;
  border-radius: 12px;
  object-fit: cover;
}

.hero-mini b,
.hero-mini small {
  display: block;
}

.hero-mini b {
  color: white;
}

.hero-mini small {
  color: var(--amber-200);
}

.content-section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 62px 22px;
}

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

.section-head h2 {
  margin: 6px 0 0;
  color: var(--stone-900);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
}

.section-head a {
  color: var(--amber-700);
  font-weight: 800;
}

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

.category-tile,
.category-overview-card {
  display: block;
  min-height: 142px;
  padding: 22px;
  border-radius: var(--radius-md);
  background: white;
  box-shadow: var(--shadow-card);
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease;
}

.category-tile:hover,
.category-overview-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 44px rgba(28, 25, 23, 0.18);
}

.category-tile span,
.category-overview-card h2 {
  display: block;
  color: var(--stone-900);
  font-size: 21px;
  font-weight: 850;
}

.category-tile small,
.category-overview-card p {
  display: block;
  margin-top: 10px;
  color: var(--stone-600);
}

.category-overview-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.category-mark {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 16px;
  color: white;
  background: linear-gradient(135deg, var(--amber-500), var(--amber-700));
  font-weight: 900;
}

.category-sample-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-sample-links a {
  padding: 6px 9px;
  border-radius: 999px;
  color: #7c2d12;
  background: var(--amber-100);
  font-size: 13px;
  font-weight: 700;
}

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

.mixed-grid {
  grid-auto-flow: dense;
}

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-md);
  background: white;
  box-shadow: var(--shadow-card);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(28, 25, 23, 0.2);
}

.featured-card {
  grid-column: span 2;
  grid-row: span 2;
}

.card-link,
.poster-wrap,
.card-body {
  display: block;
}

.poster-wrap {
  position: relative;
  height: 250px;
  overflow: hidden;
  background: var(--stone-200);
}

.featured-card .poster-wrap {
  height: 420px;
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.78));
  opacity: 0;
  transition: opacity 0.25s ease;
}

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

.play-chip,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: white;
  font-weight: 850;
}

.play-chip {
  right: 14px;
  bottom: 14px;
  padding: 7px 12px;
  background: var(--amber-600);
  transform: translateY(18px);
  opacity: 0;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

.movie-card:hover .play-chip {
  transform: translateY(0);
  opacity: 1;
}

.rank-badge {
  top: 12px;
  left: 12px;
  display: grid;
  min-width: 40px;
  height: 40px;
  place-items: center;
  background: linear-gradient(135deg, var(--amber-500), var(--amber-700));
  box-shadow: 0 10px 20px rgba(146, 64, 14, 0.32);
}

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

.card-meta,
.card-desc {
  display: block;
  color: var(--stone-500);
  font-size: 13px;
}

.card-body strong {
  display: block;
  margin: 7px 0 7px;
  color: var(--stone-900);
  font-size: 18px;
  line-height: 1.35;
  transition: color 0.25s ease;
}

.movie-card:hover .card-body strong {
  color: var(--amber-700);
}

.tag-row {
  margin-top: 13px;
}

.tag-row span {
  min-height: 26px;
  padding: 4px 9px;
  font-size: 12px;
}

.dark-panel {
  max-width: none;
  margin: 30px auto;
  padding-left: max(22px, calc((100vw - 1240px) / 2 + 22px));
  padding-right: max(22px, calc((100vw - 1240px) / 2 + 22px));
  color: white;
  background: linear-gradient(
    135deg,
    var(--stone-900),
    #78350f,
    var(--stone-800)
  );
}

.light-head h2 {
  color: white;
}

.light-head a {
  color: var(--amber-200);
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: white;
  background: linear-gradient(
    135deg,
    var(--stone-900),
    #78350f,
    var(--stone-800)
  );
}

.page-hero {
  display: grid;
  gap: 24px;
  max-width: 1240px;
  margin: 34px auto 0;
  border-radius: 28px;
  padding: 48px;
  box-shadow: var(--shadow-soft);
}

.page-hero h1 {
  margin: 10px 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.12;
}

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

.inline-filter {
  flex-wrap: wrap;
  margin-top: 6px;
}

.inline-filter input {
  flex: 1 1 320px;
}

.inline-filter select {
  flex: 0 1 170px;
}

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

.compact-grid .poster-wrap {
  height: 210px;
}

.empty-state {
  margin: 40px 0 0;
  padding: 24px;
  border-radius: 18px;
  color: var(--stone-600);
  background: white;
  box-shadow: var(--shadow-card);
  text-align: center;
}

.detail-hero {
  min-height: 520px;
}

.detail-inner {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: 54px 22px 62px;
}

.breadcrumb {
  display: inline-flex;
  margin-bottom: 24px;
  padding: 8px 13px;
  border-radius: 999px;
  color: #7c2d12;
  background: var(--amber-200);
  font-weight: 850;
}

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

.detail-poster {
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 28px 68px rgba(0, 0, 0, 0.36);
  object-fit: cover;
  aspect-ratio: 2 / 3;
}

.detail-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.1;
}

.detail-lead {
  max-width: 820px;
  color: var(--stone-200);
  font-size: 20px;
}

.detail-meta span {
  background: rgba(253, 230, 138, 0.93);
}

.detail-tags span {
  background: rgba(255, 255, 255, 0.88);
}

.player-section {
  padding-top: 36px;
  padding-bottom: 30px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000;
  box-shadow: 0 30px 80px rgba(28, 25, 23, 0.28);
  aspect-ratio: 16 / 9;
}

.movie-video {
  display: block;
  width: 100%;
  height: 100%;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  border: 0;
  color: white;
  background: radial-gradient(
    circle at center,
    rgba(217, 119, 6, 0.24),
    rgba(0, 0, 0, 0.56)
  );
  cursor: pointer;
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
}

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

.large-play {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber-500), var(--amber-700));
  box-shadow: 0 18px 42px rgba(217, 119, 6, 0.46);
  font-size: 34px;
}

.article-card {
  margin-bottom: 22px;
  padding: 30px;
  border-radius: 24px;
  background: white;
  box-shadow: var(--shadow-card);
}

.article-card h2 {
  margin: 0 0 16px;
  color: var(--stone-900);
  font-size: 28px;
}

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

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

.site-footer {
  margin-top: 34px;
  color: var(--stone-300);
  background: var(--stone-900);
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 42px 22px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
  display: inline-block;
  margin-bottom: 9px;
  color: var(--amber-300);
  font-size: 22px;
  font-weight: 900;
}

.footer-inner p {
  max-width: 620px;
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links a {
  padding: 8px 11px;
  border-radius: 999px;
  color: var(--amber-200);
  background: rgba(255, 255, 255, 0.08);
  font-weight: 700;
}

.copyright {
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 22px 24px;
  color: var(--stone-500);
  font-size: 13px;
}

@media (max-width: 1100px) {
  .hero-inner,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    max-width: 620px;
  }

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

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

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

  .menu-toggle {
    display: block;
  }

  .mobile-nav:not([hidden]) {
    display: block;
  }

  .brand-subtitle {
    display: none;
  }

  .hero-inner {
    min-height: 580px;
    padding-top: 38px;
    padding-bottom: 38px;
  }

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

  .hero-actions,
  .hero-search,
  .inline-filter,
  .footer-inner,
  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-search input,
  .hero-search button,
  .inline-filter input,
  .inline-filter select {
    width: 100%;
  }

  .hero-panel {
    border-radius: 20px;
  }

  .hero-poster {
    height: 230px;
  }

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

  .page-hero {
    margin: 20px 16px 0;
    padding: 30px 20px;
    border-radius: 22px;
  }

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

  .featured-card {
    grid-column: auto;
    grid-row: auto;
  }

  .poster-wrap,
  .featured-card .poster-wrap,
  .compact-grid .poster-wrap {
    height: 260px;
  }

  .detail-inner {
    padding: 34px 16px 44px;
  }

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

  .player-shell {
    border-radius: 20px;
  }

  .article-card {
    padding: 22px;
  }
}
