* {
  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: #4a2508;
  --muted: #8a5a1f;
  --card: #ffffff;
  --radius: 24px;
  --shadow: 0 18px 48px rgba(120, 53, 15, 0.16);
}

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(--text);
  background: linear-gradient(180deg, var(--amber-50), #fff7d6 52%, var(--amber-100));
}

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

img {
  display: block;
  max-width: 100%;
  background: linear-gradient(135deg, var(--amber-200), var(--amber-700));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(254, 249, 195, 0.96), rgba(255, 251, 235, 0.96));
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 28px rgba(146, 64, 14, 0.16);
}

.nav-shell {
  max-width: 1280px;
  height: 68px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--amber-500), var(--amber-800));
  box-shadow: 0 12px 28px rgba(180, 83, 9, 0.26);
  font-size: 14px;
}

.brand strong {
  display: block;
  color: var(--amber-900);
  font-size: 21px;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.brand small {
  display: block;
  color: var(--amber-700);
  font-size: 12px;
  margin-top: 4px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 700;
  color: var(--amber-900);
}

.nav-link {
  position: relative;
  padding: 22px 0;
  transition: color 0.2s ease;
}

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

.nav-link.is-active::after,
.nav-link:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 13px;
  height: 3px;
  border-radius: 999px;
  background: var(--amber-500);
}

.menu-button {
  display: none;
  border: 0;
  background: transparent;
  color: var(--amber-900);
  font-size: 28px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  padding: 12px 24px 18px;
  border-top: 1px solid var(--amber-200);
  background: #fff;
}

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

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

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

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: linear-gradient(110deg, var(--amber-950), var(--amber-800), var(--amber-600));
}

.hero-pattern,
.page-hero::before,
.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.22;
  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-shell {
  position: relative;
  max-width: 1280px;
  min-height: 620px;
  margin: 0 auto;
  padding: 64px 24px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.78fr);
  align-items: center;
  gap: 44px;
}

.hero-main {
  color: #fff;
  max-width: 720px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #fff8db;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(12px);
  font-size: 14px;
  font-weight: 800;
}

.hero-main h1 {
  margin: 22px 0;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-main h1 span {
  color: var(--amber-200);
  font-size: 0.72em;
}

.hero-main p {
  margin: 0 0 30px;
  max-width: 640px;
  color: #ffedbd;
  font-size: clamp(18px, 2.1vw, 24px);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.primary-btn,
.ghost-btn,
.search-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
}

.primary-btn {
  color: var(--amber-950);
  background: #fff;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.18);
}

.primary-btn:hover,
.ghost-btn:hover,
.search-form button:hover {
  transform: translateY(-2px) scale(1.02);
}

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

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

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-pills a {
  padding: 8px 14px;
  border-radius: 999px;
  color: #fff8dc;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-weight: 700;
}

.hero-carousel {
  position: relative;
  min-height: 430px;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.28);
  background: var(--amber-800);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 0.72s ease, transform 0.72s ease;
  transform: scale(1.04);
}

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

.hero-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 36px;
  color: #fff;
}

.hero-copy h2 {
  margin: 16px 0 10px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
}

.hero-copy p {
  max-width: 540px;
  color: #fdeec6;
  line-height: 1.7;
  margin: 0 0 22px;
}

.hero-dots {
  position: absolute;
  right: 24px;
  bottom: 24px;
  display: flex;
  gap: 8px;
  z-index: 5;
}

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

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

.search-section,
.section-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 24px;
}

.search-card {
  display: grid;
  grid-template-columns: minmax(240px, 0.6fr) minmax(320px, 1fr);
  gap: 28px;
  align-items: start;
  padding: 28px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  border: 1px solid rgba(245, 158, 11, 0.18);
}

.search-card h2,
.section-heading h2,
.content-panel h2,
.glass-panel h2,
.category-card h2 {
  margin: 0 0 10px;
  color: var(--amber-900);
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.1;
}

.search-card p,
.section-heading p,
.category-card p,
.glass-panel p {
  color: var(--amber-700);
  margin: 0;
  line-height: 1.7;
}

.search-form {
  display: grid;
  grid-template-columns: 1fr 150px 150px auto;
  gap: 12px;
}

.search-form input,
.search-form select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--amber-200);
  border-radius: 999px;
  padding: 0 16px;
  background: #fffdf3;
  color: var(--amber-900);
  outline: none;
}

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

.search-form button {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--amber-600), var(--amber-800));
}

.search-results {
  grid-column: 1 / -1;
  display: none;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.search-results.is-open {
  display: grid;
}

.search-result-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
  background: #fff8e3;
  border: 1px solid rgba(245, 158, 11, 0.18);
}

.search-result-card img {
  width: 72px;
  height: 92px;
  object-fit: cover;
  border-radius: 12px;
}

.search-result-card strong {
  display: block;
  color: var(--amber-900);
  margin-bottom: 6px;
}

.search-result-card span {
  color: var(--amber-700);
  font-size: 13px;
  line-height: 1.5;
}

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

.section-heading.center {
  justify-content: center;
  text-align: center;
}

.section-heading.flush {
  margin-bottom: 20px;
}

.section-heading > a,
.text-link {
  color: var(--amber-700);
  font-weight: 900;
}

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

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

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

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

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 56px rgba(120, 53, 15, 0.18);
}

.movie-cover {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--amber-200);
}

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

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

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  color: #fff;
  background: var(--amber-500);
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.movie-body {
  padding: 18px;
}

.movie-body h3 {
  margin: 0 0 10px;
  color: var(--amber-900);
  font-size: 20px;
  line-height: 1.25;
}

.movie-body p {
  min-height: 48px;
  color: var(--amber-700);
  line-height: 1.65;
  margin: 12px 0;
  font-size: 14px;
}

