* {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  --amber-950: #451a03;
  --amber-900: #78350f;
  --amber-800: #92400e;
  --amber-700: #b45309;
  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --amber-100: #fef3c7;
  --amber-50: #fffbeb;
  --stone-950: #1c1917;
  --stone-800: #292524;
  --stone-600: #57534e;
  --stone-200: #e7e5e4;
  --stone-100: #f5f5f4;
  --white: #ffffff;
  --shadow-soft: 0 24px 80px rgba(120, 53, 15, 0.16);
  --shadow-card: 0 20px 48px rgba(69, 26, 3, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--stone-950);
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.24), transparent 34rem),
    linear-gradient(180deg, var(--amber-50), #ffffff 38%, #fff7ed 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(90deg, var(--amber-900), var(--amber-700), var(--amber-900));
  color: var(--white);
  box-shadow: 0 18px 50px rgba(69, 26, 3, 0.26);
}

.topbar {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.03em;
  font-size: 1.16rem;
  white-space: nowrap;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  flex-wrap: wrap;
}

.nav-links a {
  padding: 10px 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

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

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

.page-main {
  padding: 34px 0 62px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 600px;
  border-radius: 0 0 36px 36px;
  background: linear-gradient(135deg, #78350f, #b45309 52%, #451a03);
  color: var(--white);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  opacity: 0.36;
  transform: scale(1.04);
  transition: background-image 0.4s ease;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(69, 26, 3, 0.92), rgba(69, 26, 3, 0.52), rgba(69, 26, 3, 0.88)),
    radial-gradient(circle at 72% 30%, rgba(245, 158, 11, 0.48), transparent 22rem);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 600px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.72fr);
  gap: 36px;
  align-items: center;
  padding: 58px 0;
}

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

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fde68a;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero h1 {
  margin: 20px 0 16px;
  font-size: clamp(2.35rem, 6vw, 5.1rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero-summary {
  margin: 0 0 24px;
  max-width: 660px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.08rem;
  line-height: 1.9;
}

.hero-meta,
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 22px;
}

.pill,
.meta-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
  font-size: 0.88rem;
}

.hero-actions,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border 0.2s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, #fbbf24, #f97316);
  color: #451a03;
  box-shadow: 0 18px 32px rgba(245, 158, 11, 0.32);
}

.btn-dark {
  background: var(--amber-900);
  color: var(--white);
}

.btn-ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
}

.btn-light {
  color: var(--amber-900);
  background: var(--white);
  border-color: rgba(146, 64, 14, 0.12);
  box-shadow: 0 12px 28px rgba(120, 53, 15, 0.12);
}

.hero-stage {
  position: relative;
  min-height: 500px;
}

.hero-card {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: end;
  overflow: hidden;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.32);
  opacity: 0;
  transform: translateX(32px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
  background: rgba(69, 26, 3, 0.58);
}

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

.hero-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-card-content {
  position: relative;
  z-index: 2;
  padding: 28px;
  background: linear-gradient(180deg, transparent, rgba(69, 26, 3, 0.94));
}

.hero-card h2 {
  margin: 0 0 8px;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
}

.hero-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
}

.hero-controls {
  position: absolute;
  z-index: 5;
  right: 18px;
  top: 18px;
  display: flex;
  gap: 8px;
}

.circle-btn {
  border: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--white);
  background: rgba(0, 0, 0, 0.28);
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.search-band {
  position: relative;
  z-index: 5;
  width: min(980px, calc(100% - 32px));
  margin: -48px auto 34px;
  padding: 14px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(146, 64, 14, 0.12);
  backdrop-filter: blur(18px);
}

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

.search-form input,
.search-input,
.filter-select {
  width: 100%;
  border: 1px solid rgba(146, 64, 14, 0.16);
  border-radius: 999px;
  padding: 13px 18px;
  outline: none;
  background: var(--white);
  color: var(--stone-950);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.search-form input:focus,
.search-input:focus,
.filter-select:focus {
  border-color: var(--amber-500);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15);
}

.section {
  margin: 44px 0;
}

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

.section-title {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  letter-spacing: -0.04em;
}

.section-desc {
  margin: 8px 0 0;
  color: var(--stone-600);
  line-height: 1.8;
  max-width: 760px;
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(146, 64, 14, 0.11);
  box-shadow: 0 14px 36px rgba(120, 53, 15, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.42);
  box-shadow: var(--shadow-card);
}

.poster-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.3), transparent 12rem),
    linear-gradient(135deg, #78350f, #f59e0b);
}

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

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

.poster-wrap .image-hidden {
  display: none;
}

.poster-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 900;
  letter-spacing: 0.04em;
}

.card-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(69, 26, 3, 0.76);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.card-body h3 {
  margin: 0;
  font-size: 1.06rem;
  line-height: 1.35;
}

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

