:root {
  color-scheme: light;
  --page: #fffaf0;
  --panel: #ffffff;
  --ink: #151515;
  --muted: #6b7280;
  --line: #f1e2c7;
  --gold: #facc15;
  --gold-deep: #f59e0b;
  --orange: #fb923c;
  --dark: #111827;
  --dark-soft: #1f2937;
  --shadow: 0 20px 50px rgba(17, 24, 39, 0.14);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(250, 204, 21, 0.25), transparent 30rem),
    linear-gradient(180deg, #fff7ed 0%, #ffffff 42%, #fffaf0 100%);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, var(--gold), var(--orange), var(--gold-deep));
  box-shadow: 0 14px 34px rgba(180, 83, 9, 0.28);
}

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

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

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #111827;
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.16);
  font-size: 15px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #ffffff;
  font-weight: 800;
  font-size: 15px;
}

.desktop-nav a,
.mobile-nav a {
  transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  color: #fff7cc;
  transform: translateY(-1px);
}

.mobile-menu-button {
  display: none;
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 24px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  color: #ffffff;
  font-weight: 800;
}

.mobile-nav.is-open {
  display: grid;
}

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

.hero-stage {
  position: relative;
  min-height: 580px;
  overflow: hidden;
  border-radius: 30px;
  box-shadow: var(--shadow);
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.55s ease, transform 0.75s ease;
  pointer-events: none;
}

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

