:root {
  --bg: #fff7ed;
  --surface: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --red: #ef4444;
  --orange: #f97316;
  --green: #16a34a;
  --emerald: #059669;
  --blue: #2563eb;
  --purple: #9333ea;
  --shadow: 0 18px 45px rgba(31, 41, 55, 0.12);
  --soft-shadow: 0 10px 30px rgba(31, 41, 55, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, #fff7ed 0%, #ecfdf5 48%, #fff1f2 100%);
  min-height: 100vh;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.nav-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 22px;
  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 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 10px 25px rgba(249, 115, 22, 0.35);
}

.brand-text {
  font-size: 22px;
  background: linear-gradient(90deg, #dc2626, #ea580c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

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

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

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

.nav-search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

.nav-search-form input {
  width: 230px;
  border: 0;
  outline: 0;
  padding: 8px 10px 8px 16px;
  background: transparent;
}

.nav-search-form button,
.hero-search button,
.primary-btn,
.secondary-btn,
.filter-chip,
.play-cover {
  cursor: pointer;
}

.nav-search-form button {
  border: 0;
  color: #ffffff;
  font-weight: 800;
  border-radius: 999px;
  padding: 8px 15px;
  background: linear-gradient(90deg, var(--green), var(--emerald));
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #f3f4f6;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.mobile-toggle span {
  width: 20px;
  height: 2px;
  background: #374151;
  border-radius: 2px;
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: linear-gradient(135deg, #ef4444 0%, #f97316 46%, #db2777 100%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(55px);
  opacity: 0.45;
  pointer-events: none;
}

.hero::before {
  width: 340px;
  height: 340px;
  left: 8%;
  top: 80px;
  background: #fde68a;
  animation: pulseGlow 5s ease-in-out infinite;
}

.hero::after {
  width: 420px;
  height: 420px;
  right: 4%;
  bottom: 60px;
  background: #fecdd3;
  animation: pulseGlow 6s ease-in-out infinite reverse;
}

@keyframes pulseGlow {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.12);
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  min-height: 620px;
  margin: 0 auto;
  padding: 68px 22px 54px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
  align-items: center;
  gap: 42px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  border-radius: 999px;
  padding: 9px 16px;
  font-weight: 800;
  margin-bottom: 20px;
}

.hero-slide {
  display: none;
}

.hero-slide.active {
  display: block;
  animation: heroIn 0.7s ease both;
}

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

.hero h1 {
  max-width: 780px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1.06;
  letter-spacing: -0.06em;
}

.hero h1 span {
  display: block;
  color: #fef3c7;
}

.hero-lead {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 20px;
  line-height: 1.85;
  margin: 24px 0 0;
}

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

.hero-tags {
  margin: 20px 0 0;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  padding: 7px 11px;
}

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

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

.primary-btn {
  color: #dc2626;
  background: #ffffff;
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.18);
}

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

.secondary-btn {
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.hero-search {
  display: flex;
  max-width: 610px;
  margin-top: 34px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 12px 18px;
}

.hero-search button {
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 900;
  padding: 12px 24px;
  background: linear-gradient(90deg, var(--green), var(--emerald));
}

.hero-panel {
  position: relative;
  min-height: 520px;
}

.hero-poster-stack {
  position: sticky;
  top: 96px;
}

.hero-poster {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(0.95) translateX(22px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero-poster.active {
  position: relative;
  opacity: 1;
  transform: scale(1) translateX(0);
}

.hero-poster a {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  aspect-ratio: 3 / 4.15;
  box-shadow: 0 34px 70px rgba(127, 29, 29, 0.38);
  background: rgba(255, 255, 255, 0.16);
}

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

.hero-poster-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 88px 24px 24px;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), transparent);
}

.hero-poster-meta strong {
  display: block;
  font-size: 24px;
  margin-bottom: 6px;
}

.hero-dots {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
}

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

.section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 22px;
}

.section.alt {
  max-width: none;
  background: linear-gradient(135deg, #fff7ed, #fffbeb);
}

.section.alt > .section-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.section.green {
  max-width: none;
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
}

.section.green > .section-inner {
  max-width: 1280px;
  margin: 0 auto;
}

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

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

.section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #ffffff;
  font-size: 22px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: var(--soft-shadow);
}

.section-head h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 40px);
  letter-spacing: -0.04em;
}

.section-head p {
  margin: 6px 0 0;
  color: var(--muted);
}

.section-more {
  color: #dc2626;
  font-weight: 900;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--soft-shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #fee2e2, #fef3c7);
}

.compact-card .poster-link {
  aspect-ratio: 16 / 10;
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.76));
}

.poster-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 52px;
  opacity: 0;
  background: rgba(0, 0, 0, 0.24);
  transition: opacity 0.22s ease;
}

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

.poster-year {
  position: absolute;
  top: 12px;
  right: 12px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(0, 0, 0, 0.62);
}

.card-body {
  padding: 17px;
}

.card-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 48px;
  color: #1f2937;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
  transition: color 0.2s ease;
}

.movie-card:hover .card-title {
  color: var(--green);
}

.card-body p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 44px;
  margin: 10px 0 12px;
  color: var(--muted);
  line-height: 1.6;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #6b7280;
  font-size: 13px;
  margin-bottom: 12px;
}

