:root {
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-300: #d6d3d1;
  --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;
  --radius: 18px;
  --shadow: 0 18px 45px rgba(28, 25, 23, 0.16);
  --container: 1180px;
}

* {
  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;
  background: var(--stone-50);
  color: var(--stone-900);
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(41, 37, 36, 0.96);
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 68px;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 18px;
  align-items: center;
}

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

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--amber-500), var(--amber-700));
  box-shadow: 0 8px 20px rgba(217, 119, 6, 0.35);
  font-size: 14px;
}

.desktop-nav {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #e7e5e4;
}

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

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

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.header-search input {
  width: 210px;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
  padding: 6px 8px;
}

.header-search input::placeholder {
  color: #a8a29e;
}

.header-search button,
.big-search button,
.filter-bar button {
  border: 0;
  cursor: pointer;
  color: #fff;
  background: var(--amber-600);
  border-radius: 999px;
  padding: 8px 16px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.header-search button:hover,
.big-search button:hover,
.filter-bar button:hover {
  background: var(--amber-700);
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
  border: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 8px 12px;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 12px;
  padding: 0 16px 18px;
  color: #e7e5e4;
}

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

.hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, var(--stone-800), var(--stone-700), #78350f);
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
  background-image: linear-gradient(120deg, rgba(28, 25, 23, 0.92), rgba(41, 37, 36, 0.68), rgba(120, 53, 15, 0.6)), var(--hero-bg);
  background-size: cover;
  background-position: center;
}

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 18%, rgba(251, 191, 36, 0.22), transparent 28%),
    radial-gradient(circle at 80% 80%, rgba(245, 158, 11, 0.18), transparent 32%);
}

.hero-content {
  position: relative;
  z-index: 1;
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 54px;
  align-items: center;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero-copy p,
.page-hero p,
.detail-copy p {
  max-width: 720px;
  margin: 0 0 24px;
  color: #e7e5e4;
  font-size: clamp(17px, 2.2vw, 22px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--amber-400);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.hero-tags span,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  font-size: 13px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: var(--amber-600);
  box-shadow: 0 12px 28px rgba(217, 119, 6, 0.35);
}

.btn-primary:hover {
  background: var(--amber-700);
}

.btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-poster {
  display: block;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 24px 65px rgba(0, 0, 0, 0.45);
  transform: rotate(2deg);
}

.hero-poster .poster {
  aspect-ratio: 3 / 4;
}

.hero-controls {
  position: absolute;
  right: max(16px, calc((100% - var(--container)) / 2));
  bottom: 32px;
  z-index: 2;
  display: flex;
  gap: 10px;
}

.hero-controls button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
  font-size: 28px;
}

.quick-panel,
.split-section {
  padding: 48px 0;
  background: var(--stone-100);
}

.quick-grid {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 460px);
  gap: 28px;
  align-items: center;
}

.quick-grid h2,
.section-title-row h2,
.panel-card h2,
.article-card h2,
.side-card h2 {
  margin: 0;
  color: var(--stone-900);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
}

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

.big-search {
  display: flex;
  gap: 10px;
  padding: 8px;
  background: #fff;
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.big-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  padding: 12px 16px;
  background: transparent;
}

.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.category-chips a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(28, 25, 23, 0.08);
  font-weight: 700;
}

.category-chips span,
.count-pill {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 999px;
  color: #fff;
  background: var(--amber-600);
  font-size: 12px;
}

.content-section {
  padding: 64px 0;
  background: var(--stone-50);
}

.section-dark {
  color: #fff;
  background: var(--stone-900);
}

.section-dark h2,
.section-dark .movie-card h3 a,
.panel-dark h2 {
  color: #fff;
}

.section-dark .movie-card {
  background: rgba(255, 255, 255, 0.08);
}

.section-dark .movie-card-body p,
.section-dark .movie-meta {
  color: #d6d3d1;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}

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

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

.movie-card {
  overflow: hidden;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(28, 25, 23, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.movie-cover {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--stone-300);
}

.poster {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(41, 37, 36, 0.95), rgba(180, 83, 9, 0.9)),
    radial-gradient(circle at 30% 25%, rgba(251, 191, 36, 0.35), transparent 30%);
}

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

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

.poster-fallback {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  color: #fff;
  text-align: center;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.poster--fallback .poster-fallback {
  display: flex;
}

.movie-year,
.play-badge {
  position: absolute;
  top: 12px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.movie-year {
  right: 12px;
  background: rgba(0, 0, 0, 0.68);
}

.play-badge {
  left: 12px;
  background: var(--amber-600);
}

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

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

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

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

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

.movie-meta span {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--stone-100);
}

.split-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
}

.panel-card,
.article-card,
.side-card,
.category-card a {
  padding: 26px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(28, 25, 23, 0.08);
}

.panel-dark {
  color: #fff;
  background: var(--stone-900);
}

.latest-list,
.hot-list,
.small-card-list,
.ranking-list {
  display: grid;
  gap: 12px;
}

.latest-row,
.hot-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--stone-200);
}

