:root {
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-400: #a8a29e;
  --stone-500: #78716c;
  --stone-600: #57534e;
  --stone-700: #44403c;
  --stone-800: #292524;
  --stone-900: #1c1917;
  --bronze-50: #fff7ed;
  --bronze-100: #ffedd5;
  --bronze-300: #fdba74;
  --bronze-400: #fb923c;
  --bronze-500: #f97316;
  --bronze-600: #ea580c;
  --bronze-700: #c2410c;
  --shadow-soft: 0 16px 42px rgba(28, 25, 23, 0.12);
  --shadow-strong: 0 28px 70px rgba(28, 25, 23, 0.28);
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--stone-900);
  background: var(--stone-50);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(28, 25, 23, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

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

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  color: white;
  background: linear-gradient(135deg, var(--bronze-400), var(--bronze-700));
  box-shadow: 0 10px 24px rgba(234, 88, 12, 0.35);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  color: var(--stone-200);
  padding: 10px 15px;
  border-radius: 999px;
  font-size: 15px;
  transition: color 0.2s ease, background 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: white;
  background: rgba(251, 146, 60, 0.18);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: white;
  border-radius: 999px;
}

.hero {
  position: relative;
  overflow: hidden;
  color: white;
  background: radial-gradient(circle at 18% 20%, rgba(251, 146, 60, 0.22), transparent 36%), linear-gradient(135deg, #1c1917 0%, #292524 52%, #0c0a09 100%);
  min-height: 660px;
  padding: 52px 0 68px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(12, 10, 9, 0.88), rgba(12, 10, 9, 0.42), rgba(12, 10, 9, 0.88));
  pointer-events: none;
}

.hero-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: stretch;
}

.hero-carousel {
  position: relative;
  min-height: 548px;
  overflow: hidden;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow-strong);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 44% 56%;
  opacity: 0;
  visibility: hidden;
  transform: translateX(24px);
  transition: opacity 0.55s ease, transform 0.55s ease, visibility 0.55s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.hero-media {
  min-height: 548px;
  background: var(--stone-800);
}

.hero-media img {
  height: 100%;
  min-height: 548px;
  object-fit: cover;
  opacity: 0.88;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 58px 56px;
  background: linear-gradient(90deg, rgba(28, 25, 23, 0.98), rgba(28, 25, 23, 0.84));
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--bronze-300);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

.hero-copy p {
  max-width: 680px;
  margin: 0 0 22px;
  color: var(--stone-200);
  font-size: 18px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 16px 0 24px;
}

.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 12px;
  color: #7c2d12;
  background: var(--bronze-100);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.hero .tag-row span,
.detail-hero .tag-row span {
  color: white;
  background: rgba(251, 146, 60, 0.18);
  border: 1px solid rgba(251, 146, 60, 0.25);
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

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

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

.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--bronze-500), var(--bronze-700));
  box-shadow: 0 14px 30px rgba(234, 88, 12, 0.28);
}

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

.btn-soft {
  color: #7c2d12;
  background: var(--bronze-100);
}

.hero-dots {
  position: absolute;
  left: 56px;
  bottom: 28px;
  display: flex;
  gap: 10px;
  z-index: 2;
}

.hero-dots button {
  width: 34px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
}

.hero-dots button.is-active {
  background: var(--bronze-400);
}

.hero-side {
  padding: 26px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(18px);
}

.hero-side h2 {
  margin: 0 0 18px;
  font-size: 22px;
}

.hero-links {
  display: grid;
  gap: 12px;
}

.hero-links a {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, background 0.2s ease;
}

.hero-links a:hover {
  transform: translateX(4px);
  background: rgba(251, 146, 60, 0.18);
}

.hero-links span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: white;
  background: var(--bronze-600);
  border-radius: 12px;
  font-weight: 900;
}

.hero-links strong {
  display: block;
  color: white;
  font-size: 15px;
  line-height: 1.35;
}

