:root {
  --rose: #e11d48;
  --rose-dark: #be123c;
  --pink: #db2777;
  --amber: #f59e0b;
  --green: #16a34a;
  --blue: #2563eb;
  --text: #111827;
  --muted: #6b7280;
  --line: #ffe4e6;
  --bg: #fff7f8;
  --card: #ffffff;
  --shadow: 0 20px 45px rgba(190, 18, 60, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(244, 63, 94, 0.14);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: var(--rose);
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--pink), var(--amber));
  box-shadow: 0 12px 24px rgba(225, 29, 72, 0.28);
}

.brand-text {
  font-size: 21px;
  letter-spacing: 0.03em;
  background: linear-gradient(90deg, var(--rose), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-weight: 700;
  color: #374151;
}

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

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

.menu-toggle {
  display: none;
  border: 0;
  border-radius: 12px;
  width: 42px;
  height: 42px;
  background: #fff1f2;
  color: var(--rose);
  font-size: 22px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  color: #ffffff;
  background: radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.28), transparent 26%), linear-gradient(135deg, #be123c 0%, #e11d48 42%, #f59e0b 100%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(8px);
  opacity: 0.36;
}

.hero::before {
  width: 420px;
  height: 420px;
  right: -90px;
  top: 70px;
  background: rgba(255, 255, 255, 0.22);
}

.hero::after {
  width: 320px;
  height: 320px;
  left: -80px;
  bottom: 20px;
  background: rgba(255, 251, 235, 0.28);
}

.hero-slider {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: 92px 20px 70px;
  z-index: 2;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  align-items: center;
  gap: 48px;
}

.hero-slide.active {
  display: grid;
  animation: fadeUp 0.52s ease both;
}

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

.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero h1 span {
  color: #fde68a;
}

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

.hero-actions,
.panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

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

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

.btn-light {
  color: var(--rose);
  background: #ffffff;
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.15);
}

.btn-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(10px);
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(90deg, var(--rose), var(--pink));
  box-shadow: 0 14px 30px rgba(225, 29, 72, 0.24);
}

.hero-poster {
  position: relative;
  min-height: 470px;
  border-radius: 36px;
  overflow: hidden;
  box-shadow: 0 40px 90px rgba(127, 29, 29, 0.35);
  transform: rotate(1.2deg);
}

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

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), transparent 58%);
}

.poster-caption {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 2;
}

.poster-caption strong {
  display: block;
  font-size: 26px;
  margin-bottom: 8px;
}

.poster-caption em {
  font-style: normal;
  color: rgba(255, 255, 255, 0.82);
}

.hero-dots {
  max-width: 1240px;
  margin: -42px auto 0;
  padding: 0 20px 32px;
  position: relative;
  z-index: 3;
  display: flex;
  gap: 10px;
}

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

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

.page-main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 44px 20px 80px;
}

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

.section-head h2,
.page-title h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.18;
}

.section-head p,
.page-title p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

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

.movie-card {
  border-radius: 24px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid rgba(244, 63, 94, 0.12);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(244, 63, 94, 0.35);
}

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

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

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

.poster-shade {
  position: absolute;
  inset: auto 0 0 0;
  height: 46%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.62), transparent);
}

.play-dot {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  background: rgba(225, 29, 72, 0.88);
  backdrop-filter: blur(8px);
}

.rank-no {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber), var(--rose));
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
}

.movie-info {
  padding: 15px 15px 17px;
}

.movie-title {
  display: block;
  font-weight: 900;
  line-height: 1.35;
  margin-bottom: 8px;
}

.movie-info p {
  min-height: 44px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 10px;
  color: #4b5563;
  font-size: 12px;
  font-weight: 700;
}

.movie-meta span {
  padding: 3px 8px;
  border-radius: 999px;
  background: #fff1f2;
}

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

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

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 180px;
  border-radius: 26px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  color: #ffffff;
  box-shadow: var(--shadow);
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.tile-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(136, 19, 55, 0.88), rgba(245, 158, 11, 0.1));
}

