:root {
  --canyon-950: #251710;
  --canyon-900: #5c3f2f;
  --canyon-800: #704c37;
  --canyon-700: #8a5c3f;
  --canyon-600: #a6714a;
  --canyon-100: #f5f0e8;
  --canyon-50: #faf8f5;
  --sand-50: #fdfcfa;
  --sand-100: #fbf6ec;
  --sand-200: #f5eedd;
  --gold-600: #f09200;
  --gold-500: #ffb41e;
  --gold-400: #ffc94a;
  --gold-300: #ffdf8f;
  --forest-700: #3d4d40;
  --forest-600: #4a5e4d;
  --forest-100: #e5eae5;
  --earth-800: #56483c;
  --earth-700: #655545;
  --earth-600: #7a6752;
  --white: #ffffff;
  --black: #000000;
  --radius-xl: 24px;
  --shadow-soft: 0 24px 70px rgba(92, 63, 47, 0.16);
  --shadow-card: 0 18px 45px rgba(92, 63, 47, 0.12);
  --shadow-hover: 0 30px 70px rgba(92, 63, 47, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--canyon-900);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 201, 74, 0.2), transparent 28%),
    linear-gradient(135deg, var(--canyon-50) 0%, var(--white) 42%, var(--sand-50) 100%);
}

body.no-hero .site-header {
  position: sticky;
  top: 0;
  background: linear-gradient(135deg, rgba(92, 63, 47, 0.98), rgba(61, 77, 64, 0.96));
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: absolute;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.logo-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--canyon-900);
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  border-radius: 15px;
  box-shadow: 0 14px 32px rgba(255, 180, 30, 0.32);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  font-size: 15px;
  font-weight: 700;
}

.nav a {
  position: relative;
  color: rgba(255, 255, 255, 0.86);
  transition: color 0.25s ease;
}

.nav a::after {
  position: absolute;
  content: "";
  left: 0;
  bottom: -10px;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--gold-400);
  transition: transform 0.25s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--gold-300);
}

.nav a:hover::after,
.nav a.active::after {
  transform: scaleX(1);
}

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

.search-pill {
  display: flex;
  align-items: center;
  width: min(280px, 28vw);
  min-width: 190px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.search-pill input {
  width: 100%;
  min-width: 0;
  padding: 8px 10px 8px 14px;
  color: var(--white);
  border: 0;
  outline: 0;
  background: transparent;
}

.search-pill input::placeholder {
  color: rgba(255, 255, 255, 0.66);
}

.search-pill button {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--canyon-900);
  cursor: pointer;
  border: 0;
  border-radius: 50%;
  background: var(--gold-400);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  cursor: pointer;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
}

.mobile-menu {
  display: none;
  padding: 0 0 18px;
}

.mobile-menu a,
.mobile-menu form {
  margin-top: 12px;
}

.mobile-menu a {
  display: block;
  padding: 12px 14px;
  color: rgba(255, 255, 255, 0.86);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
}

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

.hero::before {
  position: absolute;
  content: "";
  inset: 0;
  z-index: 3;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 180, 30, 0.25), transparent 32%),
    linear-gradient(90deg, rgba(37, 23, 16, 0.94) 0%, rgba(37, 23, 16, 0.76) 44%, rgba(37, 23, 16, 0.3) 100%);
  pointer-events: none;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  filter: saturate(1.06);
  transform: scale(1.04);
}

.hero-content {
  position: relative;
  z-index: 5;
  display: grid;
  min-height: 720px;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.7fr);
  align-items: center;
  gap: 42px;
  padding-top: 96px;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 14px;
  color: var(--gold-300);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  border: 1px solid rgba(255, 223, 143, 0.35);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  backdrop-filter: blur(12px);
}

.section-kicker {
  color: var(--canyon-700);
  border-color: rgba(138, 92, 63, 0.18);
  background: var(--sand-100);
}

.hero-title {
  max-width: 760px;
  margin: 18px 0 18px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero-desc {
  max-width: 690px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.85;
}

.hero-tags,
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
}

