:root {
  --orange: #f97316;
  --orange-dark: #ea580c;
  --amber: #f59e0b;
  --yellow: #fef3c7;
  --paper: #fff7ed;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #fed7aa;
  --card: #ffffff;
  --shadow: 0 22px 55px rgba(180, 83, 9, 0.16);
  --radius: 24px;
}

* {
  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(--ink);
  background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 45%, #fef3c7 100%);
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(254, 215, 170, 0.75);
  box-shadow: 0 10px 35px rgba(154, 52, 18, 0.08);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 14px 28px rgba(249, 115, 22, 0.28);
}

.brand-text {
  display: grid;
  line-height: 1.1;
}

.brand-text strong,
.footer-brand {
  font-size: 24px;
  font-weight: 900;
  background: linear-gradient(90deg, #b45309, var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text em {
  margin-top: 3px;
  font-size: 12px;
  color: var(--muted);
  font-style: normal;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 15px;
  font-weight: 700;
  color: #374151;
}

.main-nav a {
  position: relative;
  padding: 8px 0;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.main-nav a:hover {
  color: var(--orange);
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  border: 0;
  background: #fff7ed;
  color: var(--orange-dark);
  border-radius: 12px;
  padding: 9px 12px;
  font-size: 22px;
  line-height: 1;
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: linear-gradient(135deg, #fb923c, #f59e0b);
}

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

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

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

.hero-overlay,
.detail-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 20%, rgba(254, 243, 199, 0.34), transparent 30%),
    linear-gradient(90deg, rgba(154, 52, 18, 0.93), rgba(249, 115, 22, 0.80) 44%, rgba(120, 53, 15, 0.48));
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: center;
  gap: 54px;
}

.hero-copy {
  max-width: 720px;
  color: #ffffff;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  margin-bottom: 18px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  color: #fff7ed;
  font-size: 14px;
  font-weight: 700;
  backdrop-filter: blur(12px);
}

.hero h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 80px);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.05em;
  text-shadow: 0 18px 48px rgba(67, 20, 7, 0.22);
}

.hero h1 span {
  color: #fef3c7;
}

.hero p {
  max-width: 640px;
  margin: 22px 0 0;
  color: #ffedd5;
  font-size: clamp(18px, 2.6vw, 25px);
  line-height: 1.6;
}

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

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

.hero-tags span,
.chip-row span,
.tag-row span {
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.22);
  color: #fff7ed;
}

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

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

.primary-button {
  color: var(--orange);
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(120, 53, 15, 0.22);
}

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

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

.hero-poster {
  position: relative;
  display: block;
  border: 10px solid rgba(255, 255, 255, 0.34);
  border-radius: 32px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  box-shadow: 0 28px 80px rgba(67, 20, 7, 0.42);
  transform: rotate(2deg);
}

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

.hero-poster span,
.play-badge {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 12px 28px rgba(154, 52, 18, 0.32);
}

.hero-poster span {
  left: 50%;
  top: 50%;
  width: 68px;
  height: 68px;
  transform: translate(-50%, -50%);
  font-size: 26px;
}

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

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

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

.feature-strip {
  background: #ffffff;
  border-bottom: 1px solid #ffedd5;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding: 34px 0;
}

.feature-grid div {
  display: grid;
  gap: 4px;
  text-align: center;
}

.feature-grid strong {
  font-size: 18px;
}

.feature-grid span {
  color: var(--muted);
  font-size: 14px;
}

.content-section {
  padding: 72px 0;
}

.content-section.soft {
  background: rgba(255, 255, 255, 0.54);
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 900;
  color: #1f2937;
}

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

.section-link {
  color: var(--orange);
  font-weight: 800;
}

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

.movie-card {
  display: grid;
  overflow: hidden;
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 12px 34px rgba(154, 52, 18, 0.10);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

.poster-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #fed7aa, #fef3c7);
}

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

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

.year-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  border-radius: 999px;
  padding: 5px 10px;
  color: #ffffff;
  background: rgba(249, 115, 22, 0.94);
  font-size: 12px;
  font-weight: 800;
}

