:root {
  --rose: #f43f5e;
  --pink: #ec4899;
  --orange: #f97316;
  --red-dark: #881337;
  --ink: #111827;
  --muted: #6b7280;
  --soft: #fff1f2;
  --paper: #ffffff;
  --line: rgba(244, 63, 94, 0.14);
  --shadow: 0 20px 60px rgba(136, 19, 55, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: linear-gradient(135deg, #fff1f2 0%, #fff7ed 45%, #fdf2f8 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.95);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(136, 19, 55, 0.12);
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #ffffff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--rose), var(--pink), var(--orange));
  box-shadow: 0 12px 24px rgba(244, 63, 94, 0.28);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 20px;
  font-weight: 900;
  background: linear-gradient(90deg, var(--rose), var(--pink), var(--orange));
  -webkit-background-clip: text;
  color: transparent;
}

.brand-text em {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

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

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

.nav-link:hover,
.nav-active {
  color: var(--rose);
}

.nav-dropdown {
  position: relative;
  padding: 22px 0;
}

.dropdown-panel {
  position: absolute;
  top: 64px;
  left: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(92px, 1fr));
  gap: 4px;
  min-width: 250px;
  padding: 12px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(10px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow);
  transition: all 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel {
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0);
}

.dropdown-panel a {
  padding: 10px 12px;
  color: #4b5563;
  border-radius: 12px;
  font-size: 14px;
}

.dropdown-panel a:hover {
  color: var(--rose);
  background: var(--soft);
}

.top-search {
  display: flex;
  width: 278px;
}

.top-search input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #fecdd3;
  border-right: none;
  border-radius: 999px 0 0 999px;
  outline: none;
  background: #ffffff;
}

.top-search input:focus {
  border-color: var(--rose);
}

.top-search button {
  padding: 0 18px;
  color: #ffffff;
  border: none;
  border-radius: 0 999px 999px 0;
  background: linear-gradient(90deg, var(--rose), var(--pink));
  cursor: pointer;
  font-weight: 700;
}

.mobile-toggle {
  display: none;
  margin-left: auto;
  border: none;
  background: transparent;
  color: var(--ink);
  font-size: 26px;
}

.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(115deg, #be123c, #db2777, #ea580c);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, #be123c, #db2777, #ea580c);
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
  filter: saturate(1.08);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.22), transparent 28%), linear-gradient(90deg, rgba(136, 19, 55, 0.92), rgba(190, 24, 93, 0.68), rgba(249, 115, 22, 0.46));
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.58fr);
  align-items: center;
  gap: 44px;
  width: min(1180px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
}

.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -2px;
}

.hero-copy h1 span {
  display: block;
  margin-top: 10px;
  color: #ffe4e6;
  font-size: clamp(26px, 3vw, 42px);
}

.hero-copy p {
  max-width: 760px;
  margin: 0 0 26px;
  color: #fff1f2;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.75;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.hero-tags span {
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  font-weight: 700;
}

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

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

.btn {
  color: var(--rose);
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(136, 19, 55, 0.2);
}

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

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

.hero-panel {
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 80px rgba(136, 19, 55, 0.28);
  overflow: hidden;
  backdrop-filter: blur(18px);
}

.hero-panel img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04));
}

.hero-panel-body {
  padding: 20px;
}

.hero-panel-body strong {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
}

.hero-panel-body span {
  color: #ffe4e6;
}

.hero-controls {
  position: absolute;
  right: calc((100% - min(1180px, calc(100% - 32px))) / 2);
  bottom: 32px;
  z-index: 3;
  display: flex;
  gap: 10px;
}

.hero-controls button {
  width: 44px;
  height: 44px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0;
}

.section.white-wide {
  width: 100%;
  background: #ffffff;
}

.section.white-wide > .section-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

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

.section-head h1,
.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.8px;
}