.hero-tags span,
.tags span {
  padding: 7px 11px;
  color: var(--gold-300);
  font-size: 13px;
  font-weight: 700;
  border: 1px solid rgba(255, 223, 143, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.tags span {
  color: var(--forest-700);
  border-color: rgba(74, 94, 77, 0.18);
  background: var(--forest-100);
}

.hero-actions,
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 20px;
  color: var(--canyon-900);
  font-weight: 800;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  box-shadow: 0 18px 34px rgba(255, 180, 30, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 42px rgba(255, 180, 30, 0.36);
}

.btn.ghost {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.btn.dark {
  color: var(--white);
  background: linear-gradient(135deg, var(--canyon-800), var(--forest-700));
  box-shadow: 0 16px 34px rgba(92, 63, 47, 0.22);
}

.hero-poster-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-poster-card {
  width: min(360px, 88vw);
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.14);
  border-radius: 34px;
  box-shadow: 0 36px 80px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(18px);
}

.hero-poster-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 25px;
}

.hero-poster-meta {
  padding: 14px 6px 2px;
}

.hero-poster-meta strong {
  display: block;
  font-size: 18px;
}

.hero-poster-meta span {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

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

.hero-dot {
  width: 40px;
  height: 5px;
  cursor: pointer;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.32);
}

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

.page-hero {
  padding: 132px 0 58px;
  color: var(--white);
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 180, 30, 0.32), transparent 30%),
    linear-gradient(135deg, var(--canyon-900), var(--forest-700));
}

.page-hero.compact {
  padding-bottom: 42px;
}

.page-hero h1 {
  max-width: 880px;
  margin: 16px 0 16px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

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

.main {
  padding: 64px 0;
}

.section {
  margin-bottom: 76px;
}

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

.section-title {
  margin: 12px 0 0;
  color: var(--canyon-900);
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.035em;
}

.section-desc {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--earth-600);
  line-height: 1.75;
}

.section-link {
  color: var(--canyon-700);
  font-weight: 800;
}

.section-link:hover {
  color: var(--gold-600);
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(138, 92, 63, 0.1);
  background: rgba(255, 255, 255, 0.82);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  border-color: rgba(255, 180, 30, 0.35);
  box-shadow: var(--shadow-hover);
}

.movie-card .poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--canyon-100);
}

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

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

.poster-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  top: 13px;
  left: 13px;
  padding: 6px 10px;
  color: var(--canyon-900);
  font-size: 12px;
  font-weight: 900;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.poster-meta {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
}

.poster-meta span {
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(37, 23, 16, 0.62);
  backdrop-filter: blur(8px);
}

.card-body {
  padding: 17px;
}

.card-title {
  display: -webkit-box;
  min-height: 52px;
  margin: 0 0 10px;
  overflow: hidden;
  color: var(--canyon-900);
  font-size: 18px;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

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

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

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

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

.category-card {
  min-height: 185px;
  padding: 24px;
  color: var(--white);
  border-radius: 28px;
  background:
    radial-gradient(circle at 86% 18%, rgba(255, 201, 74, 0.42), transparent 34%),
    linear-gradient(135deg, var(--canyon-800), var(--forest-700));
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-card h3 {
  margin: 0 0 10px;
  font-size: 25px;
}

.category-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.75;
}

.category-card span {
  display: inline-flex;
  margin-top: 18px;
  color: var(--gold-300);
  font-weight: 900;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 72px 84px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(138, 92, 63, 0.1);
  background: rgba(255, 255, 255, 0.84);
  border-radius: 24px;
  box-shadow: 0 16px 34px rgba(92, 63, 47, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.rank-number {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  color: var(--canyon-900);
  font-weight: 900;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
}

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

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

.rank-info h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.rank-info p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--earth-600);
  font-size: 14px;
  line-height: 1.7;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 26px;
  padding: 14px;
  border: 1px solid rgba(138, 92, 63, 0.12);
  background: rgba(255, 255, 255, 0.82);
  border-radius: 24px;
  box-shadow: 0 14px 34px rgba(92, 63, 47, 0.08);
}

.filter-input {
  width: 100%;
  padding: 14px 16px;
  color: var(--canyon-900);
  border: 1px solid rgba(138, 92, 63, 0.14);
  outline: 0;
  background: var(--white);
  border-radius: 18px;
}

.filter-input:focus {
  border-color: var(--gold-500);
  box-shadow: 0 0 0 4px rgba(255, 180, 30, 0.16);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: flex-end;
}

.filter-chip {
  padding: 10px 13px;
  color: var(--earth-700);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  border: 0;
  border-radius: 999px;
  background: var(--sand-200);
}

.filter-chip.active,
.filter-chip:hover {
  color: var(--canyon-900);
  background: var(--gold-400);
}

.detail-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.58fr) minmax(300px, 0.72fr);
  gap: 28px;
  align-items: start;
}

