:root {
  --bg: #fff7ed;
  --paper: #ffffff;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: rgba(146, 64, 14, 0.14);
  --amber: #d97706;
  --orange: #ea580c;
  --deep: #7c2d12;
  --gold: #f59e0b;
  --shadow: 0 18px 48px rgba(124, 45, 18, 0.15);
  --soft-shadow: 0 10px 28px rgba(124, 45, 18, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 45%, #fff7ed 100%);
  min-height: 100vh;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(255, 237, 213, 0.96), rgba(254, 243, 199, 0.96));
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 24px rgba(146, 64, 14, 0.12);
}

.nav-shell {
  max-width: 1280px;
  height: 72px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 12px 24px rgba(234, 88, 12, 0.28);
}

.brand-text strong {
  display: block;
  color: var(--deep);
  font-size: 20px;
  line-height: 1.05;
}

.brand-text small {
  display: block;
  color: var(--amber);
  font-size: 12px;
  margin-top: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #92400e;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.main-nav a {
  transition: color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover {
  color: var(--orange);
  transform: translateY(-1px);
}

.top-search,
.inline-search {
  display: flex;
  align-items: center;
  margin-left: auto;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(217, 119, 6, 0.08);
}

.top-search input,
.inline-search input,
.filter-bar input,
.filter-bar select {
  border: 0;
  outline: 0;
  background: transparent;
  min-width: 220px;
  padding: 12px 16px;
  color: var(--ink);
}

.top-search button,
.inline-search button {
  border: 0;
  cursor: pointer;
  padding: 12px 18px;
  color: #ffffff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--amber), var(--orange));
}

.mobile-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #ffffff;
  font-size: 22px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
}

.mobile-panel {
  display: none;
  padding: 0 24px 18px;
  gap: 10px;
  flex-wrap: wrap;
}

.mobile-panel a {
  padding: 9px 14px;
  border-radius: 999px;
  background: #ffffff;
  color: #92400e;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 6px 14px rgba(146, 64, 14, 0.08);
}

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

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

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

.hero-slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 30%, rgba(245, 158, 11, 0.36), transparent 35%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.48) 50%, rgba(0, 0, 0, 0.18));
}

.hero-content {
  position: absolute;
  left: max(24px, calc((100vw - 1280px) / 2 + 24px));
  bottom: 72px;
  max-width: 720px;
  color: #ffffff;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--orange);
  color: #ffffff;
  font-weight: 900;
  margin-bottom: 18px;
  box-shadow: 0 10px 24px rgba(234, 88, 12, 0.3);
}

.hero h1,
.hero h2.hero-movie {
  margin: 0 0 16px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-shadow: 0 12px 30px rgba(0, 0, 0, 0.38);
}

.hero h2:not(.hero-movie) {
  display: none;
}

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

.hero-meta,
.detail-meta,
.card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-meta span,
.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  backdrop-filter: blur(10px);
  font-weight: 800;
}

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

.primary-btn,
.ghost-btn,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  padding: 13px 26px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 16px 32px rgba(234, 88, 12, 0.28);
}

.ghost-btn {
  padding: 12px 22px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.primary-btn:hover,
.ghost-btn:hover,
.section-link:hover {
  transform: translateY(-2px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  transform: translateY(-50%);
  color: #ffffff;
  font-size: 38px;
  line-height: 1;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

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

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

.content-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 24px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}

.section-head h2,
.article-section h2,
.detail-content h2 {
  margin: 0;
  color: #374151;
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.03em;
}

.section-link {
  padding: 10px 18px;
  color: #9a3412;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

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

.movie-card {
  min-width: 0;
}

.card-link {
  display: block;
  height: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--soft-shadow);
  border: 1px solid rgba(251, 146, 60, 0.16);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-link:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 56px rgba(124, 45, 18, 0.22);
}

.card-cover {
  position: relative;
  margin: 0;
  height: 210px;
  overflow: hidden;
  background: linear-gradient(135deg, #fef3c7, #fdba74);
}

.rail-card .card-cover {
  height: 185px;
}

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

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

.card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.38), transparent 55%);
  opacity: 0.9;
}

