:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --blue-600: #2563eb;
  --cyan-600: #0891b2;
  --radius: 18px;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background: var(--gray-50);
  color: var(--gray-800);
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.container.narrow {
  width: min(980px, calc(100% - 32px));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber-500), var(--amber-700));
  color: #fff;
  font-size: 14px;
  box-shadow: 0 12px 24px rgba(245, 158, 11, 0.35);
}

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

.nav-links a {
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--gray-600);
  font-weight: 700;
  transition: 0.2s ease;
}

.nav-links a:hover {
  background: var(--amber-50);
  color: var(--amber-700);
}

.nav-toggle {
  display: none;
  border: 0;
  background: var(--gray-100);
  color: var(--gray-700);
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  color: #fff;
  background: var(--gray-900);
}

.hero-media,
.hero-media img,
.hero-overlay {
  position: absolute;
  inset: 0;
}

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

.hero-overlay {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.56), rgba(0, 0, 0, 0.16));
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 390px;
  align-items: center;
  gap: 42px;
}

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

.hero-label,
.eyebrow {
  display: inline-flex;
  align-items: center;
  color: var(--amber-400);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.hero h1,
.page-hero h1 {
  margin: 0 0 20px;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.hero p,
.page-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 20px;
  margin: 0 0 26px;
}

.hero-meta,
.detail-meta,
.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-meta span,
.detail-meta span,
.card-meta span {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: inherit;
  font-size: 13px;
  font-weight: 700;
}

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

.primary-btn,
.ghost-btn,
.rank-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: 0.2s ease;
}

.primary-btn {
  background: var(--amber-500);
  color: #fff;
  box-shadow: 0 16px 32px rgba(245, 158, 11, 0.32);
}

.primary-btn:hover {
  background: var(--amber-600);
  transform: translateY(-2px);
}

.primary-btn.full {
  width: 100%;
}

.ghost-btn {
  border: 1px solid rgba(255, 255, 255, 0.36);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.ghost-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

.hero-stack {
  display: grid;
  gap: 16px;
}

.section {
  padding: 72px 0;
  background: var(--gray-50);
}

.section.white {
  background: #fff;
}

.section.alt {
  background: var(--gray-100);
}

.section.warm {
  background: linear-gradient(135deg, var(--amber-50), #fff7ed);
}

.section.blue {
  background: linear-gradient(120deg, var(--blue-600), var(--cyan-600));
  color: #fff;
}

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

.section-title h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-title.light h2 {
  color: #fff;
}

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

.section.blue .more-link {
  color: #fff;
}

.card-grid {
  display: grid;
  gap: 24px;
}

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

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

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

.movie-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.18);
}

.card-poster {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--gray-200);
}

.card-poster img,
.mini-poster img,
.rank-poster img,
.category-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s ease;
}

.movie-card:hover .card-poster img,
.mini-card:hover .mini-poster img,
.rank-item:hover .rank-poster img,
.category-tile:hover .category-cover img {
  transform: scale(1.08);
}

.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.86);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--amber-500);
  color: #fff;
  opacity: 0;
  transition: 0.25s ease;
  box-shadow: 0 16px 34px rgba(245, 158, 11, 0.45);
}

.movie-card:hover .play-badge {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.type-badge {
  position: absolute;
  right: 12px;
  top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.74);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.card-body {
  padding: 18px;
}

.card-body h2,
.mini-card h2,
.rank-copy h2,
.category-tile h2 {
  margin: 0 0 8px;
  font-size: 19px;
  line-height: 1.3;
}

.card-body h2 a:hover,
.mini-card h2 a:hover,
.rank-copy h2 a:hover,
.category-tile h2 a:hover {
  color: var(--amber-700);
}

.card-body p,
.mini-card p,
.rank-copy p,
.category-tile p,
.detail-side p {
  margin: 0 0 12px;
  color: var(--gray-600);
}

.card-meta span {
  background: var(--gray-100);
  color: var(--gray-600);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag-row span {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--amber-50);
  color: var(--amber-700);
  font-size: 12px;
  font-weight: 800;
}

.movie-card.wide {
  grid-column: span 2;
}

.movie-card.wide .card-poster {
  aspect-ratio: 16 / 8.4;
}

.movie-card.slide-card {
  width: 330px;
  flex: 0 0 330px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  backdrop-filter: blur(12px);
}

.movie-card.slide-card .card-body p,
.movie-card.slide-card .card-meta span {
  color: rgba(255, 255, 255, 0.82);
}

.movie-card.related-card .card-poster {
  aspect-ratio: 16 / 9;
}

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

.mini-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  align-items: center;
  background: #fff;
  border-radius: 16px;
  padding: 12px;
  box-shadow: var(--shadow);
}

