:root {
  --amber-50: #fff7ed;
  --amber-100: #ffedd5;
  --amber-200: #fed7aa;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --brown-900: #78350f;
  --ink: #111827;
  --muted: #6b7280;
  --line: #f1e1c9;
  --paper: #ffffff;
  --soft: #fffaf2;
  --shadow: 0 20px 60px rgba(120, 53, 15, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--soft);
  line-height: 1.65;
}

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

img {
  display: block;
  width: 100%;
  height: auto;
}

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(255, 247, 237, 0.96), rgba(255, 237, 213, 0.96));
  border-bottom: 1px solid rgba(217, 119, 6, 0.18);
  box-shadow: 0 10px 30px rgba(120, 53, 15, 0.08);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 900;
  color: var(--amber-600);
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  box-shadow: 0 10px 24px rgba(234, 88, 12, 0.26);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 10px 14px;
  color: #4b5563;
  border-radius: 999px;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--amber-600);
  background: rgba(245, 158, 11, 0.12);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.12);
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--amber-600);
  border-radius: 2px;
}

.hero {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--amber-100), var(--amber-50));
}

.hero-bg,
.hero-bg-slide {
  position: absolute;
  inset: 0;
}

.hero-bg-slide {
  opacity: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  transition: opacity 0.8s ease, transform 2.4s ease;
}

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

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -30% -10%;
  height: 260px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.22), transparent 60%);
}

.hero-layout {
  position: relative;
  z-index: 2;
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 420px;
  align-items: center;
  gap: 48px;
}

.eyebrow,
.section-kicker,
.hero-movie-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 12px;
  color: var(--amber-600);
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 18px 0 16px;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.hero-subtitle {
  max-width: 660px;
  margin: 0 0 24px;
  color: #4b5563;
  font-size: 20px;
}

.hero-panels {
  min-height: 238px;
}

.hero-panel {
  display: none;
  max-width: 680px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-panel.is-active {
  display: block;
  animation: fadeUp 0.45s ease both;
}

.hero-panel h2 {
  margin: 16px 0 8px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
}

.hero-panel p {
  margin: 0 0 18px;
  color: #4b5563;
  font-size: 17px;
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  color: var(--brown-900);
  background: var(--amber-100);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

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

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

.primary-btn {
  color: white;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  box-shadow: 0 14px 28px rgba(234, 88, 12, 0.24);
}

.ghost-btn,
.section-link {
  color: var(--amber-600);
  background: white;
  border: 1px solid rgba(245, 158, 11, 0.38);
}

.primary-btn:hover,
.ghost-btn:hover,
.section-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(120, 53, 15, 0.16);
}

.hero-dots {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(217, 119, 6, 0.26);
}

.hero-dot.is-active {
  width: 34px;
  background: linear-gradient(90deg, var(--amber-500), var(--orange-600));
}

.hero-side-card {
  padding: 22px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: 30px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.hero-side-card > span {
  display: block;
  margin-bottom: 14px;
  color: var(--brown-900);
  font-weight: 900;
}

.hot-list {
  display: grid;
  gap: 12px;
}

.hot-card {
  display: grid;
  grid-template-columns: auto 72px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 88px;
  padding: 10px;
  background: white;
  border: 1px solid rgba(245, 158, 11, 0.14);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(120, 53, 15, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.hot-card img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 14px;
  background: var(--amber-100);
}

.hot-card strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  font-size: 15px;
}

.hot-card small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.hot-index {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 900;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
}

.feature-strip {
  background: white;
  border-top: 1px solid rgba(245, 158, 11, 0.12);
  border-bottom: 1px solid rgba(245, 158, 11, 0.12);
}

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

.feature-grid div {
  padding: 22px;
  text-align: center;
  background: linear-gradient(180deg, var(--amber-50), white);
  border: 1px solid rgba(245, 158, 11, 0.14);
  border-radius: 22px;
}

.feature-grid strong {
  display: block;
  font-size: 20px;
  color: var(--brown-900);
}

.feature-grid span {
  color: var(--muted);
  font-size: 14px;
}

.section-white,
.section-soft {
  padding: 78px 0;
}

.section-white {
  background: white;
}

.section-soft {
  background: linear-gradient(180deg, var(--amber-50), #fffaf2);
}

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

.section-heading h2 {
  margin: 10px 0 6px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
}

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

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

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

.movie-card {
  overflow: hidden;
  background: white;
  border: 1px solid rgba(245, 158, 11, 0.14);
  border-radius: 24px;
  box-shadow: 0 12px 28px rgba(120, 53, 15, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.36);
  box-shadow: 0 24px 50px rgba(120, 53, 15, 0.14);
}

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

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

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

.poster-glow {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.42), transparent);
}

.type-badge,
.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 5px 9px;
  color: white;
  font-size: 12px;
  font-weight: 900;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.68);
  backdrop-filter: blur(8px);
}

