:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-300: #fcd34d;
  --amber-400: #fbbf24;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --amber-800: #92400e;
  --amber-900: #78350f;
  --ink: #2c1a0b;
  --paper: #fffaf0;
  --white: #ffffff;
  --shadow: 0 16px 45px rgba(120, 53, 15, 0.16);
  --shadow-soft: 0 10px 25px rgba(120, 53, 15, 0.12);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(252, 211, 77, 0.65);
  background: rgba(255, 251, 235, 0.94);
  backdrop-filter: blur(12px);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: var(--white);
  font-weight: 800;
  background: linear-gradient(135deg, var(--amber-600), var(--amber-900));
  box-shadow: 0 10px 22px rgba(217, 119, 6, 0.28);
}

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

.brand-title {
  color: var(--amber-900);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.brand-subtitle {
  color: var(--amber-700);
  font-size: 12px;
  margin-top: 3px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}

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

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

.header-search {
  position: relative;
  display: flex;
  align-items: center;
  width: 238px;
}

.header-search input,
.mobile-search input,
.local-search input {
  width: 100%;
  border: 1px solid var(--amber-300);
  border-radius: 999px;
  background: var(--white);
  color: var(--amber-900);
  outline: none;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.header-search input {
  padding: 9px 68px 9px 16px;
  font-size: 14px;
}

.header-search input:focus,
.mobile-search input:focus,
.local-search input:focus {
  border-color: var(--amber-600);
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.25);
}

.header-search button,
.mobile-search button {
  position: absolute;
  right: 5px;
  top: 5px;
  bottom: 5px;
  border: 0;
  border-radius: 999px;
  padding: 0 14px;
  color: var(--white);
  background: var(--amber-600);
  cursor: pointer;
}

.menu-button {
  display: none;
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--white);
  background: var(--amber-700);
}

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

.mobile-link {
  display: block;
  padding: 12px 0;
  color: var(--amber-900);
  font-weight: 700;
  border-top: 1px solid var(--amber-200);
}

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

.mobile-search {
  position: relative;
  margin-top: 10px;
}

.mobile-search input {
  padding: 12px 72px 12px 16px;
}

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

.hero-stage {
  position: relative;
  min-height: 600px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  min-height: 600px;
  object-fit: cover;
  opacity: 0.36;
  transform: scale(1.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 40%, rgba(251, 191, 36, 0.2), transparent 32%),
    linear-gradient(90deg, rgba(120, 53, 15, 0.92), rgba(146, 64, 14, 0.74) 48%, rgba(146, 64, 14, 0.16));
}

.hero-content {
  position: absolute;
  left: max(24px, calc((100% - 1180px) / 2));
  top: 50%;
  width: min(680px, calc(100% - 48px));
  transform: translateY(-50%);
  color: var(--white);
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--amber-200);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 16px 0 0;
  max-width: 760px;
  font-size: clamp(34px, 5vw, 68px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero h2 {
  margin: 18px 0 0;
  color: var(--amber-100);
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 800;
}

.hero p {
  max-width: 650px;
  margin: 18px 0 0;
  color: rgba(255, 251, 235, 0.92);
  font-size: 18px;
}

.hero-tags,
.tag-row,
.detail-actions,
.hero-actions,
.filter-chips,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-tags {
  margin-top: 24px;
}

.hero-tags span,
.tag-row span,
.tag-cloud a {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 11px;
  color: var(--amber-900);
  background: rgba(254, 243, 199, 0.92);
  font-size: 12px;
  font-weight: 700;
}

.hero-actions {
  margin-top: 34px;
}

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

.primary-button {
  color: var(--white);
  background: var(--amber-600);
  box-shadow: 0 12px 26px rgba(217, 119, 6, 0.32);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
}

.primary-button:hover {
  background: var(--amber-700);
  box-shadow: 0 18px 32px rgba(217, 119, 6, 0.38);
}

.ghost-button {
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.28);
}

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

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

.hero-dot.is-active {
  background: var(--amber-300);
}

.section-block {
  padding: 56px 0;
}

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

.section-heading h2 {
  margin: 0;
  color: var(--amber-900);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
}

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

