
:root {
  --bg: #fff7ed;
  --surface: #ffffff;
  --surface-soft: #fffbf5;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #fed7aa;
  --brand: #f97316;
  --brand-dark: #c2410c;
  --brand-soft: #ffedd5;
  --shadow: 0 20px 45px rgba(124, 45, 18, 0.12);
  --shadow-strong: 0 35px 80px rgba(124, 45, 18, 0.22);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 10%, rgba(249, 115, 22, 0.18), transparent 28%),
    radial-gradient(circle at 85% 5%, rgba(251, 146, 60, 0.16), transparent 25%),
    linear-gradient(180deg, #fff7ed 0%, #ffffff 42%, #fffaf5 100%);
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(253, 186, 116, 0.45);
}

.nav-wrap {
  height: 72px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 900;
  white-space: nowrap;
}

.brand-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #fb923c, #ea580c);
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.3);
}

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

.desktop-nav a,
.mobile-panel a {
  color: #374151;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease;
}

.desktop-nav a:hover,
.mobile-panel a:hover {
  color: var(--brand-dark);
}

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

.nav-search input,
.search-panel input,
.search-panel select {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 16px;
  outline: none;
  background: #ffffff;
  min-width: 0;
}

.nav-search input:focus,
.search-panel input:focus,
.search-panel select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.14);
}

button,
.btn {
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, #fb923c, #ea580c);
  box-shadow: 0 14px 28px rgba(249, 115, 22, 0.28);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover,
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(249, 115, 22, 0.34);
}

.btn.secondary {
  color: var(--brand-dark);
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(249, 115, 22, 0.25);
}

.mobile-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  padding: 0;
}

.mobile-panel {
  display: none;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
  gap: 8px;
  flex-wrap: wrap;
}

.mobile-panel.open {
  display: flex;
}

.mobile-panel a {
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255, 237, 213, 0.8);
}

.hero {
  position: relative;
  min-height: 630px;
  overflow: hidden;
  background: linear-gradient(120deg, #111827 0%, #7c2d12 45%, #fed7aa 100%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  filter: blur(28px);
  opacity: 0.55;
}

.hero::before {
  top: 90px;
  left: 8%;
  background: rgba(251, 146, 60, 0.58);
}

.hero::after {
  right: 5%;
  bottom: 30px;
  background: rgba(255, 247, 237, 0.35);
}

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

.hero-slide.active {
  opacity: 1;
}

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

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.92) 0%, rgba(124, 45, 18, 0.68) 48%, rgba(17, 24, 39, 0.18) 100%),
    linear-gradient(0deg, rgba(17, 24, 39, 0.72), transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  align-items: center;
  min-height: 630px;
  color: #ffffff;
  padding: 72px 0;
}

.hero-copy {
  animation: fadeUp 0.85s ease both;
}

.kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #9a3412;
  background: #ffedd5;
}

.hero .kicker {
  color: #fed7aa;
  background: rgba(255, 237, 213, 0.13);
  border: 1px solid rgba(255, 237, 213, 0.24);
}

.hero h1 {
  margin: 22px 0 16px;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 0.98;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.85;
}

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

.hero-poster-stack {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  transform: rotate(-2deg);
}

.hero-poster-stack a {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-strong);
  aspect-ratio: 2 / 3;
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(var(--lift, 0));
}

.hero-poster-stack img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.hero-poster-stack a:hover img {
  transform: scale(1.08);
}

.hero-poster-stack a:nth-child(2) {
  --lift: -36px;
}

.hero-poster-stack a:nth-child(3) {
  --lift: 28px;
}

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

.hero-dot {
  width: 36px;
  height: 5px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  box-shadow: none;
}

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

.section {
  padding: 64px 0;
}

.section.alt {
  background: rgba(255, 255, 255, 0.58);
}

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

.section-head h1,
.section-head h2 {
  margin: 12px 0 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.section-more {
  font-weight: 900;
  color: var(--brand-dark);
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(253, 186, 116, 0.46);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #111827;
}

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

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

.play-dot,
.rank-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 900;
  backdrop-filter: blur(8px);
}

