:root {
  --sand-50: #faf8f3;
  --sand-100: #f5f0e6;
  --sand-200: #e8dcc5;
  --sand-300: #d8c6a3;
  --sand-500: #b59a61;
  --sand-600: #9d8350;
  --sand-700: #7d6840;
  --desert-50: #fdf9f0;
  --desert-500: #d5a643;
  --desert-600: #b88d39;
  --ink-950: #111827;
  --ink-800: #1f2937;
  --ink-600: #4b5563;
  --ink-500: #6b7280;
  --line: #ede6d6;
  --white: #ffffff;
  --radius-lg: 24px;
  --radius-md: 18px;
  --shadow-sand: 0 18px 45px rgba(125, 104, 64, 0.16);
  --shadow-soft: 0 10px 28px rgba(17, 24, 39, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink-950);
  background: linear-gradient(180deg, var(--sand-50), #ffffff 42%, var(--desert-50));
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(232, 220, 197, 0.75);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-weight: 800;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--sand-500), var(--desert-600));
  box-shadow: 0 8px 18px rgba(181, 154, 97, 0.28);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-copy strong,
.footer-logo {
  font-size: 22px;
  color: transparent;
  background: linear-gradient(90deg, var(--sand-700), var(--desert-600));
  -webkit-background-clip: text;
  background-clip: text;
}

.brand-copy small {
  margin-top: 4px;
  color: var(--ink-500);
  font-size: 12px;
}

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

.nav-link {
  position: relative;
  padding: 10px 14px;
  color: var(--ink-600);
  font-weight: 650;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--sand-700);
  background: var(--sand-50);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 0;
  border-radius: 12px;
  background: var(--sand-50);
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 999px;
  background: var(--ink-800);
}

.hero-carousel {
  position: relative;
  height: clamp(520px, 76vh, 720px);
  overflow: hidden;
  background: #111827;
}

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

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

.hero-slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 24% 38%, rgba(181, 154, 97, 0.32), transparent 32%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.18) 46%, rgba(0, 0, 0, 0.52));
}

.hero-content {
  position: absolute;
  left: 50%;
  bottom: 82px;
  width: min(1200px, calc(100% - 32px));
  transform: translateX(-50%);
  color: #ffffff;
}

.hero-content h1 {
  max-width: 760px;
  margin: 14px 0 14px;
  font-size: clamp(36px, 6vw, 66px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

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

.hero-tags,
.hero-inline-tags,
.detail-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero-tags span,
.hero-inline-tags span,
.detail-labels span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 12px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.hero-tags span:first-child,
.detail-labels span:first-child {
  background: linear-gradient(90deg, var(--sand-500), var(--desert-500));
}

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

.primary-button,
.ghost-button,
.text-button,
.filter-panel button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  font-weight: 800;
  border-radius: 14px;
  border: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button,
.filter-panel button {
  color: #ffffff;
  background: linear-gradient(90deg, var(--sand-500), var(--desert-500));
  box-shadow: 0 14px 26px rgba(181, 154, 97, 0.34);
}

.primary-button:hover,
.filter-panel button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(181, 154, 97, 0.42);
}

.ghost-button {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 8;
  width: 52px;
  height: 52px;
  border: 0;
  color: #ffffff;
  font-size: 42px;
  line-height: 1;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-50%);
  backdrop-filter: blur(12px);
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.24);
}

.hero-arrow.prev {
  left: 24px;
}

.hero-arrow.next {
  right: 24px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 8;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.54);
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: #ffffff;
}

.hero-search {
  position: absolute;
  right: max(24px, calc((100% - 1200px) / 2));
  bottom: 34px;
  z-index: 9;
  display: flex;
  width: min(420px, calc(100% - 48px));
  padding: 8px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sand);
  backdrop-filter: blur(12px);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 14px;
  background: transparent;
}

.hero-search button {
  border: 0;
  min-height: 42px;
  padding: 0 18px;
  color: #ffffff;
  font-weight: 800;
  border-radius: 12px;
  background: linear-gradient(90deg, var(--sand-500), var(--desert-500));
}

