:root {
  --page-bg: #fff7ed;
  --panel: #ffffff;
  --ink: #1f2937;
  --muted: #6b7280;
  --brand: #f59e0b;
  --brand-deep: #ea580c;
  --brand-dark: #78350f;
  --line: rgba(217, 119, 6, 0.18);
  --shadow: 0 24px 60px rgba(120, 53, 15, 0.16);
}

body {
  min-height: 100vh;
  color: var(--ink);
  background: linear-gradient(180deg, #fffbeb 0%, #fff7ed 42%, #fff 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

main {
  min-height: 62vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(255, 251, 235, 0.95), rgba(255, 237, 213, 0.95));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 32px rgba(146, 64, 14, 0.12);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #92400e;
  font-weight: 900;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  box-shadow: 0 12px 22px rgba(234, 88, 12, 0.28);
}

.brand-name {
  font-size: 24px;
  background: linear-gradient(90deg, #d97706, #ea580c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.nav-link {
  color: #4b5563;
  font-weight: 700;
  font-size: 15px;
  position: relative;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--brand-deep));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #d97706;
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.top-search,
.mobile-search,
.search-panel {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-search input,
.mobile-search input,
.search-panel input,
.filter-bar input {
  border: 2px solid rgba(245, 158, 11, 0.24);
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.top-search input {
  width: 210px;
  padding: 10px 14px;
}

.top-search input:focus,
.mobile-search input:focus,
.search-panel input:focus,
.filter-bar input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

.top-search button,
.mobile-search button,
.search-panel button,
.hero-button,
.ghost-button,
.category-link-button {
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.top-search button,
.mobile-search button,
.search-panel button,
.hero-button,
.category-link-button {
  color: #ffffff;
  background: linear-gradient(90deg, var(--brand), var(--brand-deep));
  box-shadow: 0 16px 30px rgba(234, 88, 12, 0.22);
}

.top-search button {
  padding: 10px 16px;
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: #92400e;
  background: rgba(245, 158, 11, 0.12);
  font-size: 22px;
}

.mobile-nav {
  display: none;
  padding: 16px 24px 22px;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

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

.mobile-nav a {
  padding: 10px 12px;
  border-radius: 12px;
  color: #4b5563;
  font-weight: 700;
}

.mobile-nav a:hover {
  background: #fffbeb;
  color: #d97706;
}

.mobile-search input {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
}

.mobile-search button,
.search-panel button {
  padding: 10px 18px;
}

.hero {
  position: relative;
  height: 620px;
  overflow: hidden;
  background: #111827;
}

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

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

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

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.54) 48%, rgba(0, 0, 0, 0.16) 100%);
}

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}

.hero-copy-inner {
  max-width: 720px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  color: #ffffff;
  background: rgba(245, 158, 11, 0.92);
  border-radius: 999px;
  font-weight: 900;
  margin-bottom: 18px;
  box-shadow: 0 18px 32px rgba(245, 158, 11, 0.25);
}

.hero h1,
.hero h2 {
  max-width: 760px;
  color: #ffffff;
  font-size: clamp(42px, 6.2vw, 76px);
  line-height: 0.96;
  letter-spacing: -0.05em;
  font-weight: 950;
  margin-bottom: 24px;
}

.hero p {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 20px;
  line-height: 1.72;
  margin-bottom: 32px;
}

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

.hero-button,
.ghost-button,
.category-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
}

.ghost-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(12px);
}

.hero-button:hover,
.ghost-button:hover,
.category-link-button:hover,
.search-panel button:hover,
.top-search button:hover,
.mobile-search button:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 40px rgba(234, 88, 12, 0.28);
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 30px;
  z-index: 5;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  transition: width 0.25s ease, background 0.25s ease;
}

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

.section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 24px;
}

.section-soft {
  background: linear-gradient(90deg, rgba(254, 243, 199, 0.9), rgba(255, 237, 213, 0.9));
}

.section-dark {
  background: linear-gradient(135deg, #78350f, #7c2d12);
  color: #ffffff;
}

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

.section-title h1,
.section-title h2 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: -0.04em;
  color: #111827;
}

.section-dark .section-title h2,
.section-dark .section-title p {
  color: #ffffff;
}

