:root {
  --sand-50: #fdfbf7;
  --sand-100: #f8f3e8;
  --sand-200: #f2e5cc;
  --sand-300: #e8d2a8;
  --desert-50: #fef8f0;
  --desert-100: #fdefd9;
  --desert-300: #f6b16f;
  --desert-400: #f29d4e;
  --desert-500: #ee7b29;
  --desert-600: #df5f1f;
  --desert-700: #b9481c;
  --dune-50: #faf7f0;
  --dune-100: #f4ede0;
  --dune-600: #b37439;
  --dune-700: #955c31;
  --stone-50: #f7f6f4;
  --stone-100: #edeae5;
  --stone-200: #dbd7cc;
  --stone-300: #c1bbac;
  --stone-400: #a69d8a;
  --stone-500: #938971;
  --stone-600: #867a65;
  --stone-700: #6f6555;
  --stone-800: #5d5449;
  --stone-900: #4d463d;
  --shadow-sm: 0 6px 18px rgba(77, 70, 61, 0.08);
  --shadow-md: 0 18px 45px rgba(77, 70, 61, 0.16);
  --shadow-lg: 0 28px 70px rgba(77, 70, 61, 0.22);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, var(--sand-50), var(--stone-50));
  color: var(--stone-800);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(253, 251, 247, 0.96), rgba(250, 247, 240, 0.96));
  border-bottom: 1px solid var(--sand-200);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(18px);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: var(--stone-900);
  white-space: nowrap;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--desert-500), var(--dune-600));
  box-shadow: 0 10px 24px rgba(238, 123, 41, 0.28);
  transition: transform 0.2s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.08) rotate(-2deg);
}

.brand-name {
  font-size: 20px;
  letter-spacing: 0.02em;
}

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

.nav-link {
  font-size: 15px;
  font-weight: 650;
  color: var(--stone-700);
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--desert-600);
}

.header-search {
  display: flex;
  align-items: center;
  padding: 4px;
  border: 1px solid var(--sand-300);
  border-radius: 999px;
  background: #fff;
  min-width: 260px;
}

.header-search input,
.mobile-search input,
.filter-panel input,
.search-hero-form input {
  border: 0;
  outline: 0;
  min-width: 0;
  background: transparent;
  color: var(--stone-800);
}

.header-search input {
  flex: 1;
  padding: 8px 12px;
}

.header-search button,
.mobile-search button,
.search-hero-form button {
  border: 0;
  border-radius: 999px;
  background: var(--desert-500);
  color: #fff;
  padding: 8px 16px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.search-hero-form button:hover {
  background: var(--desert-600);
  transform: translateY(-1px);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--sand-100);
  cursor: pointer;
  padding: 11px;
}

.mobile-menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--stone-800);
  border-radius: 99px;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--sand-200);
  background: var(--sand-50);
  padding: 12px 16px 18px;
}

.mobile-panel.open {
  display: block;
}

.mobile-nav-link {
  display: block;
  padding: 10px 4px;
  font-weight: 700;
  color: var(--stone-700);
}

.mobile-nav-link.small {
  color: var(--desert-700);
  font-size: 14px;
}

.mobile-search {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--sand-300);
  border-radius: 999px;
}

.mobile-search input {
  flex: 1;
  padding: 8px 12px;
}

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

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

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

.hero-slide img {
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 7s ease;
}

.hero-slide.active img {
  transform: scale(1.12);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.54), rgba(0, 0, 0, 0.1));
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-text {
  width: min(650px, 100%);
  color: #fff;
  padding: 60px 0 92px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--desert-400);
  font-weight: 800;
  margin-bottom: 18px;
}

.hero-text h1,
.hero-text h2 {
  margin: 0 0 18px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-text h2 {
  font-size: clamp(32px, 5vw, 58px);
}

.hero-text p {
  margin: 0 0 28px;
  color: #e6e6e6;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.7;
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--stone-700);
  background: var(--sand-100);
}

.hero-tags span {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
}

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

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

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--desert-500), var(--desert-600));
  box-shadow: 0 14px 28px rgba(238, 123, 41, 0.32);
}

.btn-primary:hover {
  box-shadow: 0 18px 38px rgba(238, 123, 41, 0.42);
}

.btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.btn-light {
  color: var(--desert-600);
  background: #fff;
}

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

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

.hero-dot.active {
  background: var(--desert-400);
}