.hero-links em {
  display: block;
  margin-top: 2px;
  color: var(--stone-300);
  font-size: 12px;
  font-style: normal;
}

.quick-search {
  margin-top: -34px;
  position: relative;
  z-index: 3;
}

.quick-search-inner {
  display: grid;
  gap: 18px;
  padding: 24px;
  border-radius: 24px;
  background: white;
  box-shadow: var(--shadow-soft);
}

.quick-search h2 {
  margin: 0 0 4px;
  font-size: 24px;
}

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

.home-search {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 12px;
}

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

.home-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--bronze-400);
  box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.14);
}

.home-search button {
  border: 0;
  border-radius: 999px;
  color: white;
  background: var(--stone-900);
  font-weight: 800;
  cursor: pointer;
}

.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-chips a {
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--stone-700);
  background: var(--stone-100);
  font-size: 14px;
  font-weight: 700;
}

.section {
  padding: 74px 0;
}

.section-muted {
  background: var(--stone-100);
}

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

.section-heading h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section-heading p {
  max-width: 720px;
  margin: 0;
  color: var(--stone-600);
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-md);
  background: white;
  box-shadow: 0 8px 24px rgba(28, 25, 23, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 42px rgba(28, 25, 23, 0.16);
}

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

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

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

.movie-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(0deg, rgba(28, 25, 23, 0.72), transparent 58%);
  transition: opacity 0.25s ease;
}

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

.poster-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  padding: 5px 10px;
  border-radius: 999px;
  color: white;
  background: var(--bronze-600);
  font-size: 12px;
  font-weight: 800;
}

.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(--bronze-700);
}

.movie-card p {
  display: -webkit-box;
  min-height: 46px;
  margin: 0 0 13px;
  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 12px;
  color: var(--stone-500);
  font-size: 13px;
}

.movie-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

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

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

.category-tile,
.category-card-large {
  padding: 22px;
  border-radius: var(--radius-md);
  background: white;
  box-shadow: 0 8px 26px rgba(28, 25, 23, 0.08);
}

.category-tile > a,
.category-card-large > a {
  display: block;
}

.category-tile span,
.category-label {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 11px;
  color: #7c2d12;
  background: var(--bronze-100);
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
}

.category-tile p,
.category-card-large p {
  margin: 0 0 16px;
  color: var(--stone-600);
  font-size: 14px;
}

.category-card-large h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

.category-tile div,
.category-samples {
  display: grid;
  gap: 8px;
}

.category-tile div a,
.category-samples a {
  color: var(--stone-600);
  font-size: 14px;
}

.category-tile div a:hover,
.category-samples a:hover {
  color: var(--bronze-700);
}

.sub-page .page-hero {
  color: white;
  background: radial-gradient(circle at 15% 30%, rgba(251, 146, 60, 0.2), transparent 36%), linear-gradient(135deg, var(--stone-900), var(--stone-800));
}

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

.page-hero p {
  max-width: 780px;
  margin: 0;
  color: var(--stone-200);
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 20px;
  color: var(--stone-300);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--bronze-300);
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: end;
  margin-bottom: 24px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: white;
  box-shadow: 0 8px 24px rgba(28, 25, 23, 0.07);
}

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

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

.filter-selects select {
  min-width: 150px;
}

.filter-empty {
  margin-bottom: 24px;
  padding: 18px;
  border-radius: var(--radius-md);
  color: var(--stone-600);
  background: white;
  text-align: center;
}

.rank-list {
  display: grid;
  gap: 14px;
}

.rank-item {
  display: grid;
  grid-template-columns: 56px 118px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: var(--radius-md);
  background: white;
  box-shadow: 0 8px 24px rgba(28, 25, 23, 0.07);
}

.rank-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  color: white;
  background: linear-gradient(135deg, var(--bronze-500), var(--bronze-700));
  font-weight: 900;
  font-size: 18px;
}

.rank-thumb {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 14px;
  background: var(--stone-200);
}