.category-tile strong,
.category-tile em {
  position: relative;
  z-index: 2;
}

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

.category-tile em {
  margin-top: 6px;
  font-style: normal;
  color: rgba(255, 255, 255, 0.82);
}

.search-panel,
.intro-panel,
.detail-panel {
  border-radius: 30px;
  padding: 26px;
  margin-bottom: 30px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(244, 63, 94, 0.13);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(12px);
}

.search-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 160px;
  gap: 14px;
}

.search-box input,
.search-box select {
  width: 100%;
  height: 48px;
  border: 1px solid #fecdd3;
  border-radius: 16px;
  padding: 0 16px;
  outline: 0;
  background: #ffffff;
  color: var(--text);
  font: inherit;
}

.search-box input:focus,
.search-box select:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.08);
}

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

.breadcrumb {
  margin-bottom: 24px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  font-weight: 700;
}

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

.detail-hero {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.detail-cover {
  border-radius: 30px;
  overflow: hidden;
  background: linear-gradient(135deg, #fecdd3, #fde68a);
  box-shadow: var(--shadow);
}

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

.detail-info h1 {
  margin: 0 0 16px;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

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

.meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.meta-strip span {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--rose-dark);
  background: #ffe4e6;
  font-weight: 900;
}

.player-section {
  margin-top: 34px;
  border-radius: 30px;
  overflow: hidden;
  background: #0f172a;
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.28);
}

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

.video-shell video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #020617;
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.36), rgba(0, 0, 0, 0.55));
  pointer-events: auto;
}

.video-overlay.hidden {
  display: none;
}

.big-play {
  width: 92px;
  height: 92px;
  border: 0;
  border-radius: 999px;
  color: var(--rose);
  background: #ffffff;
  font-size: 34px;
  font-weight: 900;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.24);
}

.content-block {
  margin-top: 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
}

.article-text {
  background: #ffffff;
  border-radius: 28px;
  padding: 28px;
  border: 1px solid rgba(244, 63, 94, 0.12);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.05);
}

.article-text h2 {
  margin: 0 0 14px;
}

.article-text p {
  color: #374151;
  line-height: 2;
  margin: 0 0 18px;
}

.related-list {
  display: grid;
  gap: 12px;
}

.related-item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(244, 63, 94, 0.12);
}

.related-item img {
  width: 76px;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  object-fit: cover;
  background: #ffe4e6;
}

.related-item strong {
  display: block;
  margin-bottom: 5px;
}

.related-item span {
  color: var(--muted);
  font-size: 13px;
}

.site-footer {
  background: #111827;
  color: rgba(255, 255, 255, 0.78);
  padding: 46px 20px;
}

.footer-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 36px;
}

.footer-logo {
  margin-bottom: 12px;
  font-size: 24px;
  font-weight: 900;
  color: #ffffff;
}

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

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

.empty-result {
  display: none;
  padding: 28px;
  border-radius: 22px;
  background: #ffffff;
  color: var(--muted);
  text-align: center;
}

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

@media (max-width: 1100px) {
  .movie-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .content-block {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .menu-toggle {
    display: grid;
    place-items: center;
  }

  .main-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 74px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 13px 14px;
    border-radius: 14px;
  }

  .main-nav a:hover {
    background: #fff1f2;
  }

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

  .hero {
    min-height: auto;
  }

  .hero-slider {
    padding-top: 52px;
  }

  .hero-poster {
    min-height: 360px;
  }

  .hero-poster img {
    height: 360px;
  }

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

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

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

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

@media (max-width: 520px) {
  .nav-inner {
    height: 62px;
    padding: 0 14px;
  }

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

  .hero h1 {
    font-size: 40px;
  }

  .hero p {
    font-size: 16px;
  }

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

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

  .page-main {
    padding: 30px 14px 60px;
  }

  .search-panel,
  .intro-panel,
  .detail-panel,
  .article-text {
    padding: 20px;
    border-radius: 22px;
  }
}
