:root {
  --amber-50: #fff7ed;
  --amber-100: #ffedd5;
  --amber-200: #fed7aa;
  --amber-300: #fdba74;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --amber-800: #92400e;
  --amber-900: #78350f;
  --orange-600: #ea580c;
  --brown-950: #2a1204;
  --text: #2f2618;
  --muted: #786a58;
  --line: rgba(146, 64, 14, 0.16);
  --card: rgba(255, 255, 255, 0.86);
  --shadow: 0 22px 60px rgba(120, 53, 15, 0.16);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.18), transparent 30rem),
    linear-gradient(180deg, #fffaf4 0%, #fff7ed 48%, #fff 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 250, 244, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.header-inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--amber-700), var(--orange-600));
  box-shadow: 0 14px 30px rgba(217, 119, 6, 0.28);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 22px;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--amber-800), var(--orange-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text small {
  color: var(--amber-700);
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-link,
.mobile-link {
  color: #5f4d39;
  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-700);
}

.nav-link:hover {
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(120, 53, 15, 0.12);
  cursor: pointer;
}

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

.mobile-nav {
  display: none;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px 18px;
}

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

.mobile-link {
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

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

.hero-shell {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border-radius: 34px;
  box-shadow: var(--shadow);
  background: var(--amber-900);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.72fr);
  align-items: center;
  gap: 30px;
  padding: 70px;
  transition: opacity 0.7s ease, transform 0.7s ease;
  transform: scale(1.02);
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.15);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 30%, rgba(253, 186, 116, 0.24), transparent 18rem),
    linear-gradient(0deg, rgba(42, 18, 4, 0.64), transparent 44%);
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.24);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.eyebrow.dark {
  color: var(--amber-800);
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.18);
}

.hero h1 {
  max-width: 760px;
  margin: 24px 0 18px;
  color: #fff;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero p {
  max-width: 680px;
  margin: 0 0 20px;
  color: rgba(255, 247, 237, 0.9);
  font-size: 18px;
}

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

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 10px;
  color: var(--amber-900);
  background: rgba(255, 237, 213, 0.88);
  border: 1px solid rgba(217, 119, 6, 0.16);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

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

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

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

.btn.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
  box-shadow: 0 16px 32px rgba(234, 88, 12, 0.28);
}

.btn.ghost {
  color: #fff7ed;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.12);
}

.btn.subtle {
  color: #fff7ed;
  background: rgba(120, 53, 15, 0.36);
}

.hero-poster {
  justify-self: end;
  width: min(360px, 100%);
  padding: 12px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 32px 80px rgba(42, 18, 4, 0.38);
  backdrop-filter: blur(8px);
}

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

.hero-dots {
  position: absolute;
  left: 70px;
  bottom: 42px;
  z-index: 3;
  display: flex;
  gap: 10px;
}

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

.hero-dot.is-active {
  width: 36px;
  background: #fff;
}

.search-band {
  max-width: 820px;
  margin: -32px auto 0;
  padding: 0 24px;
  position: relative;
  z-index: 4;
}

.home-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  box-shadow: 0 20px 40px rgba(120, 53, 15, 0.15);
}

.home-search input,
.search-panel input,
.search-panel select,
.filter-box input {
  width: 100%;
  border: 1px solid rgba(146, 64, 14, 0.16);
  outline: 0;
  color: var(--text);
  background: #fff;
  border-radius: 18px;
}

.home-search input {
  min-height: 50px;
  padding: 0 20px;
  border-radius: 999px;
}

.home-search button {
  border: 0;
  min-height: 50px;
  padding: 0 28px;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
  cursor: pointer;
}

.section {
  max-width: 1220px;
  margin: 0 auto;
  padding: 72px 24px 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 26px;
}

.section-head.with-link {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.section-head h2,
.page-hero h1,
.detail-info h1 {
  margin: 12px 0 10px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--brown-950);
}

.section-head p,
.page-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

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

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

