:root {
  color-scheme: light;
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-300: #d6d3d1;
  --stone-400: #a8a29e;
  --stone-500: #78716c;
  --stone-600: #57534e;
  --stone-700: #44403c;
  --stone-800: #292524;
  --stone-900: #1c1917;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --amber-800: #92400e;
  --amber-900: #78350f;
  --white: #ffffff;
  --shadow-soft: 0 14px 35px rgba(28, 25, 23, 0.12);
  --shadow-strong: 0 22px 70px rgba(28, 25, 23, 0.28);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--stone-50);
  background: rgba(41, 37, 36, 0.96);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(28, 25, 23, 0.22);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 66px;
}

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

.brand {
  font-size: 21px;
  white-space: nowrap;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  color: var(--stone-900);
  background: linear-gradient(135deg, var(--amber-400), var(--amber-700));
  box-shadow: 0 10px 22px rgba(245, 158, 11, 0.32);
  font-size: 13px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--stone-200);
  font-size: 15px;
}

.nav-link,
.mobile-link {
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: var(--amber-400);
}

.header-search,
.mobile-search,
.big-search {
  display: flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(68, 64, 60, 0.96);
  overflow: hidden;
}

.header-search input,
.mobile-search input,
.big-search input {
  width: 210px;
  border: 0;
  outline: 0;
  color: var(--stone-50);
  background: transparent;
  padding: 11px 6px 11px 18px;
}

.header-search input::placeholder,
.mobile-search input::placeholder,
.big-search input::placeholder {
  color: var(--stone-400);
}

.header-search button,
.mobile-search button,
.big-search button {
  border: 0;
  cursor: pointer;
  color: var(--white);
  background: var(--amber-600);
  padding: 11px 18px;
  transition: background 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.big-search button:hover {
  background: var(--amber-700);
}

.menu-button {
  display: none;
  border: 0;
  color: var(--stone-50);
  background: transparent;
  font-size: 28px;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  border-top: 1px solid rgba(231, 229, 228, 0.12);
}

.mobile-panel.open {
  display: block;
}

.mobile-panel-inner {
  display: grid;
  gap: 12px;
  padding: 14px 0 18px;
}

.mobile-link {
  color: var(--stone-200);
  padding: 8px 0;
}

.hero-shell {
  background: var(--stone-900);
}

.hero-slider {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  background: var(--stone-900);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-content {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  color: var(--white);
  max-width: 720px;
  padding: 70px 0 128px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--amber-400);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-content h1,
.page-hero h1,
.detail-info h1 {
  margin: 14px 0 0;
  font-size: clamp(38px, 7vw, 74px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero-content h2 {
  margin: 16px 0 0;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.15;
}

.hero-content p {
  max-width: 660px;
  margin: 18px 0 0;
  color: var(--stone-200);
  font-size: clamp(17px, 2vw, 24px);
}

.hero-tags,
.detail-tags,
.rank-tags,
.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}

.hero-tags span,
.detail-tags span,
.rank-tags span,
.quick-links a {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--stone-100);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

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

.primary-button,
.ghost-button,
.rank-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 0 24px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-button,
.rank-action {
  color: var(--white);
  background: var(--amber-600);
  box-shadow: 0 14px 28px rgba(217, 119, 6, 0.34);
}

.primary-button:hover,
.rank-action:hover {
  background: var(--amber-700);
  transform: translateY(-2px);
}

.ghost-button {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

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

.hero-tabs {
  position: absolute;
  left: 50%;
  bottom: 26px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
}

.hero-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 60px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  color: var(--stone-200);
  background: rgba(28, 25, 23, 0.66);
  cursor: pointer;
  text-align: left;
  backdrop-filter: blur(14px);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.hero-tab span {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  flex: 0 0 28px;
  height: 28px;
  border-radius: 999px;
  color: var(--stone-900);
  background: var(--amber-400);
  font-weight: 900;
}

.hero-tab strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-tab.active,
.hero-tab:hover {
  border-color: rgba(251, 191, 36, 0.68);
  background: rgba(68, 64, 60, 0.82);
  transform: translateY(-2px);
}

.category-strip {
  background: var(--stone-900);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.category-strip-inner {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 18px 0;
}

.category-strip a {
  flex: 0 0 auto;
  border-radius: 999px;
  color: var(--stone-200);
  background: var(--stone-800);
  padding: 9px 16px;
  transition: color 0.2s ease, background 0.2s ease;
}

.category-strip a:hover {
  color: var(--white);
  background: var(--amber-700);
}

.content-section {
  padding: 66px 0;
}

.section-tint {
  background: var(--stone-100);
}

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

.section-heading h2 {
  margin: 0;
  color: var(--stone-900);
  font-size: clamp(27px, 3vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section-more {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: var(--amber-700);
  font-weight: 800;
}

.movie-grid {
  display: grid;
  gap: 22px;
}

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

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

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

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-strong);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--stone-300), var(--stone-700));
}

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

.movie-card:hover .poster-link img,
.overlay-card:hover img,
.compact-card:hover img,
.rank-row:hover img {
  transform: scale(1.08);
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.25s ease;
}

.movie-card:hover .poster-shade {
  background: rgba(0, 0, 0, 0.28);
}

.play-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  color: var(--stone-900);
  background: var(--amber-400);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.year-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.68);
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
}

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

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

.movie-card h3 a:hover {
  color: var(--amber-700);
}

.movie-card p {
  display: -webkit-box;
  min-height: 45px;
  margin: 9px 0 14px;
  overflow: hidden;
  color: var(--stone-600);
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta,
.compact-meta,
.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--stone-500);
  font-size: 12px;
}