.hero-arrow {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.featured-overlap {
  position: relative;
  z-index: 8;
  margin-top: -78px;
}

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

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

.section {
  padding: 72px 0;
}

.section.alt {
  background: linear-gradient(90deg, var(--dune-100), var(--sand-100));
}

.section.dark {
  background: var(--stone-800);
  color: #fff;
}

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

.section-title h1,
.section-title h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.15;
  color: var(--stone-800);
}

.dark .section-title h2,
.dark .section-title h1 {
  color: #fff;
}

.section-title p {
  margin: 0;
  color: var(--stone-600);
  line-height: 1.65;
}

.dark .section-title p {
  color: var(--stone-300);
}

.text-link {
  color: var(--desert-600);
  font-weight: 800;
}

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.card-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--sand-100);
}

.large-card .card-cover {
  aspect-ratio: 16 / 9;
}

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

.movie-card:hover .card-cover img,
.compact-card:hover img,
.rank-item:hover img {
  transform: scale(1.08);
}

.card-year {
  position: absolute;
  top: 12px;
  right: 12px;
  border-radius: 8px;
  padding: 5px 8px;
  color: #fff;
  background: rgba(0, 0, 0, 0.72);
  font-size: 12px;
  font-weight: 800;
}

.card-glow {
  position: absolute;
  inset: auto 0 0;
  height: 55%;
  opacity: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.56), transparent);
  transition: opacity 0.25s ease;
}

.movie-card:hover .card-glow {
  opacity: 1;
}

.card-body {
  padding: 18px;
}

.card-meta,
.rank-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--stone-500);
  font-size: 13px;
  font-weight: 700;
}

.card-meta a,
.detail-meta a {
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--desert-700);
  background: var(--desert-100);
}

.card-body h2 {
  margin: 12px 0 8px;
  font-size: 18px;
  line-height: 1.35;
  color: var(--stone-800);
}

.card-body h2 a:hover {
  color: var(--desert-600);
}

.card-body p {
  margin: 0 0 14px;
  color: var(--stone-600);
  font-size: 14px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.category-card {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 24px;
  padding: 26px;
  background: linear-gradient(135deg, #fff, var(--desert-50));
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--sand-200);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-card h2 {
  margin: 0 0 10px;
  color: var(--stone-800);
  font-size: 24px;
}

.category-card p {
  margin: 0 0 18px;
  color: var(--stone-600);
  line-height: 1.65;
}

.category-card ul {
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.category-card li {
  margin: 8px 0;
  color: var(--stone-600);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-hero {
  color: #fff;
  padding: 64px 0;
  background: linear-gradient(120deg, var(--dune-700), var(--desert-600));
}

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

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--desert-100);
  font-size: 18px;
  line-height: 1.7;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.breadcrumbs a:hover {
  color: #fff;
}

.filter-panel,
.search-hero-form {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 12px;
  margin: 0 0 28px;
  padding: 14px;
  border: 1px solid var(--sand-200);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
}

.filter-panel input,
.filter-panel select,
.search-hero-form input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--sand-300);
  border-radius: 999px;
  padding: 0 16px;
  background: #fff;
  color: var(--stone-800);
}

.filter-panel select {
  appearance: none;
}

.search-hero-form {
  grid-template-columns: 1fr auto;
  max-width: 820px;
  margin: 28px 0 0;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 74px 170px 1fr;
  gap: 20px;
  align-items: center;
  padding: 16px;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.rank-number {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--desert-500), var(--dune-600));
  font-size: 20px;
  font-weight: 900;
}

.rank-thumb {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 16px;
  background: var(--sand-100);
}

.rank-thumb img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.rank-content h2 {
  margin: 0 0 8px;
  color: var(--stone-800);
  font-size: 20px;
}

.rank-content h2 a:hover {
  color: var(--desert-600);
}

.rank-content p {
  margin: 0 0 12px;
  color: var(--stone-600);
  line-height: 1.65;
}

.detail-wrap {
  padding: 36px 0 76px;
}

.detail-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 22px;
  color: var(--stone-600);
  font-size: 14px;
}

.detail-breadcrumbs a:hover {
  color: var(--desert-600);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 0.9fr);
  gap: 32px;
  align-items: start;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #000;
  box-shadow: var(--shadow-lg);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 16px;
  border: 0;
  color: #fff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.22));
  cursor: pointer;
  text-align: center;
}

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