.category-pill,
.category-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 14px 36px rgba(120, 53, 15, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.category-pill {
  padding: 22px;
  min-height: 150px;
}

.category-pill:hover,
.category-card:hover,
.movie-card:hover,
.rank-item:hover {
  transform: translateY(-5px);
  border-color: rgba(217, 119, 6, 0.32);
  box-shadow: 0 24px 54px rgba(120, 53, 15, 0.15);
}

.category-pill strong,
.category-title {
  display: block;
  color: var(--amber-900);
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 8px;
}

.category-pill span,
.category-card p {
  color: var(--muted);
  font-size: 14px;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 38px rgba(120, 53, 15, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, var(--amber-100), var(--amber-300));
}

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

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

.rating {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 9px;
  color: #fff;
  border-radius: 999px;
  font-weight: 900;
  font-size: 12px;
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
  box-shadow: 0 8px 18px rgba(120, 53, 15, 0.2);
}

.card-body {
  padding: 18px;
}

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

.card-body h3 {
  margin: 12px 0 8px;
  color: var(--brown-950);
  font-size: 20px;
  line-height: 1.25;
}

.movie-card.compact .card-body h3 {
  font-size: 16px;
}

.card-body p {
  min-height: 50px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.card-foot a {
  flex: 0 0 auto;
  color: var(--amber-800);
  font-weight: 900;
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 76px 56px 1fr;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 32px rgba(120, 53, 15, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.rank-poster img {
  width: 76px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--amber-100), var(--amber-300));
}

.rank-index {
  color: rgba(120, 53, 15, 0.18);
  font-size: 32px;
  font-weight: 950;
  letter-spacing: -0.08em;
}

.rank-info h3 {
  margin: 0 0 6px;
  font-size: 18px;
  color: var(--brown-950);
}

.rank-info p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
}

.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--amber-900);
  font-size: 12px;
  font-weight: 900;
}

.page-hero,
.detail-hero {
  max-width: 1220px;
  margin: 28px auto 0;
  padding: 70px 24px;
}

.small-hero,
.category-hero,
.ranking-hero {
  border-radius: 34px;
  color: #fff;
  background:
    radial-gradient(circle at 80% 20%, rgba(253, 186, 116, 0.28), transparent 20rem),
    linear-gradient(135deg, var(--amber-900), var(--orange-600));
  box-shadow: var(--shadow);
}

.page-hero h1,
.page-hero p {
  color: #fff7ed;
  max-width: 780px;
}

.toolbar,
.search-panel {
  margin-bottom: 24px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 34px rgba(120, 53, 15, 0.08);
}

.filter-box,
.search-panel label {
  display: grid;
  gap: 8px;
  color: var(--amber-900);
  font-weight: 900;
}

.filter-box input,
.search-panel input,
.search-panel select {
  min-height: 48px;
  padding: 0 14px;
}

.search-panel {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 16px;
}

.result-line {
  margin-bottom: 18px;
  color: var(--muted);
  font-weight: 800;
}

.category-card {
  padding: 24px;
}

.category-samples {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.category-samples a {
  color: var(--amber-800);
  font-weight: 800;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--amber-800);
  font-size: 14px;
  font-weight: 800;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.7fr);
  gap: 30px;
  align-items: stretch;
}

.player-card,
.detail-info,
.story-card {
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.player-card {
  overflow: hidden;
}

.video-wrap {
  position: relative;
  background: #160b03;
}

.watch-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #160b03;
}

.watch-cover {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  background: #160b03;
}

.watch-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.74;
  filter: saturate(1.12);
}

.watch-cover.is-hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.play-circle {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 34px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
  box-shadow: 0 20px 50px rgba(42, 18, 4, 0.35);
}

.detail-info {
  padding: 30px;
}

.detail-info .lead {
  color: var(--muted);
  font-size: 17px;
}

.watch-btn {
  margin-top: 24px;
}

.detail-section {
  padding-top: 10px;
}

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

.story-card {
  padding: 28px;
}

.story-card h2 {
  margin: 0 0 12px;
  color: var(--brown-950);
  font-size: 26px;
}

.story-card p {
  margin: 0;
  color: #5f4d39;
}

.site-footer {
  margin-top: 80px;
  color: #ffedd5;
  background: linear-gradient(180deg, var(--amber-900), var(--brown-950));
}

.footer-inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 44px 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 680px;
}

.footer-brand p,
.copyright {
  color: rgba(255, 237, 213, 0.78);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 24px 0;
}

.footer-links a {
  color: #fed7aa;
  font-weight: 800;
}

.searchable-item.is-hidden {
  display: none;
}

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

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

  .hero-poster {
    display: none;
  }

  .home-rank-list {
    grid-template-columns: 1fr;
  }
}

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

  .menu-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .hero-shell {
    min-height: 560px;
    border-radius: 26px;
  }

  .hero-slide {
    padding: 44px 24px 70px;
  }

  .hero-dots {
    left: 26px;
    bottom: 28px;
  }

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

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

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

  .rank-item {
    grid-template-columns: 62px 46px 1fr;
  }

  .rank-poster img {
    width: 62px;
  }

  .detail-hero,
  .page-hero {
    padding: 46px 18px;
  }
}

@media (max-width: 520px) {
  .header-inner,
  .mobile-nav,
  .hero,
  .section,
  .search-band {
    padding-left: 14px;
    padding-right: 14px;
  }

  .brand-text small {
    display: none;
  }

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

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

  .hero-actions,
  .page-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}
