:root {
  color-scheme: light;
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #fff7ed;
  --text: #111827;
  --muted: #6b7280;
  --muted-2: #9ca3af;
  --line: #e5e7eb;
  --brand: #92400e;
  --brand-dark: #78350f;
  --brand-soft: #f59e0b;
  --accent: #ea580c;
  --danger: #dc2626;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.14);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --max: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  color: #ffffff;
  background: linear-gradient(90deg, #78350f, #92400e 50%, #7c2d12);
  box-shadow: 0 12px 35px rgba(120, 53, 15, 0.25);
}

.site-header-inner {
  width: min(100% - 32px, var(--max));
  height: 70px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #78350f;
  background: #fbbf24;
  border-radius: 999px;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.28), 0 10px 24px rgba(0, 0, 0, 0.2);
}

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

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

.nav-link,
.mobile-link {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: #fde68a;
}

.nav-link:hover {
  transform: translateY(-1px);
}

.header-search,
.mobile-search,
.large-search {
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(16px);
}

.header-search input,
.mobile-search input,
.large-search input {
  width: 230px;
  min-width: 0;
  color: #ffffff;
  border: 0;
  outline: 0;
  padding: 12px 16px;
  background: transparent;
}

.header-search input::placeholder,
.mobile-search input::placeholder,
.large-search input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.header-search button,
.mobile-search button,
.large-search button {
  border: 0;
  cursor: pointer;
  color: #78350f;
  padding: 12px 20px;
  font-weight: 800;
  background: #fbbf24;
}

.menu-button {
  display: none;
  color: #ffffff;
  border: 0;
  cursor: pointer;
  font-size: 26px;
  background: transparent;
}

.mobile-panel {
  display: none;
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 0 0 18px;
}

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

.mobile-panel nav {
  display: grid;
  gap: 12px;
  padding: 12px 0;
}

.section-inner {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.hero-slider {
  position: relative;
  min-height: 660px;
  overflow: hidden;
  color: #ffffff;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 56px;
  align-items: center;
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 96px 0 78px;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.hero-slide::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 22%, rgba(251, 191, 36, 0.3), transparent 28%),
    radial-gradient(circle at 70% 45%, rgba(234, 88, 12, 0.2), transparent 30%);
}

.hero-slide.is-active {
  position: relative;
  opacity: 1;
  transform: scale(1);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.hero-label,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fbbf24;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-label::before,
.eyebrow::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 18px currentColor;
}

.hero-content h1,
.page-hero h1,
.detail-info h1 {
  margin: 18px 0;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: -0.055em;
}

.hero-content p,
.page-hero p,
.lead-text {
  max-width: 760px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(18px, 2.2vw, 24px);
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #92400e;
  font-size: 13px;
  font-weight: 800;
  padding: 7px 12px;
  background: #fffbeb;
  border: 1px solid rgba(251, 191, 36, 0.65);
}

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

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

.primary-button {
  color: #78350f;
  background: #ffffff;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.22);
}

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

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

.primary-button:hover {
  box-shadow: 0 26px 45px rgba(0, 0, 0, 0.28);
}

.hero-poster {
  position: relative;
  z-index: 2;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 34px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  transform: rotate(2deg);
}

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

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

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

.hero-dot.is-active {
  background: #fbbf24;
}

.quick-search-section {
  margin-top: -46px;
  position: relative;
  z-index: 7;
}

.quick-search-card {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(280px, 430px);
  gap: 20px;
  align-items: center;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #92400e, #ea580c);
  box-shadow: var(--shadow);
  color: #ffffff;
}

.quick-search-card h2 {
  margin: 0 0 6px;
  font-size: 28px;
  letter-spacing: -0.03em;
}

.quick-search-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.large-search {
  width: 100%;
  justify-self: end;
}

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

.hero-category-links {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-category-links a,
.filter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  color: #ffffff;
  border-radius: 999px;
  padding: 0 16px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  transition: transform 0.2s ease, background 0.2s ease;
}

.hero-category-links a:hover,
.filter-chip:hover,
.filter-chip.is-active {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.26);
}

.section-block {
  padding: 76px 0 0;
}

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

.section-heading h2 {
  margin: 8px 0 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.section-heading a {
  color: var(--accent);
  font-weight: 900;
}

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

.movie-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.16);
}

.poster-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #111827;
}

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

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

.score-badge,
.duration-badge,
.rank-badge {
  position: absolute;
  top: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
}

.score-badge {
  right: 14px;
  background: #ea580c;
}

.duration-badge {
  left: 14px;
  background: rgba(17, 24, 39, 0.75);
  backdrop-filter: blur(12px);
}

.rank-badge {
  left: 14px;
  top: 52px;
  background: #111827;
}

.poster-hover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: end;
  padding: 20px;
  color: #ffffff;
  font-weight: 900;
  opacity: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster-hover {
  opacity: 1;
}

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

.movie-kicker {
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
}

.movie-card h2 {
  margin: 7px 0 8px;
  font-size: 20px;
  line-height: 1.24;
  letter-spacing: -0.02em;
}

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

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted-2);
  font-size: 13px;
  font-weight: 700;
}

.movie-meta span + span::before {
  content: "·";
  margin-right: 8px;
}

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

.tag-row span {
  color: var(--brand);
  background: var(--surface-soft);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 30px;
  align-items: start;
}

.ranking-panel,
.category-panel,
.content-card,
.video-shell,
.category-card {
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
}

.category-panel,
.ranking-panel {
  padding: 28px;
}

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

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

.category-card {
  display: block;
  padding: 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.category-card h2 {
  margin: 0;
  font-size: 26px;
  letter-spacing: -0.035em;
}

.category-card-top span {
  color: var(--accent);
  font-weight: 900;
}

.category-card p {
  margin: 12px 0 18px;
  color: var(--muted);
}

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

.mini-link {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  color: var(--text);
  font-weight: 800;
}

.mini-link img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 12px;
}