.player-play-icon {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--desert-500), var(--desert-600));
  box-shadow: 0 18px 40px rgba(238, 123, 41, 0.42);
  font-size: 30px;
  padding-left: 4px;
}

.player-start-title {
  display: block;
  max-width: 80%;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.4;
}

.player-status {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  border-radius: 999px;
  padding: 8px 14px;
  color: #fff;
  background: rgba(0, 0, 0, 0.72);
  font-size: 14px;
}

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

.detail-card,
.sidebar-card {
  margin-top: 24px;
  border-radius: 22px;
  background: #fff;
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.detail-card h1 {
  margin: 0 0 18px;
  color: var(--stone-900);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.18;
}

.detail-section {
  padding: 24px 0;
  border-top: 1px solid var(--stone-200);
}

.detail-section:first-of-type {
  border-top: 0;
}

.detail-section h2,
.sidebar-card h2 {
  margin: 0 0 14px;
  color: var(--stone-800);
  font-size: 22px;
}

.detail-section p {
  margin: 0 0 14px;
  color: var(--stone-700);
  line-height: 1.85;
}

.detail-section p.lead {
  color: var(--stone-800);
  font-weight: 750;
  font-size: 17px;
}

.sidebar-card {
  position: sticky;
  top: 92px;
  margin-top: 0;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 12px;
  align-items: center;
  border-radius: 14px;
  padding: 8px;
  transition: background 0.2s ease;
}

.compact-card:hover {
  background: var(--sand-50);
}

.compact-card img {
  height: 74px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.45s ease;
}

.compact-card strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--stone-800);
  line-height: 1.35;
}

.compact-card em {
  display: block;
  margin-top: 6px;
  color: var(--stone-500);
  font-size: 12px;
  font-style: normal;
}

.search-results-note {
  margin: 0 0 22px;
  color: var(--stone-600);
  font-weight: 700;
}

.cta-panel {
  border-radius: 30px;
  padding: clamp(30px, 6vw, 54px);
  color: #fff;
  text-align: center;
  background: linear-gradient(135deg, var(--desert-500), var(--dune-600));
  box-shadow: var(--shadow-md);
}

.cta-panel h2 {
  margin: 0 0 16px;
  font-size: clamp(30px, 5vw, 46px);
}

.cta-panel p {
  max-width: 720px;
  margin: 0 auto 28px;
  color: var(--desert-100);
  line-height: 1.7;
  font-size: 18px;
}

.site-footer {
  color: var(--stone-300);
  background: linear-gradient(180deg, var(--stone-800), var(--stone-900));
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 1fr 1fr;
  gap: 44px;
  padding: 54px 0;
}

.footer-brand {
  color: #fff;
  font-size: 20px;
  margin-bottom: 16px;
}

.footer-main p {
  max-width: 620px;
  margin: 0 0 12px;
  color: var(--stone-300);
  line-height: 1.7;
}

.footer-copy {
  color: var(--stone-500) !important;
  font-size: 14px;
}

.site-footer h2 {
  margin: 0 0 16px;
  color: #fff;
  font-size: 17px;
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links li {
  margin: 10px 0;
}

.footer-links a:hover {
  color: var(--desert-400);
}

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

@media (max-width: 1080px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

  .mobile-menu-button {
    display: block;
  }

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

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

  .sidebar-card {
    position: static;
  }
}

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

  .brand-name {
    font-size: 18px;
  }

  .hero-carousel {
    height: auto;
    min-height: 620px;
  }

  .hero-content {
    align-items: flex-end;
  }

  .hero-text {
    padding: 120px 0 104px;
  }

  .hero-shade {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.34));
  }

  .featured-overlap {
    margin-top: -48px;
  }

  .feature-grid,
  .card-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 48px 0;
  }

  .section-header {
    display: block;
  }

  .section-header .text-link {
    display: inline-flex;
    margin-top: 14px;
  }

  .filter-panel,
  .search-hero-form {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: 48px 92px 1fr;
    gap: 12px;
    padding: 12px;
  }

  .rank-number {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    font-size: 15px;
  }

  .rank-content h2 {
    font-size: 16px;
  }

  .rank-content p {
    display: none;
  }

  .detail-card,
  .sidebar-card {
    padding: 20px;
  }

  .compact-card {
    grid-template-columns: 102px 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}
