* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background: #fff7fb;
  color: #222222;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(90deg, #ec4899 0%, #fb7185 52%, #fb923c 100%);
  box-shadow: 0 18px 35px rgba(190, 24, 93, 0.22);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand {
  font-size: 22px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

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

.nav-link {
  color: #fff7ed;
  padding: 9px 14px;
  border-radius: 999px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.nav-search,
.mobile-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-search input,
.mobile-search input,
.filter-bar input,
.filter-bar select {
  border: 0;
  outline: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #2d2d2d;
}

.nav-search input {
  width: 250px;
  padding: 11px 16px;
}

.nav-search button,
.mobile-search button,
.primary-btn,
.ghost-btn,
.filter-bar button,
.play-layer button {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
}

.nav-search button,
.mobile-search button,
.primary-btn,
.filter-bar button {
  padding: 11px 18px;
  color: #be185d;
  background: #fef3c7;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  font-size: 22px;
}

.mobile-panel {
  display: none;
  padding: 14px 20px 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(244, 114, 182, 0.3);
}

.mobile-panel.open {
  display: block;
}

.mobile-link {
  display: block;
  padding: 12px 4px;
  color: #374151;
  font-weight: 700;
}

.mobile-search input {
  flex: 1;
  border: 1px solid #fbcfe8;
  padding: 11px 16px;
}

main {
  min-height: 62vh;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  color: #ffffff;
  background: radial-gradient(circle at top left, rgba(253, 186, 116, 0.38), transparent 34%), linear-gradient(135deg, #831843 0%, #be123c 48%, #f97316 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.62), rgba(17, 24, 39, 0.12));
  z-index: 1;
}

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

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.12) brightness(0.74);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 620px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 42px;
  align-items: center;
  padding: 76px 0 58px;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  color: #fde68a;
  font-weight: 800;
}

.hero h1 {
  margin: 24px 0 18px;
  font-size: clamp(40px, 7vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-shadow: 0 22px 42px rgba(0, 0, 0, 0.28);
}

.hero p {
  max-width: 720px;
  color: #fff7ed;
  font-size: 18px;
  line-height: 1.9;
}

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

.primary-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fef3c7;
  color: #9d174d;
  box-shadow: 0 18px 35px rgba(124, 45, 18, 0.25);
}

.ghost-btn {
  display: inline-flex;
  align-items: center;
  padding: 11px 18px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.hero-tags,
.category-strip,
.tag-row,
.footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags a,
.category-strip a,
.tag-row span,
.footer-tags a,
.detail-tags span {
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 800;
}

.hero-tags a {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

.hero-feature {
  border-radius: 30px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(18px);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.hero-feature div {
  padding: 24px;
}

.hero-feature strong {
  display: block;
  font-size: 24px;
  margin-bottom: 10px;
}

.hero-dots {
  display: flex;
  gap: 9px;
  margin-top: 20px;
}

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

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

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

.section {
  padding: 64px 0 0;
}

.page-head {
  padding: 56px 0 24px;
}

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

.section-title h2,
.page-head h1,
.detail-copy h1 {
  margin: 0;
  color: #111827;
  line-height: 1.15;
}

.section-title h2,
.page-head h1 {
  font-size: clamp(28px, 4vw, 44px);
}

.section-title p,
.page-head p {
  color: #6b7280;
  line-height: 1.8;
  max-width: 800px;
}

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

.movie-card {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(157, 23, 77, 0.09);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 42px rgba(157, 23, 77, 0.17);
}

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

.poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #be185d;
  background: #fce7f3;
  font-size: 12px;
  font-weight: 900;
}

.card-body {
  padding: 18px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #9f1239;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 9px;
}

.movie-card h3,
.compact-card strong {
  margin: 0 0 9px;
  color: #1f2937;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card h3 a:hover,
.compact-card a:hover {
  color: #db2777;
}

.movie-card p,
.compact-card p {
  color: #6b7280;
  line-height: 1.7;
  margin: 0 0 12px;
}

.movie-card p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-row span,
.detail-tags span {
  color: #be185d;
  background: #fce7f3;
}

.category-strip {
  margin-top: 26px;
}

.category-strip a {
  color: #be185d;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(236, 72, 153, 0.12);
}

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

.category-tile {
  min-height: 166px;
  padding: 22px;
  border-radius: 24px;
  color: #ffffff;
  background: linear-gradient(135deg, #ec4899, #fb923c);
  box-shadow: 0 18px 34px rgba(190, 24, 93, 0.18);
}

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

.category-tile p {
  margin: 0;
  color: #fff7ed;
  line-height: 1.7;
}

.rank-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.compact-card {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(157, 23, 77, 0.09);
}

.compact-poster {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: #fce7f3;
}

.compact-poster img {
  width: 112px;
  height: 150px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.rank-num {
  position: absolute;
  left: 8px;
  top: 8px;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, #db2777, #f97316);
  font-weight: 900;
}

.compact-card span {
  display: inline-block;
  color: #9f1239;
  font-size: 12px;
  font-weight: 800;
}

.filter-bar {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, minmax(130px, 1fr)) auto;
  gap: 12px;
  padding: 18px;
  margin: 26px 0;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(157, 23, 77, 0.1);
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #fbcfe8;
}

.detail-hero {
  background: linear-gradient(135deg, #831843, #be123c 48%, #fb923c);
  color: #ffffff;
  padding: 54px 0;
}

.detail-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 38px;
  align-items: end;
}

.detail-cover {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.32);
}

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

.breadcrumb {
  margin-bottom: 16px;
  color: #ffe4e6;
  font-weight: 800;
}

.detail-copy h1 {
  color: #ffffff;
  font-size: clamp(34px, 5vw, 60px);
}

.detail-copy p {
  color: #fff7ed;
  font-size: 17px;
  line-height: 1.9;
}

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

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.16);
  font-weight: 800;
}

.detail-section {
  padding: 56px 0 0;
}

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

.player-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111827;
}

.play-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.62));
  border: 0;
  cursor: pointer;
}

