* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #1f2937;
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 30%, #fffaf0 100%);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
  line-height: 1.65;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(255, 237, 213, 0.96), rgba(255, 251, 235, 0.96));
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 30px rgba(146, 64, 14, 0.14);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, #d97706, #f97316);
  box-shadow: 0 12px 26px rgba(217, 119, 6, 0.32);
}

.brand-text {
  display: grid;
  gap: 0;
}

.brand-text strong {
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, #92400e, #ea580c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text small {
  color: #6b7280;
  font-size: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  white-space: nowrap;
}

.nav-link {
  position: relative;
  color: #374151;
  font-weight: 700;
  padding: 10px 0;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 3px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: #d97706;
  transition: width 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #d97706;
}

.nav-link:hover::after,
.nav-link.is-active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(251, 191, 36, 0.18);
  cursor: pointer;
}

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

.mobile-panel {
  display: none;
  padding: 0 16px 16px;
}

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

.mobile-link {
  display: block;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.75);
  color: #374151;
  font-weight: 700;
}

.mobile-link.is-active {
  color: #d97706;
  background: rgba(251, 191, 36, 0.2);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 650px;
  color: #ffffff;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.75s ease, visibility 0.75s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  transform: scale(1.05);
  filter: saturate(1.12);
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 72% 25%, rgba(251, 191, 36, 0.35), transparent 28%),
    linear-gradient(90deg, rgba(17, 24, 39, 0.96) 0%, rgba(17, 24, 39, 0.78) 46%, rgba(17, 24, 39, 0.2) 100%),
    linear-gradient(180deg, rgba(17, 24, 39, 0.12) 0%, rgba(17, 24, 39, 0.92) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 380px;
  gap: 54px;
  align-items: center;
  min-height: 650px;
  padding: 66px 0 74px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-bottom: 18px;
  padding: 8px 13px;
  border: 1px solid rgba(253, 230, 138, 0.35);
  border-radius: 999px;
  color: #fde68a;
  background: rgba(146, 64, 14, 0.25);
  backdrop-filter: blur(12px);
  font-weight: 800;
}

.hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 1.02;
  letter-spacing: -0.08em;
}

.hero h1 span {
  color: #fbbf24;
}

.hero-copy {
  max-width: 720px;
  margin: 22px 0 0;
  color: #f3f4f6;
  font-size: clamp(17px, 2vw, 22px);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 0;
}

.hero-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #d97706, #f97316);
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(217, 119, 6, 0.32);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 42px rgba(217, 119, 6, 0.42);
}

.btn.secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.26);
  box-shadow: none;
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.35), rgba(249, 115, 22, 0.16));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
}

.hero-poster img {
  aspect-ratio: 3 / 4.2;
  object-fit: cover;
  min-height: 520px;
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 46%;
  background: linear-gradient(180deg, transparent, rgba(17, 24, 39, 0.9));
}

.hero-card-caption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 2;
}

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

.hero-card-caption small {
  color: #fde68a;
  font-weight: 700;
}

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

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

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

.section {
  padding: 66px 0;
}

.section.tight {
  padding-top: 36px;
}

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

.section-title {
  margin: 0;
  color: #111827;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.16;
  letter-spacing: -0.04em;
}

.section-desc {
  max-width: 760px;
  margin: 10px 0 0;
  color: #6b7280;
}

.text-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #d97706;
  font-weight: 900;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(217, 119, 6, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 44px rgba(146, 64, 14, 0.1);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(217, 119, 6, 0.36);
  box-shadow: 0 24px 60px rgba(146, 64, 14, 0.18);
}

.poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #fed7aa, #fde68a);
}

.poster img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.poster-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.76);
  backdrop-filter: blur(10px);
  font-size: 13px;
  font-weight: 900;
}

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

.card-meta {
  margin-bottom: 7px;
  color: #d97706;
  font-size: 13px;
  font-weight: 800;
}

.card-body h2 {
  margin: 0 0 8px;
  color: #111827;
  font-size: 18px;
  line-height: 1.28;
}

.card-body p {
  display: -webkit-box;
  min-height: 52px;
  margin: 0;
  overflow: hidden;
  color: #6b7280;
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  color: #92400e;
  background: #ffedd5;
  font-size: 12px;
  font-weight: 800;
}

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

.category-card {
  min-height: 164px;
  padding: 24px;
  border-radius: 24px;
  color: #ffffff;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.26), transparent 34%),
    linear-gradient(135deg, #92400e, #f97316);
  box-shadow: 0 20px 48px rgba(217, 119, 6, 0.2);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 66px rgba(217, 119, 6, 0.28);
}

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

.category-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
}

.filter-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 26px 0 30px;
  padding: 18px;
  border: 1px solid rgba(217, 119, 6, 0.14);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 40px rgba(146, 64, 14, 0.08);
}

.search-label {
  flex: 1;
  display: grid;
  gap: 8px;
  color: #92400e;
  font-weight: 900;
}

.search-label input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(217, 119, 6, 0.22);
  border-radius: 14px;
  outline: none;
  background: #ffffff;
}

.search-label input:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

