:root {
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-300: #d6d3d1;
  --stone-500: #78716c;
  --stone-700: #44403c;
  --stone-800: #292524;
  --stone-900: #1c1917;
  --green-50: #f0fdf4;
  --green-600: #16a34a;
  --green-700: #15803d;
  --green-800: #166534;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-700: #b45309;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 12px 28px rgba(28, 25, 23, 0.10);
  --shadow-xl: 0 22px 55px rgba(28, 25, 23, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(231, 229, 228, 0.8);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, var(--amber-700), var(--green-700));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.logo-mark {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: var(--white);
  background: linear-gradient(135deg, var(--green-600), var(--green-800));
  box-shadow: var(--shadow-md);
  font-size: 18px;
}

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

.desktop-nav a,
.mobile-nav a {
  padding: 10px 16px;
  border-radius: 12px;
  color: var(--stone-700);
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  color: var(--green-700);
  background: var(--green-50);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 0;
  border-radius: 12px;
  background: var(--stone-100);
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 999px;
  background: var(--stone-700);
}

.mobile-nav {
  display: none;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto 12px;
  gap: 4px;
}

.mobile-open .mobile-nav {
  display: grid;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.75s ease, transform 1.2s ease;
  pointer-events: none;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 20%, rgba(22, 163, 74, 0.28), transparent 32%),
    linear-gradient(90deg, rgba(12, 10, 9, 0.92), rgba(12, 10, 9, 0.58) 52%, rgba(12, 10, 9, 0.16));
}

.hero-content {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  z-index: 3;
}

.hero-copy {
  max-width: 720px;
  padding: 52px 0 86px;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.hero-kicker span {
  display: inline-flex;
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--white);
  background: var(--green-600);
  font-weight: 800;
}

.hero-kicker strong {
  color: var(--amber-400);
}

.hero h1,
.detail-intro h1,
.page-hero h1 {
  margin: 0;
  color: var(--white);
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.03;
  letter-spacing: -0.06em;
  font-weight: 950;
}

.hero p {
  max-width: 650px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2.2vw, 22px);
}

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

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

.hero-tags span {
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  font-size: 14px;
  font-weight: 700;
}

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

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

.primary-button {
  color: var(--white);
  background: linear-gradient(90deg, var(--green-600), var(--green-800));
  box-shadow: 0 12px 24px rgba(22, 101, 52, 0.28);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px) scale(1.02);
}

.ghost-button {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}

.ghost-button.dark {
  color: var(--stone-800);
  border-color: var(--stone-200);
  background: var(--white);
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 30px;
  z-index: 6;
  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.45);
  cursor: pointer;
}

.hero-dot.active {
  width: 36px;
  background: var(--green-600);
}

.hero-quick {
  position: absolute;
  right: 6vw;
  bottom: 34px;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 10px;
}

.hero-quick a {
  padding: 12px 16px;
  border-radius: 16px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  font-weight: 800;
  text-align: center;
}

.search-band {
  margin-top: -36px;
  position: relative;
  z-index: 10;
}

.search-panel {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 520px);
  align-items: center;
  gap: 24px;
  padding: 28px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-xl);
}

.search-panel h2,
.section-header h2,
.content-section h2,
.article-card h2,
.side-card h2 {
  margin: 0;
  color: var(--stone-900);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.04em;
  font-weight: 950;
}

.search-panel p,
.section-header p {
  margin: 8px 0 0;
  color: var(--stone-500);
}

.quick-search,
.filters {
  display: flex;
  gap: 12px;
}

.quick-search input,
.filters input,
.filters select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--stone-200);
  border-radius: 14px;
  padding: 0 16px;
  color: var(--stone-800);
  background: var(--white);
  outline: none;
}

.quick-search input:focus,
.filters input:focus,
.filters select:focus {
  border-color: var(--green-600);
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.12);
}

.quick-search button {
  min-width: 96px;
  border: 0;
  border-radius: 14px;
  color: var(--white);
  background: var(--green-700);
  font-weight: 850;
  cursor: pointer;
}

.page-stack {
  padding: 70px 0;
  display: grid;
  gap: 72px;
}

.content-section {
  scroll-margin-top: 96px;
}

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

.section-more {
  color: var(--green-700);
  font-weight: 900;
}

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

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

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

.poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--stone-900);
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.82));
  opacity: 0;
  transition: opacity 0.25s ease;
}

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

.hover-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--green-700);
  background: rgba(255, 255, 255, 0.92);
  transform: translate(-50%, -50%) scale(0.55);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.region-badge,
.rank-badge {
  position: absolute;
  top: 12px;
  padding: 5px 10px;
  border-radius: 10px;
  color: var(--white);
  font-size: 13px;
  font-weight: 900;
}

.region-badge {
  right: 12px;
  background: var(--amber-500);
}

.rank-badge {
  left: 12px;
  background: var(--green-700);
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  margin: 0;
  min-height: 52px;
  color: var(--stone-900);
  font-size: 18px;
  line-height: 1.35;
  font-weight: 950;
}

.card-body h3 a:hover {
  color: var(--green-700);
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 8px 0;
  color: var(--stone-500);
  font-size: 14px;
}