.player-card,
.detail-card,
.sidebar-card {
  overflow: hidden;
  border: 1px solid rgba(138, 92, 63, 0.12);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 30px;
  box-shadow: var(--shadow-card);
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--black);
}

.player-shell video {
  width: 100%;
  height: 100%;
  cursor: pointer;
  background: var(--black);
}

.player-curtain {
  position: absolute;
  z-index: 4;
  inset: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.16)),
    var(--player-poster);
  background-size: cover;
  background-position: center;
}

.player-curtain.is-hidden {
  display: none;
}

.play-button {
  display: grid;
  width: 90px;
  height: 90px;
  place-items: center;
  color: var(--canyon-900);
  cursor: pointer;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

.play-button span {
  margin-left: 6px;
  font-size: 34px;
  line-height: 1;
}

.player-info,
.detail-body,
.sidebar-body {
  padding: 24px;
}

.player-info h1,
.detail-body h2,
.sidebar-body h2 {
  margin: 0 0 14px;
  color: var(--canyon-900);
}

.player-info p,
.detail-body p,
.sidebar-body p {
  color: var(--earth-700);
  line-height: 1.85;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.info-cell {
  padding: 14px;
  border-radius: 18px;
  background: var(--sand-100);
}

.info-cell span {
  display: block;
  color: var(--earth-600);
  font-size: 13px;
}

.info-cell strong {
  display: block;
  margin-top: 5px;
  color: var(--canyon-900);
}

.sidebar-poster {
  overflow: hidden;
  border-radius: 24px;
}

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

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

.search-panel {
  max-width: 880px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  backdrop-filter: blur(15px);
}

.search-panel form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.search-panel input {
  width: 100%;
  padding: 16px 18px;
  color: var(--canyon-900);
  border: 0;
  outline: 0;
  border-radius: 18px;
  background: var(--white);
}

.search-panel button {
  min-width: 120px;
}

.search-result-head {
  margin-bottom: 24px;
}

.search-result-head h2 {
  margin: 0 0 8px;
  color: var(--canyon-900);
}

.search-result-head p {
  margin: 0;
  color: var(--earth-600);
}

.site-footer {
  padding: 44px 0;
  color: rgba(255, 255, 255, 0.74);
  background: linear-gradient(135deg, var(--canyon-950), var(--forest-700));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr;
  gap: 28px;
}

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

.footer-grid p {
  margin: 0;
  line-height: 1.8;
}

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

.footer-links a:hover {
  color: var(--gold-300);
}

.footer-bottom {
  margin-top: 28px;
  padding-top: 22px;
  color: rgba(255, 255, 255, 0.52);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

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

  .hero-content,
  .detail-wrap {
    grid-template-columns: 1fr;
  }

  .hero-poster-wrap {
    display: none;
  }
}

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

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

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

  .mobile-menu .search-pill {
    display: flex;
    width: 100%;
  }

  .hero,
  .hero-content {
    min-height: 650px;
  }

  .hero-content {
    padding-top: 112px;
  }

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

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

  .filter-bar {
    grid-template-columns: 1fr;
  }

  .filter-chips {
    justify-content: flex-start;
  }
}

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

  .logo {
    font-size: 20px;
  }

  .logo-mark {
    width: 38px;
    height: 38px;
  }

  .hero,
  .hero-content {
    min-height: 620px;
  }

  .hero-title {
    font-size: 42px;
  }

  .hero-desc,
  .page-hero p {
    font-size: 15px;
  }

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

  .rank-item {
    grid-template-columns: 54px 72px minmax(0, 1fr);
    gap: 12px;
  }

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

  .btn,
  .search-panel button {
    width: 100%;
  }
}