.section-more {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 9px 16px;
  color: var(--amber-800);
  background: var(--amber-100);
  font-size: 14px;
  font-weight: 800;
}

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

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

.category-tile {
  position: relative;
  min-height: 178px;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  background: var(--amber-200);
}

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

.category-tile:hover img {
  transform: scale(1.1);
}

.category-shade,
.top-rank-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(44, 26, 11, 0.04), rgba(120, 53, 15, 0.88));
}

.category-text {
  position: absolute;
  inset: auto 16px 16px;
  color: var(--white);
}

.category-text strong {
  display: block;
  font-size: 20px;
  font-weight: 900;
}

.category-text em {
  display: block;
  margin-top: 4px;
  color: var(--amber-100);
  font-size: 13px;
  font-style: normal;
}

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

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

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

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

.movie-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--amber-100);
}

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

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

.poster-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.58));
  opacity: 0.9;
}

.duration,
.rank-badge {
  position: absolute;
  z-index: 1;
  border-radius: 999px;
  padding: 4px 9px;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.72);
}

.duration {
  right: 10px;
  bottom: 10px;
}

.rank-badge {
  left: 10px;
  top: 10px;
  background: var(--amber-600);
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px;
}

.card-category {
  width: fit-content;
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--amber-700);
  background: var(--amber-100);
  font-size: 12px;
  font-weight: 800;
}

.movie-card strong {
  display: block;
  margin-top: 10px;
  color: var(--amber-900);
  font-size: 18px;
  line-height: 1.35;
}

.card-desc {
  display: block;
  margin-top: 8px;
  color: #6f4b21;
  font-size: 14px;
}

.meta-row {
  display: block;
  margin-top: auto;
  padding-top: 12px;
  color: var(--amber-700);
  font-size: 13px;
  font-weight: 700;
}

.tag-row {
  margin-top: 10px;
  gap: 6px;
}

.tag-row span {
  padding: 3px 8px;
  color: var(--amber-700);
  background: var(--amber-50);
}

.filter-panel {
  margin-bottom: 26px;
  border: 1px solid var(--amber-200);
  border-radius: 22px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow-soft);
}

.local-search input {
  padding: 13px 18px;
}

.filter-chips {
  margin-top: 14px;
}

.filter-chip {
  border: 1px solid var(--amber-200);
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--amber-800);
  background: var(--white);
  cursor: pointer;
}

.filter-chip.is-active,
.filter-chip:hover {
  color: var(--white);
  border-color: var(--amber-600);
  background: var(--amber-600);
}

.page-hero {
  color: var(--white);
  background:
    radial-gradient(circle at 76% 20%, rgba(251, 191, 36, 0.24), transparent 34%),
    linear-gradient(135deg, var(--amber-900), var(--amber-700));
}

.small-hero {
  padding: 76px 0;
}

.page-hero h1 {
  margin: 14px 0 0;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.1;
}

.page-hero p {
  max-width: 760px;
  color: var(--amber-100);
  font-size: 18px;
}

.in-page {
  margin-top: 26px;
}

.category-preview {
  padding: 42px 0;
  border-top: 1px solid var(--amber-200);
}

.top-rank-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 18px;
}

.top-rank-panel {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.top-rank-panel img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.top-rank-panel:hover img {
  transform: scale(1.08);
}

.top-rank-content {
  position: absolute;
  inset: auto 22px 22px;
  color: var(--white);
}

.top-rank-content em {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--amber-900);
  background: var(--amber-300);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.top-rank-content strong {
  display: block;
  margin-top: 12px;
  font-size: 28px;
  line-height: 1.2;
}

.top-rank-content span {
  display: block;
  margin-top: 8px;
  color: var(--amber-100);
}

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

.rank-card {
  display: grid;
  grid-template-columns: 54px 74px 1fr;
  align-items: center;
  gap: 14px;
  border-radius: 18px;
  padding: 12px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.rank-num {
  color: var(--amber-700);
  font-size: 20px;
  font-weight: 900;
  text-align: center;
}

.rank-card img {
  width: 74px;
  height: 96px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-info strong {
  display: block;
  color: var(--amber-900);
  font-size: 17px;
}

.rank-info em {
  display: block;
  margin-top: 6px;
  color: var(--amber-700);
  font-size: 13px;
  font-style: normal;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--amber-900);
}

.detail-bg {
  position: absolute;
  inset: 0;
}

.detail-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  filter: blur(2px);
  transform: scale(1.02);
}

.detail-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(44, 26, 11, 0.94), rgba(120, 53, 15, 0.76));
}

