:root {
  --bg: #fff8ed;
  --bg-soft: #fffbeb;
  --surface: #ffffff;
  --surface-strong: #fff7ed;
  --text: #3b2107;
  --muted: #8a5a1f;
  --line: rgba(180, 83, 9, 0.18);
  --brand: #d97706;
  --brand-dark: #92400e;
  --brand-light: #f59e0b;
  --shadow: 0 24px 60px rgba(120, 53, 15, 0.16);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(251, 191, 36, 0.22), transparent 32rem),
    linear-gradient(180deg, #fff8ed 0%, #fff7ed 44%, #fffbeb 100%);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  min-height: 100vh;
}

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

img {
  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;
  background: rgba(255, 248, 237, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(120, 53, 15, 0.08);
}

.header-inner {
  min-height: 76px;
  display: grid;
  grid-template-columns: auto 1fr minmax(240px, 320px);
  align-items: center;
  gap: 22px;
}

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

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--brand-light), var(--brand-dark));
  box-shadow: 0 12px 28px rgba(217, 119, 6, 0.28);
}

.brand-text {
  display: grid;
  gap: 1px;
}

.brand-name {
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #78350f;
  white-space: nowrap;
}

.brand-subtitle {
  font-size: 0.78rem;
  color: var(--muted);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.primary-nav::-webkit-scrollbar {
  display: none;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  color: #92400e;
  font-weight: 700;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #451a03;
  background: #fde68a;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #78350f;
  background: #fef3c7;
  cursor: pointer;
}

.header-search {
  position: relative;
}

.header-search input,
.page-filter input {
  width: 100%;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(217, 119, 6, 0.22);
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
  padding: 0 18px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.page-filter input:focus {
  border-color: rgba(217, 119, 6, 0.62);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

.search-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(420px, 90vw);
  max-height: 430px;
  overflow: auto;
  display: none;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
}

.search-panel.is-visible {
  display: grid;
  gap: 8px;
}

.search-panel a,
.search-empty {
  display: grid;
  gap: 3px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff7ed;
  color: var(--text);
}

.search-panel a:hover {
  background: #fde68a;
}

.search-panel strong {
  font-size: 0.98rem;
}

.search-panel span,
.search-empty {
  color: var(--muted);
  font-size: 0.84rem;
}

.home-hero {
  position: relative;
  padding: 36px 0 54px;
  overflow: hidden;
}

.hero-title-panel {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 24px;
  display: grid;
  gap: 12px;
}

.eyebrow,
.hero-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(254, 243, 199, 0.9);
  color: #92400e;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.hero-title-panel h1,
.page-hero h1 {
  margin: 0;
  color: #451a03;
  font-size: clamp(2.15rem, 6vw, 4.9rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-title-panel p,
.page-hero p {
  margin: 0;
  max-width: 760px;
  color: #78350f;
  font-size: clamp(1rem, 1.8vw, 1.22rem);
  line-height: 1.8;
}

.hero-quick-links,
.category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-quick-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 999px;
  color: #78350f;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(217, 119, 6, 0.18);
  font-weight: 800;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.hero-quick-links a:hover {
  transform: translateY(-2px);
  background: #fde68a;
}

.hero-stage {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  min-height: clamp(520px, 70vw, 680px);
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #451a03;
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.55s ease, transform 0.55s ease;
  pointer-events: none;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1) contrast(1.04);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 38%, rgba(251, 191, 36, 0.22), transparent 24rem),
    linear-gradient(90deg, rgba(69, 26, 3, 0.92), rgba(69, 26, 3, 0.62) 48%, rgba(69, 26, 3, 0.18));
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 340px);
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
  min-height: inherit;
  padding: clamp(24px, 6vw, 74px);
}

.hero-copy {
  display: grid;
  gap: 18px;
  color: #fff;
}

.hero-copy .hero-kicker {
  background: rgba(255, 255, 255, 0.16);
  color: #fde68a;
  backdrop-filter: blur(10px);
}

.hero-copy h2 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2rem, 6vw, 5.8rem);
  line-height: 0.96;
  letter-spacing: -0.07em;
}