.rank-thumb img {
  height: 100%;
  object-fit: cover;
}

.rank-copy h3 {
  margin: 0 0 6px;
  font-size: 19px;
}

.rank-copy p {
  margin: 0 0 8px;
  color: var(--stone-600);
}

.detail-hero {
  padding: 58px 0;
  color: white;
  background: radial-gradient(circle at 20% 18%, rgba(251, 146, 60, 0.22), transparent 32%), linear-gradient(135deg, var(--stone-900), #0c0a09);
}

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

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  background: var(--stone-800);
  box-shadow: var(--shadow-strong);
}

.detail-poster img {
  aspect-ratio: 4 / 5;
  height: auto;
  object-fit: cover;
}

.detail-one-line {
  max-width: 760px;
  margin: 0 0 18px;
  color: var(--stone-200);
  font-size: 18px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--stone-300);
}

.detail-meta span {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

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

.player-section h2 {
  margin: 0 0 18px;
  font-size: 30px;
}

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

.movie-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0c0a09;
}

.play-layer {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: white;
  background: linear-gradient(0deg, rgba(12, 10, 9, 0.46), rgba(12, 10, 9, 0.16));
  cursor: pointer;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.play-layer span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 78px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--bronze-500), var(--bronze-700));
  box-shadow: 0 18px 36px rgba(234, 88, 12, 0.3);
  font-size: 30px;
}

.play-layer strong {
  font-size: 18px;
}

.player-box.is-playing .play-layer,
.player-box.is-loading .play-layer {
  opacity: 0;
  visibility: hidden;
}

.detail-copy-section {
  padding-top: 16px;
}

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

.content-card {
  padding: 28px;
  border-radius: var(--radius-md);
  background: white;
  box-shadow: 0 8px 24px rgba(28, 25, 23, 0.07);
}

.content-card h2 {
  margin: 0 0 12px;
  font-size: 26px;
}

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

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

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

.footer-logo {
  margin-bottom: 16px;
}

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

.site-footer h2 {
  margin: 0 0 16px;
  color: white;
  font-size: 18px;
}

.footer-links {
  display: grid;
  gap: 9px;
}

.footer-links.two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.footer-links a {
  color: var(--stone-400);
  font-size: 14px;
}

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

.footer-bottom {
  padding: 18px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--stone-500);
  text-align: center;
  font-size: 14px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1024px) {
  .hero-layout,
  .detail-hero-grid,
  .detail-copy-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-side {
    display: none;
  }

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

  .hero-media {
    position: absolute;
    inset: 0;
    opacity: 0.42;
  }

  .hero-copy {
    position: relative;
    min-height: 548px;
    background: linear-gradient(90deg, rgba(28, 25, 23, 0.94), rgba(28, 25, 23, 0.62));
  }

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

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

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

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

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

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    left: 12px;
    right: 12px;
    top: 66px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border-radius: 18px;
    background: rgba(28, 25, 23, 0.96);
  }

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

  .site-nav a {
    border-radius: 12px;
  }

  .hero {
    min-height: 620px;
    padding: 28px 0 54px;
  }

  .hero-carousel,
  .hero-copy,
  .hero-media,
  .hero-media img {
    min-height: 548px;
  }

  .hero-copy {
    padding: 36px 24px;
  }

  .hero-dots {
    left: 24px;
  }

  .home-search {
    grid-template-columns: 1fr;
  }

  .home-search button {
    min-height: 44px;
  }

  .section {
    padding: 54px 0;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .movie-grid,
  .small-grid,
  .category-grid,
  .category-grid.large {
    grid-template-columns: 1fr;
  }

  .filter-selects {
    flex-direction: column;
  }

  .rank-item {
    grid-template-columns: 46px 88px minmax(0, 1fr);
    gap: 12px;
  }

  .rank-copy p {
    display: none;
  }

  .detail-hero {
    padding: 34px 0;
  }

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

  .content-card {
    padding: 22px;
  }

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