: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-200: #fde68a;
  --amber-300: #fcd34d;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-800: #92400e;
  --amber-900: #78350f;
  --white: #ffffff;
  --black: #000000;
  --shadow: 0 18px 45px rgba(28, 25, 23, 0.12);
  --shadow-soft: 0 10px 25px rgba(28, 25, 23, 0.08);
  --radius: 18px;
  --radius-sm: 12px;
  --container: min(1180px, calc(100% - 32px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--amber-50) 0%, var(--stone-50) 42%, #ffffff 100%);
  color: var(--stone-800);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", 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 {
  border: 0;
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  color: var(--white);
  background: linear-gradient(90deg, rgba(120, 53, 15, 0.98), rgba(146, 64, 14, 0.96));
  box-shadow: 0 12px 30px rgba(120, 53, 15, 0.22);
  backdrop-filter: blur(16px);
}

.nav-wrap {
  width: var(--container);
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: var(--amber-900);
  background: linear-gradient(135deg, var(--amber-100), var(--amber-300));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.brand-text {
  font-size: 18px;
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: 10px;
  font-size: 15px;
}

.nav-link {
  position: relative;
  opacity: 0.9;
  transition: color 0.25s ease, opacity 0.25s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -9px;
  height: 2px;
  border-radius: 999px;
  background: var(--amber-200);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--amber-100);
  opacity: 1;
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

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

.nav-search input,
.mobile-search input,
.big-search input {
  width: 210px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 0 16px;
  color: var(--white);
  outline: none;
  background: rgba(255, 255, 255, 0.12);
  transition: width 0.25s ease, border 0.25s ease, background 0.25s ease;
}

.nav-search input::placeholder,
.mobile-search input::placeholder,
.big-search input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.nav-search input:focus {
  width: 280px;
  border-color: var(--amber-200);
  background: rgba(255, 255, 255, 0.18);
}

.nav-search button,
.mobile-search button,
.big-search button {
  height: 38px;
  padding: 0 15px;
  border-radius: 999px;
  color: var(--amber-900);
  background: var(--amber-200);
  font-weight: 700;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--white);
  border-radius: 999px;
}

.mobile-panel {
  width: var(--container);
  margin: 0 auto;
  padding: 0 0 18px;
}

.mobile-panel a,
.mobile-search {
  display: flex;
  align-items: center;
  min-height: 42px;
  color: var(--white);
}

.mobile-search {
  gap: 8px;
  margin-bottom: 8px;
}

.mobile-search input {
  width: 100%;
}

.hero-carousel {
  position: relative;
  height: min(66vw, 600px);
  min-height: 500px;
  overflow: hidden;
  background: var(--stone-900);
}

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

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

.hero-slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.04);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.28) 48%, rgba(0, 0, 0, 0.12)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.08) 56%, rgba(0, 0, 0, 0.18));
}

.hero-content {
  position: absolute;
  left: max(32px, calc((100vw - 1180px) / 2));
  right: max(32px, calc((100vw - 1180px) / 2));
  bottom: 72px;
  max-width: 760px;
  color: var(--white);
}

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

.hero-kicker span,
.detail-meta span,
.card-meta span,
.rank-meta span {
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--amber-100);
  background: rgba(120, 53, 15, 0.72);
  backdrop-filter: blur(8px);
  font-size: 13px;
}

.hero-content h1 {
  margin: 16px 0 12px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.045em;
  text-shadow: 0 16px 30px rgba(0, 0, 0, 0.35);
}

.hero-content p {
  max-width: 680px;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

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

.hero-tags span,
.card-tags span,
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--amber-900);
  background: var(--amber-100);
  font-size: 13px;
  font-weight: 700;
}

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

.hero-actions.in-page {
  margin-top: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  padding: 0 20px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

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

.btn-primary {
  color: var(--amber-900);
  background: linear-gradient(135deg, var(--amber-100), var(--amber-300));
  box-shadow: 0 16px 30px rgba(245, 158, 11, 0.25);
}

.btn-ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.3);
  transform: translateY(-50%);
  font-size: 36px;
  line-height: 1;
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dot {
  width: 34px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
}

.hero-dot.is-active {
  background: var(--amber-200);
}

.quick-entry,
.content-section,
.footer-inner {
  width: var(--container);
  margin-left: auto;
  margin-right: auto;
}

.quick-entry {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: -34px;
  position: relative;
  z-index: 10;
}

