* {
  box-sizing: border-box;
}

:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-300: #fcd34d;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --amber-800: #92400e;
  --amber-900: #78350f;
  --amber-950: #451a03;
  --text: #3b2607;
  --muted: #87611d;
  --card: #ffffff;
  --shadow: 0 22px 55px rgba(120, 53, 15, 0.18);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: linear-gradient(180deg, var(--amber-50), #fefce8 46%, var(--amber-100));
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(254, 252, 232, 0.96), rgba(255, 251, 235, 0.96));
  border-bottom: 1px solid rgba(217, 119, 6, 0.16);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 30px rgba(120, 53, 15, 0.12);
}

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

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--amber-500), var(--amber-800));
  box-shadow: 0 12px 26px rgba(217, 119, 6, 0.3);
}

.brand-text strong,
.brand-text small {
  display: block;
}

.brand-text strong {
  color: var(--amber-900);
  font-size: 20px;
  line-height: 1.15;
}

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

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

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

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

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  padding: 0;
  border-radius: 14px;
  background: var(--amber-100);
}

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

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 12px;
  border: 1px solid var(--amber-200);
  border-radius: 20px;
  background: #fff;
}

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

.mobile-link {
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--amber-900);
  font-weight: 700;
}

.mobile-link:hover,
.mobile-link.active {
  background: var(--amber-100);
}

.hero-section {
  position: relative;
  height: 600px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(120deg, var(--amber-950), var(--amber-800) 48%, #ca8a04);
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.26;
  background-image: linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 44px 44px;
}

.hero-section::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: 5%;
  top: 8%;
  border-radius: 50%;
  background: rgba(252, 211, 77, 0.28);
  filter: blur(45px);
}

.hero-inner {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.58fr);
  gap: 46px;
  align-items: center;
  opacity: 0;
  transform: translateY(22px);
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 18px;
  padding: 6px 14px;
  border: 1px solid rgba(253, 230, 138, 0.6);
  border-radius: 999px;
  color: var(--amber-100);
  background: rgba(255, 255, 255, 0.12);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero-copy h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero-copy h1 span {
  display: block;
  margin-top: 10px;
  color: var(--amber-200);
  font-size: clamp(28px, 4vw, 48px);
}

.hero-copy p {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--amber-100);
  font-size: 20px;
  line-height: 1.85;
}

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

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

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

.btn.primary {
  color: var(--amber-900);
  background: #fff;
  box-shadow: 0 18px 38px rgba(255, 255, 255, 0.22);
}

.btn.ghost {
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.84);
}

.btn.ghost:hover {
  color: var(--amber-900);
  background: #fff;
}

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  border: 10px solid rgba(255, 255, 255, 0.18);
  border-radius: 34px;
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

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

.hero-poster small {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  padding: 10px 12px;
  border-radius: 14px;
  color: #fff;
  background: rgba(69, 26, 3, 0.78);
  backdrop-filter: blur(10px);
  font-weight: 800;
}

.hero-dots {
  position: absolute;
  left: 0;
  bottom: 42px;
  display: flex;
  gap: 10px;
}

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

.hero-dot.active {
  background: #fff;
}

.content-section,
.search-panel,
.page-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.content-section {
  padding: 64px 0;
}

.search-panel {
  padding: 52px 0 16px;
}

.slim-search {
  padding-top: 30px;
}

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

.section-heading.center {
  display: block;
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  color: var(--amber-900);
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.15;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--amber-700);
  font-weight: 600;
}

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

.search-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 14px;
  max-width: 820px;
  margin: 0 auto;
}

.search-input,
.filter-select {
  width: 100%;
  height: 52px;
  border: 1px solid var(--amber-200);
  border-radius: 16px;
  outline: 0;
  color: var(--amber-900);
  background: #fff;
  box-shadow: 0 10px 28px rgba(120, 53, 15, 0.08);
  font-size: 16px;
}

.search-input {
  padding: 0 18px;
}

.filter-select {
  padding: 0 14px;
}

.movie-grid {
  display: grid;
  gap: 24px;
}

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

.hot-grid,
.catalog-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

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

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--amber-200);
}

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

.compact-card .poster-link img {
  aspect-ratio: 1 / 1;
}

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

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

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 5px 11px;
  border-radius: 999px;
  color: #fff;
  background: var(--amber-500);
  font-size: 13px;
}

.card-body {
  padding: 18px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--amber-700);
  font-size: 13px;
  font-weight: 800;
}

.card-meta span {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--amber-50);
}

.card-body h2 {
  margin: 0 0 8px;
  color: var(--amber-900);
  font-size: 19px;
  line-height: 1.32;
}

.card-body p {
  display: -webkit-box;
  min-height: 54px;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

.tag-row span {
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--amber-800);
  background: var(--amber-100);
  font-size: 12px;
  font-weight: 800;
}