.panel-dark .hot-row {
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.rank-num,
.hot-row span,
.ranking-number {
  color: var(--amber-600);
  font-weight: 900;
}

.latest-row em,
.hot-row em {
  color: var(--stone-500);
  font-style: normal;
  font-size: 13px;
}

.panel-dark .hot-row em {
  color: #d6d3d1;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
  padding: 46px 0;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 18px;
}

.site-footer p {
  max-width: 520px;
  color: #a8a29e;
}

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

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

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

.footer-copy {
  padding: 18px;
  color: #a8a29e;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.page-hero,
.detail-hero {
  position: relative;
  color: #fff;
  background-image: linear-gradient(120deg, rgba(28, 25, 23, 0.94), rgba(41, 37, 36, 0.74), rgba(120, 53, 15, 0.56)), var(--hero-bg);
  background-size: cover;
  background-position: center;
}

.compact-hero .container,
.category-hero .container {
  padding: 82px 0;
}

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

.category-card a {
  display: block;
  min-height: 190px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card a:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.category-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.category-card h2 {
  margin: 0;
}

.category-card p {
  color: var(--stone-600);
}

.category-card small {
  color: var(--stone-500);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: end;
  margin-bottom: 26px;
  padding: 18px;
  background: var(--stone-100);
  border-radius: var(--radius);
}

.filter-bar label {
  display: grid;
  gap: 6px;
  color: var(--stone-600);
  font-size: 13px;
  font-weight: 800;
}

.filter-bar select {
  min-width: 150px;
  border: 1px solid var(--stone-200);
  border-radius: 12px;
  background: #fff;
  padding: 10px 12px;
}

.movie-card.is-hidden {
  display: none;
}

.detail-hero-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
  align-items: center;
  padding: 72px 0;
}

.detail-poster {
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 24px 65px rgba(0, 0, 0, 0.45);
}

.detail-poster .poster {
  aspect-ratio: 3 / 4;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: #d6d3d1;
  font-size: 14px;
}

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

.detail-tags .tag {
  background: rgba(255, 255, 255, 0.12);
}

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

.detail-main {
  display: grid;
  gap: 24px;
}

.player-card {
  overflow: hidden;
  background: #000;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(circle at 50% 35%, rgba(251, 191, 36, 0.18), transparent 35%),
    #000;
}

.movie-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 10px;
  border: 0;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.72));
}

.player-start span {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--amber-600);
  box-shadow: 0 16px 35px rgba(217, 119, 6, 0.38);
}

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

.player-message {
  margin: 0;
  padding: 12px 18px;
  color: #d6d3d1;
  background: #111;
  font-size: 14px;
}

.article-card p {
  color: var(--stone-600);
  font-size: 17px;
}

.info-table dl {
  display: grid;
  gap: 0;
  margin: 18px 0 0;
}

.info-table dl div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--stone-200);
}

.info-table dt {
  color: var(--stone-500);
  font-weight: 800;
}

.info-table dd {
  margin: 0;
}

.detail-side {
  position: sticky;
  top: 94px;
  display: grid;
  gap: 18px;
}

.small-card a {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  align-items: center;
}

.poster-small {
  aspect-ratio: 4 / 3;
  border-radius: 12px;
}

.small-card strong {
  display: block;
  line-height: 1.35;
}

.small-card span {
  display: block;
  margin-top: 4px;
  color: var(--stone-500);
  font-size: 12px;
}

.side-hot {
  display: grid;
  gap: 12px;
  background: var(--stone-900);
}

.side-hot h2,
.side-hot a {
  color: #fff;
}

.side-hot a {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.ranking-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(28, 25, 23, 0.08);
}

.ranking-link {
  display: grid;
  grid-template-columns: 54px 148px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
}

.poster-rank {
  aspect-ratio: 16 / 10;
  border-radius: 14px;
}

.ranking-number {
  font-size: 28px;
}

.ranking-info h2 {
  margin: 0 0 8px;
  font-size: 21px;
}

.ranking-info p {
  margin: 0 0 12px;
  color: var(--stone-600);
}

.score-badge {
  color: #fff;
  background: var(--amber-600);
  border-radius: 999px;
  padding: 8px 14px;
  white-space: nowrap;
}

.search-page-form {
  max-width: 680px;
  margin-top: 24px;
}

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

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

  .mobile-toggle {
    display: inline-flex;
  }

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

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

  .hero-poster,
  .detail-poster {
    max-width: 340px;
  }

  .detail-side {
    position: static;
  }
}

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

  .header-inner {
    grid-template-columns: auto auto;
  }

  .header-search {
    grid-column: 1 / -1;
    width: 100%;
    margin-bottom: 12px;
  }

  .header-search input {
    width: 100%;
  }

  .hero,
  .hero-slides,
  .hero-content {
    min-height: 650px;
  }

  .hero-content {
    gap: 24px;
    padding: 48px 0 92px;
  }

  .hero-poster {
    max-width: 240px;
  }

  .movie-grid,
  .category-grid,
  .footer-grid,
  .ranking-link {
    grid-template-columns: 1fr;
  }

  .section-title-row,
  .latest-row,
  .hot-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .latest-row,
  .hot-row {
    display: flex;
  }

  .big-search {
    border-radius: 18px;
    flex-direction: column;
  }

  .ranking-link {
    justify-items: start;
  }

  .score-badge {
    justify-self: start;
  }
}
