:root {
  color-scheme: light;
  --stone-950: #1c1917;
  --stone-900: #292524;
  --stone-800: #44403c;
  --stone-700: #57534e;
  --stone-600: #78716c;
  --stone-200: #e7e5e4;
  --stone-100: #f5f5f4;
  --amber-700: #b45309;
  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --amber-100: #fef3c7;
  --orange-500: #f97316;
  --cream: #fff7ed;
  --white: #ffffff;
  --shadow-soft: 0 18px 45px rgba(68, 64, 60, 0.12);
  --shadow-card: 0 16px 30px rgba(41, 37, 36, 0.14);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--stone-900);
  background: linear-gradient(180deg, var(--stone-100), var(--cream));
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
  font: inherit;
}

button {
  border: 0;
}

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

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

.site-header__inner {
  width: min(var(--max-width), calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo,
.site-footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.site-logo__mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-600), var(--orange-500));
  border-radius: 15px;
  box-shadow: 0 12px 24px rgba(217, 119, 6, 0.3);
}

.site-logo__text {
  font-size: 1.16rem;
}

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

.site-nav a {
  padding: 10px 14px;
  color: var(--stone-700);
  border-radius: 999px;
  font-weight: 700;
  transition: 0.22s ease;
}

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

.site-nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
}

.site-nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: var(--stone-900);
  border-radius: 999px;
}

.hero {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  background: var(--stone-950);
}

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

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(1.08) contrast(1.04);
}

.hero-slide__shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 30%, rgba(245, 158, 11, 0.28), transparent 34%),
    linear-gradient(90deg, rgba(28, 25, 23, 0.92), rgba(28, 25, 23, 0.64) 42%, rgba(28, 25, 23, 0.18));
}

.hero-slide__content {
  position: absolute;
  top: 50%;
  left: max(24px, calc((100vw - var(--max-width)) / 2));
  width: min(620px, calc(100% - 48px));
  transform: translateY(-50%);
  color: var(--white);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--amber-100);
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.32);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero h1,
.page-hero h1,
.detail-info h1 {
  margin: 18px 0 18px;
  font-size: clamp(2.6rem, 6vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.08em;
}

.hero p {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.12rem;
}

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

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

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

.button-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-600), var(--orange-500));
  box-shadow: 0 14px 30px rgba(217, 119, 6, 0.36);
}

.button-ghost {
  color: var(--stone-900);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.42);
}

.button-ghost.light {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
}

