:root {
  --bg: #fffbf3;
  --surface: #ffffff;
  --surface-warm: #fff7e8;
  --text: #292524;
  --muted: #78716c;
  --light: #f5f5f4;
  --line: #e7e5e4;
  --amber: #d97706;
  --amber-dark: #b45309;
  --amber-soft: #fef3c7;
  --dark: #1c1917;
  --shadow: 0 20px 60px rgba(120, 53, 15, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

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:
    radial-gradient(circle at top left, rgba(251, 191, 36, 0.20), transparent 34rem),
    linear-gradient(180deg, #fffaf0 0%, #fff7ed 38%, #fdf7ee 100%);
  line-height: 1.65;
}

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

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

.image-hide {
  opacity: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 251, 243, 0.86);
  border-bottom: 1px solid rgba(231, 229, 228, 0.86);
  backdrop-filter: blur(18px);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--dark);
}

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

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

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

.main-nav a {
  padding: 9px 14px;
  border-radius: 999px;
  color: #57534e;
  font-size: 15px;
  transition: 0.22s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--amber-dark);
  background: var(--amber-soft);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--surface-warm);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--dark);
  border-radius: 4px;
}

main {
  min-height: 70vh;
}

.hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background: var(--dark);
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 430px);
  align-items: center;
  gap: 48px;
  padding: 86px max(24px, calc((100vw - 1280px) / 2 + 24px)) 98px;
  color: white;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.04);
  transform: scale(1.04);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 40%, rgba(245, 158, 11, 0.32), transparent 32rem),
    linear-gradient(180deg, rgba(28, 25, 23, 0.12), rgba(28, 25, 23, 0.86));
}

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

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #fbbf24;
  background: rgba(120, 53, 15, 0.34);
  border: 1px solid rgba(251, 191, 36, 0.30);
  font-size: 13px;
  font-weight: 800;
}

.hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero p {
  max-width: 720px;
  margin: 24px 0 0;
  color: #fde68a;
  font-size: clamp(17px, 2vw, 22px);
}

.hero-tags,
.detail-meta,
.meta-line,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
}

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

.hero-tags span,
.tag-row span,
.detail-meta span,
.meta-line span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.82);
  color: #78350f;
  font-size: 13px;
  font-weight: 700;
}

.hero-actions,
.feature-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.btn,
button {
  font: inherit;
}

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

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

.btn.primary {
  color: white;
  background: linear-gradient(135deg, #f59e0b, #b45309);
  box-shadow: 0 16px 34px rgba(180, 83, 9, 0.34);
}

.btn.ghost {
  color: white;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.26);
}

.btn.ghost.dark {
  color: var(--dark);
  background: #fff7ed;
  border-color: #fed7aa;
}

.btn.text-btn {
  color: #fef3c7;
  background: transparent;
  padding-inline: 4px;
}

.hero-poster {
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: 30px;
  overflow: hidden;
  background: linear-gradient(135deg, #78350f, #1c1917);
  box-shadow: 0 44px 100px rgba(0, 0, 0, 0.34);
  transform: rotate(2deg);
}

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

.hero-control {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 4;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(28, 25, 23, 0.56);
  backdrop-filter: blur(12px);
}

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

.hero-arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: white;
  background: rgba(255, 255, 255, 0.16);
  font-size: 26px;
  line-height: 1;
}

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

.hero-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.42);
}

.hero-dot.active {
  width: 28px;
  border-radius: 999px;
  background: #f59e0b;
}

.quick-search-panel,
.content-section,
.category-overview,
.rank-list,
.search-box-page,
.article-section,
.breadcrumb,
.page-hero,
.detail-hero,
.player-section {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.quick-search-panel {
  margin-top: -42px;
  position: relative;
  z-index: 8;
}

.quick-search,
.search-tool {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.quick-search label {
  font-weight: 900;
  color: var(--dark);
}

.quick-search input,
.search-tool input,
.search-tool select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: 0;
  padding: 12px 15px;
  background: white;
  color: var(--text);
}

.quick-search button,
.search-tool button {
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  color: white;
  background: var(--amber);
  font-weight: 900;
  cursor: pointer;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 18px 6px 0;
}

.quick-links a,
.text-link,
.section-more {
  color: var(--amber-dark);
  font-weight: 800;
}

.quick-links a {
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
}

.content-section,
.category-overview,
.rank-list,
.search-box-page,
.article-section,
.player-section {
  padding-top: 70px;
}

.section-head,
.rank-panel-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.section-head h2,
.rank-panel-title h2,
.article-section h2,
.player-section h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-head p,
.article-section p,
.player-section p,
.category-card p,
.feature-panel p,
.page-hero p,
.detail-one-line {
  margin: 10px 0 0;
  color: var(--muted);
}

.section-kicker {
  color: var(--amber-dark);
  background: #fff7ed;
  border-color: #fed7aa;
}

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

.movie-card {
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 34px rgba(120, 53, 15, 0.10);
  border: 1px solid rgba(231, 229, 228, 0.82);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(245, 158, 11, 0.36), transparent 16rem),
    linear-gradient(135deg, #292524, #78350f);
}

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

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(28, 25, 23, 0.72));
}

.play-dot {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: white;
  background: rgba(217, 119, 6, 0.95);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.24);
}

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

.meta-line {
  gap: 6px;
}

.meta-line span {
  background: #fff7ed;
  font-size: 12px;
}

.meta-line.wide {
  margin-top: 14px;
}

