:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-300: #fcd34d;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --slate-900: #0f172a;
  --gray-900: #111827;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-200: #e5e7eb;
  --white: #ffffff;
  --shadow: 0 18px 40px rgba(120, 53, 15, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--gray-900);
  background: linear-gradient(180deg, var(--amber-50), #ffffff 45%, #fff7ed);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 251, 235, 0.94);
  border-bottom: 1px solid var(--amber-200);
  box-shadow: 0 8px 22px rgba(146, 64, 14, 0.12);
  backdrop-filter: blur(14px);
}

.header-inner {
  max-width: 1280px;
  height: 72px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--amber-700);
  white-space: nowrap;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(245, 158, 11, 0.28);
}

.logo-text {
  background: linear-gradient(90deg, var(--amber-700), var(--orange-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.header-search {
  flex: 1;
  max-width: 520px;
  display: flex;
  border: 2px solid var(--amber-300);
  background: #ffffff;
  border-radius: 999px;
  overflow: hidden;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

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

.header-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: none;
  padding: 11px 18px;
  font-size: 15px;
  background: transparent;
}

.header-search button,
.button-primary,
.filter-button.active {
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
}

.header-search button {
  padding: 0 18px;
  font-weight: 700;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-link {
  color: #92400e;
  font-weight: 700;
  font-size: 15px;
  transition: color 0.2s ease;
}

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

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

.hero {
  position: relative;
  height: 70vh;
  min-height: 560px;
  overflow: hidden;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
}

.hero-slide.active img {
  animation: heroZoom 8s ease forwards;
}

@keyframes heroZoom {
  from {
    transform: scale(1.05);
  }
  to {
    transform: scale(1.12);
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.48) 48%, rgba(0, 0, 0, 0.14));
}

.hero-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 74px;
  color: #ffffff;
}

.hero-kicker,
.badge,
.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-weight: 800;
}

.hero-kicker {
  margin-bottom: 18px;
  padding: 7px 14px;
  background: var(--amber-500);
  font-size: 14px;
}

.hero h1 {
  max-width: 920px;
  margin: 0 0 18px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.02;
  text-shadow: 0 12px 36px rgba(0, 0, 0, 0.55);
}

.hero p {
  max-width: 820px;
  margin: 0 0 24px;
  color: #e5e7eb;
  font-size: clamp(18px, 2vw, 23px);
}

.hero-meta,
.card-meta,
.wide-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero-meta span,
.detail-meta span,
.wide-meta span,
.card-meta span {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

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

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

.button-primary:hover,
.button-ghost:hover,
.movie-card:hover,
.wide-card:hover,
.category-tile:hover {
  transform: translateY(-3px);
}

.button-primary:hover {
  box-shadow: 0 18px 34px rgba(245, 158, 11, 0.32);
}

.button-ghost {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(0, 0, 0, 0.22);
}

.hero-control {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.45);
  font-size: 26px;
  transform: translateY(-50%);
}

.hero-control.prev {
  left: 18px;
}

.hero-control.next {
  right: 18px;
}

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

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

.hero-dot.active {
  width: 34px;
  background: #ffffff;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 54px 24px;
}

.section {
  margin-bottom: 72px;
}

.section.panel {
  padding: 34px;
  border-radius: 34px;
  background: linear-gradient(135deg, var(--amber-100), #ffedd5);
  box-shadow: var(--shadow);
}

.section.dark-panel {
  padding: 34px;
  border-radius: 34px;
  color: #ffffff;
  background: linear-gradient(135deg, #111827, #262626);
  box-shadow: 0 26px 55px rgba(15, 23, 42, 0.25);
}

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

.section-heading h1,
.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
}

.section-heading p {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--gray-600);
}

.dark-panel .section-heading p,
.dark-panel .section-link {
  color: #fde68a;
}

.section-link {
  flex-shrink: 0;
  color: var(--amber-700);
  font-weight: 900;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(120, 53, 15, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  box-shadow: 0 22px 44px rgba(120, 53, 15, 0.22);
}

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

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

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

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 11px;
  color: #ffffff;
  background: var(--amber-500);
  font-size: 13px;
}

.card-body {
  padding: 18px;
}

.card-title,
.wide-title,
.detail-title {
  display: block;
  color: var(--gray-900);
  font-weight: 900;
  line-height: 1.25;
}

.card-title {
  min-height: 46px;
  margin-bottom: 8px;
  font-size: 18px;
}

.card-title:hover,
.wide-title:hover {
  color: var(--amber-600);
}

.card-meta {
  gap: 7px;
  margin-bottom: 12px;
  color: var(--amber-700);
  font-size: 13px;
  font-weight: 700;
}

.card-meta span {
  background: var(--amber-50);
}

.card-body p {
  min-height: 46px;
  margin: 0 0 14px;
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.65;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag {
  padding: 5px 9px;
  color: var(--amber-700);
  background: var(--amber-100);
  font-size: 12px;
}

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

.category-tile {
  min-height: 160px;
  padding: 24px;
  border-radius: 26px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  box-shadow: var(--shadow);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-tile:nth-child(2n) {
  background: linear-gradient(135deg, #f59e0b, #7c2d12);
}

.category-tile:nth-child(3n) {
  background: linear-gradient(135deg, #fb923c, #111827);
}

.category-tile h3 {
  margin: 0 0 10px;
  font-size: 24px;
}

.category-tile p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.7;
}

.wide-list {
  display: grid;
  gap: 18px;
}

.wide-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(120, 53, 15, 0.12);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.wide-poster {
  position: relative;
  height: 188px;
  overflow: hidden;
  background: var(--amber-100);
}

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

.wide-rank {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 13px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--amber-500);
  font-weight: 900;
}

.wide-body {
  padding: 24px;
}

.wide-title {
  margin-bottom: 10px;
  font-size: 24px;
}

.wide-body p {
  margin: 0 0 16px;
  color: var(--gray-600);
  line-height: 1.7;
}

.wide-meta span {
  color: #92400e;
  background: var(--amber-50);
  font-size: 13px;
  font-weight: 700;
}

.filter-panel {
  display: grid;
  gap: 18px;
  margin-bottom: 28px;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 26px rgba(120, 53, 15, 0.1);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.filter-panel input,
.filter-panel select {
  min-height: 44px;
  border: 2px solid var(--amber-200);
  border-radius: 999px;
  padding: 0 16px;
  outline: none;
  background: #ffffff;
}

.filter-button {
  min-height: 40px;
  border: 1px solid var(--amber-200);
  color: var(--amber-700);
  background: #ffffff;
}

.filter-empty {
  display: none;
  padding: 28px;
  border-radius: 22px;
  color: var(--gray-600);
  background: #ffffff;
  text-align: center;
}

.breadcrumb {
  margin-bottom: 18px;
  color: var(--amber-700);
  font-weight: 800;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 30px;
  align-items: start;
}

.detail-card,
.side-card {
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.detail-card {
  overflow: hidden;
}

.player-wrap {
  position: relative;
  overflow: hidden;
  background: #0f172a;
  aspect-ratio: 16 / 9;
}

.player-wrap video {
  width: 100%;
  height: 100%;
  background: #0f172a;
}

.play-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.18));
}

.play-cover button {
  width: 96px;
  height: 96px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  font-size: 44px;
  box-shadow: 0 24px 55px rgba(245, 158, 11, 0.35);
}

.detail-content {
  padding: 32px;
}

.detail-title {
  margin: 0 0 12px;
  font-size: clamp(32px, 5vw, 52px);
}

.detail-meta {
  margin-bottom: 20px;
}

.detail-meta span {
  color: var(--amber-700);
  background: var(--amber-50);
  font-weight: 800;
}

.detail-content h2,
.side-card h2 {
  margin: 28px 0 12px;
  font-size: 26px;
}

.detail-content p {
  color: var(--gray-700);
  font-size: 17px;
  line-height: 1.9;
}

.side-card {
  padding: 22px;
}

.side-card h2:first-child {
  margin-top: 0;
}

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

.related-item {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 12px;
  align-items: center;
}

.related-item img {
  width: 82px;
  height: 112px;
  border-radius: 14px;
  object-fit: cover;
}

.related-item strong {
  display: block;
  margin-bottom: 6px;
}

.related-item span {
  color: var(--gray-600);
  font-size: 13px;
}

.search-hero {
  padding: 70px 24px 46px;
  color: #ffffff;
  background: linear-gradient(135deg, #111827, #92400e 55%, #f59e0b);
}

.search-hero-inner {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}

.search-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 56px);
}

.search-box-large {
  display: flex;
  max-width: 720px;
  margin: 28px auto 0;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.54);
  border-radius: 999px;
  background: #ffffff;
}

