* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: #1f2937;
  background: linear-gradient(135deg, #fff4e6 0%, #ffe8e0 38%, #f8e8ee 100%);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
}

a:hover {
  color: #ec4899;
}

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(244, 114, 182, 0.14);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(12px);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: #fff;
  border-radius: 14px;
  background: linear-gradient(135deg, #fb7185, #a855f7);
  box-shadow: 0 10px 25px rgba(236, 72, 153, 0.28);
}

.brand-name,
.footer-brand {
  font-size: 24px;
  line-height: 1;
  color: transparent;
  background: linear-gradient(135deg, #fb7185, #a855f7);
  -webkit-background-clip: text;
  background-clip: text;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
  font-weight: 650;
  color: #4b5563;
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  border: 2px solid #fbcfe8;
  border-radius: 999px;
  background: #fff;
}

.nav-search input,
.mobile-search input,
.search-panel input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 0;
  outline: 0;
  color: #374151;
  background: transparent;
}

.nav-search input {
  width: 230px;
  padding: 7px 8px 7px 14px;
}

.nav-search button,
.mobile-search button,
.hero-actions a,
.hero-search button,
.section-more,
.primary-btn,
.play-button,
.pager a,
.pager span,
.category-link,
.reset-link {
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #fb7185, #a855f7);
  box-shadow: 0 10px 22px rgba(236, 72, 153, 0.24);
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.nav-search button {
  padding: 8px 14px;
}

.nav-search button:hover,
.mobile-search button:hover,
.hero-actions a:hover,
.hero-search button:hover,
.section-more:hover,
.primary-btn:hover,
.play-button:hover,
.pager a:hover,
.category-link:hover,
.reset-link:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(236, 72, 153, 0.32);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  padding: 8px 10px;
  border: 0;
  border-radius: 12px;
  color: #374151;
  background: #fdf2f8;
}

.mobile-panel {
  display: none;
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

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

.mobile-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin: 10px 0 14px;
}

.mobile-search input {
  padding: 12px 16px;
  border: 2px solid #fbcfe8;
  border-radius: 999px;
  background: #fff;
}

.mobile-search button {
  padding: 12px 18px;
}

.mobile-panel nav {
  display: grid;
  gap: 8px;
}

.mobile-panel nav a {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(253, 242, 248, 0.78);
  font-weight: 700;
}

main {
  overflow: hidden;
}

.hero {
  position: relative;
  min-height: 650px;
  padding: 84px 0 56px;
}

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

.hero::before {
  top: 92px;
  left: max(20px, calc((100vw - 1220px) / 2));
  width: 220px;
  height: 220px;
  background: rgba(251, 113, 133, 0.18);
}

.hero::after {
  right: max(20px, calc((100vw - 1220px) / 2));
  bottom: 42px;
  width: 300px;
  height: 300px;
  background: rgba(168, 85, 247, 0.16);
}

.hero-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: 36px;
  align-items: center;
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-copy {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: 0 25px 70px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(18px);
}

.eyebrow,
.section-kicker,
.detail-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-bottom: 14px;
  padding: 7px 13px;
  color: #be185d;
  border-radius: 999px;
  background: rgba(253, 242, 248, 0.95);
  font-size: 13px;
  font-weight: 800;
}

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

.gradient-text {
  color: transparent;
  background: linear-gradient(135deg, #fb7185, #a855f7 55%, #38bdf8);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-lead {
  max-width: 720px;
  margin: 22px 0 0;
  color: #4b5563;
  font-size: 18px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.hero-meta span,
.stats-card span,
.movie-pill,
.tag-row span,
.rank-meta span,
.rank-meta a,
.breadcrumb a,
.breadcrumb span,
.detail-meta span,
.detail-meta a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  color: #6b21a8;
  background: rgba(250, 245, 255, 0.9);
  font-size: 13px;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0;
}

.hero-actions a,
.primary-btn,
.reset-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  font-weight: 800;
}

.hero-actions a.secondary,
.primary-btn.secondary {
  color: #be185d;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(244, 114, 182, 0.28);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.hero-actions a.secondary:hover,
.primary-btn.secondary:hover {
  color: #be185d;
}

.hero-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  max-width: 640px;
  padding: 8px;
  border: 2px solid rgba(251, 207, 232, 0.94);
  border-radius: 22px;
  background: #fff;
}

.hero-search input {
  min-width: 0;
  padding: 11px 14px;
  border: 0;
  outline: 0;
}

.hero-search button {
  padding: 11px 18px;
  font-weight: 800;
}

.hero-visual {
  position: relative;
}