.cover-type,
.cover-score {
  position: absolute;
  z-index: 2;
  top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.cover-type {
  left: 12px;
  background: var(--orange);
}

.cover-score {
  right: 12px;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(8px);
}

.card-body {
  padding: 18px;
}

.card-body h3 {
  margin: 0 0 10px;
  color: #1f2937;
  font-size: 18px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.card-meta span {
  color: #92400e;
  background: #ffedd5;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rail-wrap {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.movie-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 310px;
  gap: 22px;
  overflow-x: auto;
  padding: 10px 2px 24px;
  scrollbar-width: none;
}

.movie-rail::-webkit-scrollbar {
  display: none;
}

.rail-control {
  border: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: #92400e;
  font-size: 30px;
  cursor: pointer;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.category-band {
  background: linear-gradient(135deg, rgba(255, 237, 213, 0.9), rgba(254, 243, 199, 0.92));
}

.inner-band {
  padding-top: 46px;
  padding-bottom: 46px;
}

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

.category-tile {
  min-height: 168px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: var(--radius);
  color: #7c2d12;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(251, 146, 60, 0.18);
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-tile strong {
  font-size: 22px;
  margin-bottom: 16px;
}

.category-tile span {
  color: #92400e;
  font-size: 14px;
  line-height: 1.7;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 30px;
  align-items: start;
}

.topic-card {
  position: sticky;
  top: 94px;
  padding: 32px;
  border-radius: 28px;
  color: #ffffff;
  background: linear-gradient(135deg, #9a3412, #ea580c, #f59e0b);
  box-shadow: var(--shadow);
}

.topic-card h2 {
  margin: 0 0 16px;
  font-size: 30px;
  line-height: 1.2;
}

.topic-card p {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.8;
}

.topic-card .inline-search {
  margin-left: 0;
  background: rgba(255, 255, 255, 0.92);
}

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

.rank-list.full {
  gap: 16px;
}

.rank-item a {
  display: grid;
  grid-template-columns: auto 104px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(251, 146, 60, 0.16);
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-list.compact .rank-item:nth-child(n+11) {
  display: none;
}

.rank-item a:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.rank-item img {
  width: 104px;
  height: 66px;
  object-fit: cover;
  border-radius: 14px;
  background: #fed7aa;
}

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

.rank-num.small {
  font-size: 13px;
}

.rank-item h3 {
  margin: 0 0 6px;
  font-size: 17px;
  color: #1f2937;
}

.rank-item p {
  margin: 0 0 7px;
  color: var(--muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rank-item span:last-child {
  color: #92400e;
  font-size: 13px;
  font-weight: 700;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
}

.small-hero {
  padding: 72px 24px;
  text-align: center;
  color: #ffffff;
  background:
    radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.2), transparent 28%),
    linear-gradient(135deg, #92400e, #ea580c, #f59e0b);
}

.small-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 58px);
}

.small-hero p {
  max-width: 820px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
}

.crumb {
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

.crumb a {
  color: #ffffff;
}

.filter-section {
  padding-top: 36px;
}

.filter-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 26px;
  padding: 12px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--soft-shadow);
}

.filter-bar.wide input {
  flex: 1;
}

.filter-bar select {
  min-width: 150px;
  border-left: 1px solid var(--line);
}

.category-preview-list {
  padding-top: 0;
}

.category-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  margin-bottom: 18px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--soft-shadow);
}

.category-preview h2 {
  margin: 0 0 10px;
  color: #7c2d12;
}

.category-preview p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.7;
}

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

.preview-links a {
  padding: 7px 11px;
  border-radius: 999px;
  color: #92400e;
  background: #ffedd5;
  font-size: 13px;
  font-weight: 800;
}

.detail-hero {
  min-height: 560px;
  color: #ffffff;
  background: #111827;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.42;
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(8px);
  transform: scale(1.04);
}

.detail-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.96), rgba(17, 24, 39, 0.45));
}

.detail-shell {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 54px 24px 62px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 42px;
  align-items: end;
}

.detail-cover {
  margin: 0;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  background: #fed7aa;
}

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

.detail-info h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.06;
}

.lead-text {
  max-width: 880px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.9;
  font-size: 18px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.tag-row span {
  padding: 7px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  font-size: 13px;
  font-weight: 800;
}

.detail-content {
  padding-bottom: 24px;
}

.player-frame {
  position: relative;
  overflow: hidden;
  margin-top: 24px;
  border-radius: 30px;
  background: #000000;
  box-shadow: 0 28px 80px rgba(17, 24, 39, 0.28);
  aspect-ratio: 16 / 9;
}

.player-frame video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
}

.play-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  color: #ffffff;
  background: radial-gradient(circle, rgba(234, 88, 12, 0.28), rgba(0, 0, 0, 0.35));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-layer span {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 40px;
  padding-left: 7px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 18px 42px rgba(234, 88, 12, 0.36);
}

.player-frame.is-playing .play-layer {
  opacity: 0;
  visibility: hidden;
}

.article-section {
  max-width: 980px;
  padding-top: 24px;
}

.article-section h2 {
  margin-top: 24px;
  margin-bottom: 14px;
}

.article-section p {
  margin: 0 0 18px;
  color: #4b5563;
  font-size: 17px;
  line-height: 2;
  background: rgba(255, 255, 255, 0.88);
  padding: 24px;
  border-radius: 22px;
  box-shadow: var(--soft-shadow);
}

.neighbor-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.neighbor-section a {
  padding: 20px;
  border-radius: 20px;
  color: #92400e;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-footer {
  margin-top: 42px;
  color: #fed7aa;
  background: linear-gradient(135deg, #7c2d12, #9a3412);
}

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

.footer-inner strong {
  display: block;
  margin-bottom: 8px;
  color: #ffffff;
  font-size: 22px;
}

.footer-inner p {
  margin: 0;
  color: rgba(255, 237, 213, 0.82);
}

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

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

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

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

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

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

  .top-search {
    margin-left: auto;
  }

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

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

  .two-column,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .topic-card {
    position: static;
  }

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

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

  .brand-text small,
  .top-search {
    display: none;
  }

  .hero {
    height: 560px;
  }

  .hero-content {
    left: 20px;
    right: 20px;
    bottom: 56px;
  }

  .hero p {
    font-size: 15px;
    line-height: 1.7;
  }

  .hero-arrow {
    display: none;
  }

  .content-section {
    padding: 38px 16px;
  }

  .movie-grid,
  .category-grid,
  .neighbor-section {
    grid-template-columns: 1fr;
  }

  .movie-rail {
    grid-auto-columns: 82vw;
  }

  .rail-wrap {
    grid-template-columns: 1fr;
  }

  .rail-control {
    display: none;
  }

  .category-preview,
  .footer-inner,
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .rank-item a {
    grid-template-columns: auto 82px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }

  .rank-item img {
    width: 82px;
    height: 58px;
  }

  .rank-num {
    width: 32px;
    height: 32px;
    border-radius: 11px;
    font-size: 13px;
  }

  .detail-cover img {
    height: 420px;
  }

  .detail-shell {
    padding: 34px 16px 46px;
  }
}
