:root {
  --sakura-50: #fef6f9;
  --sakura-100: #fdedf3;
  --sakura-200: #fcd9e7;
  --sakura-300: #f9b8d0;
  --sakura-400: #f78bb8;
  --sakura-500: #ec4899;
  --sakura-600: #e91e63;
  --sakura-700: #c2185b;
  --cream-50: #fffcf5;
  --cream-200: #fff0cf;
  --cream-600: #f5b942;
  --mint-50: #f0fdf4;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: rgba(233, 30, 99, 0.14);
  --shadow: 0 20px 45px rgba(194, 24, 91, 0.14);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: linear-gradient(135deg, var(--sakura-50), var(--cream-50) 50%, var(--mint-50));
}

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

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

button,
input {
  font: inherit;
}

.glass-effect {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 10px 24px rgba(194, 24, 91, 0.08);
}

.header-inner {
  max-width: 1280px;
  height: 68px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  font-size: 21px;
  background: linear-gradient(135deg, var(--sakura-400), var(--sakura-600));
  box-shadow: 0 12px 28px rgba(233, 30, 99, 0.28);
  transition: transform 0.3s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.08) rotate(-4deg);
}

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

.brand-text strong {
  font-size: 20px;
  background: linear-gradient(90deg, var(--sakura-700), var(--sakura-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.header-search {
  flex: 1;
  max-width: 420px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(247, 139, 184, 0.28);
}

.header-search input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 12px 16px;
  color: var(--ink);
  background: transparent;
}

.header-search button {
  border: 0;
  padding: 12px 18px;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, var(--sakura-500), var(--sakura-700));
}

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

.nav-link,
.mobile-nav-link {
  color: #4b5563;
  border-radius: 999px;
  font-weight: 700;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.nav-link {
  padding: 10px 14px;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  color: var(--sakura-700);
  background: var(--sakura-100);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: var(--sakura-100);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-button span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--sakura-700);
}

.mobile-nav {
  display: none;
  padding: 8px 24px 18px;
  border-top: 1px solid var(--line);
}

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

.mobile-nav-link {
  padding: 12px 14px;
}

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

.section.tight {
  padding-top: 28px;
}

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

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

.section-heading p,
.page-title p {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 720px;
}

.more-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--sakura-700);
  font-weight: 800;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 650px;
  border-radius: 0 0 42px 42px;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 15%, rgba(252, 217, 231, 0.72), transparent 28%), radial-gradient(circle at 84% 24%, rgba(255, 240, 207, 0.74), transparent 30%);
  z-index: -2;
}

.hero-track {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 46px 24px 80px;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.95fr);
  gap: 34px;
  align-items: center;
  min-height: 540px;
  animation: fadeIn 0.6s ease both;
}

.hero-slide.is-active {
  display: grid;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--sakura-700);
  font-weight: 900;
  background: rgba(253, 237, 243, 0.86);
  border: 1px solid rgba(247, 139, 184, 0.28);
}

.hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.075em;
}

.hero h1 span {
  color: var(--sakura-700);
}

.hero-summary {
  max-width: 650px;
  margin: 22px 0 0;
  color: #4b5563;
  font-size: 18px;
  line-height: 1.8;
}

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

.primary-button,
.secondary-button,
.chip-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-button {
  padding: 14px 24px;
  color: #fff;
  background: linear-gradient(135deg, var(--sakura-500), var(--sakura-700));
  box-shadow: 0 18px 32px rgba(233, 30, 99, 0.26);
}

.secondary-button,
.chip-button {
  padding: 13px 22px;
  color: var(--sakura-700);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(247, 139, 184, 0.28);
}

.primary-button:hover,
.secondary-button:hover,
.chip-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(194, 24, 91, 0.18);
}

.hero-panel {
  position: relative;
  min-height: 500px;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #111827;
}

.hero-panel img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hero-panel:hover img {
  transform: scale(1.05);
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 22%, rgba(17, 24, 39, 0.34) 55%, rgba(17, 24, 39, 0.88));
}

.hero-card-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  color: #fff;
  padding: 28px;
}

.hero-card-copy h2 {
  margin: 10px 0 8px;
  font-size: 28px;
}

.hero-card-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.7;
}

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

.hero-tags span,
.tag-list span,
.meta-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-weight: 800;
}

.hero-tags span {
  padding: 6px 10px;
  color: #fff;
  background: rgba(236, 72, 153, 0.8);
}

.hero-dots {
  position: absolute;
  left: 24px;
  bottom: 34px;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(194, 24, 91, 0.28);
}

.hero-dot.is-active {
  width: 32px;
  background: var(--sakura-700);
}

.category-strip {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.grid {
  display: grid;
  gap: 22px;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 28px rgba(194, 24, 91, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.62);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 48px rgba(194, 24, 91, 0.16);
}

.movie-cover {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, var(--sakura-200), var(--cream-200));
}