.content-section {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 62px 0;
}

.soft-section {
  width: 100%;
  padding-left: max(16px, calc((100% - 1200px) / 2));
  padding-right: max(16px, calc((100% - 1200px) / 2));
  background: linear-gradient(180deg, #ffffff, var(--sand-50));
}

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

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.section-accent {
  width: 6px;
  height: 36px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--sand-500), var(--desert-500));
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.15;
}

.section-heading p {
  margin: 6px 0 0;
  color: var(--ink-500);
}

.section-more,
.text-button {
  color: var(--sand-700);
  font-weight: 800;
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(232, 220, 197, 0.84);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, var(--sand-100), var(--desert-50));
}

.movie-card.is-compact .poster-link {
  aspect-ratio: 4 / 5;
}

.movie-poster,
.category-cover img,
.wide-cover img,
.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster-shade {
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.56), transparent);
}

.card-badge,
.rank-number {
  position: absolute;
  z-index: 2;
  color: #ffffff;
  font-weight: 800;
}

.card-badge {
  right: 12px;
  bottom: 12px;
  padding: 5px 10px;
  font-size: 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.54);
  backdrop-filter: blur(8px);
}

.rank-number {
  left: 12px;
  top: 12px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--sand-500), var(--desert-600));
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.24);
}

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

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--ink-500);
  font-size: 13px;
  font-weight: 700;
}

.movie-card h3,
.wide-card h3 {
  margin: 8px 0;
  color: var(--ink-950);
  font-size: 19px;
  line-height: 1.25;
}

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

.movie-card p,
.wide-card p,
.category-card p {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink-600);
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.tag-list span {
  padding: 4px 8px;
  color: var(--sand-700);
  font-size: 12px;
  font-weight: 700;
  border-radius: 8px;
  background: var(--sand-50);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 28px;
  align-items: start;
}

.wide-list,
.ranking-list {
  display: grid;
  gap: 16px;
}

.wide-card {
  display: grid;
  grid-template-columns: 54px 96px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(232, 220, 197, 0.84);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
}

.wide-rank {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--sand-500), var(--desert-600));
}

.wide-cover {
  height: 118px;
  overflow: hidden;
  border-radius: 14px;
  background: var(--sand-100);
}

.wide-body p {
  margin: 0;
}

.ranking-panel {
  position: sticky;
  top: 94px;
  padding: 20px;
  border: 1px solid rgba(232, 220, 197, 0.84);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-sand);
}

.ranking-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.ranking-head h2 {
  margin: 0;
}

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

.compact-ranking .wide-card {
  grid-template-columns: 44px 76px minmax(0, 1fr);
  gap: 12px;
  padding: 10px;
}

.compact-ranking .wide-cover {
  height: 86px;
}

.compact-ranking .wide-card p,
.compact-ranking .tag-list {
  display: none;
}

.inner-page {
  min-height: 70vh;
}

.page-hero {
  min-height: 280px;
  display: grid;
  place-items: center;
  padding: 70px 16px;
  color: #ffffff;
  background:
    radial-gradient(circle at 22% 22%, rgba(213, 166, 67, 0.36), transparent 28%),
    linear-gradient(135deg, rgba(17, 24, 39, 0.96), rgba(125, 104, 64, 0.9));
}

.page-hero > div {
  width: min(1200px, 100%);
}

.page-hero h1 {
  margin: 10px 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.1;
}

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

.eyebrow {
  display: inline-flex;
  padding: 6px 12px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

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

.category-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 20px;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(232, 220, 197, 0.86);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
}

.category-cover {
  min-height: 230px;
  overflow: hidden;
  border-radius: 18px;
  background: var(--sand-100);
}

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

