:root {
  --rose: #f43f5e;
  --pink: #ec4899;
  --orange: #f97316;
  --dark-rose: #881337;
  --ink: #111827;
  --muted: #6b7280;
  --soft: #fff1f2;
  --line: #ffe4e6;
  --paper: #ffffff;
  --shadow: 0 18px 40px rgba(136, 19, 55, 0.14);
}

* {
  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;
  color: var(--ink);
  background: linear-gradient(180deg, #fff7f8 0%, #ffffff 420px, #fff 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);
  box-shadow: 0 8px 25px rgba(136, 19, 55, 0.08);
  backdrop-filter: blur(14px);
}

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

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

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--pink), var(--orange));
  box-shadow: 0 12px 24px rgba(244, 63, 94, 0.35);
  font-size: 15px;
}

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

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

.brand-text small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
  font-weight: 600;
  color: #374151;
}

.desktop-nav > a,
.nav-dropdown > a {
  padding: 10px 0;
  transition: color 0.2s ease;
}

.desktop-nav > a:hover,
.nav-dropdown > a:hover {
  color: var(--rose);
}

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  top: 100%;
  left: -18px;
  width: 190px;
  padding: 10px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.dropdown-panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: #4b5563;
}

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

.nav-search {
  display: flex;
  align-items: center;
  border: 1px solid #fecdd3;
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}

.nav-search input,
.mobile-search input,
.search-large input {
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
}

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

.nav-search button,
.mobile-search button,
.search-large button {
  border: 0;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(90deg, var(--rose), var(--pink));
  font-weight: 700;
}

.nav-search button {
  padding: 11px 18px;
}

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

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

.mobile-search {
  display: flex;
  border: 1px solid #fecdd3;
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}

.mobile-search input {
  flex: 1;
  padding: 12px 16px;
}

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

.mobile-panel nav {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mobile-panel nav a {
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff1f2;
  color: #7f1d1d;
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(110deg, #e11d48, #db2777, #f97316);
}

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

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

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

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

.hero-shade {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 72% 35%, rgba(255, 255, 255, 0.18), transparent 34%), linear-gradient(90deg, rgba(136, 19, 55, 0.92), rgba(219, 39, 119, 0.72), rgba(249, 115, 22, 0.68));
}

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

.hero-copy h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

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

.hero-copy p {
  width: min(660px, 100%);
  margin: 26px 0 0;
  color: #fff1f2;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.75;
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags {
  margin-top: 20px;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.hero-tags span {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.32);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
}

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

.btn-primary {
  color: var(--rose);
  background: #fff;
  box-shadow: 0 18px 35px rgba(76, 5, 25, 0.22);
}

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

.btn-soft {
  color: #9f1239;
  background: #fff1f2;
}

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

.hero-poster {
  position: relative;
  justify-self: end;
  width: min(390px, 100%);
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(76, 5, 25, 0.36);
  transform: rotate(2deg);
}

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

.hero-poster-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(12px);
}

.hero-poster-caption strong {
  display: block;
  font-size: 24px;
  line-height: 1.2;
}

.hero-poster-caption small {
  display: block;
  margin-top: 8px;
  color: #ffe4e6;
}

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

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

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

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

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

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

.section-head p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

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

.category-card {
  min-height: 190px;
  padding: 24px;
  border-radius: 28px;
  color: #fff;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:before {
  content: "";
  position: absolute;
  inset: -30% -20% auto auto;
  width: 150px;
  height: 150px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.category-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 26px 55px rgba(136, 19, 55, 0.22);
}

.category-card span {
  font-size: 40px;
  position: relative;
}

.category-card strong {
  position: relative;
  margin-top: 18px;
  font-size: 23px;
}

.category-card small {
  position: relative;
  margin-top: 8px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.86);
}

