:root {
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --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;
  --white: #ffffff;
  --black: #000000;
  --shadow-soft: 0 18px 48px rgba(28, 25, 23, 0.12);
  --shadow-card: 0 10px 32px rgba(28, 25, 23, 0.10);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 249, 0.92);
  border-bottom: 1px solid rgba(231, 229, 228, 0.9);
  backdrop-filter: blur(18px);
}

.nav-bar {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: var(--stone-900);
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--amber-700));
  box-shadow: 0 10px 24px rgba(217, 119, 6, 0.35);
}

.brand-name {
  font-size: 20px;
}

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

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--stone-600);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--amber-700);
  background: rgba(245, 158, 11, 0.12);
}

.nav-toggle {
  display: none;
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  color: var(--stone-900);
  background: var(--stone-100);
}

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

.hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  opacity: 0.22;
  transform: scale(1.04);
}

.hero-banner::after {
  content: "";
  position: absolute;
  inset: auto -10% -45% 35%;
  height: 360px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.45), rgba(245, 158, 11, 0));
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(28, 25, 23, 0.92), rgba(28, 25, 23, 0.68), rgba(28, 25, 23, 0.35));
}

.hero-inner {
  position: relative;
  z-index: 2;
  min-height: 500px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 48px;
  align-items: center;
  padding: 64px 0;
}

.eyebrow,
.section-kicker,
.panel-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--amber-400);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1,
.listing-hero h1,
.detail-copy h1 {
  margin: 0;
  font-size: clamp(38px, 5.6vw, 68px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.hero-copy p {
  max-width: 720px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(18px, 2vw, 24px);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-tags a,
.tag-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--stone-900);
  background: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-weight: 700;
}

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

.btn-primary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  padding: 0 24px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

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

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

.btn-outline {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
}

.btn-outline.dark {
  color: var(--stone-900);
  border-color: var(--stone-200);
  background: var(--white);
}

.compact-actions {
  margin-top: 22px;
}

.hero-panel {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  padding: 24px;
  background: rgba(28, 25, 23, 0.46);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.hero-panel h2 {
  margin: 0 0 12px;
  font-size: 28px;
  line-height: 1.2;
}

.hero-panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
}

.hero-mini-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.hero-mini-card {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.10);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-mini-card:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateX(4px);
}

.hero-mini-card img {
  width: 58px;
  height: 74px;
  border-radius: 12px;
  object-fit: cover;
}

.hero-mini-card strong,
.hero-mini-card em {
  display: block;
}

.hero-mini-card strong {
  font-size: 15px;
}

.hero-mini-card em {
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  font-style: normal;
}

.section-block {
  padding: 72px 0;
}

.section-band {
  padding: 72px 0;
  background: var(--stone-100);
}

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

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

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

.small-head {
  margin-bottom: 20px;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: 0 1px 2px rgba(28, 25, 23, 0.04);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: var(--shadow-card);
}

.movie-card.is-filtered-out {
  display: none;
}

.card-poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, var(--stone-800), var(--amber-700));
}

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

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

.card-year {
  position: absolute;
  top: 12px;
  right: 12px;
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.7);
  font-size: 12px;
  font-weight: 700;
}

.card-body {
  padding: 16px;
}

.card-body h2 {
  margin: 0 0 8px;
  color: var(--stone-900);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
}

.card-body h2 a:hover {
  color: var(--amber-700);
}

.card-desc {
  display: -webkit-box;
  min-height: 54px;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--stone-600);
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.card-desc.compact {
  min-height: 42px;
  -webkit-line-clamp: 2;
}

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

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

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

.category-card {
  position: relative;
  min-height: 180px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 24px;
  color: var(--white);
  background: linear-gradient(135deg, var(--stone-800), #78350f);
  box-shadow: var(--shadow-card);
}

.category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(135deg, rgba(28, 25, 23, 0.92), rgba(120, 53, 15, 0.62)), var(--category-image);
  background-size: cover;
  background-position: center;
  transition: transform 0.3s ease;
}

.category-card:hover::before {
  transform: scale(1.06);
}

.category-card span,
.category-card p {
  position: relative;
  z-index: 1;
}

.category-card span {
  display: block;
  margin-bottom: 12px;
  font-size: 24px;
  font-weight: 900;
}

.category-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
}

.split-layout {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 42px;
  align-items: start;
}