.hero-panel {
  position: absolute;
  right: max(24px, calc((100vw - var(--max-width)) / 2));
  bottom: 44px;
  width: min(460px, calc(100% - 48px));
  padding: 18px;
  background: rgba(255, 247, 237, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(18px);
}

.hero-dots {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.hero-dot {
  width: 34px;
  height: 8px;
  padding: 0;
  background: rgba(120, 113, 108, 0.35);
  border-radius: 999px;
  cursor: pointer;
}

.hero-dot.is-active {
  width: 58px;
  background: linear-gradient(135deg, var(--amber-600), var(--orange-500));
}

.hero-search,
.filter-panel {
  display: flex;
  gap: 10px;
}

.hero-search input,
.filter-panel input {
  width: 100%;
  min-height: 48px;
  color: var(--stone-900);
  background: var(--white);
  border: 1px solid rgba(231, 229, 228, 0.92);
  border-radius: 999px;
  outline: none;
  padding: 0 18px;
}

.hero-search input:focus,
.filter-panel input:focus {
  border-color: var(--amber-500);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

.hero-search button {
  min-width: 92px;
  color: var(--white);
  background: var(--stone-900);
  border-radius: 999px;
  font-weight: 900;
}

.hero-category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.hero-category-links a,
.filter-chips button,
.movie-card__tags span,
.detail-tags span {
  color: var(--amber-700);
  background: rgba(245, 158, 11, 0.12);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 0.78rem;
  font-weight: 800;
}

.section {
  padding: 74px 0;
}

.section-glow {
  background:
    radial-gradient(circle at 12% 12%, rgba(245, 158, 11, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 247, 237, 0.6));
}

.section-dark {
  color: var(--white);
  background:
    radial-gradient(circle at 18% 20%, rgba(245, 158, 11, 0.24), transparent 28%),
    linear-gradient(135deg, var(--stone-950), var(--stone-800));
}

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

.section-heading span {
  color: var(--amber-700);
  font-weight: 900;
  letter-spacing: 0.12em;
}

.section-heading h2 {
  margin: 6px 0 0;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

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

.section-dark .section-heading p {
  color: rgba(255, 255, 255, 0.68);
}

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

.category-tile,
.category-detail-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(231, 229, 228, 0.8);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-tile span,
.category-detail-card span {
  display: block;
  color: var(--amber-700);
  font-size: 1.12rem;
  font-weight: 900;
  margin-bottom: 8px;
}

.category-tile strong,
.category-detail-card strong {
  display: block;
  color: var(--stone-800);
  font-size: 0.96rem;
  line-height: 1.7;
}

.category-tile div {
  display: grid;
  gap: 6px;
  margin-top: 16px;
}

.category-tile div a,
.category-detail-card li a {
  color: var(--stone-600);
  font-size: 0.9rem;
}

.category-tile div a:hover,
.category-detail-card li a:hover {
  color: var(--amber-700);
}

.category-detail-card ul {
  display: grid;
  gap: 7px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

.movie-card {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(231, 229, 228, 0.88);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

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

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

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

.movie-card__rank {
  position: absolute;
  top: 10px;
  left: 10px;
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-600), var(--orange-500));
  border-radius: 12px;
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(217, 119, 6, 0.32);
}

.movie-card__body {
  padding: 14px;
}

.movie-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--stone-600);
  font-size: 0.74rem;
  font-weight: 800;
}

.movie-card h3 {
  margin: 8px 0 7px;
  color: var(--stone-950);
  font-size: 1rem;
  line-height: 1.32;
}

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

.movie-card p {
  margin: 0;
  color: var(--stone-600);
  font-size: 0.86rem;
  line-height: 1.62;
}

.movie-card__tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.section-action {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

.page-hero {
  padding: 84px 0 58px;
  color: var(--white);
  background:
    radial-gradient(circle at 75% 18%, rgba(245, 158, 11, 0.34), transparent 28%),
    linear-gradient(135deg, var(--stone-950), var(--stone-800));
}

.page-hero h1 {
  max-width: 760px;
  margin-bottom: 18px;
}

.page-hero p {
  max-width: 740px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.08rem;
}

.filter-panel {
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(231, 229, 228, 0.86);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.filter-panel input {
  flex: 1 1 280px;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chips button {
  cursor: pointer;
}

.filter-chips button.is-active {
  color: var(--white);
  background: var(--amber-600);
}

.empty-state {
  padding: 38px;
  color: var(--stone-600);
  text-align: center;
  background: var(--white);
  border-radius: var(--radius-lg);
}

.detail-hero {
  padding: 72px 0 56px;
  color: var(--white);
  background:
    radial-gradient(circle at 18% 20%, rgba(245, 158, 11, 0.26), transparent 30%),
    linear-gradient(135deg, var(--stone-950), var(--stone-800));
}

.detail-hero__inner {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 44px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
}

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

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

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

.detail-info h1 {
  max-width: 780px;
}

.detail-one-line {
  max-width: 820px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.12rem;
}

.player-section {
  padding-top: 44px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  background: var(--stone-950);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
}

.movie-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--stone-950);
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 14px;
  color: var(--white);
  background:
    radial-gradient(circle, rgba(245, 158, 11, 0.22), rgba(28, 25, 23, 0.62));
  cursor: pointer;
}

.player-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.player-overlay span {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber-600), var(--orange-500));
  box-shadow: 0 18px 36px rgba(217, 119, 6, 0.42);
  clip-path: polygon(34% 25%, 34% 75%, 78% 50%);
}

.player-overlay strong {
  display: block;
  font-size: 1.12rem;
}

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

.story-card,
.detail-side {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(231, 229, 228, 0.88);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-soft);
}

.story-card h2,
.detail-side h2 {
  margin: 0 0 14px;
  font-size: 1.55rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

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

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

.detail-side dl {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px 14px;
  margin: 0;
}

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

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

.site-footer {
  padding: 40px 0;
  color: rgba(255, 255, 255, 0.72);
  background: var(--stone-950);
}

.site-footer__inner {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 32px;
}

.site-footer__logo {
  color: var(--white);
  font-size: 1.2rem;
}

.site-footer p {
  max-width: 560px;
  margin: 10px 0 0;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  justify-content: end;
  gap: 10px;
}

.site-footer__links a {
  padding: 8px 12px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

.site-footer__links a:hover {
  color: var(--white);
  background: rgba(245, 158, 11, 0.28);
}

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

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

@media (max-width: 820px) {
  .site-nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 72px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    background: rgba(255, 247, 237, 0.96);
    border: 1px solid rgba(231, 229, 228, 0.96);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
  }

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

  .hero {
    min-height: 760px;
  }

  .hero-slide__content {
    top: 44%;
  }

  .hero-panel {
    right: 16px;
    bottom: 20px;
    left: 16px;
    width: auto;
  }

  .section-heading {
    display: block;
  }

  .section-heading p {
    margin-top: 12px;
  }

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

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

  .detail-poster {
    width: min(280px, 80vw);
  }

  .site-footer__inner {
    display: block;
  }

  .site-footer__links {
    justify-content: start;
    margin-top: 22px;
  }
}

@media (max-width: 520px) {
  .container,
  .site-header__inner,
  .site-footer__inner {
    width: min(100% - 22px, var(--max-width));
  }

  .hero h1,
  .page-hero h1,
  .detail-info h1 {
    letter-spacing: -0.06em;
  }

  .hero-search {
    display: grid;
  }

  .hero-search button {
    min-height: 46px;
  }

  .movie-grid {
    gap: 12px;
  }

  .movie-card__body {
    padding: 12px;
  }

  .movie-card p {
    display: none;
  }

  .section {
    padding: 54px 0;
  }

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