:root {
  --rose: #e11d48;
  --rose-dark: #be123c;
  --pink: #db2777;
  --amber: #f59e0b;
  --orange: #f97316;
  --green: #10b981;
  --blue: #2563eb;
  --slate: #0f172a;
  --text: #111827;
  --muted: #64748b;
  --line: rgba(225, 29, 72, 0.12);
  --surface: rgba(255, 255, 255, 0.86);
  --shadow: 0 24px 70px rgba(190, 18, 60, 0.16);
  --radius: 26px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(244, 63, 94, 0.15), transparent 34rem),
    linear-gradient(135deg, #fff1f2 0%, #ffffff 45%, #fffbeb 100%);
  min-height: 100vh;
}

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

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

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(244, 63, 94, 0.12);
  box-shadow: 0 12px 36px rgba(190, 18, 60, 0.08);
}

.nav-wrap {
  max-width: 1280px;
  margin: 0 auto;
  height: 72px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 18px;
  background: linear-gradient(135deg, #fb7185, #db2777);
  box-shadow: 0 14px 36px rgba(225, 29, 72, 0.28);
}

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

.logo-text strong {
  font-size: 21px;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #e11d48, #db2777);
  -webkit-background-clip: text;
  color: transparent;
}

.logo-text em {
  margin-top: 5px;
  color: #64748b;
  font-size: 12px;
  font-style: normal;
}

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

.nav-link {
  color: #475569;
  font-weight: 700;
  font-size: 15px;
  padding: 10px 2px;
  transition: color 0.2s ease, transform 0.2s ease;
}

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

.header-search {
  position: relative;
  width: 260px;
}

.header-search input,
.mobile-search input,
.local-search,
.filter-select {
  width: 100%;
  border: 1px solid rgba(225, 29, 72, 0.15);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  padding: 12px 16px;
  outline: none;
  color: #334155;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
}

.header-search input:focus,
.mobile-search input:focus,
.local-search:focus,
.filter-select:focus {
  border-color: rgba(225, 29, 72, 0.42);
  box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.10);
}

.global-search-panel {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(460px, 88vw);
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(225, 29, 72, 0.12);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 12px;
  max-height: 520px;
  overflow: auto;
}

.mobile-search .global-search-panel {
  left: 0;
  right: auto;
}

.global-search-panel.show {
  display: grid;
  gap: 8px;
}

.search-result {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 16px;
  transition: background 0.2s ease;
}

.search-result:hover {
  background: #fff1f2;
}

.search-result img {
  width: 56px;
  height: 76px;
  object-fit: cover;
  border-radius: 12px;
  background: linear-gradient(135deg, #fff1f2, #fef3c7);
}

.search-result strong {
  display: block;
  font-size: 15px;
  color: #111827;
}

.search-result span {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
}

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

.mobile-nav {
  display: none;
  padding: 14px 24px 20px;
  border-top: 1px solid rgba(225, 29, 72, 0.10);
}

.mobile-nav.open {
  display: grid;
  gap: 12px;
}

.mobile-search {
  position: relative;
  margin-top: 6px;
}

main {
  padding-top: 72px;
}

.hero {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  background: #9f1239;
}

.hero-slide {
  display: none;
  min-height: 720px;
  position: relative;
}

.hero-slide.active {
  display: block;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.36;
  transform: scale(1.03);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(136, 19, 55, 0.96), rgba(190, 18, 60, 0.74), rgba(15, 23, 42, 0.42)),
    radial-gradient(circle at 70% 30%, rgba(251, 191, 36, 0.35), transparent 24rem);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  min-height: 720px;
  padding: 120px 24px 110px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 390px;
  gap: 52px;
  align-items: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 22px;
}

.hero h1 {
  margin: 0 0 20px;
  color: #fff;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero h1 span {
  color: #fde68a;
}

.hero-title {
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.1;
}

.hero-desc {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 20px;
  line-height: 1.8;
  margin: 0 0 28px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
}

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

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

.btn-primary {
  background: #fff;
  color: var(--rose);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.20);
}

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

.btn-gradient {
  color: #fff;
  background: linear-gradient(90deg, #e11d48, #db2777);
  box-shadow: 0 18px 40px rgba(225, 29, 72, 0.26);
}

.hero-poster {
  position: relative;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 32px 90px rgba(15, 23, 42, 0.38);
  background: linear-gradient(135deg, #fff1f2, #fef3c7);
}

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

.hero-poster-meta {
  position: absolute;
  inset: auto 18px 18px;
  border-radius: 24px;
  padding: 18px;
  color: #fff;
  background: rgba(15, 23, 42, 0.54);
  backdrop-filter: blur(16px);
}

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

.hero-dots {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 42px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
}

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

.hero-wave {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: linear-gradient(to top, #fff1f2, rgba(255, 241, 242, 0));
}

.section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 24px;
}

.section-muted {
  background: linear-gradient(135deg, rgba(255, 241, 242, 0.92), rgba(253, 242, 248, 0.78));
}

.section-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 24px;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
}

.heading-icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 18px 36px rgba(225, 29, 72, 0.22);
}

.heading-icon.rose {
  background: linear-gradient(135deg, #e11d48, #db2777);
}

.heading-icon.amber {
  background: linear-gradient(135deg, #f59e0b, #f97316);
}

.heading-icon.green {
  background: linear-gradient(135deg, #10b981, #059669);
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 38px);
  letter-spacing: -0.02em;
}

.section-heading p {
  margin: 7px 0 0;
  color: #64748b;
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.90);
  border: 1px solid rgba(225, 29, 72, 0.10);
  box-shadow: 0 18px 48px rgba(190, 18, 60, 0.10);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(225, 29, 72, 0.24);
}

.movie-card-wide {
  display: grid;
  grid-template-columns: 180px 1fr;
  min-height: 250px;
}

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

.poster-link img {
  width: 100%;
  aspect-ratio: 3 / 4;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.poster-play {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.92);
  color: var(--rose);
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.2);
}