.gradient-1 { background: linear-gradient(135deg, #fb7185, #db2777); }
.gradient-2 { background: linear-gradient(135deg, #a855f7, #6366f1); }
.gradient-3 { background: linear-gradient(135deg, #f59e0b, #f97316); }
.gradient-4 { background: linear-gradient(135deg, #38bdf8, #2563eb); }
.gradient-5 { background: linear-gradient(135deg, #14b8a6, #22c55e); }
.gradient-6 { background: linear-gradient(135deg, #64748b, #0f172a); }

.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 {
  min-width: 0;
  background: linear-gradient(180deg, #ffffff, #fff7f8);
  border: 1px solid var(--line);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(136, 19, 55, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(136, 19, 55, 0.18);
}

.poster-link {
  display: block;
  position: relative;
  height: 260px;
  overflow: hidden;
  background: linear-gradient(135deg, #fecdd3, #fbcfe8);
}

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

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

.poster-badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(244, 63, 94, 0.92);
  font-size: 13px;
  font-weight: 800;
}

.movie-card-body {
  padding: 20px;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.movie-meta span:not(:last-child):after {
  content: "·";
  margin-left: 8px;
  color: #fda4af;
}

.movie-card h2,
.movie-card h3 {
  margin: 10px 0 8px;
  font-size: 20px;
  line-height: 1.35;
}

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

.movie-card p {
  margin: 0;
  min-height: 58px;
  color: #4b5563;
  line-height: 1.75;
  font-size: 14px;
}

.tag-row {
  margin-top: 16px;
}

.tag-row span {
  color: #9f1239;
  background: #ffe4e6;
}

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

.rank-panel {
  padding: 22px;
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.rank-panel h2 {
  margin: 0 0 18px;
  font-size: 24px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: auto 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 18px;
  background: #fff7f8;
  transition: transform 0.2s ease, background 0.2s ease;
}

.rank-item:hover {
  transform: translateX(4px);
  background: #ffe4e6;
}

.rank-num {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 13px;
}

.rank-item img {
  width: 64px;
  height: 84px;
  object-fit: cover;
  border-radius: 12px;
  background: #fecdd3;
}

.rank-copy {
  min-width: 0;
}

.rank-copy strong {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-copy small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-item em {
  color: var(--rose);
  font-style: normal;
  font-weight: 900;
}

.page-hero {
  padding: 66px 0;
  background: linear-gradient(110deg, #fff1f2, #fff7ed);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #9f1239;
  font-size: 14px;
  font-weight: 700;
}

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

.page-hero h1 {
  margin: 0;
  max-width: 900px;
  font-size: clamp(36px, 6vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 820px;
  margin: 20px 0 0;
  color: #4b5563;
  font-size: 18px;
  line-height: 1.9;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) 340px;
  gap: 30px;
  align-items: start;
}

.player-card,
.detail-card,
.side-card {
  border-radius: 30px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}

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

.video-frame video {
  width: 100%;
  height: 100%;
  display: block;
  background: #070712;
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(180deg, rgba(8, 8, 16, 0.18), rgba(8, 8, 16, 0.78));
}

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

.play-icon {
  width: 82px;
  height: 82px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 5px;
  color: var(--rose);
  background: #fff;
  font-size: 38px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.28);
}

.video-overlay span:last-child {
  font-size: 20px;
  font-weight: 900;
}

.detail-card {
  margin-top: 24px;
  padding: 30px;
}

.detail-card h2,
.side-card h2 {
  margin: 0 0 18px;
  font-size: 26px;
}

.detail-card p {
  color: #374151;
  line-height: 2;
  font-size: 16px;
}

.info-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.info-strip span {
  padding: 8px 13px;
  border-radius: 999px;
  color: #9f1239;
  background: #fff1f2;
  font-weight: 800;
  font-size: 14px;
}

.side-card {
  padding: 22px;
}

.side-card .rank-list {
  gap: 10px;
}

.search-large {
  display: flex;
  max-width: 760px;
  margin-top: 28px;
  border: 1px solid #fecdd3;
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}

.search-large input {
  flex: 1;
  padding: 17px 22px;
  font-size: 17px;
}

.search-large button {
  padding: 17px 28px;
  font-size: 16px;
}

.search-status {
  margin-bottom: 24px;
  color: var(--muted);
  font-weight: 700;
}

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

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

.footer-logo .brand-text strong {
  color: #fff;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
}

.footer-logo .brand-text small,
.footer-brand p {
  color: #ffe4e6;
}

.footer-brand p {
  max-width: 420px;
  line-height: 1.8;
}

.footer-links h2 {
  margin: 0 0 16px;
  font-size: 19px;
}

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

.footer-links a {
  color: #ffe4e6;
}

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

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding: 18px;
  text-align: center;
  color: #fecdd3;
}

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

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

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

  .hero-poster {
    justify-self: start;
    width: 330px;
  }

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

@media (max-width: 720px) {
  .nav-wrap {
    height: 64px;
  }

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

  .brand-text small {
    display: none;
  }

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

  .hero-content {
    padding: 42px 0 82px;
    align-items: start;
  }

  .hero-poster {
    width: 250px;
  }

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

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

  .poster-link {
    height: 300px;
  }

  .rank-item {
    grid-template-columns: auto 58px minmax(0, 1fr) auto;
  }

  .rank-item img {
    width: 58px;
    height: 76px;
  }

  .search-large {
    border-radius: 24px;
    flex-direction: column;
  }

  .search-large button {
    border-radius: 0;
  }
}