.filter-hint {
  color: #6b7280;
  font-weight: 700;
  white-space: nowrap;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 64px 96px minmax(0, 1fr) 104px;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border: 1px solid rgba(217, 119, 6, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 36px rgba(146, 64, 14, 0.08);
}

.rank-num {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, #d97706, #f97316);
  font-weight: 950;
}

.rank-cover {
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(135deg, #fed7aa, #fde68a);
}

.rank-cover img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.rank-info h2 {
  margin: 0 0 6px;
  font-size: 20px;
  line-height: 1.25;
}

.rank-info p {
  margin: 0 0 6px;
  color: #6b7280;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 18px;
  color: #6b7280;
  font-weight: 700;
}

.breadcrumb a {
  color: #d97706;
}

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

.detail-main,
.detail-side,
.content-card {
  border: 1px solid rgba(217, 119, 6, 0.12);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 46px rgba(146, 64, 14, 0.1);
}

.detail-main {
  overflow: hidden;
}

.player-wrap {
  position: relative;
  overflow: hidden;
  background: #111827;
  aspect-ratio: 16 / 9;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 10px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.2), rgba(17, 24, 39, 0.76));
  cursor: pointer;
  z-index: 3;
}

.player-overlay.is-hidden {
  display: none;
}

.play-icon {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 999px;
  background: linear-gradient(135deg, #d97706, #f97316);
  box-shadow: 0 18px 44px rgba(217, 119, 6, 0.34);
  font-size: 36px;
  text-indent: 5px;
}

.player-overlay strong {
  font-size: 20px;
  letter-spacing: 0.04em;
}

.detail-content {
  padding: 26px;
}

.detail-content h1 {
  margin: 0 0 12px;
  color: #111827;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.05em;
}

.detail-lead {
  margin: 0 0 20px;
  color: #4b5563;
  font-size: 18px;
}

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

.info-item {
  padding: 13px;
  border-radius: 16px;
  background: #fff7ed;
}

.info-item span {
  display: block;
  color: #92400e;
  font-size: 12px;
  font-weight: 900;
}

.info-item strong {
  display: block;
  margin-top: 3px;
  color: #111827;
}

.article-block {
  margin-top: 28px;
}

.article-block h2 {
  margin: 0 0 12px;
  color: #111827;
  font-size: 24px;
}

.article-block p {
  margin: 0;
  color: #374151;
  font-size: 16px;
}

.detail-side {
  overflow: hidden;
}

.side-poster {
  background: linear-gradient(135deg, #fed7aa, #fde68a);
}

.side-poster img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.side-body {
  padding: 20px;
}

.side-body h2 {
  margin: 0 0 14px;
  font-size: 22px;
}

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

.related-item {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: #fff7ed;
}

.related-item img {
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  object-fit: cover;
  background: linear-gradient(135deg, #fed7aa, #fde68a);
}

.related-item strong {
  display: block;
  color: #111827;
  line-height: 1.25;
}

.related-item span {
  display: block;
  margin-top: 4px;
  color: #d97706;
  font-size: 12px;
  font-weight: 800;
}

.site-footer {
  margin-top: 66px;
  padding: 54px 0 28px;
  color: #d1d5db;
  background: linear-gradient(135deg, #111827, #1f2937);
}

.footer-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 42px;
}

.footer-brand {
  margin-bottom: 12px;
  color: #fbbf24;
  font-size: 28px;
  font-weight: 950;
}

.site-footer p {
  margin: 0;
  color: #d1d5db;
}

.site-footer h2 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: 20px;
}

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

.footer-links a {
  color: #d1d5db;
}

.footer-links a:hover {
  color: #fbbf24;
}

.footer-bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #9ca3af;
  font-size: 14px;
}

.page-hero {
  padding: 58px 0 30px;
}

.page-hero-card {
  padding: 40px;
  border-radius: 30px;
  color: #ffffff;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.24), transparent 34%),
    linear-gradient(135deg, #92400e, #f97316);
  box-shadow: 0 24px 64px rgba(217, 119, 6, 0.2);
}

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

.page-hero p {
  max-width: 780px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.hide-by-filter {
  display: none !important;
}

@media (max-width: 1024px) {
  .nav-links {
    gap: 14px;
    font-size: 14px;
  }

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

  .hero-poster {
    display: none;
  }

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

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

  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .brand {
    min-width: 0;
  }

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

  .hero,
  .hero-inner {
    min-height: 590px;
  }

  .hero-inner {
    padding: 46px 0 82px;
  }

  .hero h1 {
    font-size: clamp(38px, 13vw, 58px);
  }

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

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

  .ranking-row {
    grid-template-columns: 46px 72px minmax(0, 1fr);
  }

  .ranking-row .text-btn {
    grid-column: 2 / 4;
    justify-content: flex-start;
  }

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

  .filter-hint {
    white-space: normal;
  }
}

@media (max-width: 480px) {
  .grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .page-hero-card,
  .detail-content {
    padding: 24px;
  }

  .ranking-row {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .rank-cover {
    display: none;
  }

  .ranking-row .text-btn {
    grid-column: 2;
  }
}