.section-head p {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.link-more {
  color: var(--rose);
  font-weight: 800;
}

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

.category-tile {
  min-height: 138px;
  padding: 22px;
  color: #ffffff;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--rose), var(--pink), var(--orange));
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 26px 70px rgba(136, 19, 55, 0.2);
}

.category-tile span {
  display: block;
  font-size: 34px;
}

.category-tile strong {
  display: block;
  margin-top: 12px;
  font-size: 18px;
}

.category-tile p {
  margin: 8px 0 0;
  color: #fff1f2;
  font-size: 13px;
  line-height: 1.6;
}

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

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

.movie-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(244, 63, 94, 0.08);
  border-radius: 24px;
  background: linear-gradient(145deg, #ffffff, #fff1f2);
  box-shadow: 0 16px 42px rgba(136, 19, 55, 0.1);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 72px rgba(136, 19, 55, 0.18);
}

.poster-wrap {
  position: relative;
  overflow: hidden;
  height: 260px;
  background: linear-gradient(135deg, #fb7185, #ec4899, #fb923c);
}

.movie-grid.three .poster-wrap {
  height: 300px;
}

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

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

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

.poster-meta {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
}

.poster-meta span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(244, 63, 94, 0.9);
}

.play-float {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: var(--rose);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.84);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  transition: all 0.22s ease;
}

.movie-card:hover .play-float {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.card-body {
  padding: 18px;
}

.card-body h2 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.movie-card:hover h2 {
  color: var(--rose);
}

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

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.card-tags span,
.info-tags span {
  padding: 6px 10px;
  color: var(--rose);
  border-radius: 999px;
  background: #ffe4e6;
  font-size: 12px;
  font-weight: 700;
}

.scroll-row {
  display: grid;
  grid-auto-columns: 320px;
  grid-auto-flow: column;
  gap: 20px;
  overflow-x: auto;
  padding: 8px 4px 24px;
  scroll-snap-type: x proximity;
}

.scroll-row .movie-card {
  scroll-snap-align: start;
}

.rank-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
}

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

.compact-card {
  position: relative;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 92px;
  padding: 10px;
  border: 1px solid rgba(244, 63, 94, 0.08);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(136, 19, 55, 0.08);
}

.compact-card:hover strong {
  color: var(--rose);
}

.compact-card img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 14px;
  background: linear-gradient(135deg, #fb7185, #fb923c);
}

.compact-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
}

.compact-card span:not(.rank-no) {
  color: var(--muted);
  font-size: 13px;
}

.rank-no {
  position: absolute;
  left: -8px;
  top: -8px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #ffffff;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  font-weight: 900;
  box-shadow: 0 10px 26px rgba(244, 63, 94, 0.32);
}

.page-hero {
  padding: 76px 0;
  color: #ffffff;
  background: linear-gradient(120deg, #be123c, #db2777, #ea580c);
}

.page-hero-inner {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  text-align: center;
}

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

.page-hero p {
  max-width: 760px;
  margin: 0 auto;
  color: #fff1f2;
  font-size: 18px;
  line-height: 1.8;
}

.breadcrumb {
  width: min(1180px, calc(100% - 32px));
  margin: 24px auto 0;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--rose);
  font-weight: 700;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 38px;
}

.pagination a {
  min-width: 42px;
  padding: 11px 14px;
  text-align: center;
  border: 1px solid #fecdd3;
  border-radius: 999px;
  background: #ffffff;
  font-weight: 800;
}

.pagination a.current,
.pagination a:hover {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(90deg, var(--rose), var(--pink));
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(120deg, #881337, #be123c, #ea580c);
}

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

.detail-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
  filter: blur(2px) saturate(1.15);
}

.detail-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(136, 19, 55, 0.78), rgba(249, 115, 22, 0.4));
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 40px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 58px 0;
}

.detail-poster {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 28px;
  background: linear-gradient(135deg, #fb7185, #fb923c);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.26);
}

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

.detail-info h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 60px);
  letter-spacing: -1px;
}

