* {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  --rose: #f43f5e;
  --rose-dark: #be123c;
  --pink: #ec4899;
  --amber: #f59e0b;
  --ink: #111827;
  --muted: #6b7280;
  --line: #f3d4dc;
  --soft: #fff1f2;
  --card: rgba(255, 255, 255, 0.88);
  --shadow: 0 24px 60px rgba(190, 18, 60, 0.16);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(251, 113, 133, 0.26), transparent 34rem),
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.18), transparent 30rem),
    linear-gradient(180deg, #fff1f2 0%, #fff7ed 36%, #ffffff 100%);
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
  padding: 0 5vw;
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid rgba(244, 63, 94, 0.12);
  backdrop-filter: blur(18px);
}

.brand,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: #ffffff;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--rose), var(--pink), var(--amber));
  box-shadow: 0 12px 30px rgba(244, 63, 94, 0.28);
}

.brand-text {
  font-size: 1.25rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.site-nav a,
.section-link,
.filter-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.55rem 1rem;
  color: #374151;
  border-radius: 999px;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.site-nav a:hover,
.section-link:hover,
.filter-pill:hover,
.filter-pill.is-active {
  color: var(--rose-dark);
  background: #ffe4e6;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 14px;
  background: #fff1f2;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--rose-dark);
  border-radius: 999px;
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  overflow: hidden;
}

.hero-orb {
  position: absolute;
  width: 24rem;
  height: 24rem;
  border-radius: 999px;
  filter: blur(42px);
  mix-blend-mode: multiply;
  opacity: 0.45;
  animation: blob 8s infinite;
}

.hero-orb.one {
  top: 8%;
  left: 7%;
  background: #fda4af;
}

.hero-orb.two {
  top: 18%;
  right: 8%;
  background: #f9a8d4;
  animation-delay: 2s;
}

.hero-orb.three {
  bottom: 8%;
  left: 32%;
  background: #fcd34d;
  animation-delay: 4s;
}

@keyframes blob {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(24px, -36px) scale(1.06);
  }
  66% {
    transform: translate(-20px, 18px) scale(0.94);
  }
}

.hero-slider {
  position: relative;
  z-index: 2;
  min-height: calc(100vh - 72px);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 6rem 5vw 5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

.hero-slide.is-active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.14;
  transform: scale(1.04);
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 241, 242, 0.96), rgba(255, 247, 237, 0.72), rgba(255, 255, 255, 0.92));
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.55fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  width: min(1180px, 100%);
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 1rem;
  padding: 0.42rem 0.82rem;
  color: var(--rose-dark);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  border: 1px solid rgba(244, 63, 94, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.hero h1 {
  max-width: 820px;
  margin: 0 0 1.25rem;
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: 0.96;
  letter-spacing: -0.08em;
  background: linear-gradient(90deg, var(--rose-dark), var(--pink), var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  max-width: 720px;
  margin: 0;
  color: #4b5563;
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  line-height: 1.9;
}

.hero-tags,
.tag-row,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-tags {
  margin-top: 1.4rem;
}

.hero-tags span,
.tag-row span,
.detail-tags span,
.meta-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.25rem 0.7rem;
  color: #9f1239;
  font-size: 0.82rem;
  border-radius: 999px;
  background: #ffe4e6;
}

.hero-actions,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.primary-btn,
.ghost-btn,
.play-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-btn,
.play-btn {
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  box-shadow: 0 18px 40px rgba(244, 63, 94, 0.28);
}

.ghost-btn {
  color: var(--rose-dark);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(244, 63, 94, 0.18);
}

.primary-btn:hover,
.ghost-btn:hover,
.play-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 50px rgba(244, 63, 94, 0.24);
}

.hero-poster {
  position: relative;
  isolation: isolate;
  display: block;
  border-radius: 2.2rem;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
  transform: rotate(2deg);
  transition: transform 0.35s ease;
}

.hero-poster:hover {
  transform: rotate(0deg) translateY(-6px);
}

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

.hero-poster span {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: 0.55rem 0.85rem;
  color: #ffffff;
  font-weight: 800;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.74);
  backdrop-filter: blur(10px);
}

.hero-dots {
  position: absolute;
  left: 5vw;
  bottom: 2.2rem;
  z-index: 6;
  display: flex;
  gap: 0.55rem;
}

.hero-dot {
  width: 2.2rem;
  height: 0.5rem;
  border: 0;
  border-radius: 999px;
  background: rgba(190, 18, 60, 0.22);
  cursor: pointer;
}

.hero-dot.is-active {
  background: linear-gradient(90deg, var(--rose), var(--amber));
}

.main-wrap {
  width: min(1180px, 90vw);
  margin: 0 auto;
}

.content-section {
  padding: 4.5rem 0;
}

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

.section-head h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

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

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.35rem;
}

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(244, 63, 94, 0.12);
  border-radius: 1.5rem;
  background: var(--card);
  box-shadow: 0 10px 30px rgba(190, 18, 60, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow);
}

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

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

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

.play-chip,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
}

.play-chip {
  right: 0.85rem;
  bottom: 0.85rem;
  min-height: 34px;
  padding: 0 0.85rem;
  color: #ffffff;
  background: rgba(244, 63, 94, 0.9);
  backdrop-filter: blur(8px);
}

