:root {
  --amber: #f59e0b;
  --orange: #ea580c;
  --yellow: #facc15;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #f1f5f9;
  --paper: #ffffff;
  --soft: #fff7ed;
  --shadow: 0 18px 45px rgba(234, 88, 12, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: linear-gradient(135deg, #fffbeb 0%, #fff7ed 45%, #fef3c7 100%);
  line-height: 1.6;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.96), rgba(234, 88, 12, 0.96));
  box-shadow: 0 10px 30px rgba(194, 65, 12, 0.2);
  backdrop-filter: blur(18px);
}

.nav-bar {
  height: 74px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand {
  font-size: 22px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.24);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 3px;
  border-radius: 999px;
  background: #ffffff;
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.header-search input,
.mobile-panel input,
.page-search input {
  width: 260px;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  outline: none;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.18);
}

.header-search input:focus,
.mobile-panel input:focus,
.page-search input:focus {
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.34);
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: #ffffff;
  border-radius: 99px;
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.mobile-panel.is-open {
  display: grid;
  gap: 12px;
}

.mobile-panel a {
  color: #ffffff;
  font-weight: 700;
}

.hero {
  position: relative;
  height: 620px;
  overflow: hidden;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.55) 45%, rgba(0, 0, 0, 0.14) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 690px;
  color: #ffffff;
  animation: fadeUp 0.7s ease both;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.26);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  font-weight: 700;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.03;
  letter-spacing: -0.04em;
}

.hero h2 {
  margin: 0 0 18px;
  font-size: clamp(24px, 4vw, 42px);
  line-height: 1.2;
}

.hero p {
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

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

.hero-tags {
  margin-bottom: 28px;
}

.hero-tags span,
.card-tags span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
}

.card-tags span,
.detail-tags span {
  color: #b45309;
  background: #fffbeb;
}

.hero-actions,
.section-head,
.card-foot,
.movie-meta-line,
.detail-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(90deg, var(--amber), var(--orange));
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 16px 28px rgba(234, 88, 12, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 36px rgba(234, 88, 12, 0.34);
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.26);
}

.hero-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-size: 28px;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.32);
}

.hero-prev {
  left: 28px;
}

.hero-next {
  right: 28px;
}

.hero-dots {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 30px;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.hero-dots button {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.active {
  width: 34px;
  background: #ffffff;
}

.section {
  padding: 70px 0;
}

.section-soft {
  background: linear-gradient(90deg, rgba(254, 243, 199, 0.72), rgba(255, 237, 213, 0.72));
}

.section-white {
  background: #ffffff;
}

.section-head {
  justify-content: space-between;
  margin-bottom: 30px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title h2,
.page-title h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.2;
}

.section-title span {
  font-size: 32px;
}

.section-link {
  color: #b45309;
  font-weight: 800;
}

.page-title {
  padding: 66px 0 34px;
  text-align: center;
}

.page-title p {
  max-width: 720px;
  margin: 14px auto 0;
  color: var(--muted);
}

.page-search {
  display: flex;
  justify-content: center;
  margin: 22px auto 0;
}

.page-search input {
  width: min(520px, 100%);
  border: 1px solid #fde68a;
}

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

.category-tile {
  display: block;
  min-height: 180px;
  padding: 26px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.88);
  border: 2px solid rgba(251, 191, 36, 0.32);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 24px 54px rgba(234, 88, 12, 0.2);
}

.category-icon {
  font-size: 46px;
}

.category-tile h2,
.category-tile h3 {
  margin: 14px 0 8px;
  font-size: 23px;
}

.category-tile p {
  margin: 0;
  color: var(--muted);
}

.category-count {
  display: inline-flex;
  margin-top: 18px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #b45309;
  background: #fffbeb;
  font-weight: 800;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 54px rgba(234, 88, 12, 0.22);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #fef3c7, #fed7aa);
}

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

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

.rank-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--yellow), var(--orange));
  color: #ffffff;
  font-weight: 900;
}

.movie-body {
  padding: 18px;
}

.movie-meta-line {
  flex-wrap: wrap;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.movie-meta-line span + span::before {
  content: "·";
  margin-right: 12px;
  color: #f59e0b;
}

.movie-card h3 {
  margin: 0 0 10px;
  font-size: 19px;
  line-height: 1.35;
}

.movie-card h3 a:hover {
  color: #d97706;
}

.movie-card p {
  min-height: 52px;
  margin: 0 0 14px;
  color: #4b5563;
  font-size: 14px;
}

.card-foot {
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-weight: 800;
  color: #b45309;
}

.card-foot a {
  color: #ea580c;
}

.feature-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
}

.feature-layout .movie-card:first-child .poster-link {
  aspect-ratio: 16 / 10;
}