.detail-info .lead {
  margin: 0 0 22px;
  color: #ffe4e6;
  font-size: 20px;
  line-height: 1.8;
}

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

.detail-meta span {
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-weight: 800;
  backdrop-filter: blur(8px);
}

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

.player-section {
  width: min(1100px, calc(100% - 32px));
  margin: 64px auto 0;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #111827;
  box-shadow: 0 26px 80px rgba(17, 24, 39, 0.28);
}

.player-shell video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0;
  border: none;
  background: #111827;
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.56;
}

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), rgba(0, 0, 0, 0.72));
}

.player-cover span {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  color: var(--rose);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  font-size: 34px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
}

.article-block {
  width: min(980px, calc(100% - 32px));
  margin: 46px auto 0;
  padding: 32px;
  border: 1px solid rgba(244, 63, 94, 0.08);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 16px 44px rgba(136, 19, 55, 0.08);
}

.article-block h2 {
  margin: 0 0 16px;
  font-size: 28px;
}

.article-block p {
  color: #374151;
  font-size: 17px;
  line-height: 2;
}

.info-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.search-panel {
  display: grid;
  grid-template-columns: 1fr 160px 160px 120px;
  gap: 12px;
  padding: 20px;
  border: 1px solid rgba(244, 63, 94, 0.1);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.search-panel input,
.search-panel select {
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid #fecdd3;
  border-radius: 14px;
  outline: none;
}

.search-panel button {
  color: #ffffff;
  border: none;
  border-radius: 14px;
  background: linear-gradient(90deg, var(--rose), var(--pink));
  font-weight: 900;
  cursor: pointer;
}

.search-results-note {
  margin: 24px 0;
  color: var(--muted);
  font-weight: 700;
}

.site-footer {
  margin-top: 72px;
  color: #ffffff;
  background: linear-gradient(90deg, #881337, #831843, #9a3412);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 32px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0;
}

.footer-logo {
  margin-bottom: 14px;
  font-size: 24px;
  font-weight: 900;
}

.footer-brand p,
.footer-links a {
  color: #ffe4e6;
  line-height: 1.8;
}

.footer-links {
  display: grid;
  align-content: start;
  gap: 9px;
}

.footer-links h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

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

.footer-bottom {
  padding: 18px;
  text-align: center;
  color: #ffe4e6;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

@media (max-width: 980px) {
  .nav-wrap {
    flex-wrap: wrap;
    height: auto;
    min-height: 68px;
    padding: 12px 0;
  }

  .mobile-toggle {
    display: block;
  }

  .main-nav,
  .top-search {
    display: none;
    width: 100%;
  }

  body.nav-open .main-nav,
  body.nav-open .top-search {
    display: flex;
  }

  body.nav-open .main-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-top: 12px;
  }

  body.nav-open .top-search {
    padding-bottom: 10px;
  }

  .nav-dropdown {
    padding: 0;
  }

  .dropdown-panel {
    position: static;
    display: none;
    margin-top: 10px;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .nav-dropdown:hover .dropdown-panel {
    display: grid;
  }

  .hero {
    height: auto;
    min-height: 640px;
  }

  .hero-slide {
    min-height: 640px;
  }

  .hero-inner,
  .detail-hero-inner,
  .rank-layout {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    padding: 70px 0 100px;
  }

  .hero-panel {
    max-width: 360px;
  }

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

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

  .detail-hero-inner {
    padding: 42px 0;
  }

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

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

@media (max-width: 620px) {
  .hero-copy h1 {
    letter-spacing: -1px;
  }

  .hero-actions,
  .detail-actions {
    flex-direction: column;
  }

  .hero-controls {
    right: 16px;
  }

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

  .poster-wrap,
  .movie-grid.three .poster-wrap {
    height: 320px;
  }

  .section-head {
    display: block;
  }

  .article-block {
    padding: 24px;
  }
}