.featured-card .movie-cover {
  aspect-ratio: 16 / 9;
}

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

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

.cover-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(17, 24, 39, 0.55));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .cover-gradient {
  opacity: 1;
}

.play-badge,
.score-badge {
  position: absolute;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.play-badge {
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  background: rgba(236, 72, 153, 0.88);
  transition: transform 0.25s ease;
}

.movie-card:hover .play-badge {
  transform: translate(-50%, -50%) scale(1);
}

.score-badge {
  top: 12px;
  right: 12px;
  min-width: 44px;
  height: 30px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.72);
}

.movie-info {
  padding: 18px;
}

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

.movie-info h3 {
  margin: 9px 0 8px;
  font-size: 19px;
  line-height: 1.35;
}

.movie-info h3 a:hover {
  color: var(--sakura-700);
}

.movie-info p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.tag-list span,
.meta-pill {
  padding: 6px 9px;
  color: var(--sakura-700);
  background: var(--sakura-100);
  font-size: 12px;
}

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 168px;
  padding: 24px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(252, 217, 231, 0.82), rgba(255, 240, 207, 0.86));
  border: 1px solid rgba(255, 255, 255, 0.68);
  box-shadow: 0 14px 30px rgba(194, 24, 91, 0.1);
}

.category-card::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  right: -44px;
  bottom: -52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.44);
}

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

.category-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #6b4b5a;
  line-height: 1.7;
}

.rank-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rank-item a {
  display: grid;
  grid-template-columns: 48px 70px minmax(0, 1fr) 54px;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(247, 139, 184, 0.14);
  box-shadow: 0 8px 20px rgba(194, 24, 91, 0.07);
}

.rank-number {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--sakura-400), var(--sakura-700));
}

.rank-item img {
  width: 70px;
  height: 92px;
  object-fit: cover;
  border-radius: 14px;
}

.rank-body {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.rank-body strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-body em,
.rank-body small {
  color: var(--muted);
  font-style: normal;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-score {
  color: var(--sakura-700);
  font-weight: 900;
}

.page-hero {
  position: relative;
  overflow: hidden;
  border-radius: 0 0 40px 40px;
  background: linear-gradient(135deg, rgba(252, 217, 231, 0.86), rgba(255, 240, 207, 0.8));
}

.page-title {
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 24px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-weight: 700;
}

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

.filter-panel {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 24px;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(247, 139, 184, 0.18);
}

.filter-panel input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 14px 16px;
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.65fr);
  gap: 28px;
  align-items: start;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #111827;
  box-shadow: var(--shadow);
}

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

.player-mask {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  color: #fff;
  background: rgba(17, 24, 39, 0.26);
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-mask span {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sakura-500), var(--sakura-700));
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.28);
  font-size: 30px;
}

.detail-card,
.side-card {
  border-radius: 28px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.68);
  box-shadow: 0 14px 34px rgba(194, 24, 91, 0.08);
}

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

.detail-card p {
  margin: 0 0 16px;
  color: #4b5563;
  line-height: 1.88;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 22px;
}

.poster-card img {
  width: 100%;
  border-radius: 24px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  box-shadow: var(--shadow);
}

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

.search-results {
  display: grid;
  gap: 18px;
}

.search-result-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(247, 139, 184, 0.14);
}

.search-result-item img {
  width: 96px;
  height: 128px;
  border-radius: 16px;
  object-fit: cover;
}

.search-result-item h2 {
  margin: 0 0 8px;
}

.search-result-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.site-footer {
  margin-top: 42px;
  padding: 38px 24px;
  color: #6b5560;
  background: rgba(255, 255, 255, 0.58);
  border-top: 1px solid rgba(247, 139, 184, 0.18);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

.footer-inner p {
  margin: 8px 0 0;
  max-width: 640px;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.footer-links a {
  color: var(--sakura-700);
  font-weight: 800;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

  .hero-panel {
    min-height: 430px;
  }

  .hero-panel img {
    height: 430px;
  }
}

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

  .menu-button {
    display: flex;
    margin-left: auto;
  }

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

  .section,
  .page-title {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-track {
    padding-left: 18px;
    padding-right: 18px;
  }

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

  .footer-inner {
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .header-inner {
    height: 62px;
    padding: 0 16px;
  }

  .brand-text small {
    display: none;
  }

  .hero {
    min-height: auto;
  }

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

  .hero-panel,
  .hero-panel img {
    min-height: 330px;
    height: 330px;
  }

  .hero-dots {
    position: relative;
    left: auto;
    bottom: auto;
    margin-top: -42px;
    padding-left: 18px;
  }

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

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

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

  .rank-score {
    display: none;
  }

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

  .search-result-item {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .search-result-item img {
    width: 76px;
    height: 102px;
  }
}