.side-list {
  display: grid;
  gap: 18px;
}

.movie-card.compact {
  display: grid;
  grid-template-columns: 128px 1fr;
}

.movie-card.compact .poster-link {
  aspect-ratio: 1 / 1;
}

.movie-card.compact p {
  min-height: auto;
}

.rank-panel {
  max-width: 980px;
  margin: 0 auto;
  padding: 22px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

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

.rank-row {
  display: grid;
  grid-template-columns: 54px 82px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border-radius: 20px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-row:hover {
  background: #fff7ed;
  transform: translateX(4px);
}

.rank-row img {
  width: 82px;
  height: 82px;
  border-radius: 16px;
  object-fit: cover;
  background: #fed7aa;
}

.rank-number {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f3f4f6;
  color: #6b7280;
  font-weight: 900;
}

.rank-number.gold {
  background: #facc15;
  color: #ffffff;
}

.rank-number.silver {
  background: #d1d5db;
  color: #ffffff;
}

.rank-number.bronze {
  background: #fb923c;
  color: #ffffff;
}

.rank-main strong,
.rank-main em {
  display: block;
}

.rank-main strong {
  font-size: 18px;
}

.rank-main em {
  margin-top: 4px;
  color: var(--muted);
  font-style: normal;
  font-size: 14px;
}

.rank-score {
  color: #b45309;
  font-weight: 900;
}

.crumbs {
  padding: 26px 0 0;
  color: #92400e;
  font-weight: 700;
}

.crumbs a:hover {
  color: #ea580c;
}

.detail-hero {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 38px;
  padding: 42px;
  margin: 28px 0 42px;
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 247, 237, 0.88));
  box-shadow: var(--shadow);
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.18);
  background: #fed7aa;
}

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

.detail-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
}

.detail-copy .lead {
  color: #4b5563;
  font-size: 19px;
}

.detail-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0;
}

.detail-stats span {
  padding: 9px 14px;
  border-radius: 999px;
  color: #92400e;
  background: #fffbeb;
  font-weight: 800;
}

.player-card,
.content-card,
.related-card {
  margin-bottom: 42px;
  border-radius: 30px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.player-card {
  padding: 22px;
}

.player-card h2,
.content-card h2,
.related-card h2 {
  margin: 0 0 18px;
  font-size: 28px;
}

.video-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #111827;
  aspect-ratio: 16 / 9;
}

.video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.48));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-button {
  width: 92px;
  height: 92px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  color: #ffffff;
  font-size: 34px;
  cursor: pointer;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.content-card,
.related-card {
  padding: 32px;
}

.content-card p {
  margin: 0 0 18px;
  color: #374151;
  font-size: 17px;
}

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

.meta-cell {
  padding: 16px;
  border-radius: 18px;
  background: #fff7ed;
}

.meta-cell span,
.meta-cell strong {
  display: block;
}

.meta-cell span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.meta-cell strong {
  margin-top: 6px;
}

.empty-state {
  padding: 26px;
  border-radius: 22px;
  background: #ffffff;
  color: var(--muted);
  text-align: center;
  box-shadow: var(--shadow);
}

.site-footer {
  margin-top: 40px;
  padding: 46px 0 0;
  color: #e5e7eb;
  background: #111827;
}

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

.site-footer p {
  color: #9ca3af;
}

.site-footer h3 {
  margin: 0 0 12px;
  color: #ffffff;
}

.site-footer a {
  display: block;
  margin-bottom: 9px;
  color: #d1d5db;
}

.footer-bottom {
  margin-top: 34px;
  padding: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #9ca3af;
  text-align: center;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .nav-links,
  .header-search {
    display: none;
  }

  .mobile-toggle {
    display: block;
    margin-left: auto;
  }

  .hero {
    height: 560px;
  }

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

  .feature-layout,
  .detail-hero,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .meta-table {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .brand {
    font-size: 18px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .hero {
    height: 620px;
  }

  .hero-content {
    align-items: flex-end;
    padding-bottom: 86px;
  }

  .hero-actions,
  .section-head,
  .detail-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-arrow {
    top: auto;
    bottom: 24px;
    width: 44px;
    height: 44px;
  }

  .hero-prev {
    left: 18px;
  }

  .hero-next {
    right: 18px;
  }

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

  .movie-card.compact {
    grid-template-columns: 110px 1fr;
  }

  .movie-card.compact .movie-body {
    padding: 14px;
  }

  .rank-row {
    grid-template-columns: 42px 68px 1fr;
  }

  .rank-score {
    grid-column: 3;
  }

  .detail-hero,
  .content-card,
  .related-card,
  .player-card {
    padding: 18px;
    border-radius: 24px;
  }

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