:root {
  color-scheme: light;
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-500: #78716c;
  --stone-600: #57534e;
  --stone-700: #44403c;
  --stone-800: #292524;
  --stone-900: #1c1917;
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-300: #fcd34d;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --orange-600: #ea580c;
  --white: #ffffff;
  --shadow: 0 10px 28px rgba(28, 25, 23, 0.12);
  --shadow-soft: 0 8px 20px rgba(28, 25, 23, 0.08);
  --radius: 18px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--stone-50);
  color: var(--stone-800);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 251, 235, 0.96);
  border-bottom: 1px solid rgba(217, 119, 6, 0.22);
  box-shadow: 0 4px 18px rgba(146, 64, 14, 0.08);
  backdrop-filter: blur(16px);
}

.nav-shell {
  max-width: 1280px;
  height: 68px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--amber-700);
  letter-spacing: 0.02em;
}

.brand-mark,
.footer-brand span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  box-shadow: 0 8px 18px rgba(217, 119, 6, 0.25);
}

.brand-name {
  font-size: 20px;
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.nav-link,
.mobile-link {
  color: #92400e;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease;
}

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

.header-search,
.mobile-search,
.search-box {
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(217, 119, 6, 0.22);
  border-radius: 999px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

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

.header-search input,
.mobile-search input,
.search-box input {
  width: 210px;
  padding: 10px 12px 10px 16px;
}

.header-search button,
.mobile-search button,
.search-box button,
.primary-button,
.secondary-button,
.pager button {
  border: 0;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search button,
.mobile-search button,
.search-box button,
.primary-button {
  padding: 10px 18px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
}

.header-search button:hover,
.mobile-search button:hover,
.search-box button:hover,
.primary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(217, 119, 6, 0.24);
}

.secondary-button {
  padding: 10px 18px;
  color: var(--amber-700);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(217, 119, 6, 0.25);
  border-radius: 999px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: var(--amber-700);
  background: rgba(255, 255, 255, 0.75);
}

.mobile-panel {
  display: none;
  padding: 14px 24px 20px;
  border-top: 1px solid rgba(217, 119, 6, 0.18);
  background: var(--amber-50);
}

.mobile-panel.open {
  display: grid;
  gap: 12px;
}

.hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 34px 24px 28px;
}

.hero-slider {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: 28px;
  background: var(--stone-900);
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.65fr);
  gap: 28px;
  padding: 46px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.46;
  filter: saturate(1.08);
  transform: scale(1.02);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(28, 25, 23, 0.9), rgba(28, 25, 23, 0.55) 50%, rgba(28, 25, 23, 0.25)), linear-gradient(0deg, rgba(28, 25, 23, 0.76), transparent 48%);
}

.hero-copy,
.hero-poster-wrap {
  position: relative;
  z-index: 2;
}

.hero-copy {
  align-self: end;
  color: var(--white);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 7px 12px;
  color: var(--amber-100);
  border-radius: 999px;
  background: rgba(217, 119, 6, 0.45);
  backdrop-filter: blur(10px);
}

.hero h1,
.hero h2 {
  max-width: 760px;
  margin: 0 0 14px;
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 700px;
  margin: 0 0 24px;
  color: #e7e5e4;
  font-size: 17px;
  line-height: 1.8;
}

.hero-tags,
.detail-tags,
.quick-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.detail-tags span,
.quick-tags a,
.movie-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.hero-tags span {
  padding: 7px 11px;
  color: var(--amber-100);
  background: rgba(255, 251, 235, 0.16);
  border: 1px solid rgba(255, 251, 235, 0.18);
}

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

.hero-actions .primary-button,
.hero-actions .secondary-button {
  border-radius: 999px;
}

.hero-poster-wrap {
  align-self: center;
  justify-self: end;
  width: min(360px, 100%);
}

.hero-poster-card {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
  transform: rotate(2deg);
}

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

.hero-controls {
  position: absolute;
  right: 34px;
  bottom: 30px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-controls button {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
}

.hero-dots {
  display: flex;
  gap: 8px;
  margin-left: 6px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}

.hero-dot.active {
  width: 28px;
  background: var(--amber-500);
}

.quick-cats {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 24px;
}

.quick-cats-inner {
  display: grid;
  grid-template-columns: 1.1fr 1.9fr;
  gap: 18px;
  align-items: center;
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--amber-100), #ffedd5);
  box-shadow: var(--shadow-soft);
}

.quick-cats h2 {
  margin: 0 0 6px;
  font-size: 24px;
}

.quick-cats p {
  margin: 0;
  color: var(--stone-600);
}

.quick-tags a {
  padding: 9px 13px;
  color: var(--amber-700);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(217, 119, 6, 0.16);
}

.content-section,
.category-shell,
.detail-shell,
.search-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 44px 24px;
}

.section-muted,
.full-muted {
  background: var(--stone-100);
}

.full-muted .content-section {
  padding-top: 44px;
  padding-bottom: 44px;
}

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

.section-head h2,
.page-head h1,
.detail-info h1 {
  margin: 0;
  color: var(--stone-800);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-head h2 {
  font-size: clamp(26px, 4vw, 38px);
}

.page-head h1,
.detail-info h1 {
  font-size: clamp(30px, 5vw, 48px);
}

.section-head p,
.page-head p {
  max-width: 680px;
  margin: 8px 0 0;
  color: var(--stone-600);
  line-height: 1.8;
}

.section-more {
  flex: 0 0 auto;
  color: var(--amber-600);
  font-weight: 800;
}

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--stone-200);
}

