:root {
  --bg: #fff7ed;
  --bg-soft: #fffbeb;
  --paper: #ffffff;
  --paper-soft: #fffaf0;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #fde7c4;
  --amber: #f59e0b;
  --orange: #f97316;
  --red: #fb7185;
  --blue: #6366f1;
  --violet: #a855f7;
  --green: #10b981;
  --shadow: 0 20px 45px rgba(124, 45, 18, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 52%, #fff7ed 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 251, 235, 0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 28px rgba(146, 64, 14, 0.08);
}

.top-nav {
  max-width: 1180px;
  height: 68px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.28);
  transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
  transform: rotate(10deg) scale(1.04);
}

.brand-text,
.footer-brand span:last-child {
  font-size: 22px;
  background: linear-gradient(90deg, #d97706, #f97316);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}

.nav-links a {
  color: #374151;
  font-weight: 700;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #d97706;
}

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

.nav-search input,
.hero-search input,
.page-search input {
  border: 1px solid #f5d38f;
  background: #ffffff;
  color: var(--text);
  border-radius: 999px;
  padding: 10px 16px;
  outline: none;
  min-width: 230px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

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

.nav-search button,
.hero-search button,
.page-search button {
  border: 0;
  color: #ffffff;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 800;
  background: linear-gradient(90deg, var(--amber), var(--orange));
  cursor: pointer;
}

.mobile-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  background: #fff3d6;
  border-radius: 12px;
  padding: 8px 12px;
  color: #92400e;
}

.hero {
  position: relative;
  height: min(720px, 72vh);
  min-height: 520px;
  overflow: hidden;
  background: #0f172a;
}

.hero-track,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 900ms ease;
}

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

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

.hero-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.83), rgba(0, 0, 0, 0.54) 48%, rgba(0, 0, 0, 0.08));
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(1180px, calc(100% - 40px));
  transform: translate(-50%, -50%);
  color: #ffffff;
}

.hero-content h1,
.hero-content h2 {
  max-width: 720px;
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-summary {
  max-width: 720px;
  margin: 0 0 28px;
  color: #e5e7eb;
  font-size: clamp(18px, 2vw, 24px);
}

.eyebrow {
  margin: 0 0 12px;
  color: #fbbf24;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.eyebrow.dark {
  color: #d97706;
}

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

.hero-meta {
  margin-bottom: 30px;
}

.hero-meta span,
.detail-meta span,
.detail-meta a,
.movie-meta span,
.mini-tags span,
.tag,
.type-badge {
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 800;
}

.hero-meta span {
  color: #ffffff;
  background: rgba(245, 158, 11, 0.86);
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 26px;
  color: #ffffff;
  border-radius: 999px;
  font-weight: 900;
  background: linear-gradient(90deg, var(--amber), var(--orange));
  box-shadow: 0 18px 35px rgba(249, 115, 22, 0.32);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 24px 45px rgba(249, 115, 22, 0.42);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  transform: translateY(-50%);
  color: #ffffff;
  background: rgba(0, 0, 0, 0.44);
  font-size: 38px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.7);
}

.hero-arrow.prev {
  left: 24px;
}

.hero-arrow.next {
  right: 24px;
}

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

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

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

.site-intro,
.container,
.page-shell,
.detail-page {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
  gap: 24px;
  align-items: center;
  margin-top: -58px;
  position: relative;
  z-index: 4;
  padding: 28px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(253, 231, 196, 0.9);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.site-intro h2,
.page-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
}

.site-intro p,
.page-hero p {
  margin: 0;
  color: var(--muted);
}

.hero-search,
.page-search {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.space-y {
  padding: 62px 0;
}

.space-y > * + * {
  margin-top: 72px;
}

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

.section-head h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.2;
}

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

.section-kicker {
  margin: 0 0 6px;
  color: #d97706;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.section-kicker.red {
  color: #e11d48;
}

