:root {
  --sand-50: #fdfbf7;
  --sand-100: #f8f3e8;
  --sand-200: #f2e5cc;
  --stone-50: #f7f6f4;
  --stone-200: #dbd7cc;
  --stone-500: #807467;
  --stone-700: #6f6555;
  --stone-800: #5d5449;
  --stone-900: #4d463d;
  --desert-50: #fef8f0;
  --desert-100: #fdefd9;
  --desert-400: #f29d4e;
  --desert-500: #ee7b29;
  --desert-600: #df5f1f;
  --desert-700: #b9481c;
  --dune-50: #faf7f0;
  --dune-100: #f4ede0;
  --dune-600: #b37439;
  --ink: #241f1a;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(77, 70, 61, 0.12);
  --soft-shadow: 0 10px 28px rgba(77, 70, 61, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--stone-800);
  background: linear-gradient(180deg, var(--sand-50), var(--stone-50));
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 251, 247, 0.92);
  border-bottom: 1px solid rgba(242, 229, 204, 0.95);
  backdrop-filter: blur(16px);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--stone-800);
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--desert-500), var(--dune-600));
  box-shadow: 0 12px 30px rgba(238, 123, 41, 0.28);
}

.logo-text {
  font-size: 20px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--stone-700);
  font-weight: 650;
}

.nav-links a {
  transition: color 0.2s ease;
}

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

.header-search {
  position: relative;
  min-width: 250px;
}

.header-search input {
  width: 100%;
  border: 1px solid var(--sand-200);
  background: var(--white);
  border-radius: 999px;
  padding: 11px 48px 11px 18px;
  color: var(--stone-800);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.search-panel input:focus,
.search-panel select:focus {
  border-color: var(--desert-400);
  box-shadow: 0 0 0 4px rgba(238, 123, 41, 0.12);
}

.header-search button {
  position: absolute;
  right: 5px;
  top: 5px;
  border: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--white);
  background: linear-gradient(135deg, var(--desert-500), var(--desert-700));
  cursor: pointer;
}

.mobile-toggle {
  display: none;
  border: 0;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--desert-50);
  color: var(--desert-700);
  cursor: pointer;
}

.mobile-nav {
  display: none;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto 18px;
  border: 1px solid var(--sand-200);
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
  overflow: hidden;
}

.mobile-nav a {
  display: block;
  padding: 14px 18px;
  color: var(--stone-700);
  border-bottom: 1px solid var(--sand-100);
}

.mobile-nav a:last-child {
  border-bottom: 0;
}

.mobile-nav.is-open {
  display: block;
}

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

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

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.65s ease, visibility 0.65s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

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

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.08));
}

.hero-content {
  position: relative;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 96px 0 86px;
  color: var(--white);
}

.hero-inner {
  max-width: 720px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: var(--desert-100);
  font-size: 14px;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.hero-title {
  margin: 24px 0 16px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.hero-summary {
  margin: 0 0 22px;
  max-width: 650px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.75;
}

.hero-meta,
.card-meta,
.detail-meta,
.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--desert-100);
  color: var(--desert-700);
  font-size: 13px;
  font-weight: 750;
}

.badge.dark {
  color: var(--desert-100);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-actions,
.section-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 28px;
}

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

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.18);
}

.btn.primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--desert-500), var(--desert-700));
}

.btn.ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
}

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

.hero-dot {
  width: 34px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 58px;
  background: var(--desert-500);
}

.hero-search {
  margin-top: 26px;
  max-width: 560px;
  display: flex;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  padding: 15px 18px;
  color: var(--white);
  background: transparent;
}

.hero-search input::placeholder {
  color: rgba(255, 255, 255, 0.78);
}

.hero-search button {
  border: 0;
  padding: 0 22px;
  color: var(--white);
  background: linear-gradient(135deg, var(--desert-500), var(--dune-600));
  cursor: pointer;
  font-weight: 800;
}

.section {
  padding: 56px 0;
}

.section.compact {
  padding: 34px 0;
}

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

.section-kicker {
  margin: 0 0 8px;
  color: var(--desert-600);
  font-weight: 850;
}

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

.section-desc {
  margin: 12px 0 0;
  max-width: 720px;
  color: var(--stone-500);
  line-height: 1.8;
}

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

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

.movie-card {
  border: 1px solid var(--sand-200);
  border-radius: 22px;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--soft-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(238, 123, 41, 0.45);
  box-shadow: var(--shadow);
}

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

.poster-link.wide {
  aspect-ratio: 16 / 10;
}

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

.poster-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.62);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.card-body {
  padding: 16px;
}

.card-title {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.35;
  font-weight: 850;
}

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

.card-text {
  margin: 10px 0 0;
  color: var(--stone-500);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.category-tile {
  position: relative;
  min-height: 172px;
  padding: 24px;
  border: 1px solid var(--sand-200);
  border-radius: 26px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--white), var(--desert-50));
  box-shadow: var(--soft-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-tile::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -52px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(238, 123, 41, 0.12);
}

.category-tile h2,
.category-tile h3 {
  position: relative;
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 24px;
  font-weight: 900;
}