.detail-hero-inner {
  position: relative;
  padding: 36px 0 64px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--amber-100);
  font-size: 14px;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 34px;
  align-items: center;
  margin-top: 30px;
}

.detail-poster {
  overflow: hidden;
  border: 6px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.34);
}

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

.detail-copy h1 {
  margin: 16px 0 0;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.12;
}

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

.detail-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.detail-meta li {
  border: 1px solid rgba(253, 230, 138, 0.28);
  border-radius: 16px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.1);
}

.detail-meta span,
.detail-meta strong {
  display: block;
}

.detail-meta span {
  color: var(--amber-200);
  font-size: 12px;
}

.detail-meta strong {
  margin-top: 4px;
  color: var(--white);
  font-size: 15px;
}

.detail-actions {
  margin-top: 28px;
}

.video-player {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000000;
  box-shadow: var(--shadow);
}

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

.play-toggle {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: var(--white);
  background: radial-gradient(circle, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.62));
  cursor: pointer;
}

.video-player.is-started .play-toggle {
  opacity: 0;
  pointer-events: none;
}

.play-icon {
  width: 72px;
  height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding-left: 5px;
  color: var(--amber-900);
  background: var(--amber-300);
  font-size: 30px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.36);
}

.play-toggle span:last-child {
  font-size: 18px;
  font-weight: 900;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.85fr);
  gap: 24px;
  align-items: start;
}

.story-card,
.info-card {
  border: 1px solid var(--amber-200);
  border-radius: 24px;
  padding: 26px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.story-card h2,
.info-card h2 {
  margin: 0 0 12px;
  color: var(--amber-900);
  font-size: 24px;
}

.story-card h2:not(:first-child),
.info-card h2:not(:first-child) {
  margin-top: 28px;
}

.story-card p,
.info-card p {
  margin: 0;
  color: #5d3a14;
  font-size: 16px;
}

.tag-cloud {
  align-items: flex-start;
}

.tag-cloud a {
  color: var(--amber-800);
}

.site-footer {
  margin-top: 48px;
  border-top: 1px solid var(--amber-200);
  background: linear-gradient(180deg, var(--amber-50), #ffedd5);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
}

.footer-brand {
  color: var(--amber-900);
  font-size: 22px;
  font-weight: 900;
}

.site-footer h2 {
  margin: 0 0 12px;
  color: var(--amber-900);
  font-size: 16px;
}

.site-footer p,
.site-footer a,
.footer-bottom {
  color: var(--amber-700);
  font-size: 14px;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: 8px;
}

.site-footer a:hover {
  color: var(--amber-900);
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--amber-200);
  text-align: center;
}

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

@media (max-width: 1080px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

  .menu-button {
    display: inline-flex;
    margin-left: auto;
  }

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

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

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

@media (max-width: 760px) {
  .header-inner {
    height: 64px;
  }

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

  .hero,
  .hero-stage,
  .hero-slide img {
    min-height: 560px;
  }

  .hero-content {
    top: 52%;
  }

  .hero p {
    font-size: 16px;
  }

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

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

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

  .category-grid,
  .large-category-grid,
  .movie-grid,
  .featured-grid,
  .preview-grid,
  .library-grid,
  .rank-list,
  .top-rank-grid,
  .content-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .detail-poster {
    width: min(280px, 100%);
  }

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

@media (max-width: 460px) {
  .container,
  .header-inner,
  .mobile-nav,
  .footer-inner {
    width: min(100% - 22px, 1180px);
  }

  .brand-subtitle {
    display: none;
  }

  .small-hero {
    padding: 54px 0;
  }

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