.section-title p,
.lead-text {
  color: var(--muted);
  line-height: 1.8;
  max-width: 760px;
}

.section-more {
  color: #d97706;
  font-weight: 900;
}

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

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

.movie-card,
.movie-row-card,
.category-card,
.rank-card,
.info-panel,
.player-panel,
.detail-side,
.search-card {
  background: #ffffff;
  border: 1px solid rgba(245, 158, 11, 0.16);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(120, 53, 15, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover,
.movie-row-card:hover,
.category-card:hover,
.rank-card:hover,
.search-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(245, 158, 11, 0.38);
}

.card-poster,
.row-poster {
  position: relative;
  display: block;
  background: #fef3c7;
  overflow: hidden;
}

.card-poster {
  aspect-ratio: 3 / 4;
}

.card-poster img,
.row-poster img,
.detail-cover img,
.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.score-pill {
  position: absolute;
  top: 12px;
  right: 12px;
  color: #ffffff;
  background: rgba(245, 158, 11, 0.94);
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 950;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.card-body,
.row-body {
  padding: 18px;
}

.card-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.card-badges span,
.tag-list span,
.info-list span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #92400e;
  background: #fffbeb;
  border: 1px solid rgba(245, 158, 11, 0.2);
  font-size: 12px;
  font-weight: 800;
  padding: 5px 9px;
}

.movie-card h3,
.movie-row-card h3,
.rank-card h3,
.search-card h3 {
  color: #111827;
  font-size: 20px;
  line-height: 1.28;
  font-weight: 950;
  margin-bottom: 10px;
}

.movie-card p,
.movie-row-card p,
.rank-card p,
.search-card p {
  color: #6b7280;
  line-height: 1.75;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #9a3412;
  font-size: 13px;
  font-weight: 800;
  margin-top: 14px;
}

.carousel-shell {
  position: relative;
}

.carousel-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 8px 58px 20px;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-track .movie-card {
  min-width: 300px;
  max-width: 300px;
}

.carousel-btn {
  position: absolute;
  top: 42%;
  z-index: 4;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  color: #92400e;
  background: #ffffff;
  box-shadow: 0 14px 28px rgba(120, 53, 15, 0.18);
  font-size: 26px;
  font-weight: 900;
}

.carousel-btn.left {
  left: 0;
}

.carousel-btn.right {
  right: 0;
}

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

.category-card {
  min-height: 190px;
  padding: 28px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
}

.category-card:nth-child(2n) {
  background: linear-gradient(135deg, #fb923c, #dc2626);
}

.category-card:nth-child(3n) {
  background: linear-gradient(135deg, #fbbf24, #d97706);
}

.category-card h2,
.category-card h3 {
  font-size: 27px;
  font-weight: 950;
  margin-bottom: 12px;
}

.category-card p {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.75;
  margin-bottom: 18px;
}

.category-card a {
  font-weight: 900;
}

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

.rank-card {
  display: grid;
  grid-template-columns: 82px 110px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
}

.rank-num {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  border-radius: 20px;
  font-size: 26px;
  font-weight: 950;
  box-shadow: 0 14px 24px rgba(234, 88, 12, 0.24);
}

.rank-card img {
  width: 110px;
  height: 142px;
  object-fit: cover;
  border-radius: 18px;
}

.row-stack {
  display: grid;
  gap: 18px;
}

.movie-row-card {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 0;
}

.row-poster {
  min-height: 210px;
}

.band {
  padding: 80px 24px;
  text-align: center;
  background: linear-gradient(90deg, #f59e0b, #ea580c);
  color: #ffffff;
}

.band h2 {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 950;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
}

.band p {
  max-width: 720px;
  margin: 0 auto 34px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 20px;
  line-height: 1.75;
}

.band-features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  max-width: 980px;
  margin: 0 auto;
}

.band-features div {
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  font-size: 18px;
  font-weight: 900;
}

.page-hero {
  padding: 72px 24px 42px;
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
  border-bottom: 1px solid var(--line);
}

.page-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: #9a3412;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 20px;
}

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

.page-hero h1 {
  max-width: 980px;
  color: #111827;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.05em;
  margin-bottom: 18px;
}

.page-hero p {
  max-width: 820px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.8;
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 20px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 16px 36px rgba(120, 53, 15, 0.08);
  margin-bottom: 30px;
}

.filter-bar input {
  flex: 1;
  min-width: 260px;
  padding: 12px 16px;
}

.filter-chip {
  padding: 10px 16px;
  border-radius: 999px;
  color: #92400e;
  background: #fffbeb;
  border: 1px solid rgba(245, 158, 11, 0.25);
  font-weight: 900;
}

.filter-chip.is-active,
.filter-chip:hover {
  color: #ffffff;
  background: linear-gradient(90deg, var(--brand), var(--brand-deep));
}

.detail-layout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 42px 24px 72px;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 0.92fr);
  gap: 28px;
}