.hero-copy p {
  margin: 0;
  max-width: 680px;
  color: #ffedd5;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  line-height: 1.8;
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #92400e;
  background: #fef3c7;
  font-size: 0.78rem;
  font-weight: 800;
}

.hero-tags span {
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

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

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-light), var(--brand-dark));
  box-shadow: 0 14px 28px rgba(146, 64, 14, 0.28);
}

.button-ghost {
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
}

.hero-poster {
  justify-self: end;
  display: block;
  width: min(100%, 310px);
  aspect-ratio: 2 / 3;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
  transform: rotate(2deg);
  transition: transform 0.25s ease;
}

.hero-poster:hover {
  transform: rotate(0deg) scale(1.02);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-controls {
  width: min(1180px, calc(100% - 32px));
  margin: 16px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.hero-arrow,
.hero-dot {
  border: 0;
  cursor: pointer;
}

.hero-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #78350f;
  background: #fff;
  font-size: 1.8rem;
  box-shadow: 0 10px 22px rgba(120, 53, 15, 0.12);
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 28px;
  height: 10px;
  border-radius: 999px;
  background: rgba(146, 64, 14, 0.22);
}

.hero-dot.is-active {
  width: 48px;
  background: var(--brand);
}

.section-block {
  padding: clamp(48px, 7vw, 90px) 0;
}

.alt-block {
  background: rgba(255, 251, 235, 0.72);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.soft-panel {
  background:
    radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.14), transparent 24rem),
    transparent;
}

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

.section-heading h2 {
  margin: 10px 0 0;
  color: #451a03;
  font-size: clamp(1.65rem, 4vw, 2.8rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.section-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #92400e;
  font-weight: 900;
}

.section-more span {
  font-size: 1.5rem;
  transition: transform 0.2s ease;
}

.section-more:hover span {
  transform: translateX(3px);
}

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

.movie-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 260px);
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
}

.movie-card {
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(120, 53, 15, 0.08);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  scroll-snap-align: start;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(217, 119, 6, 0.36);
  box-shadow: 0 24px 48px rgba(120, 53, 15, 0.16);
}

.movie-card.compact .movie-desc {
  display: none;
}

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

.movie-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease, filter 0.3s ease;
}

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

.play-chip,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.play-chip {
  left: 12px;
  bottom: 12px;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(69, 26, 3, 0.78);
  backdrop-filter: blur(10px);
}

.rank-badge {
  top: 12px;
  left: 12px;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #b45309);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.22);
}

.movie-card-body {
  display: grid;
  gap: 9px;
  padding: 14px;
}

.movie-card h3 {
  margin: 0;
  color: #451a03;
  font-size: 1.04rem;
  line-height: 1.35;
}

.movie-card h3 a:hover {
  color: var(--brand-dark);
}

