:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-300: #fcd34d;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --amber-800: #92400e;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-700: #44403c;
  --stone-800: #292524;
  --stone-900: #1c1917;
  --white: #ffffff;
  --shadow-soft: 0 18px 45px rgba(146, 64, 14, 0.14);
  --shadow-card: 0 10px 28px rgba(41, 37, 36, 0.10);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--stone-900);
  background: linear-gradient(135deg, var(--stone-50), var(--amber-50));
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 251, 235, 0.92);
  border-bottom: 1px solid rgba(217, 119, 6, 0.18);
  backdrop-filter: blur(18px);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
  box-shadow: 0 12px 28px rgba(217, 119, 6, 0.28);
}

.brand-copy {
  display: grid;
  line-height: 1.1;
}

.brand-copy strong,
.footer-brand strong {
  font-size: 1.35rem;
  color: var(--amber-800);
  letter-spacing: 0.02em;
}

.brand-copy small {
  margin-top: 4px;
  font-size: 0.78rem;
  color: var(--amber-600);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link,
.mobile-nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--amber-800);
  font-weight: 650;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  color: var(--orange-600);
  background: rgba(251, 191, 36, 0.22);
}

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

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  color: var(--amber-800);
  background: rgba(251, 191, 36, 0.24);
}

.mobile-nav {
  display: none;
  border-top: 1px solid rgba(217, 119, 6, 0.16);
}

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

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

.hero-shell {
  padding: 22px 0 0;
  background: radial-gradient(circle at 18% 12%, rgba(245, 158, 11, 0.28), transparent 36%), linear-gradient(135deg, var(--amber-100), var(--orange-50, #fff7ed));
}

.hero-slider {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border-radius: 0 0 36px 36px;
  background: var(--stone-900);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  padding: 80px max(32px, calc((100vw - 1180px) / 2 + 16px));
  color: var(--white);
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.8s ease, transform 1.2s ease;
  pointer-events: none;
}

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

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(28, 25, 23, 0.92), rgba(28, 25, 23, 0.58), rgba(28, 25, 23, 0.18)), var(--hero-image);
  background-size: cover;
  background-position: center;
  filter: saturate(1.08);
}

.hero-backdrop {
  position: absolute;
  inset: auto 8% 8% auto;
  width: min(390px, 36vw);
  aspect-ratio: 2 / 3;
  border-radius: 28px;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.38);
  transform: rotate(2deg);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 660px;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: max-content;
  margin-bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--amber-700);
  background: rgba(253, 230, 138, 0.62);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero-kicker {
  color: var(--amber-100);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.hero-content h1 {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.hero-content p {
  max-width: 620px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 1.7vw, 1.22rem);
  line-height: 1.8;
}

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

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

.hero-tags span,
.tag-row span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--amber-800);
  background: var(--amber-100);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 700;
}

.hero-tags span {
  color: var(--amber-50);
  background: rgba(255, 255, 255, 0.16);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  color: var(--amber-800);
  background: var(--white);
  font-weight: 800;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.btn.primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
}

.btn.ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.btn.block {
  width: 100%;
  margin-top: 18px;
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
}

.hero-dot.is-active {
  width: 36px;
  background: var(--amber-300);
}

.home-search-section {
  margin-top: -46px;
  position: relative;
  z-index: 10;
}

.search-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 24px;
  padding: 28px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
}

.search-card h2,
.section-heading h2,
.inner-hero h1,
.detail-copy h1,
.category-overview-head h2 {
  margin: 0;
  color: var(--stone-900);
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.search-card p,
.section-heading p,
.inner-hero p,
.category-overview-head p {
  margin: 10px 0 0;
  color: var(--stone-700);
  line-height: 1.8;
}

.home-search-form,
.search-page-box,
.filter-panel {
  display: flex;
  gap: 12px;
}

.home-search-form input,
.search-page-input,
.filter-input,
.filter-select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(217, 119, 6, 0.20);
  border-radius: 999px;
  padding: 0 18px;
  color: var(--stone-900);
  background: var(--white);
  outline: none;
}

.filter-panel {
  margin: 0 0 28px;
  padding: 14px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 8px 24px rgba(41, 37, 36, 0.06);
}

.filter-select {
  max-width: 160px;
}

.page-section {
  padding: 72px 0;
  background: var(--white);
}

.page-section.warm {
  background: linear-gradient(135deg, var(--stone-50), var(--amber-50));
}

.page-section.amber-panel {
  background: radial-gradient(circle at top right, rgba(245, 158, 11, 0.20), transparent 36%), var(--amber-50);
}

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

.section-more {
  color: var(--amber-700);
  font-weight: 800;
}

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

.movie-card {
  min-width: 0;
}

.movie-card[hidden] {
  display: none;
}

.movie-card-link {
  display: grid;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.poster,
.mini-poster,
.detail-poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, var(--amber-100), var(--stone-100));
}

.poster {
  aspect-ratio: 2 / 3;
}

.poster img,
.mini-poster img,
.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, opacity 0.2s ease;
}

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

img.is-missing {
  opacity: 0;
}

.play-chip,
.rank-badge {
  position: absolute;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
}

.play-chip {
  right: 10px;
  bottom: 10px;
  padding: 6px 10px;
  color: var(--white);
  background: rgba(217, 119, 6, 0.90);
}

.rank-badge {
  left: 10px;
  top: 10px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.20);
}

