:root {
  --page: #fffaf0;
  --paper: #ffffff;
  --ink: #1f2937;
  --muted: #6b7280;
  --soft: #fef3c7;
  --line: rgba(146, 64, 14, 0.16);
  --brand: #f59e0b;
  --brand-deep: #78350f;
  --brand-mid: #92400e;
  --brand-hot: #d97706;
  --shadow: 0 18px 45px rgba(120, 53, 15, 0.14);
  --radius: 22px;
}

* {
  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(180deg, #fffbeb 0%, #ffffff 42%, #fff7ed 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: linear-gradient(90deg, #78350f 0%, #92400e 50%, #78350f 100%);
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(120, 53, 15, 0.28);
}

.site-header-inner {
  width: min(1200px, calc(100% - 32px));
  height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand,
.desktop-nav,
.mobile-nav,
.footer-links,
.hero-actions,
.section-head,
.search-panel,
.card-tags,
.detail-tags,
.breadcrumb,
.pager-row {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f59e0b, #b45309);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
  color: #ffffff;
  font-size: 25px;
  font-weight: 900;
  transition: transform 0.3s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.08) rotate(-3deg);
}

.brand-text strong {
  display: block;
  font-size: 24px;
  line-height: 1.05;
}

.brand-text small {
  display: block;
  margin-top: 4px;
  color: #fde68a;
  font-size: 12px;
}

.desktop-nav {
  gap: 8px;
}

.nav-link,
.mobile-link {
  border-radius: 12px;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.nav-link {
  padding: 11px 16px;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  background: rgba(180, 83, 9, 0.86);
  color: #ffffff;
}

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

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  padding: 10px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #ffffff;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.mobile-nav.is-open {
  display: flex;
  animation: slideDown 0.28s ease both;
}

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

.main-section,
.hero-content,
.detail-wrap,
.category-wrap,
.all-wrap,
.rank-wrap {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: #78350f;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
  mix-blend-mode: overlay;
  opacity: 0.68;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(120, 53, 15, 0.94) 0%, rgba(146, 64, 14, 0.76) 48%, rgba(0, 0, 0, 0.32) 100%);
}

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

.hero-copy {
  width: min(680px, 100%);
  color: #ffffff;
  animation: fadeIn 0.8s ease both;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fde68a;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hero h1 {
  margin: 22px 0 12px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.hero-title-mark {
  color: #fcd34d;
}

.hero h2 {
  margin: 0 0 14px;
  font-size: clamp(24px, 4vw, 38px);
  line-height: 1.15;
}

.hero p {
  margin: 0;
  max-width: 620px;
  color: #fef3c7;
  font-size: 18px;
  line-height: 1.8;
}

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

.btn,
.ghost-btn,
.pill-link,
.search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn {
  min-height: 48px;
  padding: 0 24px;
  background: #ffffff;
  color: #78350f;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.2);
}

.btn:hover,
.search-submit:hover,
.pill-link:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 16px 34px rgba(146, 64, 14, 0.2);
}

.ghost-btn {
  min-height: 48px;
  padding: 0 24px;
  border: 2px solid rgba(255, 255, 255, 0.72);
  color: #ffffff;
}

.ghost-btn:hover {
  background: #ffffff;
  color: #78350f;
}

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

.hero-tags {
  margin-top: 18px;
}

.hero-tags span,
.card-tags span,
.detail-tags span {
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  font-size: 12px;
  font-weight: 800;
}

.hero-tags span {
  background: rgba(254, 243, 199, 0.18);
  color: #fde68a;
  padding: 7px 12px;
}

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

.hero-dot {
  width: 40px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  cursor: pointer;
}

.hero-dot.is-active {
  background: #fbbf24;
}

.section {
  padding: 68px 0;
}

.section.alt {
  background: linear-gradient(90deg, #fef3c7 0%, #fff7ed 100%);
}

.section-head {
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.section-title h2,
.section-title h1 {
  margin: 0;
  color: #111827;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.12;
  font-weight: 900;
}

.section-title p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.pill-link {
  min-height: 40px;
  padding: 0 16px;
  background: #f59e0b;
  color: #ffffff;
}

.search-panel {
  gap: 12px;
  flex-wrap: wrap;
  margin: 22px 0 30px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.search-panel input,
.search-panel select {
  min-height: 46px;
  border: 1px solid rgba(146, 64, 14, 0.22);
  border-radius: 14px;
  background: #ffffff;
  color: var(--ink);
  outline: none;
}

.search-panel input {
  flex: 1 1 280px;
  padding: 0 16px;
}

.search-panel select {
  flex: 0 0 170px;
  padding: 0 12px;
}

.search-submit {
  min-height: 46px;
  border: 0;
  padding: 0 22px;
  background: linear-gradient(135deg, #f59e0b, #b45309);
  color: #ffffff;
  cursor: pointer;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(146, 64, 14, 0.12);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(120, 53, 15, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.movie-card:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 24px 46px rgba(120, 53, 15, 0.18);
}

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

.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);
}

.rating-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.68);
  color: #fcd34d;
  font-size: 12px;
  font-weight: 900;
}

.movie-card-body {
  padding: 15px;
}

.movie-meta,
.rank-meta,
.detail-meta {
  color: #b45309;
  font-size: 13px;
  font-weight: 800;
}

.movie-card h3 {
  margin: 8px 0 8px;
  font-size: 18px;
  line-height: 1.32;
}

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

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

.compact-card h3 {
  font-size: 16px;
}

.card-tags span,
.detail-tags span {
  padding: 5px 9px;
}

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

.category-card {
  min-height: 210px;
  padding: 24px;
  border: 1px solid rgba(146, 64, 14, 0.13);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #ffffff, #fffbeb);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 45px rgba(120, 53, 15, 0.17);
}

.category-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f59e0b, #b45309);
  color: #ffffff;
  font-weight: 900;
}

.category-card strong {
  display: block;
  font-size: 22px;
}

.category-card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.category-sample {
  color: #92400e !important;
  font-weight: 700;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 52px 86px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(146, 64, 14, 0.12);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(120, 53, 15, 0.08);
}

.rank-number {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: #fef3c7;
  color: #92400e;
  font-weight: 900;
}

.rank-poster {
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 14px;
  background: #fef3c7;
}

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

.rank-item h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.rank-item p {
  margin: 0 0 8px;
  color: var(--muted);
  line-height: 1.6;
}

.page-hero {
  padding: 58px 0 24px;
  background: linear-gradient(120deg, #78350f 0%, #92400e 55%, #f59e0b 100%);
  color: #ffffff;
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.1;
  font-weight: 900;
}

.page-hero p {
  width: min(760px, 100%);
  margin: 0;
  color: #fef3c7;
  line-height: 1.85;
  font-size: 17px;
}

.breadcrumb {
  gap: 8px;
  flex-wrap: wrap;
  margin: 24px auto;
  color: #92400e;
  font-size: 14px;
  font-weight: 700;
}

.detail-top {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.8fr);
  gap: 28px;
  align-items: start;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #000000;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.25);
  aspect-ratio: 16 / 9;
}

.player-shell video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.58));
  color: #ffffff;
  cursor: pointer;
}

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

