:root {
  --rose-50: #fff1f2;
  --rose-100: #ffe4e6;
  --rose-200: #fecdd3;
  --rose-400: #fb7185;
  --rose-500: #f43f5e;
  --pink-400: #f472b6;
  --pink-500: #ec4899;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --shadow-soft: 0 18px 48px rgba(244, 63, 94, 0.16);
  --shadow-card: 0 12px 30px rgba(17, 24, 39, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--gray-800);
  background: linear-gradient(180deg, rgba(255, 241, 242, 0.45), #ffffff 32%, rgba(255, 241, 242, 0.28));
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(254, 205, 211, 0.8);
  box-shadow: 0 10px 28px rgba(244, 63, 94, 0.08);
  backdrop-filter: blur(14px);
}

.nav-shell {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

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

.brand-copy {
  display: grid;
  line-height: 1.15;
}

.brand-copy strong {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, var(--rose-500), var(--pink-500), var(--rose-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-copy small {
  margin-top: 4px;
  color: var(--gray-500);
  font-size: 12px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--gray-600);
  font-size: 15px;
  font-weight: 650;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--rose-500);
  background: var(--rose-50);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--rose-500);
  background: var(--rose-50);
  cursor: pointer;
}

.hero-section {
  position: relative;
  overflow: hidden;
  padding: 54px 0 70px;
  background: linear-gradient(135deg, var(--rose-100), #fff7f8 46%, #fff);
}

.hero-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(40px);
  opacity: 0.45;
  pointer-events: none;
}

.hero-glow-one {
  width: 300px;
  height: 300px;
  left: 5%;
  top: 8%;
  background: var(--rose-300, #fda4af);
}

.hero-glow-two {
  width: 380px;
  height: 380px;
  right: 4%;
  bottom: 5%;
  background: #f9a8d4;
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: stretch;
}

.hero-stage {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: 32px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 46% 54%;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.985);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-image {
  position: relative;
  overflow: hidden;
  min-height: 520px;
}

.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.72), rgba(17, 24, 39, 0.05));
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.hero-slide.is-active .hero-image img {
  transform: scale(1.045);
}

.hero-content {
  padding: 56px 58px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(135deg, #fff, var(--rose-50));
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: max-content;
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--rose-600, #e11d48);
  background: rgba(255, 228, 230, 0.8);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero-content h1,
.hero-content h2 {
  margin: 18px 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.06em;
  color: var(--gray-900);
}

.hero-content h2 + p,
.hero-content h1 + h2 + p {
  margin-top: 8px;
}

.hero-content p {
  color: var(--gray-600);
  font-size: 17px;
  line-height: 1.85;
}

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

.hero-tags span,
.movie-badges span,
.tag-row span,
.genre-row span {
  border-radius: 999px;
  padding: 6px 11px;
  background: #fff;
  color: var(--gray-600);
  border: 1px solid var(--rose-100);
  font-size: 12px;
  font-weight: 700;
}

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

.primary-btn,
.ghost-btn,
.pill-link,
.home-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 14px;
  padding: 13px 22px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn,
.home-search button {
  color: #fff;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
  box-shadow: 0 14px 28px rgba(244, 63, 94, 0.28);
}

.ghost-btn,
.pill-link {
  color: var(--rose-500);
  background: #fff;
  border: 1px solid var(--rose-100);
}

.primary-btn:hover,
.ghost-btn:hover,
.pill-link:hover,
.home-search button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(244, 63, 94, 0.22);
}

.hero-dots {
  position: absolute;
  left: 54%;
  bottom: 26px;
  display: flex;
  gap: 8px;
}

.hero-dots button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  color: var(--gray-500);
  background: rgba(255, 255, 255, 0.86);
  cursor: pointer;
}

.hero-dots button.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
}

.hero-rank,
.side-card,
.detail-card,
.search-panel,
.filter-panel,
.category-card,
.ranking-row {
  border: 1px solid var(--rose-100);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-card);
}