.play-dot {
  right: 14px;
  bottom: 14px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.86);
}

.rank-badge {
  left: 12px;
  top: 12px;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(17, 24, 39, 0.62);
}

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

.movie-card h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 950;
  line-height: 1.3;
}

.meta-line {
  margin: 8px 0;
  color: var(--muted);
  font-size: 14px;
}

.card-desc {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 12px;
  color: #4b5563;
  line-height: 1.65;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.tag-row span {
  padding: 6px 10px;
  border-radius: 999px;
  color: #9a3412;
  background: #ffedd5;
  font-size: 12px;
  font-weight: 800;
}

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

.category-card,
.stat-card,
.panel-card {
  border: 1px solid rgba(253, 186, 116, 0.55);
  border-radius: var(--radius);
  padding: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.category-card h3,
.panel-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 950;
}

.category-card strong,
.stat-card strong {
  display: block;
  font-size: 32px;
  color: var(--brand-dark);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 58px 78px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 13px;
  border: 1px solid rgba(253, 186, 116, 0.45);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 28px rgba(124, 45, 18, 0.08);
}

.rank-num {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #ffffff;
  font-weight: 950;
  background: linear-gradient(135deg, #fb923c, #c2410c);
}

.rank-thumb {
  width: 78px;
  height: 104px;
  object-fit: cover;
  border-radius: 16px;
}

.page-hero {
  padding: 72px 0 42px;
}

.page-hero h1 {
  max-width: 840px;
  margin: 14px 0;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.08;
  font-weight: 950;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: #4b5563;
  font-size: 18px;
  line-height: 1.85;
}

.breadcrumb {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 22px;
  color: #9a3412;
  font-weight: 800;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.9fr);
  gap: 28px;
  align-items: start;
}

.player-box {
  overflow: hidden;
  border-radius: 28px;
  background: #111827;
  box-shadow: var(--shadow-strong);
}

.player-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #111827;
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
}

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.58);
}

.player-cover button {
  position: relative;
  z-index: 2;
  width: 82px;
  height: 82px;
  padding: 0;
  font-size: 28px;
}

.player-meta {
  padding: 18px 20px;
  color: #fed7aa;
  background: #111827;
}

.detail-main,
.detail-side {
  display: grid;
  gap: 22px;
}

.detail-title-card {
  border-radius: 28px;
  padding: 28px;
  color: #ffffff;
  background: linear-gradient(135deg, #1f2937, #9a3412);
  box-shadow: var(--shadow-strong);
}

.detail-title-card h1 {
  margin: 14px 0;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.08;
  font-weight: 950;
}

.detail-title-card p {
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.85;
}

.info-table {
  display: grid;
  gap: 10px;
}

.info-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(253, 186, 116, 0.42);
}

.info-row span:first-child {
  color: #9a3412;
  font-weight: 900;
}

.article-text {
  color: #374151;
  font-size: 17px;
  line-height: 1.95;
}

.search-panel {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, minmax(130px, 0.5fr));
  gap: 12px;
  margin-bottom: 28px;
  padding: 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

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

.pagination a,
.pagination span {
  display: inline-flex;
  min-width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-weight: 900;
  background: #ffffff;
  border: 1px solid var(--line);
}

.pagination .current {
  color: #ffffff;
  background: var(--brand);
}

.site-footer {
  margin-top: 72px;
  padding: 48px 0;
  color: rgba(255, 255, 255, 0.78);
  background: #111827;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 34px;
}

.footer-brand {
  color: #ffffff;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: #ffffff;
}

.site-footer a {
  display: block;
  margin: 8px 0;
  color: #fed7aa;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

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

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

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

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

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

  .hero,
  .hero-content {
    min-height: auto;
  }

  .hero-content {
    padding: 56px 0 82px;
  }

  .hero-poster-stack {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .movie-grid,
  .category-grid,
  .footer-grid,
  .search-panel {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 44px 0;
  }

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

  .rank-item {
    grid-template-columns: 44px 64px 1fr;
  }

  .rank-item .btn {
    grid-column: 1 / -1;
    justify-content: center;
  }

  .rank-thumb {
    width: 64px;
    height: 88px;
  }
}