.play-core {
  display: grid;
  place-items: center;
  gap: 12px;
}

.play-icon {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ffffff;
  color: #92400e;
  font-size: 34px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
}

.play-core strong {
  font-size: 20px;
}

.detail-side {
  padding: 28px;
  border: 1px solid rgba(146, 64, 14, 0.14);
  border-radius: 26px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.detail-side h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.18;
}

.detail-meta {
  margin-bottom: 18px;
}

.detail-side p {
  color: var(--muted);
  line-height: 1.85;
}

.detail-content {
  margin: 34px 0 60px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
}

.article-block,
.related-panel {
  border: 1px solid rgba(146, 64, 14, 0.12);
  border-radius: 26px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.article-block {
  padding: 30px;
}

.article-block h2,
.related-panel h2 {
  margin: 0 0 16px;
  color: #111827;
  font-size: 26px;
}

.article-block p {
  margin: 0 0 18px;
  color: #4b5563;
  line-height: 1.95;
  font-size: 16px;
}

.related-panel {
  align-self: start;
  padding: 22px;
}

.related-list {
  display: grid;
  gap: 14px;
}

.related-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.related-card img {
  width: 76px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 14px;
  background: #fef3c7;
}

.related-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.35;
}

.related-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.pager-row {
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
}

.pager-row a {
  flex: 1;
  padding: 14px 16px;
  border-radius: 18px;
  background: #fef3c7;
  color: #92400e;
  font-weight: 900;
  text-align: center;
}

.site-footer {
  margin-top: 30px;
  background: linear-gradient(180deg, #111827 0%, #000000 100%);
  color: #d1d5db;
}

.footer-inner {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand {
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
}

.footer-inner p {
  max-width: 640px;
  margin: 12px 0 0;
  color: #9ca3af;
  line-height: 1.8;
}

.footer-links {
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-links a {
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.footer-bottom {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 26px;
  color: #6b7280;
  font-size: 14px;
}

.is-hidden-card {
  display: none !important;
}

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

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .detail-content,
  .detail-top {
    grid-template-columns: 1fr;
  }
}

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

  .menu-toggle {
    display: block;
  }

  .site-header-inner {
    height: 68px;
  }

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

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

  .hero,
  .hero-slider,
  .hero-slide img {
    min-height: 610px;
  }

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

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

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

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .hero h1 {
    font-size: 40px;
  }

  .hero h2 {
    font-size: 24px;
  }

  .hero p {
    font-size: 16px;
  }

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

  .search-panel select,
  .search-submit {
    flex: 1 1 100%;
  }

  .rank-item {
    grid-template-columns: 46px 74px minmax(0, 1fr);
  }

  .detail-side,
  .article-block,
  .related-panel {
    padding: 20px;
  }
}