.search-box-large input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  padding: 16px 22px;
  font-size: 17px;
}

.search-box-large button {
  border: 0;
  padding: 0 28px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  font-weight: 900;
}

.site-footer {
  margin-top: 40px;
  color: #fef3c7;
  background: #111827;
}

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

.footer-inner strong {
  color: #ffffff;
  font-size: 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 18px 0;
}

.footer-links a {
  color: #fde68a;
}

.copyright {
  margin: 0;
  color: #d1d5db;
}

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

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

@media (max-width: 820px) {
  .header-inner {
    height: auto;
    min-height: 68px;
    flex-wrap: wrap;
    padding: 12px 18px;
  }

  .logo {
    font-size: 22px;
  }

  .header-search {
    order: 3;
    width: 100%;
    max-width: none;
    flex-basis: 100%;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0 12px;
  }

  .main-nav.open {
    display: flex;
  }

  .hero {
    height: 74vh;
    min-height: 520px;
  }

  .hero-content {
    padding: 0 20px 70px;
  }

  .hero-control {
    display: none;
  }

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

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

  .wide-card {
    grid-template-columns: 1fr;
  }

  .wide-poster {
    height: 260px;
  }
}

@media (max-width: 560px) {
  .container {
    padding: 38px 16px;
  }

  .section.panel,
  .section.dark-panel {
    padding: 22px;
    border-radius: 24px;
  }

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

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

  .detail-content,
  .side-card {
    padding: 20px;
  }
}