.player-panel {
  padding: 18px;
}

.player-box {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 20px;
  background: #000000;
}

.player-box video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
  cursor: pointer;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #000000;
}

.player-cover img {
  position: absolute;
  inset: 0;
  opacity: 0.72;
  filter: brightness(0.72);
}

.player-cover.is-hidden {
  display: none;
}

.play-core {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  gap: 14px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 950;
}

.play-ring {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.34);
  font-size: 38px;
}

.detail-side {
  padding: 22px;
}

.detail-cover {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 22px;
  margin-bottom: 22px;
  background: #fef3c7;
}

.detail-side h1 {
  color: #111827;
  font-size: 31px;
  line-height: 1.18;
  font-weight: 950;
  letter-spacing: -0.04em;
  margin-bottom: 14px;
}

.info-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.detail-actions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.detail-actions a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 13px 16px;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--brand), var(--brand-deep));
  font-weight: 950;
}

.info-panel {
  max-width: 1280px;
  margin: 0 auto 32px;
  padding: 34px;
}

.info-panel h2 {
  color: #111827;
  font-size: 30px;
  font-weight: 950;
  letter-spacing: -0.03em;
  margin: 28px 0 12px;
}

.info-panel h2:first-child {
  margin-top: 0;
}

.info-panel p {
  color: #4b5563;
  font-size: 17px;
  line-height: 1.95;
}

.search-shell {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px 64px;
}

.search-panel {
  padding: 18px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(120, 53, 15, 0.1);
  margin-top: -22px;
  position: relative;
  z-index: 2;
}

.search-panel input {
  flex: 1;
  min-width: 0;
  padding: 14px 18px;
}

.search-results {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.search-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 18px;
  padding: 14px;
}

.search-card img {
  width: 96px;
  height: 128px;
  object-fit: cover;
  border-radius: 16px;
}

.site-footer {
  color: #fffbeb;
  background: linear-gradient(180deg, #78350f, #451a03);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 54px 24px 32px;
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr 1fr;
  gap: 34px;
}

.footer-logo .brand-name {
  color: #ffffff;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
}

.footer-brand p,
.site-footer a,
.footer-bottom {
  color: rgba(255, 251, 235, 0.78);
}

.footer-brand p {
  margin-top: 16px;
  line-height: 1.8;
}

.site-footer h2 {
  color: #fbbf24;
  font-size: 18px;
  font-weight: 950;
  margin-bottom: 16px;
}

.site-footer li {
  margin-bottom: 10px;
}

.site-footer a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(251, 191, 36, 0.18);
  text-align: center;
  padding: 18px 24px 26px;
}

.hidden-by-filter {
  display: none !important;
}

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

  .mobile-toggle {
    display: inline-grid;
    place-items: center;
    margin-left: auto;
  }

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

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

@media (max-width: 720px) {
  .nav-shell {
    padding: 0 16px;
  }

  .brand-name {
    font-size: 20px;
  }

  .hero {
    height: 560px;
  }

  .hero-copy {
    padding: 0 18px;
  }

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

  .section,
  .detail-layout,
  .search-shell {
    padding-left: 16px;
    padding-right: 16px;
  }

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

  .movie-grid,
  .movie-grid.dense,
  .category-grid,
  .rank-list,
  .band-features {
    grid-template-columns: 1fr;
  }

  .movie-row-card,
  .rank-card,
  .search-card {
    grid-template-columns: 1fr;
  }

  .rank-card img,
  .search-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
  }

  .carousel-track {
    padding-left: 0;
    padding-right: 0;
  }

  .carousel-btn {
    display: none;
  }

  .filter-bar input {
    min-width: 100%;
  }
}