.movie-card-body {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.movie-card-body strong {
  color: var(--stone-900);
  line-height: 1.38;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card-body em {
  color: var(--stone-700);
  font-size: 0.84rem;
  font-style: normal;
}

.movie-card-body p {
  margin: 0;
  color: var(--stone-700);
  font-size: 0.9rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.category-grid.full {
  margin-bottom: 46px;
}

.category-tile {
  position: relative;
  min-height: 180px;
  overflow: hidden;
  padding: 22px;
  border-radius: var(--radius-xl);
  color: var(--white);
  background: var(--stone-900);
  box-shadow: var(--shadow-card);
}

.category-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(135deg, rgba(28, 25, 23, 0.82), rgba(217, 119, 6, 0.42)), var(--tile-image);
  background-size: cover;
  background-position: center;
  transition: transform 0.55s ease;
}

.category-tile:hover::before {
  transform: scale(1.08);
}

.category-tile span,
.category-tile strong {
  position: relative;
  z-index: 2;
  display: block;
}

.category-tile span {
  font-size: 1.45rem;
  font-weight: 900;
}

.category-tile strong {
  max-width: 90%;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.94rem;
  line-height: 1.7;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
}

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

.ranking-panel,
.article-card,
.side-card,
.player-card,
.category-overview-block {
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.ranking-panel {
  padding: 24px;
  height: max-content;
  position: sticky;
  top: 100px;
}

.ranking-panel h2,
.article-card h2,
.side-card h2 {
  margin: 0 0 18px;
  color: var(--stone-900);
}

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

.mini-card {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: var(--radius-md);
  background: var(--amber-50);
}

.mini-poster {
  width: 56px;
  aspect-ratio: 2 / 3;
  border-radius: 10px;
}

.mini-copy {
  display: grid;
  gap: 4px;
}

.mini-copy strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.92rem;
}

.mini-copy em {
  color: var(--stone-700);
  font-size: 0.78rem;
  font-style: normal;
}

.mini-rank {
  color: var(--amber-700);
  font-weight: 900;
}

.inner-hero,
.detail-hero {
  padding: 64px 0;
  background: radial-gradient(circle at top left, rgba(245, 158, 11, 0.25), transparent 35%), linear-gradient(135deg, var(--amber-100), var(--stone-50));
}

.inner-hero .container {
  max-width: 900px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--amber-700);
  font-size: 0.92rem;
  font-weight: 700;
}

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

.detail-poster {
  aspect-ratio: 2 / 3;
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
}

.detail-copy h1 {
  margin-bottom: 18px;
}

.detail-copy p {
  max-width: 760px;
  color: var(--stone-700);
  font-size: 1.08rem;
  line-height: 1.85;
}

.detail-meta,
.detail-tags {
  margin-top: 18px;
}

.detail-copy .btn {
  margin-top: 28px;
}

.detail-player-section {
  background: var(--stone-900);
}

.player-card {
  overflow: hidden;
  padding: 0;
  background: var(--stone-900);
}

.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #000000;
}

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

.player-layer {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: var(--white);
  cursor: pointer;
  background-image: linear-gradient(rgba(28, 25, 23, 0.42), rgba(28, 25, 23, 0.72)), var(--player-image);
  background-size: cover;
  background-position: center;
  z-index: 2;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-button {
  width: 84px;
  height: 84px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
  font-size: 2rem;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

.player-layer strong {
  max-width: 84%;
  text-align: center;
  font-size: clamp(1.3rem, 3vw, 2.6rem);
}

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

.article-card,
.side-card {
  padding: 28px;
}

.article-card p {
  margin: 0 0 28px;
  color: var(--stone-700);
  line-height: 1.95;
  font-size: 1.02rem;
}

.article-card p:last-child {
  margin-bottom: 0;
}

.side-card dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.side-card dt {
  color: var(--amber-700);
  font-weight: 900;
}

.side-card dd {
  margin: -8px 0 8px;
  color: var(--stone-700);
}

.category-overview-block {
  margin-top: 34px;
  padding: 26px;
}

.search-page-box {
  max-width: 720px;
  margin-top: 26px;
}

.search-results:empty::before {
  content: "输入关键词后显示匹配影片";
  grid-column: 1 / -1;
  padding: 34px;
  border-radius: var(--radius-xl);
  color: var(--stone-700);
  background: var(--white);
  text-align: center;
  box-shadow: var(--shadow-card);
}

.site-footer {
  color: rgba(255, 255, 255, 0.86);
  background: linear-gradient(135deg, var(--amber-800), var(--stone-900));
}

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

.footer-grid p {
  max-width: 520px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.8;
}

.footer-grid h2 {
  margin: 0 0 14px;
  color: var(--amber-200);
  font-size: 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.74);
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  padding: 18px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.66);
  text-align: center;
}

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

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

  .split-layout,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .ranking-panel {
    position: static;
  }
}

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

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

  .header-inner {
    min-height: 66px;
  }

  .hero-slider {
    min-height: 560px;
    border-radius: 0 0 26px 26px;
  }

  .hero-slide {
    padding: 56px 24px 96px;
  }

  .hero-backdrop {
    inset: auto 20px 34px auto;
    width: 132px;
    opacity: 0.7;
  }

  .search-card,
  .detail-grid,
  .two-columns,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .home-search-form,
  .search-page-box,
  .filter-panel {
    flex-direction: column;
  }

  .filter-select {
    max-width: none;
  }

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

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

  .section-heading,
  .category-overview-head {
    align-items: start;
    flex-direction: column;
  }

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

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

  .brand-copy strong {
    font-size: 1.1rem;
  }

  .brand-copy small {
    display: none;
  }

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

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

  .page-section,
  .inner-hero,
  .detail-hero {
    padding: 48px 0;
  }

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

  .movie-card-body p,
  .tag-row {
    display: none;
  }

  .player-button {
    width: 66px;
    height: 66px;
  }
}