.rank-badge + .type-badge {
  top: 44px;
}

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

.movie-title {
  display: -webkit-box;
  min-height: 48px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.35;
  transition: color 0.2s ease;
}

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

.movie-desc {
  display: -webkit-box;
  min-height: 48px;
  margin: 10px 0 12px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: var(--muted);
  font-size: 14px;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  color: #7c2d12;
  font-size: 12px;
  font-weight: 800;
}

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

.movie-card-small .movie-title {
  min-height: 42px;
  font-size: 15px;
}

.movie-card-small .movie-desc {
  min-height: 42px;
  font-size: 13px;
}

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

.category-card,
.category-overview-card {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  border-radius: 26px;
  background: var(--brown-900);
  box-shadow: var(--shadow);
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.58;
  transition: transform 0.6s ease;
}

.category-card:hover img {
  transform: scale(1.08);
}

.category-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(120, 53, 15, 0.82), rgba(120, 53, 15, 0.2));
}

.category-card strong,
.category-card small {
  position: absolute;
  left: 22px;
  right: 22px;
  z-index: 2;
  color: white;
}

.category-card strong {
  bottom: 58px;
  font-size: 26px;
  font-weight: 900;
}

.category-card small {
  bottom: 24px;
  color: rgba(255, 255, 255, 0.86);
}

.category-overview-card {
  min-height: auto;
  display: grid;
  grid-template-columns: 142px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  color: var(--ink);
  background: white;
  border: 1px solid rgba(245, 158, 11, 0.14);
}

.category-thumbs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.category-thumbs img {
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  background: var(--amber-100);
}

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

.category-overview-card h2 {
  margin: 6px 0 8px;
  font-size: 24px;
}

.category-overview-card p {
  margin: 0;
  color: var(--muted);
}

.split-section {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 34px;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0;
  background: linear-gradient(135deg, var(--amber-100), var(--amber-50));
}

.slim-hero {
  padding: 58px 0;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: #4b5563;
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: #7c2d12;
  font-size: 14px;
  font-weight: 800;
}

.breadcrumb a:hover {
  color: var(--orange-600);
}

.listing-tools,
.global-search-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 28px;
  padding: 18px;
  background: var(--amber-50);
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: 24px;
}

.search-box,
.big-search {
  display: grid;
  gap: 6px;
  color: var(--brown-900);
  font-weight: 900;
}

.search-box input,
.big-search input {
  width: 100%;
  height: 46px;
  padding: 0 16px;
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 999px;
  outline: none;
  background: white;
}

.search-box input:focus,
.big-search input:focus {
  border-color: var(--amber-500);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-buttons button {
  min-height: 38px;
  padding: 8px 12px;
  border: 0;
  border-radius: 999px;
  color: var(--brown-900);
  background: white;
  font-weight: 800;
}

.filter-buttons button.active,
.filter-buttons button:hover {
  color: white;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
}

.visible-count {
  color: var(--amber-600);
  font-weight: 900;
  white-space: nowrap;
}

.detail-hero {
  background-size: cover;
  background-position: center;
}

.detail-grid {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border: 10px solid rgba(255, 255, 255, 0.8);
  border-radius: 30px;
  box-shadow: var(--shadow);
}

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

.detail-copy h1 {
  max-width: 840px;
  font-size: clamp(36px, 5vw, 64px);
}

.detail-one-line {
  max-width: 780px;
  margin: 0 0 18px;
  color: #4b5563;
  font-size: 20px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.detail-meta span {
  padding: 8px 12px;
  color: #7c2d12;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: 999px;
  font-weight: 900;
}

.video-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #120b05;
  border-radius: 30px;
  box-shadow: 0 28px 70px rgba(17, 24, 39, 0.22);
}

.video-shell video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.play-layer {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  color: white;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.64));
  cursor: pointer;
}