.rank-badge {
  left: 0.85rem;
  top: 0.85rem;
  width: 40px;
  height: 40px;
  color: #9f1239;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.movie-card-body {
  padding: 1rem;
}

.movie-card h3 {
  margin: 0.35rem 0 0.55rem;
  font-size: 1.06rem;
  line-height: 1.35;
}

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

.movie-card p {
  display: -webkit-box;
  min-height: 3.2rem;
  margin: 0 0 0.9rem;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  color: #9f1239;
  font-size: 0.78rem;
  font-weight: 700;
}

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

.category-tile {
  position: relative;
  min-height: 154px;
  padding: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(244, 63, 94, 0.12);
  border-radius: 1.5rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 228, 230, 0.72));
  box-shadow: 0 14px 34px rgba(190, 18, 60, 0.08);
}

.category-tile::after {
  content: "";
  position: absolute;
  right: -2rem;
  bottom: -2rem;
  width: 7rem;
  height: 7rem;
  border-radius: 999px;
  background: rgba(244, 63, 94, 0.12);
}

.category-tile h3 {
  position: relative;
  margin: 0 0 0.7rem;
  font-size: 1.2rem;
}

.category-tile p {
  position: relative;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px 150px;
  gap: 0.8rem;
  margin: 1.5rem 0 2rem;
  padding: 1rem;
  border: 1px solid rgba(244, 63, 94, 0.14);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 30px rgba(190, 18, 60, 0.08);
}

.search-panel input,
.search-panel select {
  width: 100%;
  min-height: 48px;
  padding: 0 1rem;
  color: #374151;
  border: 1px solid rgba(244, 63, 94, 0.16);
  border-radius: 999px;
  outline: none;
  background: #ffffff;
}

.search-panel input:focus,
.search-panel select:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.12);
}

.rank-list {
  display: grid;
  gap: 0.9rem;
}

.rank-row {
  display: grid;
  grid-template-columns: 58px 86px minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem;
  border: 1px solid rgba(244, 63, 94, 0.12);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 25px rgba(190, 18, 60, 0.07);
}

.rank-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  color: #ffffff;
  font-weight: 900;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--rose), var(--amber));
}

.rank-row img {
  width: 76px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 0.9rem;
}

.rank-row h3 {
  margin: 0 0 0.35rem;
}

.rank-row p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.page-hero {
  padding: 5rem 0 2rem;
}

.page-hero h1 {
  max-width: 880px;
  margin: 0;
  font-size: clamp(2.7rem, 7vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.08em;
  background: linear-gradient(90deg, var(--rose-dark), var(--pink), var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-hero p {
  max-width: 760px;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.9;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
  color: #9f1239;
  font-size: 0.92rem;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 2rem;
  padding: 2rem 0 4rem;
}

.player-card,
.detail-card,
.side-card {
  border: 1px solid rgba(244, 63, 94, 0.12);
  border-radius: 1.7rem;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow);
}

.player-card {
  overflow: hidden;
}

.player {
  position: relative;
  background: #111827;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 2rem;
  cursor: pointer;
  background-size: cover;
  background-position: center;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.player-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.82), rgba(159, 18, 57, 0.58));
}

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

.play-btn {
  position: relative;
  z-index: 2;
  min-width: 156px;
  min-height: 56px;
  font-size: 1.05rem;
}

.player-info,
.detail-card,
.side-card {
  padding: 1.35rem;
}

.player-info h1 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.detail-card {
  margin-top: 1.2rem;
}

.detail-card h2,
.side-card h2 {
  margin: 0 0 0.9rem;
  font-size: 1.35rem;
}

.detail-card p,
.side-card p,
.player-info p {
  margin: 0 0 1rem;
  color: #4b5563;
  line-height: 1.9;
}

.side-card {
  position: sticky;
  top: 92px;
}

.side-cover {
  overflow: hidden;
  margin-bottom: 1rem;
  border-radius: 1.25rem;
}

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

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.site-footer {
  margin-top: 4rem;
  padding: 3rem 5vw;
  color: #4b5563;
  background: rgba(255, 255, 255, 0.7);
  border-top: 1px solid rgba(244, 63, 94, 0.12);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.footer-inner p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

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

[data-card].is-hidden {
  display: none;
}

.empty-state {
  display: none;
  padding: 2rem;
  color: var(--muted);
  text-align: center;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.78);
}

.empty-state.is-visible {
  display: block;
}

@media (max-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

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

  .side-card {
    position: static;
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 64px;
  }

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

  .site-nav {
    position: absolute;
    top: 64px;
    left: 5vw;
    right: 5vw;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.8rem;
    border: 1px solid rgba(244, 63, 94, 0.12);
    border-radius: 1.2rem;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    justify-content: flex-start;
  }

  .hero-slide {
    padding: 4rem 5vw 5rem;
  }

  .hero-content {
    gap: 2rem;
  }

  .hero-actions,
  .cta-row,
  .section-head,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-dots {
    bottom: 1.4rem;
  }

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

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

  .rank-row {
    grid-template-columns: 44px 64px minmax(0, 1fr);
  }

  .rank-row .primary-btn {
    grid-column: 1 / -1;
    width: 100%;
  }
}

@media (max-width: 520px) {
  .card-grid,
  .category-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .brand-text {
    font-size: 1.05rem;
  }

  .main-wrap {
    width: min(92vw, 1180px);
  }
}