.hero-slider {
  position: relative;
  min-height: 540px;
  border-radius: 36px;
  overflow: hidden;
  box-shadow: 0 34px 80px rgba(15, 23, 42, 0.22);
  background: linear-gradient(135deg, #fb7185, #a855f7);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: end;
  padding: 34px;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.8s ease, transform 1.1s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster-img.is-missing,
.rank-img.is-missing,
.detail-poster img.is-missing,
.hero-slide img.is-missing {
  opacity: 0;
}

.hero-slide::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.12) 0%, rgba(15, 23, 42, 0.2) 35%, rgba(15, 23, 42, 0.82) 100%);
}

.hero-slide-content {
  position: relative;
  z-index: 1;
  color: #fff;
}

.hero-slide-content h2 {
  margin: 10px 0;
  font-size: clamp(26px, 4vw, 44px);
  line-height: 1.12;
}

.hero-slide-content p {
  max-width: 520px;
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.88);
}

.hero-slide-content a {
  display: inline-flex;
  padding: 10px 16px;
  border-radius: 999px;
  color: #be185d;
  background: #fff;
  font-weight: 800;
}

.hero-dots {
  position: absolute;
  left: 34px;
  bottom: 22px;
  z-index: 2;
  display: flex;
  gap: 8px;
}

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

.hero-dot.is-active {
  width: 28px;
  background: #fff;
}

.float-card {
  position: absolute;
  right: -12px;
  bottom: -22px;
  width: min(310px, 70%);
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(14px);
}

.float-card strong {
  display: block;
  margin-bottom: 6px;
  color: #111827;
}

.float-card p {
  margin: 0;
  color: #6b7280;
  font-size: 14px;
}

.content-section,
.page-section {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0;
}

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

.section-head h2,
.page-title h1,
.detail-copy h1 {
  margin: 0;
  color: #111827;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.section-head p,
.page-title p {
  max-width: 740px;
  margin: 10px 0 0;
  color: #6b7280;
}

.section-more {
  flex: 0 0 auto;
  padding: 11px 16px;
  font-weight: 800;
}

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

.movie-card,
.category-card,
.rank-item,
.info-card,
.search-panel,
.filter-panel,
.player-card,
.detail-copy,
.detail-poster,
.related-panel,
.stats-card {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.09);
  backdrop-filter: blur(14px);
}

.movie-card {
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 56px rgba(15, 23, 42, 0.14);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #fce7f3, #ede9fe);
}

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

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

.poster-badge,
.poster-play {
  position: absolute;
  z-index: 2;
}

.poster-badge {
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  color: #fff;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.62);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(6px);
}

.poster-play {
  right: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  border-radius: 999px;
  background: linear-gradient(135deg, #fb7185, #a855f7);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.22);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.movie-card:hover .poster-play {
  opacity: 1;
  transform: translateY(0);
}

.card-body {
  padding: 16px;
}

.card-meta,
.rank-meta,
.detail-meta,
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.card-meta {
  margin-bottom: 8px;
  color: #9d174d;
  font-size: 12px;
  font-weight: 800;
}

.card-meta a,
.card-meta span {
  color: #9d174d;
}

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

.movie-card p {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 12px;
  overflow: hidden;
  color: #6b7280;
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

.tag-row span {
  padding: 5px 9px;
  color: #be185d;
  background: #fdf2f8;
  font-size: 12px;
}

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

.category-card {
  position: relative;
  min-height: 190px;
  padding: 22px;
  overflow: hidden;
}

.category-card::after {
  position: absolute;
  right: -40px;
  bottom: -50px;
  width: 140px;
  height: 140px;
  content: "";
  border-radius: 999px;
  background: rgba(244, 114, 182, 0.16);
}

.category-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 10px;
  font-size: 22px;
}

.category-card p {
  position: relative;
  z-index: 1;
  margin: 0 0 18px;
  color: #6b7280;
  font-size: 14px;
}

.category-card strong {
  color: #be185d;
}

.category-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 800;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 54px 116px 1fr;
  gap: 18px;
  align-items: center;
  padding: 14px;
}

.rank-num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #fff;
  border-radius: 16px;
  background: linear-gradient(135deg, #fb7185, #a855f7);
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(236, 72, 153, 0.24);
}