.movie-card h3,
.rank-row h2,
.category-card h2 {
  margin: 10px 0 0;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.movie-card p {
  margin: 8px 0 0;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-row {
  margin-top: 12px;
}

.tag-row span {
  color: #854d0e;
  background: #fef3c7;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.75fr);
  gap: 26px;
}

.feature-panel,
.rank-panel,
.category-card,
.rank-row,
.search-box-page,
.article-section,
.player-section {
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(231, 229, 228, 0.82);
  box-shadow: var(--shadow);
}

.feature-panel,
.rank-panel {
  padding: 28px;
}

.feature-panel h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.06;
  letter-spacing: -0.06em;
}

.rank-panel-title {
  margin-bottom: 16px;
}

.rank-panel-title a {
  color: var(--amber-dark);
  font-weight: 800;
}

.rank-item {
  display: grid;
  grid-template-columns: 34px 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.rank-num,
.rank-row-num {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 12px;
  color: white;
  background: linear-gradient(135deg, #f59e0b, #b45309);
  font-weight: 900;
}

.rank-item img {
  width: 58px;
  height: 74px;
  object-fit: cover;
  border-radius: 12px;
  background: linear-gradient(135deg, #292524, #78350f);
}

.rank-info {
  min-width: 0;
}

.rank-info strong,
.rank-info em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-info em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.page-hero {
  padding-top: 68px;
}

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

.small-hero > div {
  border-radius: 30px;
  padding: clamp(32px, 6vw, 70px);
  color: white;
  background:
    radial-gradient(circle at 82% 12%, rgba(251, 191, 36, 0.34), transparent 24rem),
    linear-gradient(135deg, #1c1917, #78350f 58%, #b45309);
  box-shadow: 0 28px 70px rgba(120, 53, 15, 0.22);
}

.small-hero h1 {
  margin: 0;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.small-hero p {
  max-width: 760px;
  color: #fde68a;
  font-size: 18px;
}

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

.category-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 20px;
  padding: 18px;
}

.category-card-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.category-card-images img {
  width: 100%;
  height: 148px;
  object-fit: cover;
  border-radius: 14px;
  background: linear-gradient(135deg, #292524, #78350f);
}

.rank-list,
.search-box-page,
.article-section,
.player-section {
  padding: 24px;
  margin-top: 34px;
}

.rank-row {
  display: grid;
  grid-template-columns: 48px 112px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 18px;
  margin-bottom: 14px;
}

.rank-row-poster img {
  width: 112px;
  height: 142px;
  object-fit: cover;
  border-radius: 18px;
  background: linear-gradient(135deg, #292524, #78350f);
}

.rank-row h2 {
  font-size: 24px;
}

.rank-row p {
  margin: 8px 0 0;
  color: var(--muted);
}

.search-tool {
  grid-template-columns: minmax(0, 1fr) 180px auto;
  box-shadow: none;
  border: 1px solid var(--line);
}

.search-result-title {
  margin: 24px 0 18px;
  font-size: 24px;
  font-weight: 900;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 28px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--amber-dark);
  font-weight: 800;
}

.detail-hero {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  padding-top: 42px;
}

.detail-poster {
  aspect-ratio: 3 / 4;
  border-radius: 30px;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(245, 158, 11, 0.36), transparent 14rem),
    linear-gradient(135deg, #292524, #78350f);
  box-shadow: 0 30px 70px rgba(120, 53, 15, 0.20);
}

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

.detail-info h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.detail-meta {
  margin-top: 18px;
}

.detail-tags {
  margin-top: 18px;
}

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

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #0c0a09;
  aspect-ratio: 16 / 9;
  box-shadow: 0 28px 70px rgba(28, 25, 23, 0.22);
}

.movie-player {
  display: block;
  width: 100%;
  height: 100%;
  background: #0c0a09;
}

.play-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  border: 0;
  color: white;
  background:
    radial-gradient(circle at center, rgba(245, 158, 11, 0.28), transparent 18rem),
    rgba(12, 10, 9, 0.46);
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-cover span {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #b45309);
  box-shadow: 0 18px 38px rgba(180, 83, 9, 0.36);
}

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

.source-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.source-tab {
  border: 1px solid #fed7aa;
  border-radius: 999px;
  padding: 9px 14px;
  color: #92400e;
  background: #fff7ed;
  font-weight: 800;
  cursor: pointer;
}

.source-tab.active {
  color: white;
  background: var(--amber);
  border-color: var(--amber);
}

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

.article-section p {
  font-size: 17px;
}

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

.site-footer {
  margin-top: 78px;
  color: #d6d3d1;
  background: #1c1917;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 34px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand {
  color: white;
  font-size: 20px;
}

.footer-inner p {
  margin: 8px 0 0;
  color: #a8a29e;
}

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

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

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

  .hero-slide,
  .detail-hero,
  .split-layout {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    max-width: 320px;
  }

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

@media (max-width: 760px) {
  .header-inner {
    padding: 12px 16px;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 66px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border-radius: 18px;
    background: white;
    box-shadow: var(--shadow);
  }

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

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

  .hero-slide {
    padding: 68px 18px 96px;
    gap: 24px;
  }

  .hero h1 {
    font-size: 44px;
  }

  .hero-poster {
    max-width: 240px;
  }

  .quick-search,
  .search-tool {
    grid-template-columns: 1fr;
  }

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

  .content-section,
  .category-overview,
  .rank-list,
  .search-box-page,
  .article-section,
  .breadcrumb,
  .page-hero,
  .detail-hero,
  .player-section,
  .quick-search-panel {
    padding-left: 16px;
    padding-right: 16px;
  }

  .section-head,
  .footer-inner {
    display: block;
  }

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

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

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

@media (max-width: 480px) {
  .brand-text {
    font-size: 17px;
  }

  .movie-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

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

  .btn {
    width: 100%;
  }
}
