:root {
  --bg-start: #fff7ed;
  --bg-mid: #fffbeb;
  --bg-end: #fff7ed;
  --text: #1f2937;
  --muted: #6b7280;
  --soft: #fef3c7;
  --line: rgba(251, 146, 60, 0.18);
  --accent: #d97706;
  --accent-strong: #ea580c;
  --accent-dark: #9a3412;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(146, 64, 14, 0.14);
  --shadow-soft: 0 12px 30px rgba(146, 64, 14, 0.10);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, var(--bg-start), var(--bg-mid) 42%, var(--bg-end));
  min-height: 100vh;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 247, 237, 0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(251, 146, 60, 0.18);
  box-shadow: 0 12px 32px rgba(251, 146, 60, 0.08);
}

.main-nav {
  max-width: var(--max);
  height: 68px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #fbbf24, #fb923c);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(234, 88, 12, 0.28);
  transition: transform 0.28s ease;
}

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

.brand-text,
.footer-brand {
  font-size: 1.28rem;
  background: linear-gradient(90deg, #d97706, #ea580c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
  font-weight: 700;
}

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

.nav-links a:hover {
  color: var(--accent-strong);
}

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

.nav-search input,
.search-panel input,
.search-panel select {
  border: 1px solid rgba(251, 146, 60, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input {
  width: 210px;
  padding: 11px 14px;
}

.nav-search input:focus,
.search-panel input:focus,
.search-panel select:focus {
  border-color: rgba(217, 119, 6, 0.55);
  box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.20);
}

button,
.btn,
.nav-search button {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-search button,
.btn-primary {
  padding: 11px 18px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 12px 24px rgba(234, 88, 12, 0.24);
}

.btn-light {
  padding: 11px 18px;
  color: var(--accent-dark);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 24px rgba(146, 64, 14, 0.12);
}

button:hover,
.btn:hover {
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(251, 146, 60, 0.22);
  padding: 9px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #9a3412;
  border-radius: 2px;
}

.main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 18px 64px;
}

.hero {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  min-height: 550px;
  background: radial-gradient(circle at 18% 20%, rgba(251, 191, 36, 0.35), transparent 32%), linear-gradient(135deg, #fff7ed, #fed7aa);
  box-shadow: var(--shadow);
}

.hero-slide {
  display: none;
  min-height: 550px;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 30px;
  align-items: center;
  padding: 56px;
}

.hero-slide.is-active {
  display: grid;
  animation: heroFade 0.55s ease both;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #92400e;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(251, 146, 60, 0.20);
  font-weight: 800;
  margin-bottom: 18px;
}

.hero h1,
.hero h2 {
  margin: 0 0 16px;
  font-size: clamp(2.35rem, 6vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.hero p {
  max-width: 620px;
  color: #4b5563;
  font-size: 1.08rem;
  line-height: 1.85;
  margin: 0 0 22px;
}

.hero-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 18px 0 24px;
}

.hero-tags span,
.detail-tags span,
.movie-meta span,
.breadcrumb a,
.breadcrumb span {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #92400e;
  border: 1px solid rgba(251, 146, 60, 0.18);
  padding: 7px 12px;
  font-size: 0.86rem;
  font-weight: 800;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-visual {
  position: relative;
  min-height: 430px;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 28px -8px -12px 24px;
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.28), rgba(251, 146, 60, 0.12));
  filter: blur(3px);
}

.hero-visual img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 430px;
  object-fit: cover;
  border-radius: 30px;
  box-shadow: 0 28px 60px rgba(124, 45, 18, 0.24);
}

.hero-rank-card {
  position: absolute;
  right: 18px;
  bottom: 22px;
  z-index: 3;
  width: min(290px, 76%);
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-soft);
}

.hero-rank-card strong {
  display: block;
  margin-bottom: 6px;
  color: #9a3412;
}

.hero-dots {
  position: absolute;
  left: 56px;
  bottom: 34px;
  display: flex;
  gap: 10px;
  z-index: 4;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  background: rgba(154, 52, 18, 0.32);
}

.hero-dots button.is-active {
  width: 34px;
  background: #ea580c;
}

.section {
  margin-top: 34px;
  padding: 28px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(251, 146, 60, 0.14);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title h1,
.section-title h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
}

.icon-box {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 12px 24px rgba(234, 88, 12, 0.22);
}

.section-lead,
.page-lead {
  color: var(--muted);
  line-height: 1.8;
  margin: 10px 0 0;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(146, 64, 14, 0.10);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 42px rgba(146, 64, 14, 0.18);
}

.poster-link {
  position: relative;
  display: block;
  height: 250px;
  overflow: hidden;
  background: linear-gradient(135deg, #ffedd5, #fef3c7);
}

.compact-card .poster-link {
  height: 190px;
}

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

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

.type-badge,
.year-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  color: #ffffff;
  backdrop-filter: blur(8px);
}

.type-badge {
  top: 12px;
  right: 12px;
  padding: 6px 10px;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
}

.year-badge {
  left: 12px;
  bottom: 12px;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.62);
}

