:root {
  --bg: #fff7ed;
  --bg-soft: #fffbeb;
  --panel: #ffffff;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: rgba(251, 191, 36, 0.28);
  --brand: #f59e0b;
  --brand-deep: #ea580c;
  --brand-soft: #fef3c7;
  --shadow: 0 18px 45px rgba(146, 64, 14, 0.14);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(251, 191, 36, 0.22), transparent 30%),
    linear-gradient(180deg, #fff7ed 0%, #ffffff 48%, #fff7ed 100%);
  min-height: 100vh;
}

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

img {
  display: block;
  width: 100%;
}

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(146, 64, 14, 0.08);
}

.header-main {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.03em;
}

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

.logo-text {
  font-size: 22px;
  background: linear-gradient(135deg, #d97706, #ea580c);
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 10px 16px;
  border-radius: 14px;
  color: #4b5563;
  transition: 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  box-shadow: 0 12px 24px rgba(234, 88, 12, 0.22);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 0;
  border-radius: 14px;
  background: var(--brand-soft);
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--brand-deep);
  border-radius: 999px;
}

.category-ribbon {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 0 0 14px;
  scrollbar-width: thin;
}

.category-ribbon a {
  flex: 0 0 auto;
  padding: 7px 13px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--line);
  color: #7c2d12;
  font-size: 14px;
  box-shadow: 0 6px 16px rgba(146, 64, 14, 0.06);
  transition: 0.25s ease;
}

.category-ribbon a:hover {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
}

.hero-wrap {
  padding: 34px 0 26px;
}

.hero-slider {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  border-radius: 36px;
  box-shadow: var(--shadow);
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 34px;
  align-items: center;
  padding: 64px;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.92) 0%, rgba(17, 24, 39, 0.66) 48%, rgba(17, 24, 39, 0.28) 100%),
    var(--hero-image) center / cover no-repeat;
  transform: scale(1.04);
}

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

.hero-copy,
.hero-poster {
  position: relative;
  z-index: 2;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  color: #fff7ed;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 720px;
  margin: 22px 0 16px;
  color: #ffffff;
  font-size: clamp(38px, 6vw, 74px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.hero-copy p {
  max-width: 680px;
  margin: 0 0 22px;
  color: #fde68a;
  font-size: 18px;
  line-height: 1.85;
}

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

.hero-tags span,
.tag-row span {
  padding: 6px 10px;
  border-radius: 999px;
  color: #92400e;
  background: #fffbeb;
  border: 1px solid rgba(251, 191, 36, 0.36);
  font-size: 13px;
}

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

.primary-btn,
.ghost-btn,
.text-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: 0.25s ease;
}

.primary-btn {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  box-shadow: 0 14px 28px rgba(234, 88, 12, 0.26);
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(234, 88, 12, 0.34);
}

.ghost-btn {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.12);
}

.ghost-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

.hero-poster {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  min-height: 410px;
  border-radius: 32px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
}

.hero-poster img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  transition: 0.35s ease;
}

.hero-poster:hover img {
  transform: scale(1.06);
}

.hero-poster span {
  position: relative;
  z-index: 2;
  margin: 18px;
  padding: 10px 14px;
  width: fit-content;
  color: #ffffff;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(12px);
}

.hero-dots {
  position: absolute;
  z-index: 4;
  left: 64px;
  bottom: 34px;
  display: flex;
  gap: 10px;
}

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

.hero-dot.active {
  width: 34px;
  background: #ffffff;
}

.hero-search {
  width: min(920px, calc(100% - 32px));
  margin: -38px auto 0;
  position: relative;
  z-index: 5;
  padding: 20px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  box-shadow: 0 18px 42px rgba(146, 64, 14, 0.16);
  backdrop-filter: blur(16px);
}

.hero-search label {
  display: block;
  margin: 0 0 10px;
  color: #92400e;
  font-weight: 800;
}

.hero-search div {
  display: flex;
  gap: 12px;
}

.hero-search input,
.search-panel input,
.search-panel select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 16px;
  outline: none;
  color: var(--ink);
  background: #ffffff;
}

.hero-search input:focus,
.search-panel input:focus,
.search-panel select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

.hero-search button {
  min-width: 120px;
  border: 0;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  cursor: pointer;
  font-weight: 800;
}

.section-block,
.split-section {
  padding: 34px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.section-head h2,
.page-hero h1,
.detail-copy h1,
.detail-section h2 {
  margin: 10px 0 0;
  color: #111827;
}

.section-head h2 {
  font-size: clamp(26px, 4vw, 42px);
}

.section-head a,
.text-btn {
  color: #ea580c;
  font-weight: 800;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: var(--panel);
  border: 1px solid rgba(251, 191, 36, 0.22);
  box-shadow: 0 12px 28px rgba(146, 64, 14, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #fed7aa;
}

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

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

.poster-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.58);
  font-size: 12px;
  backdrop-filter: blur(10px);
}

.card-body {
  padding: 16px;
}

.card-title {
  display: block;
  color: #111827;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.25s ease;
}

.card-title:hover {
  color: #ea580c;
}

.card-desc {
  min-height: 44px;
  margin: 9px 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  color: #92400e;
  font-size: 13px;
  font-weight: 700;
}

.card-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #fffbeb;
}

.tag-row span {
  font-size: 12px;
}

.tag-row.large span {
  font-size: 14px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 26px;
  align-items: start;
}