.movie-meta,
.score-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--amber-700);
  font-size: 13px;
}

.movie-meta span,
.card-tags span,
.tag-cloud span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #fff4c7;
  color: var(--amber-800);
  font-weight: 700;
}

.movie-meta span,
.card-tags span {
  padding: 4px 9px;
}

.card-tags,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.score-row {
  justify-content: space-between;
  color: var(--amber-800);
  font-weight: 800;
}

.category-band,
.split-section {
  background: rgba(255, 255, 255, 0.74);
  padding: 36px 0;
}

.category-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 18px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}

.category-tile {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 16px 38px rgba(120, 53, 15, 0.16);
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(69, 26, 3, 0.08), rgba(69, 26, 3, 0.78));
}

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

.category-tile span {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  color: #fff;
  text-align: center;
  font-weight: 900;
  font-size: 18px;
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.4fr) minmax(0, 1fr);
  gap: 28px;
}

.glass-panel,
.content-panel,
.category-card {
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  border: 1px solid rgba(245, 158, 11, 0.18);
}

.glass-panel {
  padding: 28px;
  align-self: start;
}

.text-row {
  display: block;
  padding: 16px 0;
  border-bottom: 1px solid rgba(245, 158, 11, 0.18);
}

.text-row strong {
  display: block;
  color: var(--amber-900);
  margin-bottom: 6px;
}

.text-row span {
  color: var(--amber-700);
  font-size: 14px;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(110deg, var(--amber-950), var(--amber-800), var(--amber-600));
}

.page-hero > div {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 76px 24px;
}

.small-hero > div,
.category-hero > div,
.rank-hero > div {
  max-width: 920px;
}

.page-hero h1 {
  margin: 18px 0 16px;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1;
}

.page-hero p {
  max-width: 760px;
  color: #ffedbd;
  line-height: 1.8;
  font-size: 18px;
}

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

.category-card {
  overflow: hidden;
}

.category-card-cover {
  display: block;
  height: 210px;
  overflow: hidden;
}

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

.category-card > div {
  padding: 22px;
}

.detail-hero {
  min-height: 620px;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.detail-shell {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 36px 24px 64px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  color: #ffedbd;
  margin-bottom: 34px;
  font-weight: 700;
}

.breadcrumb a:hover {
  color: #fff;
}

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

.poster-card {
  display: block;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}

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

.detail-copy h1 {
  margin: 20px 0 18px;
  color: #fff;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.02;
}

.detail-line {
  max-width: 820px;
  color: #ffedbd;
  line-height: 1.8;
  font-size: 20px;
  margin-bottom: 22px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}

.detail-meta span,
.tag-cloud span {
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff8db;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.player-section {
  max-width: 1280px;
  margin: -64px auto 0;
  padding: 0 24px 54px;
  position: relative;
  z-index: 5;
}

.player-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000;
  box-shadow: 0 34px 90px rgba(69, 26, 3, 0.32);
  aspect-ratio: 16 / 9;
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  gap: 10px;
  color: #fff;
  border: 0;
  cursor: pointer;
  background: radial-gradient(circle at center, rgba(245, 158, 11, 0.16), rgba(0, 0, 0, 0.72));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-overlay span {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--amber-950);
  background: #fff;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.26);
  font-size: 34px;
  padding-left: 5px;
}

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

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

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  padding-top: 12px;
}

.content-panel {
  padding: 28px;
}

.content-panel p {
  margin: 0;
  color: var(--text);
  line-height: 1.9;
  font-size: 17px;
}

.info-panel dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}

.info-panel div {
  padding: 16px;
  border-radius: 18px;
  background: #fff7df;
}

.info-panel dt {
  color: var(--amber-700);
  font-size: 13px;
  font-weight: 800;
}

.info-panel dd {
  margin: 6px 0 0;
  color: var(--amber-950);
  font-weight: 900;
}

@media (max-width: 1080px) {
  .desktop-nav {
    gap: 18px;
  }

  .hero-shell,
  .search-card,
  .split-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .hero-carousel {
    min-height: 390px;
  }

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

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

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

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

  .nav-shell {
    height: 64px;
    padding: 0 16px;
  }

  .brand small {
    display: none;
  }

  .brand strong {
    font-size: 18px;
  }

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

  .hero-shell {
    padding: 42px 16px;
    gap: 28px;
  }

  .hero-main h1,
  .detail-copy h1 {
    letter-spacing: -0.04em;
  }

  .hero-carousel {
    min-height: 360px;
    border-radius: 24px;
  }

  .hero-copy {
    padding: 24px;
  }

  .search-section,
  .section-shell,
  .page-hero > div,
  .detail-shell,
  .player-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .search-card,
  .content-panel,
  .glass-panel {
    padding: 20px;
    border-radius: 20px;
  }

  .search-form {
    grid-template-columns: 1fr;
  }

  .featured-grid,
  .movie-grid,
  .compact-grid,
  .mini-grid,
  .category-grid,
  .category-list-grid,
  .search-results,
  .info-panel dl {
    grid-template-columns: 1fr;
  }

  .movie-cover {
    aspect-ratio: 16 / 10;
  }

  .category-grid {
    padding-left: 16px;
    padding-right: 16px;
  }

  .section-heading {
    display: block;
  }

  .section-heading > a {
    display: inline-flex;
    margin-top: 12px;
  }

  .detail-grid {
    gap: 26px;
  }

  .poster-card {
    max-width: 260px;
  }

  .player-section {
    margin-top: -34px;
  }

  .player-wrap {
    border-radius: 18px;
  }

  .play-overlay span {
    width: 66px;
    height: 66px;
    font-size: 26px;
  }
}
