* {
  box-sizing: border-box;
}

:root {
  --stone-950: #1c1917;
  --stone-900: #292524;
  --stone-800: #44403c;
  --stone-700: #57534e;
  --stone-600: #78716c;
  --stone-500: #a8a29e;
  --stone-200: #e7e5e4;
  --stone-100: #f5f5f4;
  --stone-50: #fafaf9;
  --amber-900: #78350f;
  --amber-800: #92400e;
  --amber-700: #b45309;
  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --amber-200: #fde68a;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(41, 37, 36, 0.14);
  --soft-shadow: 0 10px 30px rgba(41, 37, 36, 0.1);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--stone-800);
  background: var(--stone-50);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

img.is-missing {
  opacity: 0;
}

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--white);
  background: linear-gradient(90deg, var(--stone-900), var(--amber-900));
  box-shadow: 0 14px 35px rgba(28, 25, 23, 0.22);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 18px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  color: var(--stone-900);
  background: linear-gradient(135deg, var(--amber-200), var(--amber-500));
  font-weight: 900;
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.32);
}

.brand-text {
  display: grid;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 20px;
  letter-spacing: 0.02em;
}

.brand-text small {
  color: var(--amber-200);
  font-size: 12px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 15px;
  white-space: nowrap;
}

.main-nav a {
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: var(--amber-200);
}

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

.global-search {
  position: relative;
  width: min(260px, 28vw);
}

.global-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  outline: none;
  color: var(--stone-800);
  background: rgba(255, 255, 255, 0.96);
}

.global-search input {
  padding: 10px 15px;
}

.global-results {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(360px, 82vw);
  max-height: 430px;
  overflow: auto;
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow);
  display: none;
}

.global-results.is-open {
  display: block;
}

.global-results a {
  display: grid;
  gap: 4px;
  padding: 13px 15px;
  color: var(--stone-800);
  border-bottom: 1px solid var(--stone-100);
}

.global-results strong {
  font-size: 15px;
}

.global-results span {
  color: var(--stone-600);
  font-size: 12px;
}

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

.mobile-nav {
  display: none;
  padding: 8px 16px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.mobile-nav a {
  display: block;
  padding: 12px 0;
  color: rgba(255, 255, 255, 0.92);
}

.hero-carousel {
  position: relative;
  height: 70vh;
  min-height: 560px;
  overflow: hidden;
  background: var(--stone-900);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

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

.hero-bg,
.detail-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.hero-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.54), rgba(0, 0, 0, 0.12));
}

.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 680px;
  color: var(--white);
}

.hero-label,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: max-content;
  border-radius: 999px;
  color: var(--white);
  background: var(--amber-600);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hero-label {
  padding: 8px 15px;
  margin-bottom: 18px;
}

.eyebrow {
  padding: 6px 12px;
  margin-bottom: 10px;
  color: var(--amber-900);
  background: var(--amber-200);
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.32);
}

.hero-copy p,
.page-hero p,
.detail-one-line {
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.7;
}

.hero-meta,
.detail-meta,
.detail-tags,
.genre-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-meta {
  margin: 26px 0;
}

.hero-meta span,
.detail-meta span,
.detail-tags span,
.genre-cloud span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

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

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

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

.btn-ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.42);
  font-size: 38px;
  line-height: 1;
  transform: translateY(-50%);
  cursor: pointer;
  transition: background 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.68);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dots button {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.is-active {
  width: 34px;
  background: var(--white);
}

.page-section {
  padding: 58px 0;
}

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

.section-head h2 {
  margin: 0;
  color: var(--stone-800);
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 8px 0 0;
  color: var(--stone-600);
  line-height: 1.7;
}

.section-more {
  display: inline-flex;
  align-items: center;
  min-width: max-content;
  color: var(--amber-700);
  font-weight: 800;
}

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

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

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

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

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

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

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, var(--stone-200), var(--amber-200));
}

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

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

.poster-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.65));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster-wrap::after {
  opacity: 1;
}

.type-pill,
.rank-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  border-radius: 999px;
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.type-pill {
  right: 12px;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.62);
}

.rank-badge {
  left: 12px;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: var(--amber-600);
}

.play-float {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  color: var(--white);
  background: var(--amber-600);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.88);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

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

.card-body strong {
  color: var(--stone-800);
  font-size: 17px;
  line-height: 1.35;
}

.movie-card:hover .card-body strong {
  color: var(--amber-700);
}

.card-line,
.card-meta {
  color: var(--stone-600);
  font-size: 13px;
  line-height: 1.45;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.card-meta em {
  font-style: normal;
}

.soft-band {
  background: linear-gradient(180deg, #fffbeb, var(--stone-50));
}

.editor-band {
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-900), var(--stone-900));
}

.editor-band .section-head h2,
.editor-band .section-head p {
  color: var(--white);
}

.editor-grid,
.content-with-rank,
.detail-text {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
}

.editor-grid {
  grid-template-columns: 1.1fr 1fr;
}