.hero-media {
  width: 100%;
  height: 100%;
  min-height: 580px;
  object-fit: cover;
  background: linear-gradient(135deg, #111827, #78350f);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.08)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.45), transparent 55%);
}

.hero-copy {
  position: absolute;
  left: clamp(24px, 6vw, 76px);
  top: 50%;
  width: min(640px, calc(100% - 48px));
  transform: translateY(-50%);
  color: #ffffff;
}

.hero-kicker,
.sub-hero span,
.section-title span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 7px 14px;
  color: #171717;
  background: var(--gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.hero-copy h1 {
  margin: 18px 0 18px;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: -0.05em;
  text-shadow: 0 12px 34px rgba(0, 0, 0, 0.35);
}

.hero-copy p {
  max-width: 600px;
  margin: 0 0 32px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(16px, 2vw, 22px);
  line-height: 1.7;
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.primary-button,
.ghost-button,
.text-link,
.search-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  padding: 0 24px;
  border: 0;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button,
.search-form button {
  color: #111827;
  background: var(--gold);
  box-shadow: 0 16px 35px rgba(250, 204, 21, 0.32);
}

.primary-button:hover,
.search-form button:hover {
  transform: translateY(-2px) scale(1.02);
  background: #fde047;
}

.ghost-button {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.ghost-button:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.22);
}

.hero-control {
  position: absolute;
  top: 50%;
  width: 44px;
  height: 44px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.45);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-control:hover {
  background: rgba(0, 0, 0, 0.7);
}

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

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

.hero-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: var(--gold);
}

.search-panel,
.section-wrap,
.sub-hero,
.breadcrumb,
.detail-hero,
.watch-section,
.detail-content {
  width: min(1180px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.search-panel {
  margin-top: -34px;
  position: relative;
  z-index: 5;
}

.search-form {
  display: flex;
  gap: 12px;
  padding: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.search-form.large {
  margin-bottom: 28px;
  border-radius: 24px;
}

.search-form input,
.inline-filter input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 18px;
  outline: 0;
  font-size: 16px;
  background: #ffffff;
}

.search-form input:focus,
.inline-filter input:focus {
  border-color: var(--gold-deep);
  box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.22);
}

.section-wrap {
  padding: 62px 0 0;
}

.section-title {
  margin-bottom: 26px;
  text-align: center;
}

.section-title.with-link {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
}

.section-title h2,
.sub-hero h1 {
  margin: 12px 0 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.section-title a,
.text-link {
  color: #92400e;
  font-weight: 900;
}

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

.category-card,
.category-overview-card,
.movie-card,
.rank-item,
.ranking-hero,
.detail-hero,
.watch-section,
.detail-content article {
  border: 1px solid rgba(241, 226, 199, 0.8);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 42px rgba(17, 24, 39, 0.08);
}

.category-card {
  min-height: 156px;
  padding: 22px;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at top right, rgba(250, 204, 21, 0.28), transparent 55%),
    #ffffff;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-card:hover,
.movie-card:hover,
.category-overview-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 26px 58px rgba(17, 24, 39, 0.14);
}

.category-card span {
  display: block;
  margin-bottom: 12px;
  color: #111827;
  font-size: 21px;
  font-weight: 950;
}

.category-card p,
.category-overview-card p,
.movie-card p,
.sub-hero p,
.detail-copy p,
.detail-content p {
  color: var(--muted);
  line-height: 1.75;
}

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-cover-link {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: linear-gradient(135deg, #1f2937, #92400e);
}

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

.movie-card:hover .movie-cover-link img {
  transform: scale(1.08);
}

.cover-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  border-radius: 999px;
  padding: 6px 10px;
  color: #111827;
  background: var(--gold);
  font-size: 12px;
  font-weight: 950;
}

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

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

.movie-title {
  display: -webkit-box;
  min-height: 48px;
  overflow: hidden;
  color: #111827;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 950;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-title:hover {
  color: #ca8a04;
}

.movie-card p {
  display: -webkit-box;
  min-height: 49px;
  margin: 10px 0 12px;
  overflow: hidden;
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #6b7280;
  font-size: 13px;
}

.movie-meta span,
.detail-meta span {
  border-radius: 999px;
  padding: 5px 9px;
  background: #f8fafc;
}

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

.tag-list span {
  border-radius: 999px;
  padding: 5px 9px;
  color: #7c2d12;
  background: #fffbeb;
  font-size: 12px;
  font-weight: 800;
}

.tag-list.large span {
  font-size: 13px;
  padding: 7px 12px;
}

.highlight-section {
  padding: 48px;
  margin-top: 62px;
  border-radius: 30px;
  background: linear-gradient(135deg, #fff7ed, #fffbeb);
  box-shadow: inset 0 0 0 1px rgba(250, 204, 21, 0.2);
}

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

.rank-grid.extended {
  margin-top: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rank-item {
  display: grid;
  grid-template-columns: 46px 76px 1fr;
  align-items: center;
  gap: 14px;
  border-radius: 18px;
  padding: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(17, 24, 39, 0.14);
}

.rank-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  color: #111827;
  background: var(--gold);
  font-weight: 950;
}

.rank-item img {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 14px;
  background: linear-gradient(135deg, #1f2937, #92400e);
}

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

.rank-text strong {
  display: -webkit-box;
  overflow: hidden;
  font-weight: 950;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.rank-text em {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.sub-hero {
  margin-top: 28px;
  padding: 58px;
  border-radius: 30px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(17, 24, 39, 0.92), rgba(146, 64, 14, 0.88)),
    radial-gradient(circle at top right, rgba(250, 204, 21, 0.45), transparent 35rem);
  box-shadow: var(--shadow);
}

.sub-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

.inline-filter {
  max-width: 560px;
  margin-top: 24px;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 178px 1fr;
  gap: 22px;
  min-height: 210px;
  padding: 20px;
  border-radius: var(--radius);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.category-cover-stack img {
  width: 100%;
  height: 82px;
  object-fit: cover;
  border-radius: 14px;
  background: linear-gradient(135deg, #1f2937, #92400e);
}

.category-overview-card h2 {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 950;
}

.ranking-hero {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 28px;
  overflow: hidden;
  border-radius: 26px;
  background: #111827;
}

.ranking-hero img {
  width: 100%;
  height: 290px;
  object-fit: cover;
  background: linear-gradient(135deg, #1f2937, #92400e);
}

.ranking-hero div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px 30px 30px 0;
  color: #ffffff;
}

.ranking-hero span {
  width: fit-content;
  border-radius: 999px;
  padding: 7px 14px;
  color: #111827;
  background: var(--gold);
  font-weight: 950;
}

.ranking-hero h2 {
  margin: 16px 0 12px;
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 950;
}

.ranking-hero p {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.8;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: #92400e;
  font-weight: 800;
}

.detail-hero {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 34px;
  margin-top: 22px;
  padding: 30px;
  border-radius: 30px;
  background:
    radial-gradient(circle at top right, rgba(250, 204, 21, 0.22), transparent 32rem),
    #ffffff;
}

.poster-panel {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 18px 44px rgba(17, 24, 39, 0.16);
}

.poster-panel img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: linear-gradient(135deg, #1f2937, #92400e);
}

.detail-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.detail-copy h1 {
  margin: 18px 0 16px;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.detail-copy p {
  margin: 0 0 18px;
  font-size: 18px;
}

.watch-section {
  padding-top: 50px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  box-shadow: var(--shadow);
}

.movie-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  cursor: pointer;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.62));
  cursor: pointer;
  z-index: 2;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  border-radius: 999px;
  color: #111827;
  background: var(--gold);
  font-size: 34px;
  box-shadow: 0 18px 42px rgba(250, 204, 21, 0.35);
}

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

.detail-content {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 34px;
}

.detail-content article {
  border-radius: var(--radius);
  padding: 24px;
}

.detail-content h2 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 950;
}

.related-wrap {
  padding-bottom: 66px;
}

.search-results:empty::before {
  content: "请输入关键词开始搜索";
  display: block;
  grid-column: 1 / -1;
  padding: 34px;
  border-radius: 22px;
  color: var(--muted);
  text-align: center;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(17, 24, 39, 0.08);
}

.site-footer {
  margin-top: 70px;
  color: #ffffff;
  background: linear-gradient(180deg, var(--dark), #020617);
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  padding: 54px 0;
}

.footer-brand {
  margin-bottom: 14px;
}

.site-footer h2 {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 18px;
  font-weight: 950;
}

.site-footer p,
.site-footer a,
.footer-bottom {
  color: #9ca3af;
  line-height: 1.8;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: 8px;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 16px;
  text-align: center;
}

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

  .mobile-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

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

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

  .detail-hero,
  .ranking-hero {
    grid-template-columns: 1fr;
  }

  .ranking-hero div {
    padding: 0 26px 28px;
  }
}

@media (max-width: 760px) {
  .brand {
    font-size: 22px;
  }

  .hero-stage,
  .hero-media {
    min-height: 520px;
  }

  .hero-control {
    display: none;
  }

  .search-form {
    flex-direction: column;
    border-radius: 24px;
  }

  .section-title.with-link {
    display: block;
  }

  .category-grid,
  .movie-grid,
  .rank-grid,
  .rank-grid.extended,
  .category-overview-grid,
  .detail-content,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .highlight-section,
  .sub-hero,
  .detail-hero {
    padding: 26px;
  }

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

  .poster-panel img {
    aspect-ratio: 16 / 10;
  }

  .rank-item {
    grid-template-columns: 42px 64px 1fr;
  }

  .rank-item img {
    width: 64px;
    height: 64px;
  }
}

@media (max-width: 480px) {
  .hero,
  .search-panel,
  .section-wrap,
  .sub-hero,
  .breadcrumb,
  .detail-hero,
  .watch-section,
  .detail-content {
    width: min(100% - 22px, 1180px);
  }

  .nav-wrap,
  .mobile-nav,
  .footer-grid {
    width: min(100% - 22px, 1180px);
  }

  .hero-copy {
    left: 20px;
    width: calc(100% - 40px);
  }

  .hero-actions {
    display: grid;
  }

  .movie-grid.category-list {
    gap: 16px;
  }
}