.section-kicker.blue {
  color: #4f46e5;
}

.section-kicker.green {
  color: #059669;
}

.violet-text {
  color: #9333ea;
}

.scroll-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 310px;
  gap: 22px;
  overflow-x: auto;
  padding: 0 0 18px;
  scroll-snap-type: x mandatory;
}

.movie-grid {
  display: grid;
  gap: 22px;
}

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

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

.movie-card {
  display: block;
  min-width: 0;
  overflow: hidden;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(124, 45, 18, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  scroll-snap-align: start;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 42px rgba(124, 45, 18, 0.16);
}

.movie-card figure {
  position: relative;
  height: 220px;
  margin: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #fef3c7, #fed7aa);
}

.movie-card.compact figure {
  height: 190px;
}

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

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

.type-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  color: #ffffff;
  background: rgba(217, 119, 6, 0.92);
}

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

.movie-card h3 {
  display: -webkit-box;
  min-height: 52px;
  margin: 0 0 8px;
  overflow: hidden;
  color: #111827;
  font-size: 18px;
  line-height: 1.42;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.movie-meta span {
  color: #92400e;
  background: #fff7ed;
  padding: 5px 9px;
}

.mini-tags {
  margin-top: 10px;
}

.mini-tags span,
.tag {
  color: #6d28d9;
  background: #f5f3ff;
  padding: 5px 9px;
}

.category-panel {
  padding: 30px;
  border-radius: 28px;
  background: #ffffff;
  border: 1px solid rgba(253, 231, 196, 0.95);
  box-shadow: var(--shadow);
}

.category-panel.violet,
.rank-hero {
  background: linear-gradient(135deg, #faf5ff, #fdf2f8);
}

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

.chip-grid a,
.category-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 15px 18px;
  border-radius: 999px;
  color: #374151;
  background: #fff7ed;
  font-weight: 900;
  transition: transform 0.2s ease, background 0.2s ease;
}

.category-card {
  border-radius: 18px;
  flex-direction: column;
  align-items: flex-start;
}

.chip-grid a:hover,
.category-card:hover {
  transform: translateY(-2px);
  background: #ffedd5;
}

.chip-grid span,
.category-card span {
  color: #d97706;
  font-size: 13px;
}

.list-stack {
  display: grid;
  gap: 14px;
}

.list-item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(124, 45, 18, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-stack .list-item {
  grid-template-columns: 52px 112px minmax(0, 1fr);
}

.list-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(124, 45, 18, 0.14);
}

.list-item img {
  width: 112px;
  height: 74px;
  object-fit: cover;
  border-radius: 12px;
}

.list-copy {
  min-width: 0;
}

.list-copy strong,
.list-copy small,
.list-copy em {
  display: block;
}

.list-copy strong {
  color: #111827;
  font-size: 17px;
}

.list-copy small {
  color: #d97706;
  font-style: normal;
  font-weight: 800;
}

.list-copy em {
  overflow: hidden;
  color: var(--muted);
  font-style: normal;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-number {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--red), var(--orange));
}

.page-shell {
  padding: 44px 0 70px;
}

.page-hero.small {
  margin-bottom: 34px;
  padding: 36px;
  border-radius: 30px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.page-search {
  justify-content: flex-start;
  margin-top: 24px;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 34px;
}

.pagination a,
.pagination span {
  min-width: 42px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 8px 14px;
  background: #ffffff;
  color: #92400e;
  font-weight: 900;
  border: 1px solid #fde7c4;
}

.pagination .current {
  color: #ffffff;
  background: linear-gradient(90deg, var(--amber), var(--orange));
}

.detail-page {
  padding: 34px 0 72px;
}

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

.detail-poster {
  overflow: hidden;
  border-radius: 26px;
  box-shadow: 0 28px 56px rgba(124, 45, 18, 0.18);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: #d97706;
  font-weight: 800;
}

.detail-copy h1 {
  margin: 0 0 14px;
  color: #111827;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
}

.detail-line {
  margin: 0 0 22px;
  color: #4b5563;
  font-size: 20px;
}

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

.detail-meta a,
.detail-meta span {
  color: #92400e;
  background: #ffedd5;
}

.tag-row {
  margin-bottom: 26px;
}

.player-section {
  margin-bottom: 38px;
  padding: 26px;
  border-radius: 28px;
  color: #ffffff;
  background: #0f172a;
  box-shadow: 0 26px 55px rgba(15, 23, 42, 0.26);
}

.section-head.light h2,
.section-head.light span {
  color: #ffffff;
}

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

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

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.42));
  cursor: pointer;
}

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