.rank-panel,
.detail-side,
.story-card {
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.rank-panel {
  padding: 22px;
  height: max-content;
}

.rank-panel h3,
.detail-side h2,
.story-card h2 {
  margin: 0 0 18px;
  color: var(--stone-800);
}

.mini-rank,
.ranking-row {
  display: grid;
  gap: 4px;
  padding: 13px 0;
  border-bottom: 1px solid var(--stone-100);
}

.mini-rank span,
.ranking-row span {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: var(--white);
  background: var(--amber-600);
  font-size: 13px;
  font-weight: 800;
}

.mini-rank strong,
.ranking-row strong {
  color: var(--stone-800);
}

.mini-rank em,
.ranking-row em {
  color: var(--stone-600);
  font-style: normal;
  font-size: 12px;
}

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

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

.category-card {
  display: grid;
  gap: 9px;
  min-height: 156px;
  padding: 22px;
  border-radius: 22px;
  color: var(--white);
  background: linear-gradient(135deg, var(--stone-900), var(--amber-800));
  box-shadow: var(--soft-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:nth-child(even) {
  background: linear-gradient(135deg, var(--amber-700), var(--stone-800));
}

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

.category-card span {
  color: var(--amber-200);
  font-size: 14px;
  font-weight: 800;
}

.category-card strong {
  font-size: 25px;
}

.category-card em {
  color: rgba(255, 255, 255, 0.82);
  font-style: normal;
  line-height: 1.6;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0;
  color: var(--white);
  background: radial-gradient(circle at 15% 20%, rgba(245, 158, 11, 0.32), transparent 32%), linear-gradient(135deg, var(--stone-900), var(--amber-900));
}

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

.ranking-hero {
  background: radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.32), transparent 32%), linear-gradient(135deg, var(--amber-900), var(--stone-900));
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  align-items: end;
  gap: 18px;
  margin-bottom: 26px;
  padding: 18px;
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.filter-panel label {
  display: block;
  margin: 0 0 8px;
  color: var(--stone-600);
  font-size: 13px;
  font-weight: 700;
}

.filter-panel input,
.filter-panel select {
  border: 1px solid var(--stone-200);
  padding: 12px 14px;
}

.filter-selects {
  display: flex;
  gap: 10px;
}

.filter-selects button {
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  color: var(--white);
  background: var(--stone-800);
  cursor: pointer;
}

.filter-count {
  margin: 0;
  color: var(--stone-600);
  font-weight: 700;
}

.reverse {
  grid-template-columns: minmax(0, 1fr) 320px;
}

.sticky-panel {
  position: sticky;
  top: 90px;
  max-height: calc(100vh - 120px);
  overflow: auto;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 70px 0;
  color: var(--white);
  background: var(--stone-900);
}

.detail-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.66), rgba(0, 0, 0, 0.36));
  backdrop-filter: blur(2px);
}

.detail-layout {
  position: relative;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.detail-cover {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, var(--stone-800), var(--amber-900));
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

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

.breadcrumb em {
  color: var(--white);
  font-style: normal;
}

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

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

.detail-tags span {
  background: rgba(245, 158, 11, 0.22);
}

.player-section {
  padding-bottom: 22px;
}

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

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

.player-start {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: var(--amber-600);
  box-shadow: 0 18px 40px rgba(217, 119, 6, 0.42);
  font-size: 32px;
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.player-start:hover {
  background: var(--amber-700);
  transform: translate(-50%, -50%) scale(1.06);
}

.player-card.is-playing .player-start {
  opacity: 0;
  pointer-events: none;
}

.player-state {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 3;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(8px);
  font-size: 13px;
}

.player-card.is-playing .player-state {
  display: none;
}

.detail-text {
  align-items: start;
}

.text-main {
  display: grid;
  gap: 22px;
}

.story-card,
.detail-side {
  padding: 26px;
}

.story-card p {
  margin: 0;
  color: var(--stone-700);
  font-size: 17px;
  line-height: 1.9;
}

.detail-side dl {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px 14px;
  margin: 0 0 20px;
}

.detail-side dt {
  color: var(--stone-500);
  font-weight: 700;
}

.detail-side dd {
  margin: 0;
  color: var(--stone-800);
}

.genre-cloud span {
  color: var(--amber-900);
  background: #fffbeb;
}

.site-footer {
  color: rgba(255, 255, 255, 0.78);
  background: var(--stone-950);
}

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

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

.site-footer p {
  margin: 14px 0 0;
  line-height: 1.7;
}

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

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

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

  .menu-toggle {
    display: inline-block;
  }

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

  .global-search {
    width: min(320px, 42vw);
  }

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

  .content-with-rank,
  .reverse,
  .detail-text {
    grid-template-columns: 1fr;
  }

  .sticky-panel {
    position: static;
    max-height: none;
  }
}

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

  .nav-shell {
    min-height: 64px;
  }

  .brand-text small {
    display: none;
  }

  .global-search {
    display: none;
  }

  .hero-carousel {
    height: 68vh;
    min-height: 520px;
  }

  .hero-mask {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.35));
  }

  .hero-content {
    align-items: end;
    padding-bottom: 86px;
  }

  .hero-arrow {
    display: none;
  }

  .section-head {
    display: grid;
  }

  .movie-grid-2,
  .movie-grid-3,
  .movie-grid-4,
  .category-grid,
  .category-grid-wide,
  .editor-grid {
    grid-template-columns: 1fr;
  }

  .filter-panel {
    grid-template-columns: 1fr;
  }

  .filter-selects {
    display: grid;
  }

  .filter-selects button {
    min-height: 44px;
  }

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

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

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

@media (max-width: 460px) {
  .brand-text strong {
    font-size: 17px;
  }

  .hero-copy h1,
  .page-hero h1,
  .detail-copy h1 {
    font-size: 36px;
  }

  .hero-meta span,
  .detail-meta span,
  .detail-tags span {
    min-height: 28px;
    font-size: 12px;
  }

  .page-section {
    padding: 42px 0;
  }
}