.movie-meta span,
.movie-meta a,
.compact-meta span,
.rank-meta span,
.rank-meta a {
  border-radius: 999px;
  background: var(--stone-100);
  padding: 4px 9px;
}

.movie-meta a,
.rank-meta a {
  color: var(--amber-700);
}

.ranking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.85fr);
  gap: 32px;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 14px;
  overflow: hidden;
  border-radius: 16px;
  background: var(--white);
  padding: 12px;
  box-shadow: var(--shadow-soft);
}

.compact-cover {
  overflow: hidden;
  border-radius: 13px;
  aspect-ratio: 16 / 11;
  background: var(--stone-300);
}

.compact-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.compact-title {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
  font-weight: 800;
}

.rank-num {
  color: var(--amber-700);
}

.compact-card p {
  display: -webkit-box;
  margin: 0 0 8px;
  overflow: hidden;
  color: var(--stone-600);
  font-size: 13px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.featured-panel {
  border-radius: 24px;
  color: var(--stone-100);
  background: linear-gradient(145deg, var(--stone-900), var(--stone-700));
  padding: 28px;
  box-shadow: var(--shadow-strong);
}

.featured-panel h2 {
  margin: 0 0 8px;
  font-size: 30px;
}

.featured-panel p {
  margin: 0 0 20px;
  color: var(--stone-300);
}

.overlay-grid {
  display: grid;
  gap: 14px;
}

.overlay-card {
  position: relative;
  display: block;
  min-height: 190px;
  overflow: hidden;
  border-radius: 18px;
  background: var(--stone-700);
}

.overlay-card img {
  width: 100%;
  height: 100%;
  min-height: 190px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.86));
}

.overlay-content {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  display: grid;
  gap: 4px;
  color: var(--white);
}

.overlay-content strong {
  font-size: 22px;
}

.overlay-content em,
.overlay-content small {
  color: var(--stone-300);
  font-style: normal;
}

.page-hero,
.detail-hero {
  color: var(--white);
  background: linear-gradient(135deg, var(--stone-900), var(--stone-700), var(--amber-900));
  background-position: center;
  background-size: cover;
}

.page-hero {
  padding: 76px 0;
}

.small-hero p,
.ranking-hero p,
.search-hero p {
  max-width: 720px;
  color: var(--stone-200);
  font-size: 19px;
}

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