.play-badge {
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.92);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-badge {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.card-body {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.chip-row span {
  background: #ffedd5;
  color: #c2410c;
}

.card-body h3 {
  margin: 0;
  overflow: hidden;
  color: #111827;
  font-size: 18px;
  font-weight: 900;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.card-body p {
  display: -webkit-box;
  min-height: 42px;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.card-meta strong {
  color: #f59e0b;
}

.card-meta em {
  overflow: hidden;
  font-style: normal;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.tag-row span {
  background: #f3f4f6;
  color: #4b5563;
}

.scroll-row {
  display: grid;
  grid-auto-columns: minmax(210px, 240px);
  grid-auto-flow: column;
  gap: 20px;
  overflow-x: auto;
  padding: 6px 4px 24px;
  scroll-snap-type: x mandatory;
}

.movie-card.compact {
  scroll-snap-align: start;
}

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

.category-tile {
  min-height: 146px;
  display: grid;
  align-content: end;
  gap: 10px;
  padding: 24px;
  border: 1px solid #fed7aa;
  border-radius: 24px;
  background:
    radial-gradient(circle at 90% 15%, rgba(249, 115, 22, 0.22), transparent 32%),
    linear-gradient(135deg, #ffffff, #fff7ed);
  box-shadow: 0 16px 42px rgba(154, 52, 18, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-tile strong {
  color: #9a3412;
  font-size: 23px;
  font-weight: 950;
}

.category-tile span {
  color: var(--muted);
  line-height: 1.6;
}

.page-hero {
  position: relative;
  background: linear-gradient(135deg, #f97316, #f59e0b);
  color: #ffffff;
  overflow: hidden;
}

.small-hero .container {
  padding: 72px 0;
}

.page-hero span {
  display: inline-flex;
  margin-bottom: 12px;
  border-radius: 999px;
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.20);
  font-weight: 800;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 950;
}

.page-hero p {
  max-width: 760px;
  margin: 16px 0 0;
  color: #ffedd5;
  font-size: 18px;
  line-height: 1.7;
}

.filter-panel,
.search-panel {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 30px;
  padding: 16px;
  border: 1px solid #fed7aa;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 35px rgba(154, 52, 18, 0.08);
}

.filter-panel input,
.search-panel input {
  min-width: 0;
  flex: 1;
  height: 50px;
  border: 1px solid #fed7aa;
  border-radius: 16px;
  padding: 0 16px;
  color: #111827;
  outline: none;
}

.search-panel button,
.filter-pills button {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  font-weight: 850;
  cursor: pointer;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.tag-cloud a {
  display: inline-flex;
  border-radius: 999px;
  padding: 10px 16px;
  color: #9a3412;
  background: #ffedd5;
  font-weight: 750;
}

.ranking-list {
  display: grid;
  gap: 16px;
}

.ranking-card {
  display: grid;
  grid-template-columns: 72px 96px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid #ffedd5;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(154, 52, 18, 0.08);
}

.rank-number {
  color: #f97316;
  font-size: 28px;
  font-weight: 950;
  text-align: center;
}

.ranking-card img {
  width: 96px;
  height: 128px;
  border-radius: 16px;
  object-fit: cover;
  background: #fed7aa;
}

.ranking-card h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.ranking-card p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.6;
}

.ranking-card span {
  color: #c2410c;
  font-weight: 750;
}

.detail-hero {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  color: #ffffff;
}

.detail-top {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
  min-height: 520px;
  padding: 46px 0;
}

.detail-poster {
  overflow: hidden;
  border: 10px solid rgba(255, 255, 255, 0.25);
  border-radius: 30px;
  box-shadow: 0 28px 80px rgba(67, 20, 7, 0.42);
}

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

.detail-info h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 70px);
  line-height: 1.08;
  font-weight: 950;
}

.detail-info p {
  max-width: 820px;
  margin: 18px 0 0;
  color: #ffedd5;
  font-size: 20px;
  line-height: 1.7;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 30px;
  align-items: start;
}

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

.player-card,
.text-card,
.side-card {
  border: 1px solid #ffedd5;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 16px 42px rgba(154, 52, 18, 0.08);
}

.player-card {
  padding: 14px;
}

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

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

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.10), rgba(0, 0, 0, 0.58));
  cursor: pointer;
}

.player-start span {
  width: 90px;
  height: 90px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 24px 60px rgba(249, 115, 22, 0.40);
  font-size: 34px;
}

.player-start.hidden {
  display: none;
}

.text-card,
.side-card {
  padding: 26px;
}

.text-card h2,
.side-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
  font-weight: 900;
}

.text-card p {
  margin: 0;
  color: #374151;
  font-size: 17px;
  line-height: 1.9;
}

.side-card dl {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 14px 12px;
  margin: 0;
}

.side-card dt {
  color: var(--muted);
}

.side-card dd {
  margin: 0;
  color: #111827;
  font-weight: 800;
}

.index-list {
  columns: 3 260px;
  column-gap: 26px;
}

.index-list a {
  display: grid;
  break-inside: avoid;
  margin: 0 0 12px;
  padding: 14px 16px;
  border: 1px solid #ffedd5;
  border-radius: 16px;
  background: #ffffff;
  font-weight: 800;
}

.index-list span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.site-footer {
  border-top: 1px solid #fed7aa;
  background: linear-gradient(135deg, #fff7ed, #fffbeb);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 30px;
  padding: 46px 0;
}

.site-footer p {
  max-width: 340px;
  color: var(--muted);
  line-height: 1.7;
}

.site-footer h3 {
  margin: 0 0 14px;
  font-size: 16px;
}

.site-footer a {
  display: block;
  margin: 9px 0;
  color: var(--muted);
}

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

.footer-bottom {
  padding: 18px;
  border-top: 1px solid #fed7aa;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 980px) {
  .menu-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px;
    border: 1px solid #fed7aa;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow);
  }

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

  .main-nav a {
    padding: 12px 14px;
    border-radius: 14px;
  }

  .main-nav a:hover {
    background: #fff7ed;
  }

  .main-nav a::after {
    display: none;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 60px 0 86px;
  }

  .hero-poster {
    width: min(260px, 76vw);
    margin: 0 auto;
  }

  .feature-grid,
  .movie-grid,
  .category-tile-grid,
  .footer-grid,
  .detail-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-top {
    grid-template-columns: 220px minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

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

  .hero,
  .hero-content {
    min-height: 720px;
  }

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

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

  .feature-grid,
  .movie-grid,
  .category-tile-grid,
  .footer-grid,
  .detail-layout,
  .detail-top {
    grid-template-columns: 1fr;
  }

  .content-section {
    padding: 48px 0;
  }

  .section-heading,
  .filter-panel,
  .search-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .ranking-card {
    grid-template-columns: 48px 78px minmax(0, 1fr);
    gap: 12px;
  }

  .ranking-card img {
    width: 78px;
    height: 104px;
  }

  .ranking-card h2 {
    font-size: 18px;
  }

  .detail-poster {
    width: min(240px, 78vw);
  }

  .detail-info h1 {
    font-size: 36px;
  }

  .index-list {
    columns: 1;
  }
}