.play-layer.is-hidden {
  display: none;
}

.play-layer span {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #be185d;
  background: #fef3c7;
  font-size: 38px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
}

.content-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 30px;
  margin-top: 32px;
}

.article-box {
  padding: 28px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(157, 23, 77, 0.1);
}

.article-box h2 {
  margin: 0 0 16px;
  color: #111827;
  font-size: 28px;
}

.article-box p {
  color: #4b5563;
  line-height: 1.95;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.empty-state {
  padding: 26px;
  border-radius: 22px;
  background: #ffffff;
  color: #6b7280;
  box-shadow: 0 14px 32px rgba(157, 23, 77, 0.1);
}

.site-footer {
  margin-top: 72px;
  background: linear-gradient(90deg, #1f2937, #111827, #000000);
  color: #ffffff;
}

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

.footer-grid h2 {
  font-size: 18px;
  margin: 0 0 16px;
}

.footer-grid p,
.footer-grid a {
  display: block;
  color: #d1d5db;
  line-height: 1.8;
  margin: 0 0 8px;
}

.footer-grid a:hover {
  color: #f9a8d4;
}

.footer-brand {
  margin-bottom: 14px;
  font-size: 20px;
}

.copyright {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0;
  color: #9ca3af;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

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

  .menu-toggle {
    display: block;
  }

  .hero-content,
  .detail-wrap,
  .content-panel {
    grid-template-columns: 1fr;
  }

  .hero-feature {
    max-width: 480px;
  }

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

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

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

  .filter-bar {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .top-nav,
  .section,
  .page-head,
  .detail-section,
  .detail-wrap,
  .hero-content,
  .footer-grid,
  .copyright {
    width: min(100% - 24px, 1180px);
  }

  .brand {
    font-size: 18px;
  }

  .hero,
  .hero-content {
    min-height: 560px;
  }

  .hero-content {
    padding-top: 48px;
  }

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

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

  .detail-cover {
    max-width: 300px;
  }

  .compact-card {
    grid-template-columns: 90px 1fr;
  }

  .compact-poster img {
    width: 90px;
    height: 122px;
  }
}
