:root {
  --orange: #f97316;
  --amber: #f59e0b;
  --red: #ef4444;
  --dark: #111827;
  --muted: #6b7280;
  --soft: #fff7ed;
  --line: #fed7aa;
  --white: #ffffff;
  --shadow: 0 20px 45px rgba(124, 45, 18, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #1f2937;
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 40%, #fff7ed 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, var(--amber), var(--orange), #fb923c);
  box-shadow: 0 10px 28px rgba(194, 65, 12, 0.22);
}

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

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  background: var(--white);
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(124, 45, 18, 0.25);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--white);
  font-weight: 700;
  white-space: nowrap;
}

.desktop-nav a {
  position: relative;
  opacity: 0.95;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -8px;
  height: 2px;
  background: var(--white);
  transition: right 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  opacity: 1;
  transform: translateY(-1px);
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after {
  right: 0;
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--white);
}

.mobile-nav {
  display: none;
  padding: 10px 24px 18px;
  background: var(--white);
  box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.06);
}

.mobile-nav a {
  display: block;
  padding: 10px 0;
  color: #374151;
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: #7c2d12;
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 25% 18%, rgba(253, 186, 116, 0.9), transparent 30%), linear-gradient(135deg, #f59e0b, #f97316 45%, #991b1b);
}

.hero-bg img {
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
  filter: saturate(1.1) contrast(1.05);
}

.hero-bg::after,
.detail-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(67, 20, 7, 0.9), rgba(124, 45, 18, 0.72), rgba(248, 113, 22, 0.38));
}