.hero-rank {
  padding: 28px;
}

.hero-rank h2,
.section-head h2,
.search-panel h2,
.page-hero h1,
.detail-card h1 {
  margin: 10px 0 0;
  color: var(--gray-900);
  letter-spacing: -0.04em;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 34px 72px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 9px;
  border-radius: 16px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
  background: var(--rose-50);
  transform: translateX(2px);
}

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

.rank-item img {
  width: 72px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
}

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

.rank-item strong {
  color: var(--gray-800);
  font-size: 14px;
}

.rank-item small {
  margin-top: 4px;
  color: var(--gray-500);
  font-size: 12px;
}

.text-link,
.section-head a {
  color: var(--rose-500);
  font-weight: 800;
}

.search-panel {
  margin-top: -30px;
  position: relative;
  z-index: 2;
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr minmax(320px, 520px);
  gap: 24px;
  align-items: center;
}

.home-search {
  display: flex;
  gap: 12px;
}

.home-search input,
.filter-panel input {
  width: 100%;
  border: 1px solid var(--rose-100);
  border-radius: 16px;
  padding: 14px 16px;
  color: var(--gray-800);
  background: #fff;
  outline: none;
  transition: box-shadow 0.2s ease, border 0.2s ease;
}

.home-search input:focus,
.filter-panel input:focus {
  border-color: var(--rose-300, #fda4af);
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.1);
}

.section-block {
  padding: 58px 0;
}

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

.section-head h2 {
  font-size: clamp(26px, 3vw, 36px);
}

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

.category-tile {
  min-height: 150px;
  border-radius: 24px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(135deg, #fff, var(--rose-50));
  border: 1px solid var(--rose-100);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.category-tile span {
  color: var(--rose-500);
  font-weight: 900;
  font-size: 20px;
}

.category-tile strong {
  color: var(--gray-600);
  font-size: 13px;
  line-height: 1.65;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--rose-100);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  height: 272px;
  overflow: hidden;
  background: var(--gray-100);
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(17, 24, 39, 0.78));
}

.play-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%) scale(0.85);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.poster-meta {
  position: absolute;
  right: 12px;
  bottom: 12px;
  border-radius: 10px;
  padding: 4px 8px;
  color: #fff;
  background: rgba(0, 0, 0, 0.72);
  font-size: 12px;
}

.movie-info {
  padding: 18px;
}

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

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

.movie-info p {
  margin: 0 0 14px;
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-row span {
  background: var(--rose-50);
  color: var(--rose-500);
}

.page-hero,
.detail-hero {
  position: relative;
  padding: 58px 0 38px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--rose-100), #fff7f8 56%, #fff);
}

.page-hero::before,
.detail-hero::before {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  right: 10%;
  top: -120px;
  border-radius: 999px;
  background: rgba(244, 114, 182, 0.24);
  filter: blur(34px);
}

.page-hero .container,
.detail-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-size: clamp(32px, 4vw, 52px);
}

.page-hero p {
  max-width: 720px;
  color: var(--gray-600);
  line-height: 1.8;
  font-size: 17px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  color: var(--gray-500);
  font-size: 14px;
}

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

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

.category-card {
  overflow: hidden;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
}

.category-cover {
  position: relative;
  min-height: 260px;
  overflow: hidden;
}

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

.category-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.75), transparent);
}

.category-cover span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 1;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
}

.category-body {
  padding: 24px;
}

.category-body h2 {
  margin: 0 0 10px;
}

.category-body p,
.category-body li {
  color: var(--gray-600);
  line-height: 1.7;
}

.category-body ul {
  padding-left: 18px;
  margin: 14px 0 22px;
}

.filter-panel {
  margin-bottom: 26px;
  padding: 20px;
}

.filter-panel-large {
  display: grid;
  gap: 16px;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-buttons button {
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  color: var(--gray-600);
  background: var(--gray-100);
  cursor: pointer;
}

.filter-buttons button.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
}