.card-body p {
  margin: 0 0 12px;
  color: var(--stone-500);
  font-size: 14px;
}

.tag-row span {
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--green-700);
  background: var(--green-50);
  font-size: 12px;
  font-weight: 800;
}

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

.category-tile {
  display: grid;
  min-height: 148px;
  align-content: space-between;
  padding: 24px;
  border-radius: 24px;
  color: var(--white);
  background: linear-gradient(135deg, var(--stone-900), var(--green-800));
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-tile strong {
  font-size: 24px;
}

.category-tile span {
  color: rgba(255, 255, 255, 0.78);
}

.rank-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.compact-card {
  display: grid;
  grid-template-columns: auto 72px 1fr;
  align-items: center;
  gap: 14px;
  min-height: 96px;
  padding: 12px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.compact-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.compact-card img {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  object-fit: cover;
}

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

.compact-card strong {
  color: var(--stone-900);
  font-style: normal;
  font-weight: 900;
}

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

.compact-rank {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--white);
  background: var(--green-700);
  font-weight: 950;
}

.subpage-main {
  min-height: 70vh;
}

.page-hero {
  position: relative;
  color: var(--white);
  background:
    radial-gradient(circle at 80% 0%, rgba(245, 158, 11, 0.26), transparent 28%),
    linear-gradient(135deg, var(--stone-900), var(--green-800));
}

.page-hero.compact {
  padding: 70px 0;
}

.page-hero span {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-weight: 900;
}

.page-hero p {
  max-width: 780px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.catalog-layout {
  padding: 46px 0 78px;
}

.filters {
  position: sticky;
  top: 86px;
  z-index: 20;
  flex-wrap: wrap;
  margin-bottom: 26px;
  padding: 18px;
  border: 1px solid var(--stone-200);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}

.filters input {
  flex: 2 1 320px;
}

.filters select {
  flex: 1 1 160px;
}

.empty-state {
  margin: 34px 0 0;
  padding: 22px;
  border-radius: 18px;
  color: var(--stone-500);
  text-align: center;
  background: var(--white);
}

.detail-top {
  padding: 52px 0;
  color: var(--white);
  background:
    radial-gradient(circle at 85% 15%, rgba(22, 163, 74, 0.28), transparent 28%),
    linear-gradient(135deg, var(--stone-900), #0f2418 62%, var(--stone-800));
}

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

.detail-cover {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow-xl);
}

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

.detail-intro h1 {
  color: var(--white);
}

.detail-intro p {
  max-width: 820px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 19px;
}

.detail-kicker {
  margin-bottom: 16px;
}

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

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

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

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.55));
  cursor: pointer;
}

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

.player-button {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--green-700);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-xl);
  font-size: 30px;
  transform: translateX(2px);
}

.article-card,
.side-card {
  padding: 28px;
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.article-card.wide {
  max-width: 900px;
  margin: 0 auto;
}

.article-card h2,
.side-card h2 {
  margin-bottom: 12px;
  font-size: 26px;
}

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

.detail-side {
  display: grid;
  align-content: start;
  gap: 20px;
}

.side-card dl {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 10px 14px;
  margin: 0;
}

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

.side-card dd {
  margin: 0;
  color: var(--stone-900);
  font-weight: 750;
}

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

.side-list .compact-card {
  grid-template-columns: 62px 1fr;
  min-height: 82px;
}

.side-list .compact-card img {
  width: 62px;
  height: 62px;
}

.side-list .compact-rank {
  display: none;
}

.article-page {
  padding: 60px 0;
}

.site-footer {
  padding: 52px 0 22px;
  color: var(--stone-300);
  background: linear-gradient(90deg, var(--stone-900), var(--stone-800));
}

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

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

.site-footer p {
  margin: 0;
  max-width: 520px;
  color: var(--stone-300);
}

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

.site-footer a:hover {
  color: #4ade80;
}

.footer-bottom {
  width: min(1280px, calc(100% - 32px));
  margin: 30px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(214, 211, 209, 0.18);
  color: var(--stone-500);
  text-align: center;
  font-size: 14px;
}

[hidden] {
  display: none !important;
}

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

  .mobile-toggle {
    display: block;
  }

  .hero-quick {
    left: 16px;
    right: 16px;
    grid-template-columns: repeat(4, 1fr);
  }

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

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

  .detail-layout {
    padding-top: 30px;
  }
}

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

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

  .hero-copy {
    padding-top: 70px;
  }

  .hero-quick {
    grid-template-columns: repeat(2, 1fr);
  }

  .search-panel {
    padding: 20px;
  }

  .quick-search,
  .section-header,
  .hero-actions,
  .detail-actions {
    align-items: stretch;
    flex-direction: column;
  }

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

  .card-body {
    padding: 12px;
  }

  .card-body h3 {
    min-height: 46px;
    font-size: 16px;
  }

  .card-body p {
    display: none;
  }

  .filters {
    position: static;
  }

  .page-hero.compact,
  .detail-top {
    padding: 42px 0;
  }

  .player-button {
    width: 68px;
    height: 68px;
    font-size: 24px;
  }
}