.category-section,
.amber-band {
  width: 100%;
  padding: 64px max(16px, calc((100vw - 1180px) / 2));
  background: linear-gradient(90deg, var(--amber-100), #fef9c3);
}

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

.category-tile,
.category-card {
  position: relative;
  overflow: hidden;
  min-height: 170px;
  border-radius: 22px;
  box-shadow: 0 14px 34px rgba(120, 53, 15, 0.16);
}

.category-tile img,
.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.category-tile span,
.category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(120, 53, 15, 0.88), rgba(120, 53, 15, 0.16));
}

.category-tile strong {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  color: #fff;
  font-size: 18px;
  text-align: center;
}

.page-hero {
  margin-top: 36px;
  padding: 64px;
  border-radius: 34px;
  color: #fff;
  background: linear-gradient(125deg, var(--amber-950), var(--amber-700), #ca8a04);
  box-shadow: var(--shadow);
}

.small-hero h1 {
  margin: 0;
  font-size: clamp(34px, 4.5vw, 58px);
  line-height: 1.1;
}

.small-hero p {
  max-width: 780px;
  margin: 18px 0 0;
  color: var(--amber-100);
  font-size: 18px;
}

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

.category-card {
  min-height: 240px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
}

.category-card img,
.category-card .category-overlay {
  position: absolute;
  inset: 0;
}

.category-card strong,
.category-card p {
  position: relative;
  z-index: 2;
}

.category-card strong {
  font-size: 24px;
}

.category-card p {
  margin: 8px 0 0;
  color: var(--amber-100);
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  color: #fff;
  background: var(--amber-950);
}

.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(8px) saturate(1.2);
  transform: scale(1.05);
  opacity: 0.42;
}

.detail-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(69, 26, 3, 0.96), rgba(120, 53, 15, 0.78), rgba(0, 0, 0, 0.54));
}

.detail-shell {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 58px;
}

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

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

.detail-cover {
  overflow: hidden;
  border: 8px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

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

.detail-info h1 {
  margin: 0;
  font-size: clamp(40px, 5vw, 70px);
  line-height: 1.05;
}

.one-line {
  max-width: 780px;
  margin: 20px 0;
  color: var(--amber-100);
  font-size: 20px;
}

.detail-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 4px;
}

.detail-facts span {
  padding: 6px 12px;
  border: 1px solid rgba(253, 230, 138, 0.36);
  border-radius: 999px;
  color: var(--amber-100);
  background: rgba(255, 255, 255, 0.12);
  font-weight: 800;
}

.detail-tags span {
  color: #fff;
  background: rgba(245, 158, 11, 0.72);
}

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

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000;
  box-shadow: var(--shadow);
}

.movie-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 14px;
  border: 0;
  color: #fff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.56), rgba(69, 26, 3, 0.28));
  cursor: pointer;
}

.play-overlay.hidden {
  display: none;
}

.play-icon {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 18px 45px rgba(255, 255, 255, 0.28);
}

.play-icon::after {
  content: "";
  display: block;
  margin: 24px 0 0 31px;
  width: 0;
  height: 0;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-left: 22px solid var(--amber-700);
}

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

.detail-article {
  padding: 28px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(120, 53, 15, 0.12);
}

.detail-article h2 {
  margin: 0 0 14px;
  color: var(--amber-900);
  font-size: 26px;
}

.detail-article h2:not(:first-child) {
  margin-top: 28px;
}

.detail-article p {
  margin: 12px 0 0;
  color: #5f4311;
  font-size: 16px;
  line-height: 1.9;
}

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

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 52px 0;
  display: grid;
  grid-template-columns: 1.45fr repeat(3, 1fr);
  gap: 30px;
}

.footer-grid h2,
.footer-grid h3 {
  margin: 0 0 14px;
  color: var(--amber-300);
}

.footer-grid p {
  margin: 0;
  color: var(--amber-100);
}

.footer-grid a {
  display: block;
  margin: 8px 0;
  color: var(--amber-100);
}

.footer-grid a:hover {
  color: var(--amber-300);
}

.footer-bottom {
  padding: 18px 16px;
  border-top: 1px solid rgba(253, 230, 138, 0.18);
  color: var(--amber-200);
  text-align: center;
}

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

  .menu-button {
    display: block;
  }

  .hero-section {
    height: 720px;
  }

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

  .hero-poster {
    max-width: 260px;
    justify-self: start;
  }

  .featured-grid,
  .hot-grid,
  .catalog-grid,
  .category-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

@media (max-width: 640px) {
  .nav-shell {
    width: min(100% - 22px, 1180px);
    height: 66px;
  }

  .brand-text strong {
    font-size: 17px;
  }

  .hero-section {
    height: 760px;
  }

  .hero-copy p,
  .one-line {
    font-size: 16px;
  }

  .hero-dots {
    bottom: 22px;
  }

  .search-bar,
  .featured-grid,
  .hot-grid,
  .catalog-grid,
  .category-grid,
  .category-card-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: block;
  }

  .page-hero {
    padding: 34px 24px;
    border-radius: 24px;
  }

  .detail-cover {
    max-width: 240px;
  }

  .detail-shell {
    padding-top: 26px;
  }
}