.poster-link img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.25s ease;
}

.movie-card:hover .poster-shade {
  background: rgba(0, 0, 0, 0.22);
}

.poster-play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--white);
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.92);
  transform: translate(-50%, -50%) scale(0.2);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  backdrop-filter: blur(8px);
}

.movie-card:hover .poster-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.year-badge,
.rank-badge {
  position: absolute;
  top: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 9px;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
}

.year-badge {
  right: 10px;
  background: rgba(28, 25, 23, 0.72);
}

.rank-badge {
  left: 10px;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
}

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

.movie-title {
  display: block;
  overflow: hidden;
  margin-bottom: 8px;
  color: var(--stone-800);
  font-size: 16px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.movie-title:hover {
  color: var(--amber-600);
}

.movie-card-body p {
  display: -webkit-box;
  min-height: 42px;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--stone-600);
  font-size: 13px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.card-meta span {
  padding: 5px 8px;
  border-radius: 8px;
  color: var(--stone-600);
  background: var(--stone-100);
  font-size: 12px;
  font-weight: 700;
}

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

.category-card {
  min-height: 190px;
  padding: 22px;
  border-radius: 22px;
  color: var(--stone-800);
  background: linear-gradient(135deg, var(--white), var(--amber-50));
  border: 1px solid rgba(217, 119, 6, 0.16);
  box-shadow: var(--shadow-soft);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

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

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

.category-card span {
  color: var(--amber-600);
  font-weight: 800;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  padding: 16px;
  border: 1px solid rgba(217, 119, 6, 0.14);
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.filter-control {
  flex: 1 1 190px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--stone-100);
}

.filter-control label {
  flex: 0 0 auto;
  color: var(--stone-500);
  font-size: 13px;
  font-weight: 800;
}

.filter-control input,
.filter-control select {
  width: 100%;
}

.search-state {
  min-height: 24px;
  margin: -8px 0 20px;
  color: var(--stone-600);
  font-weight: 700;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 72px 98px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.ranking-no {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 14px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  font-weight: 900;
}

.ranking-row img {
  width: 98px;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  object-fit: cover;
}

.ranking-title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 900;
}

.ranking-row p {
  margin: 0;
  color: var(--stone-600);
  line-height: 1.7;
}

.ranking-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.ranking-meta span {
  padding: 5px 8px;
  border-radius: 8px;
  color: var(--amber-700);
  background: var(--amber-100);
  font-size: 12px;
  font-weight: 800;
}

.detail-shell {
  max-width: 1180px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--stone-600);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--amber-600);
  font-weight: 800;
}

.player-card,
.detail-info,
.detail-section {
  overflow: hidden;
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.player-wrap {
  position: relative;
  background: #000;
}

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

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

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

.play-overlay span {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  padding-left: 5px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.95);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.35);
  font-size: 34px;
}

.detail-info {
  padding: 30px;
}

.detail-meta,
.movie-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 20px;
}

.detail-meta span {
  padding: 8px 11px;
  border-radius: 10px;
  color: var(--stone-600);
  background: var(--stone-100);
  font-weight: 800;
}

.movie-tags span,
.detail-tags span {
  padding: 7px 11px;
  color: var(--amber-700);
  background: var(--amber-100);
}

.detail-section {
  margin-top: 22px;
  padding: 28px;
}

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

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

.review-box {
  padding: 20px;
  border-radius: 18px;
  background: var(--amber-50);
  color: var(--stone-700);
  line-height: 1.9;
}

.pager {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.pager button {
  padding: 10px 16px;
  border-radius: 12px;
  color: var(--stone-700);
  background: var(--white);
  border: 1px solid var(--stone-200);
}

.pager button.active,
.pager button:hover {
  color: var(--white);
  background: var(--amber-600);
}

.site-footer {
  margin-top: 44px;
  color: var(--stone-300, #d6d3d1);
  background: var(--stone-800);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 42px 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}

.footer-main p {
  max-width: 540px;
  color: #a8a29e;
  line-height: 1.8;
}

.footer-group h2 {
  margin: 0 0 14px;
  color: var(--amber-100);
  font-size: 16px;
}

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

.footer-group li {
  margin: 8px 0;
}

.footer-group a:hover {
  color: var(--amber-300);
}

.footer-bottom {
  padding: 18px 24px;
  text-align: center;
  color: #a8a29e;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

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

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

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

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

  .nav-shell {
    padding: 0 16px;
  }

  .hero {
    padding: 20px 16px;
  }

  .hero-slider {
    min-height: 650px;
    border-radius: 22px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    padding: 28px;
  }

  .hero-poster-wrap {
    justify-self: start;
    width: min(240px, 62vw);
  }

  .hero-controls {
    left: 28px;
    right: auto;
  }

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

  .section-head,
  .page-head {
    display: block;
  }

  .section-more {
    display: inline-flex;
    margin-top: 12px;
  }

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

  .ranking-row {
    grid-template-columns: 48px 82px minmax(0, 1fr);
  }

  .ranking-row .primary-button {
    grid-column: 2 / -1;
    justify-self: start;
    border-radius: 999px;
  }
}

@media (max-width: 560px) {
  .brand-name {
    font-size: 18px;
  }

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

  .content-section,
  .category-shell,
  .detail-shell,
  .search-shell,
  .quick-cats {
    padding-left: 14px;
    padding-right: 14px;
  }

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

  .movie-title {
    font-size: 14px;
  }

  .detail-info,
  .detail-section {
    padding: 20px;
  }

  .hero h1,
  .hero h2 {
    font-size: 32px;
  }

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