:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --amber-800: #92400e;
  --amber-900: #78350f;
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-300: #d6d3d1;
  --stone-500: #78716c;
  --stone-600: #57534e;
  --stone-700: #44403c;
  --stone-800: #292524;
  --stone-900: #1c1917;
  --shadow-soft: 0 18px 45px rgba(41, 37, 36, 0.14);
  --shadow-card: 0 12px 26px rgba(41, 37, 36, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--stone-50);
  color: var(--stone-800);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}

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

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

[hidden] {
  display: none !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 251, 235, 0.92);
  border-bottom: 1px solid rgba(217, 119, 6, 0.18);
  box-shadow: 0 8px 18px rgba(120, 53, 15, 0.08);
  backdrop-filter: blur(14px);
}

.nav-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--amber-900);
  font-weight: 800;
  font-size: 22px;
  white-space: nowrap;
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber-500), var(--amber-700));
  color: #fff;
  box-shadow: 0 8px 18px rgba(217, 119, 6, 0.26);
  font-size: 13px;
}

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

.nav-link,
.mobile-link {
  color: var(--amber-800);
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

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

.header-search,
.mobile-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input,
.big-search input,
.filter-bar input,
.filter-bar select,
.search-page-form input {
  width: 100%;
  border: 1px solid rgba(217, 119, 6, 0.22);
  border-radius: 999px;
  background: #fff;
  color: var(--stone-800);
  outline: none;
  padding: 10px 15px;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.big-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus,
.search-page-form input:focus {
  border-color: var(--amber-500);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

.header-search button,
.mobile-search button,
.big-search button,
.search-page-form button {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  background: var(--amber-600);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.header-search {
  width: 230px;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--amber-900);
  font-size: 26px;
  cursor: pointer;
}

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

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

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

.hero-track,
.hero-slide {
  min-height: 640px;
}

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

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

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(28, 25, 23, 0.92), rgba(28, 25, 23, 0.68), rgba(28, 25, 23, 0.28)), linear-gradient(0deg, rgba(28, 25, 23, 0.72), rgba(28, 25, 23, 0.08));
}

.hero-inner {
  position: relative;
  z-index: 2;
  min-height: 640px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px 20px 88px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 380px;
  gap: 52px;
  align-items: center;
}

.hero-copy h1 {
  max-width: 760px;
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -1.5px;
}

.hero-copy h2 {
  margin: 0 0 14px;
  color: var(--amber-100);
  font-size: clamp(24px, 3vw, 36px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--amber-300, #fcd34d);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-desc,
.page-hero p,
.detail-lead {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
}

.hero-tags,
.tag-row,
.meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.hero-tags span,
.tag-row span,
.meta-chips span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(245, 158, 11, 0.18);
  color: var(--amber-100);
  font-weight: 700;
  font-size: 13px;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

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

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

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

.btn-primary {
  background: var(--amber-500);
  color: #fff;
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.28);
}

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

.hero-poster {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
  min-height: 510px;
  background: rgba(255, 255, 255, 0.12);
}

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

.hero-poster:hover img {
  transform: scale(1.05);
}

.hero-poster span,
.featured-play {
  position: absolute;
  right: 22px;
  top: 22px;
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.92);
  color: #fff;
  box-shadow: 0 14px 30px rgba(245, 158, 11, 0.26);
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(28, 25, 23, 0.52);
  color: #fff;
  font-size: 34px;
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

.hero-dot {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
}

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

.search-band {
  max-width: 1180px;
  margin: -42px auto 0;
  position: relative;
  z-index: 8;
  padding: 0 20px;
}

.big-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 26px;
  padding: 14px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.big-search input {
  border-radius: 18px;
  padding: 14px 18px;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.quick-links a {
  border-radius: 999px;
  background: var(--amber-100);
  color: var(--amber-800);
  padding: 8px 14px;
  font-weight: 800;
}

.content-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 66px 20px 0;
}

.tone-section {
  margin-top: 68px;
  padding: 0 0 66px;
  background: linear-gradient(135deg, var(--amber-100), #ffedd5);
}

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

.section-head h2 {
  margin: 0;
  color: var(--stone-800);
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.2;
}

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

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

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

.movie-card {
  display: block;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 38px rgba(41, 37, 36, 0.18);
}

.poster-box {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--stone-200);
}

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

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

.poster-mask {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(0, 0, 0, 0);
  opacity: 0;
  transition: opacity 0.22s ease, background 0.22s ease;
}

.poster-mask span {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.9);
}

.movie-card:hover .poster-mask {
  opacity: 1;
  background: rgba(0, 0, 0, 0.24);
}

.type-badge,
.year-badge {
  position: absolute;
  top: 10px;
  border-radius: 8px;
  padding: 3px 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.type-badge {
  left: 10px;
  background: var(--amber-600);
}

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

.card-body {
  display: grid;
  gap: 7px;
  padding: 14px;
}

.card-body strong {
  overflow: hidden;
  color: var(--stone-800);
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.2s ease;
}

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

.card-desc {
  display: -webkit-box;
  min-height: 44px;
  overflow: hidden;
  color: var(--stone-600);
  font-size: 13px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--stone-500);
  font-size: 12px;
}

.card-meta em {
  border-radius: 8px;
  background: var(--stone-100);
  padding: 3px 7px;
  font-style: normal;
}

.featured-card {
  position: relative;
  display: block;
  min-height: 420px;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
}

.featured-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.featured-card:hover img {
  transform: scale(1.05);
}

.featured-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(28, 25, 23, 0.88), rgba(28, 25, 23, 0.28), rgba(28, 25, 23, 0.08));
}