.category-tile p {
  position: relative;
  margin: 0;
  color: var(--stone-500);
  line-height: 1.75;
}

.page-hero {
  position: relative;
  padding: 72px 0;
  color: var(--white);
  background: radial-gradient(circle at 10% 20%, rgba(238, 123, 41, 0.5), transparent 30%), linear-gradient(135deg, var(--stone-900), var(--stone-700));
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: auto -20% -60% 35%;
  height: 280px;
  border-radius: 999px;
  background: rgba(179, 116, 57, 0.28);
  filter: blur(28px);
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  margin: 12px 0 12px;
  max-width: 860px;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.page-hero p {
  margin: 0;
  max-width: 780px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  line-height: 1.8;
}

.search-panel {
  display: grid;
  grid-template-columns: 1fr 170px 170px;
  gap: 14px;
  padding: 18px;
  margin: -34px auto 34px;
  border: 1px solid var(--sand-200);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 3;
}

.search-panel input,
.search-panel select {
  width: 100%;
  border: 1px solid var(--sand-200);
  border-radius: 16px;
  outline: none;
  padding: 13px 14px;
  color: var(--stone-800);
  background: var(--white);
}

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

.rank-card {
  display: grid;
  grid-template-columns: 70px 98px 1fr;
  gap: 15px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--sand-200);
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.rank-num {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--desert-500), var(--dune-600));
  font-weight: 950;
}

.rank-cover {
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  overflow: hidden;
  background: var(--sand-100);
}

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

.rank-title {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 850;
}

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

.rank-text {
  margin: 8px 0 0;
  color: var(--stone-500);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

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

.detail-hero {
  position: relative;
  color: var(--white);
  background: var(--stone-900);
  overflow: hidden;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(2px) saturate(0.9);
  transform: scale(1.03);
}

.detail-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.28));
}

.detail-wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 42px;
  align-items: center;
  padding: 72px 0;
}

.detail-poster {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
  background: var(--sand-100);
}

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

.detail-content h1 {
  margin: 18px 0 16px;
  font-size: clamp(42px, 6vw, 74px);
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: -0.055em;
}

.detail-intro {
  margin: 18px 0 0;
  max-width: 850px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.8;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.85fr);
  gap: 26px;
  align-items: start;
}

.panel {
  border: 1px solid var(--sand-200);
  border-radius: 26px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
  overflow: hidden;
}

.panel-body {
  padding: 26px;
}

.panel-title {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.025em;
}

.article-text {
  color: var(--stone-700);
  font-size: 17px;
  line-height: 1.9;
}

.article-text p {
  margin: 0 0 18px;
}

.player-shell {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.player-shell video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
}

.play-layer {
  position: absolute;
  inset: 0;
  border: 0;
  color: var(--white);
  background: radial-gradient(circle at center, rgba(238, 123, 41, 0.28), rgba(0, 0, 0, 0.62));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.play-layer span {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--desert-500), var(--desert-700));
  box-shadow: 0 20px 45px rgba(238, 123, 41, 0.38);
  font-size: 34px;
  padding-left: 6px;
}

.play-layer b {
  font-size: 18px;
  letter-spacing: 0.04em;
}

.player-shell.is-playing .play-layer {
  opacity: 0;
  pointer-events: none;
}

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

.side-item {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 13px;
  padding: 12px;
  border: 1px solid var(--sand-200);
  border-radius: 18px;
  background: var(--white);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.side-item:hover {
  transform: translateY(-2px);
  border-color: rgba(238, 123, 41, 0.42);
}

.side-thumb {
  aspect-ratio: 3 / 4;
  border-radius: 13px;
  overflow: hidden;
  background: var(--sand-100);
}

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

.side-title {
  margin: 0 0 7px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.35;
  font-weight: 850;
}

.side-meta {
  margin: 0;
  color: var(--stone-500);
  font-size: 13px;
  line-height: 1.45;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.site-footer {
  margin-top: 56px;
  color: var(--stone-200);
  background: linear-gradient(135deg, var(--stone-900), var(--stone-800));
}

.footer-grid {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 28px;
}

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

.footer-grid p {
  margin: 0;
  max-width: 520px;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.8;
}

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

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

.hide {
  display: none !important;
}

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

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

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

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

  .mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero-slider {
    min-height: 690px;
  }

  .hero-media::after {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.9));
  }

  .hero-content {
    padding: 92px 0 96px;
  }

  .hero-search {
    border-radius: 22px;
    flex-direction: column;
  }

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

  .section-head {
    display: block;
  }

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

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

  .detail-wrap {
    grid-template-columns: 1fr;
    gap: 28px;
  }

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

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

@media (max-width: 560px) {
  .navbar,
  .container,
  .hero-content,
  .footer-grid,
  .mobile-nav {
    width: min(100% - 24px, 1280px);
  }

  .logo-text {
    font-size: 17px;
  }

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

  .rank-card {
    grid-template-columns: 52px 78px 1fr;
  }

  .section {
    padding: 42px 0;
  }

  .panel-body {
    padding: 20px;
  }
}