.tag-row span {
  color: #15803d;
  background: #dcfce7;
  padding: 5px 8px;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  border-radius: 24px;
  padding: 24px;
  color: #ffffff;
  background: linear-gradient(135deg, #16a34a, #059669);
  box-shadow: var(--soft-shadow);
}

.category-card:nth-child(2n) {
  background: linear-gradient(135deg, #ef4444, #f97316);
}

.category-card:nth-child(3n) {
  background: linear-gradient(135deg, #2563eb, #06b6d4);
}

.category-card:nth-child(4n) {
  background: linear-gradient(135deg, #9333ea, #db2777);
}

.category-card::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  right: -40px;
  bottom: -50px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.category-card h2,
.category-card h3 {
  margin: 0 0 12px;
  font-size: 24px;
}

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

.category-card span {
  display: inline-flex;
  border-radius: 999px;
  padding: 8px 14px;
  color: #111827;
  background: rgba(255, 255, 255, 0.92);
  font-weight: 900;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 64px 110px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  border-radius: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--soft-shadow);
}

.rank-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 22px;
  font-weight: 900;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.rank-thumb {
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 16 / 10;
  background: #fee2e2;
}

.rank-thumb img {
  height: 100%;
  object-fit: cover;
}

.rank-info h2,
.rank-info h3 {
  margin: 0 0 6px;
  font-size: 20px;
}

.rank-info p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.rank-meta {
  color: #15803d;
  font-weight: 900;
  white-space: nowrap;
}

.page-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #16a34a, #059669);
}

.page-hero.orange {
  background: linear-gradient(135deg, #ef4444, #f97316);
}

.page-hero.blue {
  background: linear-gradient(135deg, #2563eb, #06b6d4);
}

.page-hero.purple {
  background: linear-gradient(135deg, #7c3aed, #db2777);
}

.page-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 76px 22px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.82);
}

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

.page-hero h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 780px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 19px;
  line-height: 1.8;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  border-radius: 24px;
  padding: 20px;
  margin-bottom: 28px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.filter-panel input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  outline: 0;
  padding: 14px 16px;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chip {
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  color: #374151;
  background: #f3f4f6;
  font-weight: 800;
}

.filter-chip.active {
  color: #ffffff;
  background: linear-gradient(90deg, var(--green), var(--emerald));
}

.detail-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 34px 22px 68px;
}

.detail-hero {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
  border-radius: 30px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #fee2e2, #fef3c7);
}

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

.detail-info h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 4vw, 52px);
  letter-spacing: -0.05em;
}

.detail-lead {
  color: #4b5563;
  font-size: 19px;
  line-height: 1.9;
}

.info-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.info-pills span {
  display: inline-flex;
  border-radius: 999px;
  padding: 8px 13px;
  color: #15803d;
  background: #dcfce7;
  font-weight: 800;
}

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

.detail-actions .primary-btn {
  color: #ffffff;
  background: linear-gradient(90deg, var(--green), var(--emerald));
}

.detail-actions .secondary-btn {
  color: var(--green);
  border-color: #86efac;
  background: #ffffff;
}

.content-card {
  border-radius: 26px;
  padding: 28px;
  margin-top: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--soft-shadow);
}

.content-card h2 {
  margin: 0 0 16px;
  font-size: 28px;
}

.content-card p {
  margin: 0 0 18px;
  color: #4b5563;
  line-height: 1.95;
  font-size: 17px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000000;
  aspect-ratio: 16 / 9;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.28);
}

.video-shell video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000000;
}

.play-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 10px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.72));
  z-index: 2;
}

.play-cover span {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  font-size: 34px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.play-cover strong {
  font-size: 24px;
}

.video-shell.is-playing .play-cover {
  display: none;
}

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

.related-grid .movie-card .poster-link {
  aspect-ratio: 16 / 10;
}

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

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 46px 22px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 34px;
}

.footer-brand {
  color: #ffffff;
  font-size: 24px;
}

.site-footer p {
  margin: 16px 0 0;
  line-height: 1.8;
  color: #9ca3af;
}

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

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: #9ca3af;
}

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

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

@media (max-width: 1100px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    min-height: 460px;
  }

  .hero-poster-stack {
    position: relative;
    top: auto;
    max-width: 430px;
  }

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

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

@media (max-width: 860px) {
  .nav-wrap {
    flex-wrap: wrap;
  }

  .mobile-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .nav-links,
  .nav-search-form {
    display: none;
    width: 100%;
  }

  .site-header.open .nav-links,
  .site-header.open .nav-search-form {
    display: flex;
  }

  .site-header.open .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .site-header.open .nav-search-form input {
    width: 100%;
  }

  .hero-inner {
    padding-top: 44px;
  }

  .hero-search {
    border-radius: 24px;
    flex-direction: column;
  }

  .hero-search button {
    width: 100%;
  }

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

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

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

  .rank-meta {
    grid-column: 3;
  }

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

  .detail-poster {
    max-width: 320px;
  }

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

@media (max-width: 560px) {
  .brand-text {
    font-size: 19px;
  }

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

  .hero-panel {
    min-height: auto;
  }

  .section,
  .page-hero-inner,
  .detail-shell {
    padding-left: 16px;
    padding-right: 16px;
  }

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

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

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

  .rank-thumb,
  .rank-meta {
    display: none;
  }

  .content-card,
  .detail-hero {
    padding: 20px;
  }
}
