:root {
  --rose: #e11d48;
  --rose-dark: #9f1239;
  --amber: #f59e0b;
  --ink: #111827;
  --muted: #6b7280;
  --soft: #fff7ed;
  --line: #f1f5f9;
  --card: #ffffff;
  --shadow: 0 18px 60px rgba(15, 23, 42, 0.10);
}

* {
  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(--ink);
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 36%, #f8fafc 100%);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(244, 63, 94, 0.12);
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--amber));
  box-shadow: 0 12px 30px rgba(225, 29, 72, 0.35);
}

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

.nav-link,
.mobile-panel a {
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  color: #4b5563;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-panel a:hover {
  color: var(--rose);
  background: #fff1f2;
}

.mobile-toggle {
  display: none;
  border: 0;
  border-radius: 12px;
  padding: 9px 12px;
  color: var(--rose);
  background: #fff1f2;
  font-size: 20px;
}

.mobile-panel {
  display: none;
  padding: 0 20px 16px;
  max-width: 1240px;
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(120deg, #831843 0%, #9a3412 52%, #111827 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 20%, rgba(245, 158, 11, 0.34), transparent 30%), radial-gradient(circle at 20% 80%, rgba(225, 29, 72, 0.32), transparent 35%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.28;
}

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

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  padding: 98px 20px 72px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.8fr);
  gap: 42px;
  align-items: center;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 800;
  backdrop-filter: blur(14px);
}

.hero h1 {
  margin: 24px 0 18px;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.hero-desc {
  max-width: 740px;
  margin: 0 0 26px;
  font-size: 18px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.84);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 20px;
  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: #fff;
  background: linear-gradient(135deg, var(--rose), var(--amber));
  box-shadow: 0 16px 36px rgba(225, 29, 72, 0.35);
}

.btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.hero-search {
  display: flex;
  max-width: 650px;
  padding: 8px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
}

.hero-search input,
.toolbar input,
.toolbar select {
  width: 100%;
  border: 0;
  outline: 0;
  border-radius: 16px;
  padding: 14px 16px;
  font: inherit;
}

.hero-search input {
  color: #fff;
  background: transparent;
}

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

.hero-search button {
  border: 0;
  border-radius: 16px;
  padding: 0 20px;
  color: #fff;
  background: var(--rose);
  font-weight: 900;
  cursor: pointer;
}

.hero-panel {
  border-radius: 34px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(20px);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.25);
}

.hero-slide {
  display: none;
}

.hero-slide.active {
  display: block;
  animation: fadeUp 0.5s ease both;
}

.hero-poster {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.08);
}

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

.hero-caption {
  padding: 18px 4px 4px;
}

.hero-caption h2 {
  margin: 0 0 10px;
  font-size: 28px;
}

.hero-caption p {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
}

.hero-dots {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

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

.hero-dots button.active {
  background: #fff;
}

.page-main,
.section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 54px 20px;
}

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

.section-kicker {
  margin: 0 0 8px;
  color: var(--rose);
  font-weight: 900;
  letter-spacing: 0.12em;
}

.section h2,
.page-title h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.04em;
}

.section-note,
.page-title p {
  max-width: 820px;
  color: var(--muted);
  line-height: 1.8;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 10px 34px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4.1;
  overflow: hidden;
  background: #fee2e2;
}

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

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

.badge,
.rank-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  background: var(--rose);
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(225, 29, 72, 0.26);
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  margin: 0 0 9px;
  font-size: 18px;
  line-height: 1.35;
}

.card-body h3 a:hover {
  color: var(--rose);
}

.card-body p {
  min-height: 48px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #64748b;
  font-size: 13px;
}

.meta-line span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #f8fafc;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.tag-row span {
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--rose-dark);
  background: #fff1f2;
  font-size: 12px;
  font-weight: 800;
}

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

.category-tile {
  display: block;
  min-height: 150px;
  padding: 22px;
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--amber));
  box-shadow: 0 16px 42px rgba(225, 29, 72, 0.18);
}

.category-tile strong {
  display: block;
  margin-bottom: 8px;
  font-size: 22px;
}

.category-tile span {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
}

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

.hot-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 34px rgba(15, 23, 42, 0.07);
}

.hot-num {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--amber));
  font-size: 22px;
  font-weight: 900;
}

.hot-item h3 {
  margin: 0 0 6px;
}

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

.hot-score {
  color: var(--rose);
  font-weight: 900;
}

.toolbar {
  display: grid;
  grid-template-columns: 1fr 180px 160px;
  gap: 12px;
  margin: 28px 0;
  padding: 12px;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

.toolbar input,
.toolbar select {
  background: #f8fafc;
}

.detail-hero {
  background: linear-gradient(135deg, #881337 0%, #9a3412 52%, #111827 100%);
  color: #fff;
}

.detail-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 70px 20px;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.3);
}

.detail-title h1 {
  margin: 14px 0 18px;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.detail-title p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.9;
  font-size: 17px;
}

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

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-weight: 800;
}

.player-box {
  overflow: hidden;
  border-radius: 28px;
  background: #0f172a;
  box-shadow: var(--shadow);
}

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

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

.play-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.55), rgba(15, 23, 42, 0.76));
  cursor: pointer;
}

.play-cover span {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 38px;
  backdrop-filter: blur(12px);
}

.article-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
}

.content-card,
.side-card {
  padding: 28px;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 10px 34px rgba(15, 23, 42, 0.07);
}

.content-card h2,
.side-card h2 {
  margin: 0 0 16px;
}

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

.side-links {
  display: grid;
  gap: 12px;
}

.side-links a {
  padding: 12px 14px;
  border-radius: 16px;
  background: #fff1f2;
  color: var(--rose-dark);
  font-weight: 800;
}

.breadcrumb {
  margin-bottom: 22px;
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--rose);
}

.site-footer {
  margin-top: 50px;
  border-top: 1px solid #fee2e2;
  background: linear-gradient(180deg, #fff 0%, #fff7ed 100%);
}

.footer-grid {
  max-width: 1240px;
  margin: 0 auto;
  padding: 42px 20px;
  display: grid;
  grid-template-columns: 1.2fr 1.4fr 1fr;
  gap: 28px;
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: #7f1d1d;
  background: #fff1f2;
  font-weight: 800;
  font-size: 13px;
}

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

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

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

  .mobile-toggle {
    display: block;
  }

  .mobile-panel.open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .hero-inner,
  .detail-inner,
  .article-block,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

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

  .hot-list {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 560px) {
  .hero {
    min-height: auto;
  }

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

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

  .hot-item {
    grid-template-columns: 54px 1fr;
  }

  .hot-score {
    grid-column: 2;
  }

  .detail-inner {
    padding: 42px 20px;
  }
}