.category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.category-links a {
  padding: 5px 9px;
  color: var(--ink-600);
  font-size: 13px;
  border-radius: 999px;
  background: var(--sand-50);
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 180px 180px;
  gap: 14px;
  margin-bottom: 28px;
  padding: 16px;
  border: 1px solid rgba(232, 220, 197, 0.88);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.filter-panel label {
  display: grid;
  gap: 6px;
  color: var(--ink-500);
  font-size: 13px;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  color: var(--ink-950);
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: 0;
  background: #ffffff;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--sand-500);
  box-shadow: 0 0 0 4px rgba(181, 154, 97, 0.14);
}

.hidden-card {
  display: none !important;
}

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

.player-band {
  padding: 32px 16px;
  background: #050505;
}

.player-container {
  width: min(1200px, 100%);
  margin: 0 auto;
}

.video-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  background: #000000;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.video-shell video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-content: center;
  gap: 14px;
  color: #ffffff;
  border: 0;
  background:
    radial-gradient(circle at center, rgba(213, 166, 67, 0.28), transparent 32%),
    rgba(0, 0, 0, 0.45);
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-icon {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  padding-left: 5px;
  font-size: 34px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--sand-500), var(--desert-500));
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
}

.player-status {
  position: absolute;
  left: 20px;
  bottom: 20px;
  z-index: 4;
  color: #ffffff;
  font-weight: 700;
}

.detail-content {
  padding-top: 42px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 24px;
  color: var(--ink-500);
  font-size: 14px;
}

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

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

.detail-poster {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  background: var(--sand-100);
  box-shadow: var(--shadow-sand);
}

.detail-main h1 {
  margin: 14px 0 12px;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.12;
}

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

.detail-tags {
  margin-bottom: 24px;
}

.info-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0;
}

.info-list div {
  padding: 14px;
  border: 1px solid rgba(232, 220, 197, 0.88);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.84);
}

.info-list dt {
  color: var(--ink-500);
  font-size: 13px;
  font-weight: 800;
}

.info-list dd {
  margin: 5px 0 0;
  color: var(--ink-950);
  font-weight: 800;
}

.detail-main h2 {
  margin: 28px 0 10px;
  font-size: 24px;
}

.detail-main p {
  color: var(--ink-600);
  font-size: 17px;
}

.site-footer {
  border-top: 1px solid rgba(232, 220, 197, 0.9);
  background: #ffffff;
}

.footer-inner {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner p {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--ink-500);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 800;
  color: var(--sand-700);
}

@media (max-width: 1080px) {
  .movie-grid,
  .small-grid,
  .search-grid,
  .list-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .popular-grid,
  .page-ranking,
  .category-grid,
  .split-section {
    grid-template-columns: 1fr;
  }

  .ranking-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .header-inner {
    min-height: 64px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    display: none;
    padding: 12px 16px 18px;
    flex-direction: column;
    align-items: stretch;
    border-bottom: 1px solid rgba(232, 220, 197, 0.9);
    background: #ffffff;
  }

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

  .hero-carousel {
    height: 680px;
  }

  .hero-content {
    bottom: 150px;
  }

  .hero-search {
    left: 16px;
    right: 16px;
    width: auto;
  }

  .hero-arrow {
    display: none;
  }

  .movie-grid,
  .small-grid,
  .search-grid,
  .list-grid,
  .feature-grid,
  .popular-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

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

  .category-card,
  .detail-layout,
  .filter-panel {
    grid-template-columns: 1fr;
  }

  .category-cover {
    min-height: 260px;
  }

  .wide-card {
    grid-template-columns: 44px 82px minmax(0, 1fr);
    gap: 12px;
  }

  .wide-cover {
    height: 100px;
  }

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

  .info-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .brand-copy strong {
    font-size: 18px;
  }

  .brand-copy small {
    display: none;
  }

  .movie-grid,
  .small-grid,
  .search-grid,
  .list-grid,
  .feature-grid,
  .popular-grid {
    grid-template-columns: 1fr;
  }

  .hero-content h1 {
    font-size: 36px;
  }

  .hero-content p {
    font-size: 16px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-button,
  .ghost-button {
    width: 100%;
  }
}