.rank-panel {
  padding: 22px;
  border-radius: 28px;
  background: linear-gradient(180deg, #ffffff 0%, #fffbeb 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.sticky-panel {
  position: sticky;
  top: 120px;
}

.section-head.small {
  margin-bottom: 14px;
}

.section-head.small h2 {
  font-size: 24px;
}

.rank-list {
  display: grid;
  gap: 8px;
}

.rank-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 11px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  transition: 0.25s ease;
}

.rank-item:hover {
  background: #ffffff;
  transform: translateX(4px);
}

.rank-num {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #ffffff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  font-weight: 900;
}

.rank-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 900;
}

.rank-meta {
  color: var(--muted);
  font-size: 12px;
}

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

.category-card,
.category-overview-card {
  border-radius: 26px;
  padding: 22px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(146, 64, 14, 0.08);
  transition: 0.25s ease;
}

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

.category-card span,
.category-overview-card h2 {
  color: #111827;
  font-size: 22px;
  font-weight: 900;
}

.category-card p,
.category-overview-card p,
.page-hero p {
  color: var(--muted);
  line-height: 1.8;
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.category-samples a {
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 13px;
}

.category-samples.vertical {
  display: grid;
}

.page-hero {
  padding: 58px 0 28px;
}

.page-hero h1 {
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing: -0.04em;
}

.compact-hero {
  padding-bottom: 12px;
}

.page-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.page-links a {
  padding: 8px 12px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--line);
  color: #9a3412;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.category-cover-stack {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.category-cover-stack img {
  aspect-ratio: 3 / 4;
  height: auto;
  object-fit: cover;
  border-radius: 14px;
}

.search-panel {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 12px;
  margin-top: 24px;
  padding: 18px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(146, 64, 14, 0.08);
}

.movie-card.is-hidden {
  display: none;
}

.detail-hero {
  padding: 34px 0 20px;
}

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

.detail-grid {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  padding: 30px;
  border-radius: 34px;
  background: linear-gradient(135deg, #ffffff 0%, #fffbeb 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 24px 46px rgba(146, 64, 14, 0.18);
}

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

.detail-copy h1 {
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.lead-text {
  color: #4b5563;
  font-size: 18px;
  line-height: 1.9;
}

.info-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.info-pills span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #92400e;
  background: #ffffff;
  border: 1px solid var(--line);
  font-weight: 800;
}

.player-shell {
  padding: 18px 0 30px;
}

.player-stage {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  background: #111827;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

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

.poster-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: #111827;
  cursor: pointer;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.poster-layer.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.poster-layer-image,
.poster-layer-mask {
  position: absolute;
  inset: 0;
}

.poster-layer-image {
  background-position: center;
  background-size: cover;
  filter: saturate(1.08);
  transform: scale(1.02);
}

.poster-layer-mask {
  background:
    radial-gradient(circle at center, rgba(245, 158, 11, 0.18), transparent 28%),
    linear-gradient(90deg, rgba(17, 24, 39, 0.72), rgba(17, 24, 39, 0.26));
}

.play-orb {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 84px;
  height: 84px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  box-shadow: 0 18px 48px rgba(234, 88, 12, 0.46);
  font-size: 30px;
  padding-left: 5px;
}

.detail-content {
  display: grid;
  gap: 24px;
  padding-bottom: 48px;
}

.detail-section {
  padding: 28px;
  border-radius: 28px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(146, 64, 14, 0.08);
}

.detail-section h2 {
  margin: 0 0 14px;
  font-size: 28px;
}

.detail-section p {
  margin: 0;
  color: #4b5563;
  line-height: 2;
  font-size: 16px;
}

.site-footer {
  margin-top: 34px;
  padding: 42px 0;
  color: #fde68a;
  background: #111827;
}

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

.footer-logo {
  color: #ffffff;
  font-size: 24px;
}

.site-footer p {
  max-width: 620px;
  color: #fcd34d;
  line-height: 1.8;
}

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

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

@media (max-width: 1024px) {
  .movie-grid,
  .movie-grid.tight {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-slide {
    grid-template-columns: 1fr 260px;
    padding: 46px;
  }

  .split-section,
  .ranking-layout {
    grid-template-columns: 1fr;
  }

  .sticky-panel {
    position: static;
  }

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

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

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

  .header-main {
    min-height: 64px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    left: 11px;
    right: 11px;
    top: 66px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: var(--shadow);
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-link {
    text-align: center;
  }

  .category-ribbon {
    padding-bottom: 10px;
  }

  .hero-slider {
    min-height: 640px;
    border-radius: 28px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 24px 70px;
  }

  .hero-copy h1 {
    font-size: 42px;
  }

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

  .hero-poster {
    min-height: 240px;
  }

  .hero-dots {
    left: 24px;
    bottom: 24px;
  }

  .hero-search div,
  .footer-grid {
    flex-direction: column;
  }

  .hero-search button {
    min-height: 48px;
  }

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

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

  .card-body {
    padding: 12px;
  }

  .card-desc {
    min-height: 38px;
    font-size: 13px;
  }

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

  .category-overview-card,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .detail-grid {
    padding: 18px;
    border-radius: 26px;
  }

  .detail-poster {
    max-width: 270px;
    margin: 0 auto;
  }

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

  .player-stage {
    border-radius: 22px;
  }
}

@media (max-width: 440px) {
  .movie-grid,
  .movie-grid.tight,
  .category-list,
  .search-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    font-size: 34px;
  }

  .logo-text {
    font-size: 18px;
  }
}