.card-line {
  margin: 0;
  color: var(--stone-600);
  line-height: 1.65;
  font-size: 0.92rem;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--amber-900);
  font-size: 0.82rem;
  font-weight: 800;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--amber-100);
  color: var(--amber-900);
  font-weight: 800;
  font-size: 0.82rem;
}

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  border-radius: var(--radius-xl);
  padding: 24px;
  color: var(--white);
  background:
    radial-gradient(circle at top right, rgba(253, 230, 138, 0.42), transparent 12rem),
    linear-gradient(135deg, var(--amber-900), var(--amber-600));
  box-shadow: var(--shadow-card);
}

.category-tile h2,
.category-tile h3 {
  margin: 0 0 10px;
  font-size: 1.5rem;
}

.category-tile p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.75;
}

.rank-list {
  display: grid;
  gap: 12px;
  counter-reset: rank;
}

.rank-item {
  counter-increment: rank;
  display: grid;
  grid-template-columns: 58px 70px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(146, 64, 14, 0.1);
  box-shadow: 0 12px 28px rgba(120, 53, 15, 0.07);
}

.rank-num {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  font-weight: 900;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  color: #451a03;
}

.rank-poster {
  width: 70px;
  height: 92px;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(135deg, #78350f, #f59e0b);
}

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

.rank-title {
  margin: 0 0 6px;
  font-size: 1.1rem;
}

.rank-summary {
  margin: 0;
  color: var(--stone-600);
  line-height: 1.6;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 20px;
  color: var(--stone-600);
  font-weight: 700;
}

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

.detail-hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 1fr);
  gap: 32px;
  align-items: stretch;
  padding: 28px;
  border-radius: 32px;
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.22), transparent 18rem),
    rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(146, 64, 14, 0.12);
  box-shadow: var(--shadow-soft);
}

.detail-poster {
  position: relative;
  min-height: 520px;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(135deg, #78350f, #f59e0b);
}

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

.detail-content h1 {
  margin: 14px 0;
  font-size: clamp(2.15rem, 5vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.detail-lead {
  margin: 0 0 18px;
  color: var(--stone-600);
  line-height: 1.95;
  font-size: 1.08rem;
}

.info-table {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0;
}

.info-cell {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(254, 243, 199, 0.76);
  border: 1px solid rgba(245, 158, 11, 0.18);
}

.info-cell strong {
  display: block;
  margin-bottom: 5px;
  color: var(--amber-900);
}

.player-section {
  margin: 42px 0;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #0f0b07;
  box-shadow: 0 26px 72px rgba(15, 11, 7, 0.3);
}

.movie-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0f0b07;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  border: 0;
  color: var(--white);
  background:
    radial-gradient(circle at center, rgba(245, 158, 11, 0.28), transparent 16rem),
    rgba(15, 11, 7, 0.58);
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-icon {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  padding-left: 5px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  color: #451a03;
  font-size: 2.2rem;
  box-shadow: 0 20px 50px rgba(245, 158, 11, 0.42);
}

.article-box {
  padding: 28px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(146, 64, 14, 0.1);
  box-shadow: 0 16px 36px rgba(120, 53, 15, 0.08);
}

.article-box h2 {
  margin: 0 0 14px;
  font-size: 1.65rem;
}

.article-box p {
  color: var(--stone-600);
  line-height: 2;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 14px;
  margin: 20px 0 26px;
}

.empty-state {
  display: none;
  padding: 38px;
  text-align: center;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--stone-600);
  border: 1px solid rgba(146, 64, 14, 0.1);
}

.empty-state.is-visible {
  display: block;
}

.site-footer {
  padding: 34px 0;
  color: rgba(255, 255, 255, 0.82);
  background: linear-gradient(90deg, var(--amber-950), var(--amber-900));
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

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

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

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

  .hero-stage {
    min-height: 440px;
  }

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

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

@media (max-width: 760px) {
  .topbar {
    min-height: 62px;
  }

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

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 70px;
    display: none;
    padding: 12px;
    border-radius: 22px;
    background: rgba(69, 26, 3, 0.96);
    box-shadow: 0 18px 42px rgba(69, 26, 3, 0.3);
  }

  .nav-links.is-open {
    display: grid;
    justify-content: stretch;
  }

  .nav-links a {
    border-radius: 14px;
  }

  .hero,
  .hero-inner {
    min-height: 0;
  }

  .hero-inner {
    padding: 44px 0 72px;
  }

  .hero-stage {
    min-height: 360px;
  }

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

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

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

  .rank-item {
    grid-template-columns: 44px 58px 1fr;
  }

  .rank-item .btn {
    grid-column: 1 / -1;
  }

  .rank-poster {
    width: 58px;
    height: 76px;
  }

  .detail-poster {
    min-height: 420px;
  }

  .info-table {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .container,
  .topbar,
  .hero-inner,
  .footer-inner {
    width: min(100% - 24px, 1180px);
  }

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

  .hero-card-content,
  .detail-hero,
  .article-box {
    padding: 20px;
  }

  .detail-poster {
    min-height: 360px;
  }
}