.category-card {
  overflow: hidden;
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.category-card-cover {
  display: flex;
  align-items: end;
  min-height: 190px;
  padding: 24px;
  color: var(--white);
  background-position: center;
  background-size: cover;
}

.category-card-cover span {
  font-size: 30px;
  font-weight: 900;
}

.category-card-body {
  padding: 22px;
}

.category-card h2 {
  margin: 0 0 8px;
}

.category-card p {
  margin: 0 0 16px;
  color: var(--stone-600);
}

.sample-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sample-links a {
  border-radius: 999px;
  color: var(--amber-700);
  background: var(--stone-100);
  padding: 6px 12px;
  font-size: 13px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 150px 54px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  overflow: hidden;
  border-radius: 22px;
  background: var(--white);
  padding: 16px;
  box-shadow: var(--shadow-soft);
}

.rank-cover {
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 16 / 10;
  background: var(--stone-300);
}

.rank-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.rank-index {
  color: var(--amber-700);
  font-size: 34px;
  font-weight: 900;
}

.rank-body h2 {
  margin: 0 0 8px;
  font-size: 23px;
}

.rank-body p {
  margin: 0 0 10px;
  color: var(--stone-600);
}

.rank-tags {
  margin-top: 0;
  margin-bottom: 10px;
}

.rank-tags span {
  color: var(--stone-700);
  background: var(--stone-100);
  border-color: var(--stone-200);
}

.big-search {
  width: min(720px, 100%);
  margin-top: 28px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.big-search input {
  flex: 1;
  width: auto;
  padding: 15px 18px;
}

.big-search button {
  padding: 15px 28px;
}

.detail-hero {
  padding: 58px 0;
}

.detail-hero-inner {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  background: var(--stone-800);
  box-shadow: var(--shadow-strong);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--stone-300);
}

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

.detail-info h1 {
  font-size: clamp(34px, 5vw, 58px);
}

.detail-one-line {
  max-width: 790px;
  margin: 18px 0 0;
  color: var(--stone-200);
  font-size: 20px;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.detail-meta-grid span {
  display: grid;
  gap: 4px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  padding: 12px 14px;
}

.detail-meta-grid strong {
  color: var(--amber-400);
  font-size: 12px;
}

.player-section {
  padding-top: 44px;
}

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

.detail-main,
.detail-side,
.player-card,
.story-block {
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.detail-main {
  display: grid;
  gap: 22px;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.player-card {
  overflow: hidden;
  padding: 0;
}

.video-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--stone-900);
}

.video-wrap video {
  width: 100%;
  height: 100%;
  display: block;
  background: var(--stone-900);
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: var(--stone-900);
  background: linear-gradient(180deg, rgba(28, 25, 23, 0.16), rgba(28, 25, 23, 0.56));
  cursor: pointer;
}

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

.player-overlay span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  background: var(--amber-400);
  box-shadow: 0 16px 44px rgba(245, 158, 11, 0.45);
  font-size: 30px;
  transform: translateX(2px);
}

.story-block {
  padding: 28px;
}

.story-block h2,
.detail-side h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.story-block p {
  margin: 0;
  color: var(--stone-700);
  font-size: 17px;
  white-space: pre-line;
}

.detail-side {
  position: sticky;
  top: 88px;
  padding: 22px;
}

.search-results:empty::after {
  content: "没有找到匹配内容";
  grid-column: 1 / -1;
  padding: 36px;
  border-radius: 18px;
  color: var(--stone-600);
  background: var(--white);
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.site-footer {
  color: var(--stone-300);
  background: var(--stone-900);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 34px;
  padding: 48px 0;
}

.footer-brand {
  color: var(--white);
  font-size: 21px;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: var(--white);
}

.site-footer p {
  color: var(--stone-400);
}

.site-footer ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px;
  color: var(--stone-500);
  text-align: center;
}

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

  .menu-button {
    display: block;
  }

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

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

  .detail-side {
    position: static;
  }

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

@media (max-width: 820px) {
  .hero-slider {
    min-height: 620px;
  }

  .hero-content {
    padding-bottom: 190px;
  }

  .hero-tabs {
    grid-template-columns: 1fr;
  }

  .hero-tab {
    min-height: 46px;
  }

  .hero-tab:nth-child(n + 4) {
    display: none;
  }

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

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

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

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

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

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

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

  .brand {
    font-size: 18px;
  }

  .hero-slider {
    min-height: 640px;
  }

  .hero-content p,
  .detail-one-line {
    font-size: 17px;
  }

  .hero-actions {
    display: grid;
  }

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

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

  .compact-card {
    grid-template-columns: 96px minmax(0, 1fr);
  }

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

  .rank-index {
    position: absolute;
    margin-left: 8px;
    margin-top: 8px;
    color: var(--white);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  }

  .rank-body {
    grid-column: 1 / -1;
  }

  .detail-meta-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .story-block,
  .detail-side {
    padding: 20px;
  }
}