.hero-content {
  position: relative;
  z-index: 1;
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: center;
  gap: 64px;
  color: var(--white);
  padding: 74px 0 92px;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow.orange {
  color: var(--orange);
}

.eyebrow.light {
  color: rgba(255, 255, 255, 0.88);
}

.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.hero-copy h2 {
  margin: 0 0 16px;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.15;
}

.hero-copy p {
  max-width: 760px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.hero-tags span {
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
}

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

.hero-actions.slim {
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn.primary {
  color: var(--white);
  background: linear-gradient(90deg, var(--orange), var(--amber));
  box-shadow: 0 16px 30px rgba(234, 88, 12, 0.28);
}

.btn.ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(10px);
}

.btn.light {
  color: var(--orange);
  background: var(--white);
}

.btn.block {
  width: 100%;
  margin-top: 16px;
}

.hero-card {
  position: relative;
  display: block;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
  transform: rotate(2deg);
}

.hero-card img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: linear-gradient(135deg, #fed7aa, #fb923c);
}

.hero-card span {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--white);
  background: var(--orange);
  font-weight: 900;
}

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

.hero-dot {
  width: 42px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
}

.hero-dot.active {
  background: var(--white);
}

.section {
  padding: 76px 0;
}

.white-section {
  background: var(--white);
}

.warm-section {
  background: linear-gradient(180deg, #fff7ed 0%, #fffbeb 100%);
}

.rank-section {
  background: linear-gradient(135deg, #ea580c, #f59e0b);
}

.section-head {
  margin-bottom: 34px;
  text-align: center;
}

.section-head.with-tools {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  text-align: left;
}

.section-head h2,
.page-hero h1,
.detail-copy h1 {
  margin: 0 0 12px;
  color: #1f2937;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: -0.035em;
}

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

.section-head.invert h2,
.section-head.invert p {
  color: var(--white);
}

.search-box input {
  width: min(320px, 100%);
  height: 48px;
  padding: 0 18px;
  border: 1px solid #fdba74;
  border-radius: 14px;
  outline: 0;
  background: var(--white);
  box-shadow: 0 8px 22px rgba(234, 88, 12, 0.08);
}

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

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

.category-tile {
  min-height: 190px;
  padding: 22px;
  border: 1px solid #fed7aa;
  border-radius: 24px;
  background: linear-gradient(145deg, #ffffff, #fff7ed);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover,
.movie-card:hover,
.rank-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 52px rgba(124, 45, 18, 0.18);
}

.category-tile strong {
  display: block;
  margin-bottom: 10px;
  color: #9a3412;
  font-size: 21px;
  font-weight: 950;
}

.category-tile p {
  min-height: 78px;
  margin: 0 0 14px;
  color: #6b7280;
  font-size: 14px;
}

.category-tile div {
  display: grid;
  gap: 4px;
  color: #ea580c;
  font-size: 13px;
  font-weight: 800;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(251, 146, 60, 0.22);
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(124, 45, 18, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.poster-link,
.poster-shell {
  position: relative;
  display: block;
}

.poster-shell {
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, #fed7aa, #f97316);
}

.poster-shell img,
.rank-cover img,
.detail-poster img,
.player-video,
.detail-bg img {
  height: 100%;
  object-fit: cover;
}

.poster-shell img,
.hero-card img,
.rank-cover img,
.detail-poster img {
  transition: transform 0.35s ease, opacity 0.2s ease;
}

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

.play-badge {
  position: absolute;
  inset: 50% auto auto 50%;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  color: var(--white);
  background: rgba(249, 115, 22, 0.9);
  border-radius: 999px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.85);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.year-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 9px;
  color: var(--white);
  background: var(--orange);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.card-body {
  padding: 13px;
}

.movie-title {
  margin: 0 0 6px;
  color: #111827;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 950;
}

.two-line {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 40px;
}

.movie-title a:hover {
  color: var(--orange);
}

.movie-meta,
.movie-line {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.movie-line {
  display: -webkit-box;
  overflow: hidden;
  min-height: 38px;
  margin-top: 8px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

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

.tag-row.wide span {
  color: var(--white);
  background: linear-gradient(90deg, var(--orange), var(--amber));
}

.center-more {
  margin-top: 34px;
  text-align: center;
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 58px 76px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 12px 28px rgba(124, 45, 18, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-num {
  display: grid;
  height: 46px;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange), var(--amber));
  border-radius: 16px;
  font-size: 18px;
  font-weight: 950;
}

.rank-cover {
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 2 / 3;
  background: #fed7aa;
}

.rank-info h2 {
  margin: 0 0 4px;
  color: #111827;
  font-size: 17px;
  line-height: 1.3;
}

.rank-info p {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 13px;
}

.rank-heat {
  overflow: hidden;
  height: 6px;
  background: #ffedd5;
  border-radius: 999px;
}

.rank-heat span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--orange), var(--amber));
  border-radius: inherit;
}

.rank-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 14px;
  color: var(--white);
  background: var(--orange);
  border-radius: 999px;
  font-weight: 900;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(135deg, #f97316, #f59e0b 55%, #b45309);
}

.page-hero-inner {
  padding: 82px 0;
  text-align: center;
}

.page-hero h1,
.page-hero p {
  color: var(--white);
}

.page-hero p {
  max-width: 780px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.9);
}

.pill-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}

.pill-links a {
  padding: 8px 14px;
  color: #c2410c;
  background: #ffedd5;
  border-radius: 999px;
  font-weight: 900;
}

.light-pills a {
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
}

.detail-hero {
  min-height: 560px;
  background: #7c2d12;
}

.detail-bg {
  position: absolute;
  inset: 0;
}

.detail-bg img {
  opacity: 0.28;
  filter: blur(1px) saturate(1.1);
}

.breadcrumb {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 28px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
}

.detail-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  padding: 46px 0 78px;
}

.detail-poster {
  overflow: hidden;
  padding: 12px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(14px);
}

.detail-poster img {
  aspect-ratio: 2 / 3;
  border-radius: 20px;
  background: linear-gradient(135deg, #fed7aa, #f97316);
}

.detail-copy h1 {
  color: var(--white);
  font-size: clamp(36px, 6vw, 64px);
}

.lead {
  max-width: 860px;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 19px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.detail-meta span {
  padding: 8px 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font-weight: 800;
}

.player-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.player-card,
.info-card,
.content-card,
.side-rank {
  border: 1px solid rgba(251, 146, 60, 0.22);
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.player-card {
  padding: 12px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #000;
}

.player-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-play {
  position: absolute;
  inset: 50% auto auto 50%;
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border: 0;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange), var(--amber));
  border-radius: 999px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
  cursor: pointer;
  transform: translate(-50%, -50%);
}

.player-play span {
  padding-left: 4px;
  font-size: 30px;
}

.player-shell.is-playing .player-play,
.player-card.is-playing .player-play {
  opacity: 0;
  pointer-events: none;
}

.info-card {
  padding: 24px;
}

.info-card h2,
.content-card h2,
.side-rank h2 {
  margin: 0 0 16px;
  color: #111827;
  font-size: 24px;
  line-height: 1.2;
}

.info-card dl {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px 12px;
  margin: 0;
}

.info-card dt {
  color: var(--muted);
  font-weight: 800;
}

.info-card dd {
  margin: 0;
  color: #1f2937;
  font-weight: 800;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
}

.content-card,
.side-rank {
  padding: 28px;
}

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

.side-rank {
  position: sticky;
  top: 96px;
}

.side-rank a {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #ffedd5;
  color: #374151;
  font-weight: 800;
}

.side-rank span {
  display: grid;
  height: 26px;
  place-items: center;
  color: var(--white);
  background: var(--orange);
  border-radius: 9px;
  font-size: 12px;
}

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

.site-footer {
  color: #d1d5db;
  background: linear-gradient(180deg, #1f2937, #111827);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 34px;
  padding: 54px 0;
}

.footer-logo {
  color: var(--white);
  margin-bottom: 14px;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #fdba74;
  font-size: 18px;
}

.site-footer p {
  margin: 0;
  color: #9ca3af;
}

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

.footer-links a {
  color: #d1d5db;
}

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

.footer-bottom {
  padding: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #9ca3af;
  text-align: center;
}

.hidden-card {
  display: none !important;
}

.img-soft-hide {
  opacity: 0;
}

@media (max-width: 1120px) {
  .desktop-nav {
    gap: 12px;
    font-size: 14px;
  }

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

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

  .compact-rank {
    grid-template-columns: 1fr;
  }
}

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

  .mobile-toggle {
    display: block;
  }

  .mobile-nav.open {
    display: block;
  }

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

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

  .hero-card {
    width: min(270px, 75vw);
    margin: 0 auto;
  }

  .section-head.with-tools {
    display: block;
    text-align: center;
  }

  .search-box {
    margin-top: 20px;
  }

  .search-box input {
    width: 100%;
  }

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

  .rank-item {
    grid-template-columns: 44px 64px minmax(0, 1fr);
  }

  .rank-action {
    grid-column: 2 / -1;
    justify-self: start;
  }

  .detail-poster {
    width: min(280px, 82vw);
    margin: 0 auto;
  }
}

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

  .brand {
    font-size: 18px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

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

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

  .section {
    padding: 54px 0;
  }

  .movie-grid,
  .related-grid {
    gap: 14px;
  }

  .card-body {
    padding: 10px;
  }

  .player-play {
    width: 66px;
    height: 66px;
  }
}