.movie-meta,
.movie-desc {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.movie-meta {
  font-size: 0.83rem;
  font-weight: 700;
}

.movie-desc {
  font-size: 0.9rem;
}

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

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

.category-tile {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(120, 53, 15, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 46px rgba(120, 53, 15, 0.14);
}

.category-main {
  display: grid;
  gap: 8px;
}

.category-icon {
  font-size: 2.2rem;
}

.category-main strong {
  color: #451a03;
  font-size: 1.2rem;
}

.category-main span:last-child {
  color: var(--muted);
  line-height: 1.65;
}

.category-samples {
  display: grid;
  gap: 7px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.category-samples a {
  color: #92400e;
  font-size: 0.9rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-hero,
.detail-hero {
  padding: clamp(38px, 6vw, 76px) 0;
  background:
    radial-gradient(circle at 82% 12%, rgba(245, 158, 11, 0.2), transparent 24rem),
    linear-gradient(180deg, rgba(255, 251, 235, 0.96), rgba(255, 248, 237, 0.72));
  border-bottom: 1px solid var(--line);
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  align-items: end;
  gap: 24px;
}

.page-filter {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 14px 28px rgba(120, 53, 15, 0.08);
}

.page-filter label {
  color: #78350f;
  font-weight: 900;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 22px;
  color: #92400e;
  font-weight: 800;
}

.breadcrumb a:hover {
  color: #451a03;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(22px, 4vw, 38px);
  align-items: start;
}

.player-column {
  display: grid;
  gap: 22px;
}

.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #1c0f04;
  box-shadow: 0 30px 70px rgba(69, 26, 3, 0.25);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.12), rgba(0, 0, 0, 0.32));
  transition: opacity 0.2s ease;
  z-index: 3;
}

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

.player-pulse {
  position: absolute;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  animation: pulse 1.7s ease-in-out infinite;
}

.player-triangle {
  position: relative;
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #b45309);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.36);
  font-size: 2rem;
  padding-left: 5px;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(0.9);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.86;
  }
}

.detail-title-block {
  display: grid;
  gap: 12px;
}

.detail-title-block h1 {
  margin: 0;
  color: #451a03;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.detail-title-block p {
  margin: 0;
  color: #78350f;
  line-height: 1.8;
  font-size: 1.06rem;
}

.detail-side {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 40px rgba(120, 53, 15, 0.12);
}

.detail-poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 18px;
  object-fit: cover;
  background: #fed7aa;
}

.detail-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.detail-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.detail-list span {
  color: var(--muted);
}

.detail-list strong {
  color: #451a03;
  text-align: right;
}

.full-button {
  width: 100%;
}

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

.content-panel {
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 36px rgba(120, 53, 15, 0.08);
}

.content-panel h2 {
  margin: 0 0 12px;
  color: #451a03;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.content-panel p {
  margin: 0;
  color: #65400f;
  line-height: 1.95;
  font-size: 1.02rem;
}

.site-footer {
  padding: 42px 0;
  background: #451a03;
  color: #ffedd5;
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand {
  display: inline-flex;
  margin-bottom: 8px;
  font-size: 1.35rem;
  font-weight: 900;
  color: #fff7ed;
}

.site-footer p {
  max-width: 620px;
  margin: 0;
  color: #fed7aa;
  line-height: 1.75;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

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

@media (max-width: 1080px) {
  .header-inner {
    grid-template-columns: auto auto 1fr;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .primary-nav {
    position: fixed;
    left: 16px;
    right: 16px;
    top: 84px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

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

  .nav-link {
    justify-content: center;
  }

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

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

  .large-category-grid,
  .detail-content-grid {
    grid-template-columns: 1fr;
  }

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

  .detail-side {
    position: static;
    grid-template-columns: 180px 1fr;
  }

  .detail-side .button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .container,
  .hero-title-panel,
  .hero-stage,
  .hero-controls {
    width: min(100% - 22px, 1180px);
  }

  .header-inner {
    grid-template-columns: auto auto;
    gap: 12px;
    padding: 10px 0;
  }

  .brand-subtitle {
    display: none;
  }

  .header-search {
    grid-column: 1 / -1;
  }

  .home-hero {
    padding-top: 24px;
  }

  .hero-stage {
    min-height: 720px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    align-content: center;
    padding: 24px;
  }

  .hero-poster {
    justify-self: start;
    width: min(220px, 68vw);
  }

  .section-heading,
  .footer-grid,
  .page-hero-grid {
    align-items: start;
    flex-direction: column;
    grid-template-columns: 1fr;
  }

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

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

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

  .movie-desc {
    display: none;
  }

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

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

@media (max-width: 460px) {
  .movie-grid {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    min-height: 760px;
  }

  .hero-actions .button {
    width: 100%;
  }
}