.rank-cover {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(135deg, #fce7f3, #ede9fe);
}

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

.rank-item h3 {
  margin: 0 0 6px;
  font-size: 20px;
}

.rank-item p {
  margin: 0 0 10px;
  color: #6b7280;
}

.page-hero {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0 18px;
}

.page-title {
  padding: 32px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(16px);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.stats-card {
  padding: 18px;
}

.stats-card strong {
  display: block;
  color: #111827;
  font-size: 26px;
}

.search-panel,
.filter-panel {
  margin-bottom: 24px;
  padding: 18px;
}

.search-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.search-panel input,
.filter-panel input,
.filter-panel select {
  padding: 13px 16px;
  border: 2px solid #fbcfe8;
  border-radius: 18px;
  background: #fff;
}

.search-panel button,
.filter-panel button {
  padding: 12px 18px;
  border: 0;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, #fb7185, #a855f7);
  font-weight: 800;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(160px, 0.5fr) minmax(160px, 0.5fr);
  gap: 12px;
}

.no-results {
  display: none;
  padding: 34px;
  color: #6b7280;
  text-align: center;
}

.no-results.is-visible {
  display: block;
}

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

.pager a,
.pager span {
  display: inline-flex;
  min-width: 42px;
  justify-content: center;
  padding: 10px 14px;
  font-weight: 800;
}

.pager span {
  color: #be185d;
  background: #fff;
  box-shadow: none;
}

.detail-main {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 38px 0 64px;
}

.breadcrumb {
  margin: 18px 0;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(260px, 0.45fr) minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
}

.detail-poster {
  overflow: hidden;
  background: linear-gradient(135deg, #fce7f3, #ede9fe);
}

.detail-poster img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.detail-copy {
  padding: clamp(24px, 5vw, 42px);
}

.detail-copy h1 {
  margin: 8px 0 16px;
}

.detail-copy p {
  color: #4b5563;
  font-size: 17px;
}

.detail-meta {
  margin: 18px 0 20px;
}

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

.player-card {
  margin-top: 28px;
  overflow: hidden;
}

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

.movie-video {
  width: 100%;
  height: 100%;
  background: #111827;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #fff;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.24), rgba(17, 24, 39, 0.82));
  text-align: center;
}

.player-overlay.is-hidden {
  display: none;
}

.play-button {
  display: inline-grid;
  place-items: center;
  width: 84px;
  height: 84px;
  margin: 0 auto 14px;
  border: 0;
  font-size: 32px;
}

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

.player-overlay p,
.player-status {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.player-status {
  min-height: 24px;
  padding: 12px 18px 18px;
  color: #6b7280;
  background: #fff;
}

.detail-text-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 28px;
}

.info-card {
  padding: 26px;
}

.info-card h2,
.related-panel h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.info-card p {
  margin: 0;
  color: #4b5563;
}

.related-panel {
  margin-top: 28px;
  padding: 26px;
}

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

.compact-card .card-body p {
  min-height: 0;
}

.search-results-meta {
  margin: 12px 0 22px;
  color: #6b7280;
}

.site-footer {
  margin-top: 30px;
  background: linear-gradient(135deg, rgba(253, 242, 248, 0.95), rgba(245, 243, 255, 0.95));
  border-top: 1px solid rgba(244, 114, 182, 0.16);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
}

.footer-grid p {
  max-width: 620px;
  color: #6b7280;
}

.footer-grid h2 {
  margin: 0 0 12px;
  color: #111827;
  font-size: 18px;
}

.footer-grid a:not(.footer-brand) {
  display: block;
  margin: 8px 0;
  color: #6b7280;
  font-weight: 650;
}

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

  .menu-toggle {
    display: inline-flex;
  }

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

  .hero-slider {
    min-height: 490px;
  }

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

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

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

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

@media (max-width: 760px) {
  .hero {
    min-height: auto;
    padding-top: 34px;
  }

  .hero-copy,
  .page-title,
  .detail-copy,
  .info-card,
  .related-panel {
    padding: 22px;
    border-radius: 24px;
  }

  .hero-search,
  .search-panel,
  .filter-panel {
    grid-template-columns: 1fr;
  }

  .hero-slider {
    min-height: 420px;
    border-radius: 28px;
  }

  .float-card {
    position: relative;
    right: auto;
    bottom: auto;
    width: auto;
    margin-top: 14px;
  }

  .section-head {
    display: block;
  }

  .section-more {
    margin-top: 14px;
  }

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

  .rank-item {
    grid-template-columns: 42px 82px 1fr;
    gap: 12px;
  }

  .rank-num {
    width: 38px;
    height: 38px;
    border-radius: 14px;
  }

  .rank-item h3 {
    font-size: 17px;
  }

  .rank-item p {
    display: none;
  }

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

@media (max-width: 480px) {
  .nav-wrap,
  .mobile-panel,
  .content-section,
  .page-section,
  .page-hero,
  .detail-main,
  .footer-grid {
    width: min(100% - 22px, 1220px);
  }

  .brand-name {
    font-size: 20px;
  }

  .hero-copy {
    padding: 18px;
  }

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

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

  .hero-slide {
    padding: 24px;
  }

  .movie-grid,
  .category-grid,
  .related-panel .movie-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .detail-poster img {
    min-height: 320px;
  }
}