.play-layer.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.play-layer span {
  width: 88px;
  height: 88px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 32px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  box-shadow: 0 18px 44px rgba(249, 115, 22, 0.34);
}

.play-layer strong {
  font-size: 24px;
}

.play-layer small {
  opacity: 0.86;
}

.player-status {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 2;
  padding: 6px 10px;
  color: white;
  background: rgba(0, 0, 0, 0.48);
  border-radius: 999px;
  font-size: 12px;
}

.content-card,
.info-card {
  padding: 26px;
  background: white;
  border: 1px solid rgba(245, 158, 11, 0.14);
  border-radius: 26px;
  box-shadow: 0 14px 34px rgba(120, 53, 15, 0.08);
}

.detail-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 330px;
  gap: 22px;
  align-items: start;
}

.content-card h2,
.info-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.content-card p {
  margin: 0;
  color: #374151;
}

.info-card dl {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px 12px;
  margin: 0;
}

.info-card dt {
  color: var(--muted);
  font-weight: 800;
}

.info-card dd {
  margin: 0;
  font-weight: 800;
}

.prev-next {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 28px;
}

.prev-next a {
  flex: 1;
  padding: 16px 18px;
  background: var(--amber-50);
  border: 1px solid rgba(245, 158, 11, 0.16);
  border-radius: 18px;
  font-weight: 800;
}

.prev-next a:hover {
  color: var(--amber-600);
}

.site-footer {
  color: var(--amber-50);
  background: linear-gradient(180deg, #7c2d12, #451a03);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 36px;
  padding: 54px 0;
}

.footer-brand {
  color: white;
}

.site-footer p {
  max-width: 520px;
  color: rgba(255, 247, 237, 0.78);
}

.site-footer h3 {
  margin: 0 0 12px;
  color: white;
}

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

.footer-links a {
  color: rgba(255, 247, 237, 0.78);
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  padding: 18px;
  text-align: center;
  color: rgba(255, 247, 237, 0.76);
  border-top: 1px solid rgba(255, 237, 213, 0.12);
}

[hidden],
.movie-card.is-hidden {
  display: none !important;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  .hero-layout,
  .split-section,
  .detail-content-grid {
    grid-template-columns: 1fr;
  }

  .hero-side-card {
    max-width: 720px;
    margin-bottom: 34px;
  }

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

  .detail-content-grid {
    gap: 18px;
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    background: white;
    border: 1px solid rgba(245, 158, 11, 0.18);
    border-radius: 18px;
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .hero,
  .hero-layout {
    min-height: auto;
  }

  .hero-layout {
    padding: 58px 0;
  }

  .hero-panel {
    padding: 20px;
  }

  .feature-grid,
  .movie-grid,
  .compact-grid,
  .mini-grid,
  .category-grid,
  .category-overview-grid,
  .footer-grid,
  .detail-grid,
  .listing-tools,
  .global-search-panel {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .prev-next {
    align-items: stretch;
    flex-direction: column;
  }

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

  .hot-card {
    grid-template-columns: auto 64px minmax(0, 1fr);
  }
}

@media (max-width: 520px) {
  .container,
  .nav-wrap {
    width: min(100% - 22px, 1180px);
  }

  .brand {
    font-size: 20px;
  }

  .hero-copy h1,
  .page-hero h1,
  .detail-copy h1 {
    font-size: 38px;
  }

  .section-white,
  .section-soft {
    padding: 54px 0;
  }

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

  .primary-btn,
  .ghost-btn {
    width: 100%;
  }
}