.rank-badge {
  position: absolute;
  z-index: 2;
  left: 12px;
  top: 12px;
  min-width: 48px;
  border-radius: 999px;
  padding: 7px 10px;
  text-align: center;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, #f59e0b, #e11d48);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.24);
}

.card-body {
  padding: 18px;
}

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

.card-meta span {
  border-radius: 999px;
  background: #fff1f2;
  padding: 4px 9px;
}

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

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

.card-body p {
  color: #64748b;
  line-height: 1.72;
  margin: 0 0 14px;
}

.tag-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  background: #fdf2f8;
  color: #be123c;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
}

.text-link {
  color: var(--rose);
  font-weight: 900;
}

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

.category-card {
  border-radius: 28px;
  padding: 26px;
  color: #fff;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.32), transparent 14rem),
    linear-gradient(135deg, #e11d48, #db2777);
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:nth-child(3n+2) {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.30), transparent 14rem),
    linear-gradient(135deg, #f59e0b, #f97316);
}

.category-card:nth-child(3n) {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.30), transparent 14rem),
    linear-gradient(135deg, #2563eb, #06b6d4);
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.22);
}

.category-card h3 {
  margin: 0 0 12px;
  font-size: 26px;
}

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

.category-card span {
  margin-top: 20px;
  font-weight: 900;
}

.page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #9f1239, #e11d48 52%, #f59e0b);
  color: #fff;
}

.page-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 112px 24px 70px;
}

.page-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(36px, 5vw, 62px);
  letter-spacing: -0.04em;
}

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

.toolbar {
  margin: 0 0 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 180px;
  gap: 14px;
  align-items: center;
}

.filter-select {
  appearance: none;
  cursor: pointer;
  border-radius: 18px;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: #64748b;
  font-size: 14px;
  margin-bottom: 20px;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) 360px;
  gap: 32px;
  align-items: start;
}

.player-shell {
  border-radius: 34px;
  overflow: hidden;
  background: #020617;
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.28);
}

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

.video-player video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #020617;
  cursor: pointer;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  background-size: cover;
  background-position: center;
  cursor: pointer;
}

.player-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.72), rgba(190, 18, 60, 0.42)),
    radial-gradient(circle at center, rgba(255, 255, 255, 0.12), transparent 18rem);
}

.play-overlay {
  position: relative;
  z-index: 2;
  border: 0;
  border-radius: 999px;
  min-height: 62px;
  padding: 0 28px;
  color: #e11d48;
  background: rgba(255, 255, 255, 0.94);
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.35);
}

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

.detail-card,
.info-panel {
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.90);
  border: 1px solid rgba(225, 29, 72, 0.10);
  box-shadow: var(--shadow);
  padding: 26px;
}

.detail-title {
  margin: 28px 0 14px;
  font-size: clamp(32px, 4vw, 54px);
  letter-spacing: -0.03em;
}

.detail-subtitle {
  color: #64748b;
  font-size: 18px;
  line-height: 1.8;
  margin: 0 0 24px;
}

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

.detail-meta span {
  border-radius: 999px;
  padding: 8px 13px;
  color: #be123c;
  background: #fff1f2;
  font-weight: 800;
}

.article-block {
  margin-top: 24px;
}

.article-block h2 {
  margin: 0 0 12px;
  font-size: 26px;
}

.article-block p {
  margin: 0;
  color: #475569;
  font-size: 17px;
  line-height: 1.9;
}

.side-poster {
  border-radius: 26px;
  overflow: hidden;
  margin-bottom: 18px;
  background: linear-gradient(135deg, #fff1f2, #fef3c7);
}

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

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

.info-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(225, 29, 72, 0.08);
  padding-bottom: 12px;
  color: #64748b;
}

.info-list strong {
  color: #111827;
  text-align: right;
}

.site-footer {
  margin-top: 40px;
  border-top: 1px solid rgba(225, 29, 72, 0.12);
  background: linear-gradient(135deg, #fff1f2, #fdf2f8 50%, #fffbeb);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
}

.footer-brand p {
  max-width: 520px;
  margin: 18px 0 0;
  color: #64748b;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  align-content: center;
}

.footer-links a {
  color: #475569;
  font-weight: 800;
}

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

.footer-copy {
  padding: 18px 24px 28px;
  color: #64748b;
  text-align: center;
}

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

.empty-state {
  display: none;
  border-radius: 24px;
  padding: 28px;
  text-align: center;
  color: #64748b;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(225, 29, 72, 0.10);
}

.empty-state.show {
  display: block;
}

@media (max-width: 1100px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

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

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

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

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

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

  .info-panel {
    max-width: 520px;
  }
}

@media (max-width: 800px) {
  .nav-wrap {
    padding: 0 16px;
  }

  .logo-text strong {
    font-size: 18px;
  }

  .logo-text em {
    display: none;
  }

  .hero,
  .hero-slide,
  .hero-content {
    min-height: auto;
  }

  .hero-content {
    padding: 92px 18px 120px;
    gap: 28px;
  }

  .hero-desc {
    font-size: 17px;
  }

  .section,
  .section-inner {
    padding: 52px 18px;
  }

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

  .movie-card-wide {
    grid-template-columns: 150px 1fr;
  }

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

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

@media (max-width: 560px) {
  .movie-card-wide {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    display: none;
  }

  .page-hero-inner {
    padding: 100px 18px 54px;
  }

  .detail-card,
  .info-panel {
    padding: 20px;
    border-radius: 24px;
  }
}