.quick-entry a {
  min-height: 98px;
  border-radius: var(--radius);
  padding: 20px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-900), var(--stone-800));
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.quick-entry a:hover,
.movie-card:hover,
.category-card:hover,
.category-overview-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 55px rgba(120, 53, 15, 0.2);
}

.quick-entry strong,
.quick-entry span {
  display: block;
}

.quick-entry strong {
  font-size: 21px;
}

.quick-entry span {
  color: var(--amber-100);
}

.content-section {
  padding: 54px 0 30px;
}

.alt-section {
  width: 100%;
  max-width: none;
  padding-left: max(16px, calc((100vw - 1180px) / 2));
  padding-right: max(16px, calc((100vw - 1180px) / 2));
  background: rgba(254, 243, 199, 0.45);
}

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

.section-heading.narrow {
  width: var(--container);
  margin-left: auto;
  margin-right: auto;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--amber-600);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.section-heading h2,
.search-title h2,
.detail-text h2 {
  margin: 0;
  color: var(--stone-900);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

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

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

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

.movie-card[hidden],
.rank-item[hidden] {
  display: none;
}

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

.poster-link img,
.detail-cover img,
.category-overview-card img,
.rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.movie-card:hover .poster-link img,
.category-overview-card:hover img {
  transform: scale(1.05);
}

.poster-link img,
.category-overview-card img {
  transition: transform 0.35s ease;
}

.poster-badge {
  position: absolute;
  right: 10px;
  top: 10px;
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--amber-900);
  background: rgba(254, 243, 199, 0.92);
  font-weight: 900;
  font-size: 12px;
}

.card-content {
  padding: 16px;
}

.card-meta span {
  color: var(--amber-800);
  background: var(--amber-50);
  font-size: 12px;
}

.card-content h3 {
  margin: 10px 0 6px;
  color: var(--stone-900);
  font-size: 18px;
  line-height: 1.28;
}

.card-content p {
  display: -webkit-box;
  min-height: 46px;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--stone-600);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card.is-compact .card-content p {
  display: none;
}

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

.category-card,
.category-overview-card {
  border-radius: var(--radius);
  padding: 22px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card span,
.category-overview-card span {
  color: var(--amber-600);
  font-weight: 900;
  font-size: 13px;
}

.category-card strong,
.category-overview-card strong {
  display: block;
  margin: 6px 0;
  font-size: 24px;
  line-height: 1.2;
}

.category-card em,
.category-overview-card p {
  color: var(--stone-600);
  font-style: normal;
}

.category-overview-card {
  padding: 0;
  overflow: hidden;
}

.category-overview-card img {
  height: 190px;
  background: var(--stone-200);
}

.category-overview-card span,
.category-overview-card strong,
.category-overview-card p {
  margin-left: 20px;
  margin-right: 20px;
}

.category-overview-card span {
  display: block;
  margin-top: 18px;
}

.category-overview-card p {
  margin-bottom: 20px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 84px max(16px, calc((100vw - 1180px) / 2));
  color: var(--white);
  background:
    radial-gradient(circle at 12% 20%, rgba(252, 211, 77, 0.28), transparent 32%),
    linear-gradient(135deg, var(--amber-900), var(--stone-900));
}

.page-hero.slim-hero {
  padding-top: 70px;
  padding-bottom: 70px;
}

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

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

.filter-toolbar {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 14px;
  margin-bottom: 24px;
  padding: 16px;
  border: 1px solid var(--stone-200);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.filter-toolbar label {
  display: grid;
  gap: 6px;
  color: var(--stone-600);
  font-weight: 800;
  font-size: 13px;
}

.filter-toolbar input,
.filter-toolbar select {
  width: 100%;
  height: 42px;
  border: 1px solid var(--stone-200);
  border-radius: 12px;
  padding: 0 12px;
  color: var(--stone-800);
  background: var(--stone-50);
  outline: none;
}

.filter-toolbar input:focus,
.filter-toolbar select:focus {
  border-color: var(--amber-500);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.13);
}

.rank-panel {
  display: grid;
  gap: 14px;
}

.rank-item {
  display: grid;
  grid-template-columns: 56px 74px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 112px;
  border: 1px solid var(--stone-200);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.rank-number {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  color: var(--amber-900);
  background: var(--amber-100);
  font-size: 20px;
  font-weight: 900;
}

.rank-thumb {
  display: block;
  width: 74px;
  height: 96px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--stone-200);
}

.rank-info h3 {
  margin: 0 0 4px;
  font-size: 19px;
}

.rank-info p {
  margin: 0 0 8px;
  color: var(--stone-600);
}

.rank-meta span {
  color: var(--amber-800);
  background: var(--amber-50);
}

.rank-watch {
  padding: 9px 15px;
  border-radius: 999px;
  color: var(--white);
  background: var(--amber-800);
  font-weight: 800;
}

.detail-hero {
  position: relative;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 36px;
  align-items: end;
  min-height: 560px;
  padding: 120px max(16px, calc((100vw - 1180px) / 2)) 56px;
  color: var(--white);
  background: var(--stone-900);
  overflow: hidden;
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(28, 25, 23, 0.96), rgba(28, 25, 23, 0.74) 48%, rgba(28, 25, 23, 0.32)),
    linear-gradient(0deg, rgba(28, 25, 23, 0.94), rgba(28, 25, 23, 0.12));
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(3px) saturate(1.1);
  transform: scale(1.05);
  opacity: 0.7;
}