.filter-status {
  min-height: 20px;
  color: var(--gray-500);
  font-size: 13px;
}

.movie-card.is-hidden,
.ranking-row.is-hidden {
  display: none;
}

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

.ranking-row {
  padding: 16px;
  display: grid;
  grid-template-columns: 56px 120px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
}

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

.ranking-poster img {
  width: 120px;
  height: 78px;
  border-radius: 16px;
  object-fit: cover;
}

.ranking-content h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.ranking-content h2 a:hover {
  color: var(--rose-500);
}

.ranking-content p {
  margin: 0 0 12px;
  color: var(--gray-600);
  line-height: 1.7;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 26px;
  align-items: start;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000;
  box-shadow: 0 24px 60px rgba(17, 24, 39, 0.28);
  aspect-ratio: 16 / 9;
}

.movie-player,
.player-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.movie-player {
  background: #000;
}

.player-cover {
  z-index: 2;
  border: 0;
  padding: 0;
  overflow: hidden;
  color: #fff;
  background: #000;
  cursor: pointer;
}

.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}

.player-cover-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.82), rgba(17, 24, 39, 0.22));
}

.player-button {
  position: absolute;
  left: 50%;
  top: 48%;
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(10px);
  font-size: 30px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.player-cover strong {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  font-size: clamp(22px, 4vw, 38px);
  text-align: center;
}

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

.detail-card {
  margin-top: 22px;
  padding: 28px;
}

.detail-card h1 {
  font-size: clamp(30px, 4vw, 46px);
}

.lead-text {
  color: var(--gray-600);
  font-size: 18px;
  line-height: 1.85;
}

.detail-card section {
  margin-top: 28px;
}

.detail-card h2,
.side-card h2 {
  margin: 0 0 12px;
  color: var(--gray-900);
}

.detail-card p {
  color: var(--gray-600);
  line-height: 1.9;
}

.detail-side {
  position: sticky;
  top: 100px;
}

.side-card {
  padding: 22px;
}

.tag-row-large {
  margin-top: 18px;
}

.genre-row span {
  background: var(--gray-100);
}

.site-footer {
  margin-top: 30px;
  border-top: 1px solid var(--rose-100);
  background: linear-gradient(180deg, var(--rose-50), #fff);
}

.footer-grid {
  padding: 46px 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 30px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-brand strong {
  font-size: 20px;
}

.site-footer p,
.site-footer a,
.site-footer li {
  color: var(--gray-600);
  line-height: 1.8;
  font-size: 14px;
}

.site-footer h3 {
  margin: 8px 0 12px;
  font-size: 16px;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.footer-bottom {
  padding: 18px;
  text-align: center;
  color: var(--gray-500);
  border-top: 1px solid rgba(254, 205, 211, 0.7);
  font-size: 13px;
}

@media (max-width: 1080px) {
  .hero-layout,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .hero-rank,
  .detail-side {
    position: static;
  }

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

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

@media (max-width: 760px) {
  .container {
    width: min(100% - 22px, 1180px);
  }

  .nav-shell {
    height: auto;
    min-height: 68px;
    flex-wrap: wrap;
    padding: 10px 0;
  }

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

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

  .main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 8px 0 4px;
  }

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

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

  .hero-stage {
    min-height: 760px;
    border-radius: 24px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    grid-template-rows: 320px 1fr;
  }

  .hero-image {
    min-height: 320px;
  }

  .hero-content {
    padding: 28px;
  }

  .hero-dots {
    left: 28px;
    bottom: 22px;
  }

  .search-panel,
  .home-search,
  .section-head,
  .category-card,
  .ranking-row {
    display: grid;
    grid-template-columns: 1fr;
  }

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

  .poster-link {
    height: 330px;
  }

  .ranking-row {
    gap: 12px;
  }

  .ranking-poster img {
    width: 100%;
    height: 210px;
  }
}
