:root {
  --primary: #f17925;
  --primary-dark: #e2591b;
  --accent: #f04f1f;
  --accent-dark: #e13415;
  --neutral-50: #fafaf9;
  --neutral-100: #f5f5f4;
  --neutral-200: #e7e5e4;
  --neutral-300: #d6d3d1;
  --neutral-500: #78716c;
  --neutral-600: #57534e;
  --neutral-700: #44403c;
  --neutral-800: #292524;
  --neutral-900: #1c1917;
  --white: #ffffff;
  --shadow: 0 18px 40px rgba(28, 25, 23, 0.12);
  --shadow-soft: 0 10px 24px rgba(28, 25, 23, 0.08);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--neutral-800);
  background: linear-gradient(135deg, #fff7ed 0%, #ffffff 42%, #fef4ee 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(231, 229, 228, 0.88);
  box-shadow: 0 4px 24px rgba(28, 25, 23, 0.04);
}

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

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 12px 28px rgba(241, 121, 37, 0.32);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--neutral-700);
  font-size: 15px;
  font-weight: 650;
}

.site-nav a {
  padding: 8px 0;
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: var(--primary-dark);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-form,
.page-filter {
  display: flex;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--neutral-200);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.search-form input,
.page-filter input {
  width: 210px;
  border: 0;
  outline: none;
  padding: 11px 14px 11px 18px;
  color: var(--neutral-800);
  background: transparent;
}

.search-form button,
.page-filter button {
  border: 0;
  padding: 11px 18px;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  cursor: pointer;
  font-weight: 700;
}

.menu-toggle {
  display: none;
  border: 0;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--neutral-100);
  cursor: pointer;
}

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

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

.hero-slide:first-child {
  opacity: 1;
}

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

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

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

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 74% 40%, rgba(241, 121, 37, 0.16), transparent 35%),
    linear-gradient(90deg, rgba(28, 25, 23, 0.92) 0%, rgba(28, 25, 23, 0.66) 45%, rgba(28, 25, 23, 0.28) 100%),
    linear-gradient(0deg, rgba(28, 25, 23, 0.84), transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72vh;
  display: grid;
  align-content: center;
  max-width: 1180px;
  padding: 90px 0 96px;
  color: var(--white);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(40px, 7vw, 78px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.hero p {
  max-width: 720px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(16px, 2vw, 20px);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-tags span,
.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 11px;
  border-radius: 999px;
  color: var(--primary-dark);
  background: #fef0df;
  font-size: 13px;
  font-weight: 700;
}

.hero .hero-tags span {
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.button-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 18px 38px rgba(241, 121, 37, 0.32);
}

.button-light {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.hero-controls {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

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

.section {
  padding: 66px 0 0;
}

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

.section-eyebrow {
  margin: 0 0 8px;
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.section-title {
  margin: 0;
  color: var(--neutral-900);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.section-desc {
  max-width: 700px;
  margin: 10px 0 0;
  color: var(--neutral-600);
}

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

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

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

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #fdecd0, #fef4ee);
}

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

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

.year-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(28, 25, 23, 0.72);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.movie-card-body {
  padding: 16px;
}

.card-meta {
  margin: 0 0 6px;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 800;
}

.movie-card h3 {
  min-height: 54px;
  margin: 0;
  color: var(--neutral-900);
  font-size: 18px;
  line-height: 1.35;
}

.movie-card h3 a:hover {
  color: var(--primary-dark);
}

.card-line {
  display: -webkit-box;
  min-height: 48px;
  margin: 10px 0 0;
  overflow: hidden;
  color: var(--neutral-600);
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.card-tags span {
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--neutral-700);
  background: var(--neutral-100);
  font-size: 12px;
  font-weight: 650;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 172px;
  padding: 24px;
  border-radius: var(--radius);
  color: var(--neutral-900);
  background: linear-gradient(135deg, #ffffff, #fff7ed);
  border: 1px solid var(--neutral-200);
  box-shadow: var(--shadow-soft);
}

.category-card::after {
  content: "";
  position: absolute;
  right: -32px;
  bottom: -46px;
  width: 150px;
  height: 150px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(241, 121, 37, 0.18), rgba(240, 79, 31, 0.08));
}

.category-card h2,
.category-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.18;
}

.category-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--neutral-600);
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 76px 96px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--neutral-200);
  box-shadow: var(--shadow-soft);
}

.rank-number {
  color: var(--primary-dark);
  font-size: 30px;
  font-weight: 900;
  text-align: center;
}

.ranking-thumb {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 16px;
  background: #fef0df;
}

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

.ranking-info h2,
.ranking-info h3 {
  margin: 0 0 8px;
  font-size: 21px;
}

.ranking-info p {
  margin: 0;
  color: var(--neutral-600);
}

.page-hero {
  padding: 58px 0 36px;
  background: linear-gradient(135deg, #fff7ed, #ffffff 52%, #fef4ee);
}

.page-hero h1 {
  max-width: 850px;
  margin: 0;
  color: var(--neutral-900);
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

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

.detail-hero {
  padding: 48px 0 34px;
  color: var(--white);
  background: radial-gradient(circle at top right, rgba(241, 121, 37, 0.42), transparent 36%), var(--neutral-900);
}

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

.detail-poster {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.28);
}

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

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

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

.detail-hero h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.detail-lead {
  max-width: 780px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
}

.player-card {
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  box-shadow: 0 26px 70px rgba(28, 25, 23, 0.22);
}

.player-box {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-box video {
  width: 100%;
  height: 100%;
  background: #000000;
}

.play-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: var(--white);
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.16));
  cursor: pointer;
}

.play-cover.is-hidden {
  display: none;
}

.play-cover span {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 18px 42px rgba(241, 121, 37, 0.45);
  font-size: 30px;
}

.content-panel {
  padding: 30px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--neutral-200);
  box-shadow: var(--shadow-soft);
}

.content-panel h2 {
  margin: 0 0 12px;
  color: var(--neutral-900);
  font-size: 26px;
}

.content-panel p {
  margin: 0 0 22px;
  color: var(--neutral-700);
  white-space: pre-line;
}

.content-panel p:last-child {
  margin-bottom: 0;
}

.footer {
  margin-top: 72px;
  color: rgba(255, 255, 255, 0.72);
  background: var(--neutral-900);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 30px;
  padding: 42px 0;
}

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

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

.footer a:hover {
  color: var(--white);
}

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

.copyright {
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}

.hidden-card {
  display: none;
}

@media (max-width: 1024px) {
  .movie-grid,
  .movie-grid.compact,
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .detail-layout {
    grid-template-columns: 240px minmax(0, 1fr);
  }
}

@media (max-width: 820px) {
  .header-inner {
    flex-wrap: wrap;
    min-height: 66px;
    padding: 10px 0;
  }

  .site-nav {
    display: none;
    order: 3;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 0;
  }

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

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .search-form input {
    width: 170px;
  }

  .hero,
  .hero-content {
    min-height: 68vh;
  }

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

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

  .ranking-item {
    grid-template-columns: 52px 74px minmax(0, 1fr);
  }

  .ranking-item .button {
    grid-column: 2 / -1;
    width: fit-content;
  }

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

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

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

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

  .brand {
    font-size: 20px;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .search-form {
    flex: 1;
  }

  .search-form input {
    width: 100%;
  }

  .hero-content {
    padding: 74px 0 86px;
  }

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

  .ranking-item {
    grid-template-columns: 44px 64px minmax(0, 1fr);
    gap: 12px;
  }

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

  .content-panel {
    padding: 22px;
  }
}