.detail-cover,
.detail-intro {
  position: relative;
  z-index: 2;
}

.detail-cover {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.36);
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, var(--amber-100), var(--stone-700));
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--amber-100);
  font-size: 14px;
}

.detail-intro h1 {
  margin: 0 0 12px;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.detail-line {
  max-width: 760px;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

.detail-meta span {
  color: var(--amber-100);
  background: rgba(120, 53, 15, 0.76);
}

.chip-row {
  margin-top: 16px;
}

.player-section {
  padding: 54px 0 24px;
  background: var(--stone-900);
}

.player-section .section-heading h2 {
  color: var(--white);
}

.video-shell {
  position: relative;
  width: var(--container);
  margin: 0 auto;
  overflow: hidden;
  border-radius: 24px;
  aspect-ratio: 16 / 9;
  background: var(--black);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.34);
}

.movie-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--black);
}

.play-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  gap: 12px;
  color: var(--white);
  background:
    radial-gradient(circle at center, rgba(245, 158, 11, 0.26), transparent 34%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0.24));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.video-shell.is-playing .play-cover {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.play-symbol {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 999px;
  color: var(--amber-900);
  background: var(--amber-200);
  box-shadow: 0 18px 40px rgba(245, 158, 11, 0.32);
  font-size: 34px;
  text-indent: 5px;
}

.play-cover strong {
  font-size: 20px;
}

.detail-text-section {
  padding-top: 44px;
}

.detail-text {
  max-width: 900px;
  margin: 0 auto;
  padding: 28px;
  border: 1px solid var(--stone-200);
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.detail-text h2 + p {
  margin-top: 8px;
}

.detail-text p {
  margin: 0 0 24px;
  color: var(--stone-600);
  font-size: 17px;
  text-align: justify;
}

.detail-text p:last-child {
  margin-bottom: 0;
}

.search-hero .big-search {
  display: flex;
  gap: 10px;
  max-width: 620px;
  margin-top: 24px;
}

.big-search input {
  width: 100%;
  height: 48px;
}

.big-search button {
  height: 48px;
  padding: 0 22px;
}

.search-title {
  margin-bottom: 22px;
}

.search-title p {
  color: var(--stone-600);
}

.site-footer {
  margin-top: 40px;
  color: rgba(255, 255, 255, 0.82);
  background: var(--stone-900);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 0;
}

.footer-inner p {
  margin: 4px 0 0;
}

.footer-links {
  display: flex;
  gap: 18px;
  font-weight: 800;
}

@media (max-width: 1080px) {
  .desktop-nav {
    gap: 12px;
    font-size: 14px;
  }

  .nav-search input {
    width: 160px;
  }

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

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

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .hero-carousel {
    height: 560px;
    min-height: 520px;
  }

  .hero-content {
    left: 20px;
    right: 20px;
    bottom: 78px;
  }

  .hero-arrow {
    display: none;
  }

  .quick-entry,
  .movie-grid,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .rank-item {
    grid-template-columns: 44px 64px minmax(0, 1fr);
  }

  .rank-watch {
    grid-column: 3;
    width: fit-content;
  }

  .detail-hero {
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 20px;
    padding-top: 96px;
    min-height: 460px;
  }
}

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

  .brand-text {
    font-size: 16px;
  }

  .hero-carousel {
    height: 580px;
  }

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

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

  .quick-entry,
  .movie-grid,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .quick-entry {
    margin-top: 16px;
  }

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

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

  .detail-cover {
    width: 58%;
    max-width: 220px;
  }

  .detail-intro h1 {
    font-size: 34px;
  }

  .search-hero .big-search {
    flex-direction: column;
  }

  .big-search button {
    width: 100%;
  }
}