.lead-text {
  margin: 16px 0 0;
  color: var(--stone-600);
  font-size: 18px;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 54px 64px 1fr;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--stone-200);
  border-radius: 18px;
  padding: 12px;
  background: var(--white);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-row:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 158, 11, 0.42);
  box-shadow: var(--shadow-card);
}

.rank-number {
  color: var(--amber-700);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.ranking-row img {
  width: 64px;
  height: 82px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--stone-800);
}

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

.rank-copy strong {
  color: var(--stone-900);
  font-size: 16px;
}

.rank-copy em {
  margin-top: 4px;
  color: var(--stone-500);
  font-size: 13px;
  font-style: normal;
}

.listing-hero {
  padding: 78px 0;
  color: var(--white);
  background: linear-gradient(135deg, var(--stone-800), var(--stone-700), #78350f);
}

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

.listing-hero h1 {
  margin-bottom: 16px;
}

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

.filter-bar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 180px 180px 160px;
  gap: 12px;
  margin-bottom: 12px;
  padding: 18px;
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: 0 1px 2px rgba(28, 25, 23, 0.04);
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--stone-200);
  border-radius: 999px;
  padding: 0 14px;
  color: var(--stone-900);
  background: var(--stone-50);
  outline: none;
}

.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--amber-500);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15);
}

.filter-status {
  min-height: 24px;
  margin: 0 0 24px;
  color: var(--stone-500);
}

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

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

.detail-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(135deg, var(--stone-800), var(--stone-700), #78350f);
}

.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--detail-image);
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  filter: blur(2px);
  transform: scale(1.04);
}

.detail-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(28, 25, 23, 0.94), rgba(28, 25, 23, 0.76), rgba(28, 25, 23, 0.42));
}

.detail-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 42px;
  align-items: center;
  padding: 64px 0;
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  object-fit: cover;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.36);
}

.detail-copy h1 {
  max-width: 860px;
}

.detail-one-line {
  max-width: 860px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 19px;
}

.detail-meta,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.detail-meta span {
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--stone-900);
  background: rgba(255, 255, 255, 0.88);
  font-weight: 800;
}

.tag-list .tag-chip {
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
}

.player-card,
.story-card {
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--black);
  aspect-ratio: 16 / 9;
}

.video-player {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--black);
}

.play-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: var(--white);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.62));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-circle {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--amber-600);
  box-shadow: 0 18px 38px rgba(217, 119, 6, 0.36);
  font-size: 30px;
  line-height: 1;
}

.play-cover span:last-child {
  font-size: 18px;
  font-weight: 900;
}

.content-section {
  padding-top: 0;
}

.story-card h2 {
  margin: 0 0 12px;
  font-size: 28px;
  letter-spacing: -0.02em;
}

.story-card h2:not(:first-child) {
  margin-top: 28px;
}

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

.rank-layout {
  max-width: 920px;
  margin: 0 auto;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1fr;
  gap: 32px;
  padding: 48px 0 36px;
}

.footer-brand {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--white);
  font-size: 22px;
  font-weight: 900;
}

.site-footer h2 {
  margin: 0 0 12px;
  color: var(--white);
  font-size: 16px;
}

.site-footer p {
  margin: 0;
}

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

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

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 0 26px;
  font-size: 14px;
}

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

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

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

  .hero-panel {
    max-width: 620px;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: absolute;
    top: 72px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--stone-200);
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--shadow-card);
  }

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

  .nav-link {
    color: var(--stone-700);
  }

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

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

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

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

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

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

  .brand-name {
    font-size: 18px;
  }

  .hero-banner,
  .hero-inner {
    min-height: auto;
  }

  .hero-inner,
  .detail-grid {
    padding: 44px 0;
  }

  .hero-copy h1,
  .listing-hero h1,
  .detail-copy h1 {
    font-size: 34px;
  }

  .hero-copy p,
  .detail-one-line {
    font-size: 16px;
  }

  .section-block,
  .section-band {
    padding: 46px 0;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 22px;
  }

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

  .card-body {
    padding: 12px;
  }

  .card-body h2 {
    font-size: 15px;
  }

  .card-desc {
    font-size: 13px;
  }

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

  .ranking-row {
    grid-template-columns: 44px 54px 1fr;
    gap: 10px;
  }

  .ranking-row img {
    width: 54px;
    height: 72px;
  }

  .rank-number {
    font-size: 20px;
  }

  .player-card,
  .story-card {
    padding: 16px;
  }
}