.rank-badge {
  top: 12px;
  left: 12px;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #ef4444, #f97316);
}

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

.movie-card-body h2 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  line-height: 1.4;
}

.movie-card-body h2 a:hover {
  color: var(--accent-strong);
}

.movie-card-body p {
  min-height: 3.1em;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.movie-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #78716c;
}

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

.category-chip {
  min-height: 150px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 237, 213, 0.72));
  border: 1px solid rgba(251, 146, 60, 0.16);
  box-shadow: 0 12px 28px rgba(146, 64, 14, 0.09);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-chip:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 38px rgba(146, 64, 14, 0.16);
}

.category-chip span {
  font-size: 1.24rem;
  font-weight: 900;
  color: #9a3412;
}

.category-chip small {
  color: var(--muted);
  line-height: 1.7;
}

.page-hero {
  padding: 46px;
  border-radius: 32px;
  background: radial-gradient(circle at 80% 0%, rgba(251, 146, 60, 0.26), transparent 30%), linear-gradient(135deg, #ffffff, #ffedd5);
  box-shadow: var(--shadow);
  margin-bottom: 34px;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 4rem);
  letter-spacing: -0.05em;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.8fr);
  gap: 28px;
}

.player-card,
.detail-card,
.side-card {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(251, 146, 60, 0.14);
  box-shadow: var(--shadow-soft);
}

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

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: #ffffff;
  border-radius: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.38), rgba(154, 52, 18, 0.38));
}

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

.player-icon {
  width: 78px;
  height: 78px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #fbbf24, #ea580c);
  box-shadow: 0 18px 38px rgba(234, 88, 12, 0.36);
  font-size: 1.8rem;
}

.detail-content {
  padding: 28px;
}

.detail-content h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.12;
}

.detail-content h2,
.side-card h2,
.detail-card h2 {
  margin: 0 0 14px;
  font-size: 1.35rem;
}

.detail-content p,
.detail-card p {
  color: #4b5563;
  line-height: 1.9;
}

.side-card {
  padding: 22px;
}

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

.side-item {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  align-items: center;
}

.side-item img {
  width: 76px;
  height: 100px;
  object-fit: cover;
  border-radius: 12px;
  background: linear-gradient(135deg, #ffedd5, #fef3c7);
}

.side-item strong {
  display: block;
  line-height: 1.35;
}

.side-item small {
  color: var(--muted);
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 180px 160px;
  gap: 14px;
  margin-bottom: 24px;
}

.search-panel input,
.search-panel select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
}

.no-results {
  display: none;
  padding: 24px;
  border-radius: 18px;
  text-align: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.76);
}

.no-results.is-visible {
  display: block;
}

.site-footer {
  background: rgba(255, 255, 255, 0.72);
  border-top: 1px solid rgba(251, 146, 60, 0.16);
  padding: 42px 18px 24px;
}

.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.35fr 0.8fr 0.8fr;
  gap: 26px;
}

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

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

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

.site-footer a:hover {
  color: var(--accent-strong);
}

.footer-bottom {
  max-width: var(--max);
  margin: 24px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(251, 146, 60, 0.15);
  color: var(--muted);
  text-align: center;
}

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

@media (max-width: 980px) {
  .main-nav {
    gap: 12px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links,
  .nav-search {
    display: none;
  }

  .main-nav.is-open {
    height: auto;
    align-items: flex-start;
    flex-wrap: wrap;
    padding-top: 13px;
    padding-bottom: 13px;
  }

  .main-nav.is-open .nav-links,
  .main-nav.is-open .nav-search {
    display: flex;
    width: 100%;
  }

  .main-nav.is-open .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    order: 3;
  }

  .main-nav.is-open .nav-search {
    order: 4;
  }

  .main-nav.is-open .nav-search input {
    width: 100%;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    padding: 32px;
  }

  .hero-visual {
    min-height: 340px;
  }

  .hero-visual img {
    height: 340px;
  }

  .hero-dots {
    left: 32px;
  }

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

  .detail-layout,
  .footer-grid,
  .search-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .main {
    padding-left: 12px;
    padding-right: 12px;
  }

  .brand-text {
    font-size: 1.05rem;
  }

  .hero {
    border-radius: 24px;
    min-height: auto;
  }

  .hero-slide {
    min-height: auto;
    padding: 24px;
  }

  .hero-visual img,
  .hero-visual {
    height: auto;
    min-height: 270px;
  }

  .hero-rank-card {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    margin-top: 14px;
  }

  .hero-dots {
    position: static;
    padding: 0 24px 22px;
  }

  .section,
  .page-hero,
  .detail-content {
    padding: 20px;
    border-radius: 22px;
  }

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

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

  .poster-link {
    height: 260px;
  }
}