.featured-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  gap: 10px;
  padding: 36px;
  color: #fff;
}

.featured-content strong {
  font-size: clamp(27px, 4vw, 42px);
  line-height: 1.15;
}

.feature-meta {
  display: flex;
  gap: 10px;
}

.feature-meta em {
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.88);
  padding: 5px 11px;
  font-style: normal;
  font-size: 13px;
  font-weight: 800;
}

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

.category-tile,
.category-overview-card {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(217, 119, 6, 0.15);
  border-radius: 22px;
  background: #fff;
  padding: 22px;
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile:hover,
.category-overview-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(41, 37, 36, 0.16);
}

.category-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--amber-100);
  color: var(--amber-700);
  font-size: 12px;
}

.category-tile strong,
.category-main-link strong {
  color: var(--stone-800);
  font-size: 20px;
}

.category-tile span,
.category-main-link span,
.category-overview-card li a {
  color: var(--stone-600);
}

.category-tile em {
  display: grid;
  gap: 4px;
  font-style: normal;
  font-size: 13px;
}

.category-tile em a,
.category-overview-card li a:hover {
  color: var(--amber-700);
}

.category-overview-card ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
}

.category-main-link {
  display: grid;
  gap: 10px;
}

.rank-list,
.ranking-list {
  display: grid;
  gap: 12px;
}

.rank-row,
.ranking-card {
  display: grid;
  align-items: center;
  gap: 14px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-row {
  grid-template-columns: 54px 66px 1fr auto;
  padding: 10px 14px;
}

.ranking-card {
  grid-template-columns: 62px 88px 1fr auto;
  padding: 14px;
}

.rank-row:hover,
.ranking-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(41, 37, 36, 0.15);
}

.rank-no,
.ranking-number {
  color: var(--amber-600);
  font-size: 22px;
  font-weight: 900;
  text-align: center;
}

.rank-row img,
.ranking-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  object-fit: cover;
}

.rank-info,
.ranking-copy {
  display: grid;
  gap: 4px;
}

.rank-info strong,
.ranking-copy strong {
  color: var(--stone-800);
  font-size: 18px;
}

.rank-info em,
.ranking-copy em,
.ranking-copy span {
  color: var(--stone-600);
  font-style: normal;
  font-size: 13px;
}

.rank-score,
.ranking-score {
  border-radius: 999px;
  background: var(--amber-100);
  color: var(--amber-800);
  padding: 6px 11px;
  font-weight: 900;
}

.page-hero,
.detail-hero {
  max-width: 1180px;
  margin: 34px auto 0;
  padding: 54px 20px;
  border-radius: 0 0 30px 30px;
}