.mini-poster {
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  background: var(--gray-200);
}

.mini-card h2 {
  font-size: 16px;
}

.mini-card p {
  font-size: 13px;
}

.scroll-row {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.page-hero {
  padding: 88px 0;
  color: #fff;
}

.amber-hero {
  background: linear-gradient(135deg, var(--amber-700), var(--amber-500));
}

.dark-hero {
  background: linear-gradient(135deg, var(--gray-900), var(--gray-700));
}

.page-hero .crumb {
  display: inline-flex;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
}

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

.category-tile {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  align-items: center;
  background: #fff;
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.category-cover {
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
  background: var(--gray-200);
}

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

.category-samples a {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--gray-100);
  color: var(--gray-700);
  font-size: 13px;
  font-weight: 700;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr 190px 170px;
  gap: 12px;
  margin-bottom: 28px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 12px 14px;
  background: var(--gray-50);
  color: var(--gray-800);
  outline: none;
}

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

.empty-state {
  display: none;
  text-align: center;
  padding: 28px;
  color: var(--gray-500);
  font-weight: 800;
}

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

.rank-list {
  display: grid;
  gap: 16px;
}

.rank-item {
  display: grid;
  grid-template-columns: 62px 118px 1fr auto;
  gap: 18px;
  align-items: center;
  background: #fff;
  border-radius: 18px;
  padding: 14px;
  box-shadow: var(--shadow);
}

.rank-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--amber-50);
  color: var(--amber-700);
  font-size: 22px;
  font-weight: 900;
}

.rank-poster {
  display: block;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  background: var(--gray-200);
}

.rank-action {
  background: var(--gray-900);
  color: #fff;
}

.rank-action:hover {
  background: var(--amber-600);
}

.detail-hero {
  padding: 34px 0 70px;
  background: linear-gradient(180deg, #fff, var(--gray-50));
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 22px;
  color: var(--gray-500);
  font-weight: 700;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: start;
}

.player-card,
.detail-card,
.detail-side {
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.player-card {
  margin-bottom: 22px;
}

.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.movie-video,
.player-cover,
.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.movie-video {
  z-index: 1;
  object-fit: contain;
}

.player-cover {
  z-index: 2;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: #020617;
  overflow: hidden;
}

.player-cover img {
  object-fit: cover;
  opacity: 0.72;
}

.big-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--amber-500);
  color: #fff;
  font-size: 30px;
  box-shadow: 0 18px 40px rgba(245, 158, 11, 0.45);
}

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

.detail-card {
  padding: 28px;
}

.detail-card h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.detail-card h2 {
  margin: 26px 0 10px;
  font-size: 24px;
}

.detail-card p {
  margin: 0;
  color: var(--gray-700);
  font-size: 17px;
}

.detail-meta span {
  background: var(--gray-100);
  color: var(--gray-600);
}

.detail-side {
  position: sticky;
  top: 96px;
  padding: 18px;
}

.detail-side img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 18px;
  background: var(--gray-200);
  margin-bottom: 16px;
}

.detail-side h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

.site-footer {
  background: linear-gradient(135deg, var(--gray-900), var(--gray-800));
  color: var(--gray-200);
  padding: 54px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.8fr 0.8fr 1fr;
  gap: 34px;
}

.site-footer h2 {
  color: #fff;
  margin: 0 0 14px;
  font-size: 18px;
}

.site-footer p {
  color: #cbd5e1;
  margin: 12px 0 0;
}

.site-footer a {
  display: block;
  color: #cbd5e1;
  margin: 8px 0;
}

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

.footer-bottom {
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 16px;
  text-align: center;
  color: #94a3b8;
}

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

  .hero-stack,
  .detail-side {
    display: none;
  }

  .card-grid.three,
  .card-grid.four,
  .mini-grid,
  .mixed-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .movie-card.wide {
    grid-column: span 1;
  }
}

@media (max-width: 720px) {
  .nav {
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-top: 12px;
  }

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

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

  .hero h1,
  .page-hero h1 {
    font-size: 40px;
  }

  .hero p,
  .page-hero p {
    font-size: 17px;
  }

  .section {
    padding: 48px 0;
  }

  .section-title {
    display: block;
  }

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

  .card-grid.three,
  .card-grid.four,
  .mini-grid,
  .mixed-grid,
  .category-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .category-tile {
    grid-template-columns: 1fr;
  }

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

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

  .rank-action {
    grid-column: 2 / -1;
  }

  .rank-number {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .mini-card {
    grid-template-columns: 84px 1fr;
  }

  .detail-card {
    padding: 20px;
  }
}