.mini-link span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

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

.rank-line {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 54px;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: #f9fafb;
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-line:hover {
  transform: translateX(4px);
  background: #fff7ed;
}

.rank-number {
  color: var(--accent);
  font-size: 18px;
  font-weight: 950;
}

.rank-title {
  overflow: hidden;
  font-weight: 850;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-score {
  justify-self: end;
  color: var(--brand);
  font-weight: 950;
}

.page-hero,
.detail-hero {
  color: #ffffff;
  background:
    radial-gradient(circle at 15% 15%, rgba(251, 191, 36, 0.22), transparent 32%),
    linear-gradient(120deg, #111827, #78350f 55%, #7c2d12);
}

.page-hero .section-inner {
  padding: 96px 0;
}

.small-page-hero .section-inner {
  padding: 74px 0;
}

.ranking-hero,
.search-hero {
  background:
    radial-gradient(circle at 20% 20%, rgba(251, 191, 36, 0.22), transparent 32%),
    linear-gradient(120deg, #0f172a, #92400e 52%, #ea580c);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
}

.breadcrumb a:hover {
  color: #fde68a;
}

.filter-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 34px;
}

.filter-strip .filter-chip {
  color: var(--brand);
  background: #ffffff;
  border-color: #fed7aa;
}

.filter-strip .filter-chip:hover,
.filter-strip .filter-chip.is-active {
  color: #ffffff;
  background: var(--accent);
}

.ranking-grid .movie-card:nth-child(-n + 3) .poster-wrap::after {
  content: "高分推荐";
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  color: #78350f;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 950;
  background: #fbbf24;
}

.search-page-form {
  max-width: 660px;
  margin-top: 28px;
}

.empty-state {
  margin: 34px 0 0;
  padding: 34px;
  text-align: center;
  border-radius: var(--radius-lg);
  color: var(--muted);
  background: #ffffff;
}

.detail-hero {
  padding: 76px 0;
}

.detail-layout {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 46px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 34px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

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

.detail-info h1 {
  max-width: 900px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 800;
}

.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border-radius: 999px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.large-tags span {
  background: rgba(255, 255, 255, 0.92);
}

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

.video-shell {
  position: relative;
  overflow: hidden;
  background: #020617;
  aspect-ratio: 16 / 9;
}

.movie-video {
  width: 100%;
  height: 100%;
  background: #020617;
  display: block;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border: 0;
  cursor: pointer;
  font-size: 20px;
  font-weight: 950;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.72));
}

.player-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-icon {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #78350f;
  border-radius: 999px;
  background: #fbbf24;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

.player-message {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 5;
  transform: translateX(-50%);
  color: #ffffff;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 800;
  background: rgba(220, 38, 38, 0.88);
}

.detail-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding-top: 46px;
}

.content-card {
  padding: 30px;
}

.content-card h2 {
  margin: 0 0 14px;
  font-size: 28px;
  letter-spacing: -0.035em;
}

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

.detail-nav-links {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.detail-nav-links a {
  display: flex;
  align-items: center;
  min-height: 58px;
  border-radius: var(--radius-md);
  padding: 0 20px;
  color: var(--brand);
  font-weight: 900;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
}

.detail-nav-links a:last-child {
  justify-content: flex-end;
  text-align: right;
}

.related-grid .movie-card-compact .movie-card-body {
  padding: 15px;
}

.related-grid .movie-card-compact h2 {
  font-size: 17px;
}

.site-footer {
  margin-top: 88px;
  color: #d1d5db;
  background: linear-gradient(180deg, #111827, #030712);
}

.footer-inner {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(180px, 0.7fr) minmax(180px, 0.7fr);
  gap: 34px;
  padding: 54px 0;
}

.footer-logo {
  color: #ffffff;
  margin-bottom: 14px;
}

.footer-brand p {
  max-width: 520px;
  margin: 0;
  color: #9ca3af;
}

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

.footer-column ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.footer-column a:hover {
  color: #fbbf24;
}

.footer-bottom {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 18px 0 28px;
  color: #9ca3af;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

  .menu-button {
    display: inline-flex;
    margin-left: auto;
  }

  .hero-slide {
    grid-template-columns: minmax(0, 1fr) 280px;
  }

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

  .split-section {
    grid-template-columns: 1fr;
  }

  .ranking-panel {
    width: 100%;
  }
}

@media (max-width: 820px) {
  .site-header-inner {
    height: 64px;
  }

  .hero-slider {
    min-height: 760px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 72px 0 86px;
  }

  .hero-poster {
    width: min(100%, 300px);
    margin: 0 auto;
    transform: rotate(0deg);
  }

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

  .movie-grid,
  .category-grid,
  .compact-category-grid,
  .detail-content,
  .detail-nav-links {
    grid-template-columns: 1fr;
  }

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

  .detail-poster {
    width: min(100%, 320px);
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .section-inner,
  .site-header-inner,
  .mobile-panel,
  .footer-inner,
  .footer-bottom {
    width: min(100% - 22px, var(--max));
  }

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

  .hero-content h1,
  .page-hero h1,
  .detail-info h1 {
    font-size: 38px;
  }

  .hero-content p,
  .page-hero p,
  .lead-text {
    font-size: 17px;
  }

  .movie-grid {
    gap: 18px;
  }

  .section-block {
    padding-top: 54px;
  }

  .category-card,
  .category-panel,
  .ranking-panel,
  .content-card {
    padding: 22px;
  }

  .poster-wrap {
    aspect-ratio: 16 / 11;
  }
}