.play-circle {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  font-size: 34px;
  box-shadow: 0 20px 44px rgba(249, 115, 22, 0.35);
}

.player-cover strong {
  max-width: 80%;
  font-size: clamp(22px, 3vw, 38px);
  text-align: center;
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  gap: 24px;
  margin-bottom: 46px;
}

.detail-content article {
  padding: 28px;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(124, 45, 18, 0.08);
}

.detail-content article:first-child {
  grid-row: span 2;
}

.detail-content h2 {
  margin: 0 0 14px;
  font-size: 25px;
}

.detail-content p {
  margin: 0;
  color: #4b5563;
  font-size: 17px;
}

.info-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.info-list div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
}

.info-list dt {
  color: #92400e;
  font-weight: 900;
}

.info-list dd {
  margin: 0;
  color: #4b5563;
}

.info-list a {
  color: #d97706;
  font-weight: 800;
}

.related-section {
  margin-top: 30px;
}

.site-footer {
  margin-top: 40px;
  padding: 48px 20px 28px;
  border-top: 1px solid var(--line);
  background: linear-gradient(135deg, #fffbeb, #fff7ed);
}

.footer-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 0.9fr 0.9fr;
  gap: 32px;
}

.site-footer h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.site-footer p {
  color: var(--muted);
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a {
  color: #6b7280;
}

.footer-links a:hover {
  color: #d97706;
}

.copyright {
  width: min(1180px, 100%);
  margin: 28px auto 0;
  text-align: center;
  font-size: 14px;
}

@media (max-width: 1024px) {
  .nav-search {
    display: none;
  }

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

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

  .detail-hero,
  .detail-content,
  .site-intro,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-search {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .top-nav {
    height: auto;
    min-height: 64px;
    flex-wrap: wrap;
    padding: 12px 16px;
  }

  .mobile-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin: 10px 0 0;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }

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

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

  .hero {
    height: 620px;
    min-height: 620px;
  }

  .hero-mask {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.24));
  }

  .hero-content {
    top: auto;
    bottom: 82px;
    transform: translateX(-50%);
  }

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

  .hero-arrow {
    display: none;
  }

  .site-intro,
  .page-hero.small,
  .category-panel,
  .detail-hero,
  .player-section,
  .detail-content article {
    padding: 22px;
    border-radius: 22px;
  }

  .hero-search,
  .page-search {
    flex-direction: column;
  }

  .hero-search input,
  .page-search input {
    min-width: 0;
    width: 100%;
  }

  .movie-grid.four,
  .movie-grid.six,
  .chip-grid,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .scroll-row {
    grid-auto-columns: 82%;
  }

  .movie-card figure,
  .movie-card.compact figure {
    height: 185px;
  }

  .list-item,
  .rank-stack .list-item {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .rank-number {
    display: none;
  }

  .list-item img {
    width: 92px;
    height: 72px;
  }

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

@media (max-width: 480px) {
  .site-intro,
  .container,
  .page-shell,
  .detail-page {
    width: min(100% - 24px, 1180px);
  }

  .movie-grid.four,
  .movie-grid.six,
  .chip-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

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

  .movie-card figure,
  .movie-card.compact figure {
    height: 230px;
  }
}