.page-hero {
  background: linear-gradient(135deg, var(--stone-900), var(--amber-900));
  color: #fff;
}

.compact-hero,
.category-hero,
.ranking-hero {
  border-radius: 30px;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.12;
}

.filter-bar {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 12px;
  margin-bottom: 24px;
}

.filter-bar select {
  border-radius: 18px;
  background: #fff;
}

.breadcrumb {
  max-width: 1180px;
  margin: 24px auto 0;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--stone-600);
  font-size: 14px;
}

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

.detail-hero {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 36px;
  align-items: center;
  background: linear-gradient(135deg, rgba(28, 25, 23, 0.98), rgba(120, 53, 15, 0.94));
  color: #fff;
  border-radius: 30px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}

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

.detail-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.12;
}

.slim-actions .btn-ghost {
  color: var(--amber-900);
  background: var(--amber-100);
  border-color: rgba(245, 158, 11, 0.24);
}

.detail-hero .slim-actions .btn-ghost,
.page-hero .slim-actions .btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.player-section h2,
.article-section h2 {
  margin: 0 0 18px;
  color: var(--stone-800);
  font-size: 28px;
}

.movie-player {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 16 / 9;
}

.movie-player video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
  object-fit: contain;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  justify-content: center;
  border: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.64), rgba(0, 0, 0, 0.18));
  color: #fff;
  cursor: pointer;
}

.play-circle {
  width: 72px;
  height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--amber-500);
  box-shadow: 0 16px 38px rgba(245, 158, 11, 0.32);
  font-size: 24px;
}

.player-overlay strong {
  max-width: 80%;
  font-size: clamp(20px, 4vw, 34px);
  line-height: 1.2;
}

.movie-player.is-playing .player-overlay {
  display: none;
}

.article-section {
  display: grid;
  gap: 16px;
}

.article-section p {
  margin: 0;
  border-radius: 20px;
  background: #fff;
  color: var(--stone-700);
  padding: 22px;
  box-shadow: var(--shadow-card);
}

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

.search-page-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-bottom: 24px;
}

.search-page-form input {
  border-radius: 18px;
  padding: 14px 18px;
}

.site-footer {
  margin-top: 82px;
  background: var(--stone-800);
  color: var(--stone-300);
}

.footer-grid {
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 20px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 34px;
}

.footer-logo {
  color: var(--amber-100);
}

.footer-brand p {
  max-width: 560px;
  color: var(--stone-400);
}

.site-footer h2 {
  margin: 0 0 12px;
  color: var(--amber-100);
  font-size: 17px;
}

.site-footer ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a:hover {
  color: var(--amber-300, #fcd34d);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 20px;
  text-align: center;
  color: var(--stone-400);
}

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

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

  .hero-inner {
    grid-template-columns: 1fr 300px;
  }
}

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

  .menu-toggle {
    display: inline-flex;
  }

  .hero,
  .hero-track,
  .hero-slide,
  .hero-inner {
    min-height: 720px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 54px;
  }

  .hero-poster {
    display: none;
  }

  .hero-control {
    top: auto;
    bottom: 22px;
  }

  .hero-prev {
    left: 20px;
  }

  .hero-next {
    right: 20px;
  }

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

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

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

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

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

@media (max-width: 640px) {
  .nav-wrap {
    min-height: 62px;
  }

  .site-logo {
    font-size: 18px;
  }

  .hero-copy h1 {
    font-size: 34px;
  }

  .search-band {
    margin-top: -28px;
  }

  .big-search,
  .search-page-form,
  .filter-bar {
    grid-template-columns: 1fr;
  }

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

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

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

  .rank-row {
    grid-template-columns: 46px 58px 1fr;
  }

  .ranking-card {
    grid-template-columns: 46px 72px 1fr;
  }

  .rank-score,
  .ranking-score {
    display: none;
  }

  .page-hero,
  .detail-hero {
    margin-top: 20px;
    padding: 36px 16px;
    border-radius: 22px;
  }

  .content-section {
    padding-top: 48px;
  }

  .featured-card {
    min-height: 360px;
  }

  .featured-content {
    padding: 24px;
  }
}
