:root {
  --rose-50: #fff1f2;
  --rose-100: #ffe4e6;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --pink-500: #ec4899;
  --amber-50: #fffbeb;
  --orange-50: #fff7ed;
  --green-50: #f0fdf4;
  --teal-50: #f0fdfa;
  --blue-500: #3b82f6;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow: 0 10px 25px rgba(17, 24, 39, 0.10);
  --shadow-lg: 0 24px 55px rgba(17, 24, 39, 0.18);
  --radius: 18px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  color: var(--gray-900);
  background: linear-gradient(180deg, var(--rose-50) 0%, #ffffff 38%, #ffffff 100%);
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.86);
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.04);
}

.navbar {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
  box-shadow: 0 12px 24px rgba(244, 63, 94, 0.28);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--gray-700);
  font-weight: 700;
}

.nav-links a {
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-current {
  color: var(--rose-600);
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 250px;
  padding: 8px 10px;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  background: var(--white);
}

.nav-search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--gray-800);
  background: transparent;
}

.nav-search button {
  border: 0;
  border-radius: 999px;
  background: var(--rose-600);
  color: #ffffff;
  padding: 7px 14px;
  font-weight: 700;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  border: 0;
  border-radius: 12px;
  padding: 10px;
  background: var(--gray-100);
  color: var(--gray-800);
  cursor: pointer;
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--gray-200);
  padding: 12px 0 18px;
}

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

.mobile-menu a {
  display: block;
  padding: 10px 0;
  color: var(--gray-700);
  font-weight: 700;
}

.mobile-menu .nav-search {
  margin-top: 10px;
  min-width: 0;
}

.hero {
  position: relative;
  min-height: 72vh;
  overflow: hidden;
  color: #ffffff;
  background: var(--gray-900);
}

.hero-track {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.75s ease;
  pointer-events: none;
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 34%, rgba(244, 63, 94, 0.34), transparent 35%),
    linear-gradient(180deg, rgba(17, 24, 39, 0.54), rgba(17, 24, 39, 0.40) 40%, rgba(17, 24, 39, 0.86));
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 72vh;
  display: grid;
  align-items: center;
  padding: 76px 0 70px;
}

.hero-panel {
  width: min(760px, 100%);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(12px);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 800;
  margin-bottom: 18px;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.06em;
  font-weight: 900;
}

.hero-text {
  max-width: 720px;
  margin: 0 0 28px;
  font-size: clamp(17px, 2.5vw, 23px);
  color: rgba(255, 255, 255, 0.86);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 19px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
  box-shadow: 0 16px 28px rgba(244, 63, 94, 0.30);
}

.btn-light {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(12px);
}

.hero-search {
  display: flex;
  width: min(620px, 100%);
  gap: 10px;
  padding: 8px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.17);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(16px);
}

.hero-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  border-radius: 18px;
  padding: 12px 16px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.hero-search input::placeholder {
  color: rgba(255, 255, 255, 0.78);
}

.hero-search button {
  border: 0;
  border-radius: 18px;
  padding: 0 18px;
  background: #ffffff;
  color: var(--rose-600);
  font-weight: 900;
  cursor: pointer;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.hero-meta a,
.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  font-weight: 700;
}

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

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

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

.section {
  padding: 72px 0;
}

.section-soft {
  background: linear-gradient(90deg, var(--amber-50), var(--orange-50));
}

.section-green {
  background: linear-gradient(90deg, var(--green-50), var(--teal-50));
}

.section-head {
  max-width: 790px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-head h2,
.page-title h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.04em;
  font-weight: 900;
  color: var(--gray-900);
}

.section-head p,
.page-title p {
  margin: 0;
  font-size: 18px;
  color: var(--gray-600);
}

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

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

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

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

.movie-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #ffffff;
  box-shadow: var(--shadow);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

.poster {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--gray-200);
}

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

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

.poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 34%, rgba(0, 0, 0, 0.74));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster::after {
  opacity: 1;
}

.card-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: var(--rose-500);
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.25s ease;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
}

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

.badges {
  position: absolute;
  z-index: 3;
  left: 12px;
  top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.badge {
  display: inline-flex;
  align-items: center;
  max-width: 118px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.badge-rose {
  background: var(--rose-500);
}

.badge-blue {
  background: var(--blue-500);
}

.card-body {
  padding: 16px;
}

.card-title {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
  color: var(--gray-900);
  transition: color 0.2s ease;
}

.movie-card:hover .card-title {
  color: var(--rose-600);
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--gray-600);
  font-size: 14px;
  font-weight: 700;
}

.card-genre {
  margin: 0 0 8px;
  color: var(--gray-500);
  font-size: 14px;
}

.card-desc {
  margin: 0;
  color: var(--gray-700);
  font-size: 14px;
}

.line-1,
.line-2,
.line-3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-1 {
  -webkit-line-clamp: 1;
}

.line-2 {
  -webkit-line-clamp: 2;
}

.line-3 {
  -webkit-line-clamp: 3;
}

.horizontal-scroll {
  overflow-x: auto;
  padding-bottom: 14px;
}

.horizontal-row {
  display: flex;
  gap: 22px;
  width: max-content;
}

.horizontal-row .movie-card {
  width: 290px;
}

.category-card {
  display: flex;
  flex-direction: column;
  min-height: 220px;
  padding: 28px;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: var(--shadow);
  border: 1px solid rgba(229, 231, 235, 0.84);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.category-card h2,
.category-card h3 {
  margin: 0 0 10px;
  font-size: 25px;
  letter-spacing: -0.03em;
  font-weight: 900;
}

.category-card p {
  margin: 0 0 22px;
  color: var(--gray-600);
}

.category-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 62px 88px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.rank-num {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
  color: #ffffff;
  font-weight: 900;
  font-size: 18px;
}

.rank-img {
  width: 88px;
  height: 116px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--gray-200);
}

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

.rank-main h2,
.rank-main h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 900;
}

.rank-main p {
  margin: 0;
  color: var(--gray-600);
}

.heat {
  min-width: 74px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--rose-600);
  background: var(--rose-50);
  text-align: center;
  font-weight: 900;
}

.page-hero {
  padding: 70px 0 42px;
  background:
    radial-gradient(circle at 85% 20%, rgba(244, 63, 94, 0.20), transparent 34%),
    linear-gradient(180deg, var(--rose-50), #ffffff);
}

.page-title {
  max-width: 820px;
}

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

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

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 16px;
  margin: 0 0 34px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.filter-panel input {
  min-width: 0;
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 13px 15px;
  outline: 0;
}

.filter-panel select {
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 13px 15px;
  outline: 0;
  background: #ffffff;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.filter-chip {
  border: 0;
  border-radius: 999px;
  padding: 9px 15px;
  color: var(--gray-700);
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(17, 24, 39, 0.08);
  cursor: pointer;
  font-weight: 800;
}

.filter-chip.is-active {
  color: #ffffff;
  background: var(--rose-600);
}

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

.player-card,
.detail-card {
  border-radius: 26px;
  background: #ffffff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

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

.player-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
  cursor: pointer;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.54));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-overlay span {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  font-size: 30px;
}

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

.player-info,
.detail-body {
  padding: 26px;
}

.player-info h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.04em;
  font-weight: 900;
}

.player-info p {
  margin: 0;
  color: var(--gray-600);
  font-size: 17px;
}

.detail-poster {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--gray-200);
}

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

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

.info-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
  color: var(--gray-700);
}

.info-row strong {
  color: var(--gray-900);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag {
  display: inline-flex;
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--rose-600);
  background: var(--rose-50);
  font-size: 13px;
  font-weight: 800;
}

.article {
  margin-top: 28px;
  display: grid;
  gap: 20px;
}

.article h2 {
  margin: 0;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.article p {
  margin: 0;
  color: var(--gray-700);
  font-size: 17px;
}

.cta-panel {
  border-radius: 30px;
  padding: 42px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
  box-shadow: 0 24px 55px rgba(244, 63, 94, 0.22);
}

.cta-panel h2 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.cta-panel p {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.site-footer {
  color: var(--gray-300);
  background: var(--gray-900);
  margin-top: 40px;
}

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

.footer-grid h2,
.footer-grid h3 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
}

.footer-grid p,
.footer-grid a {
  color: var(--gray-300);
  font-size: 14px;
}

.footer-grid a {
  display: block;
  margin: 8px 0;
  transition: color 0.2s ease;
}

.footer-grid a:hover {
  color: #fb7185;
}

.footer-bottom {
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--gray-500);
  text-align: center;
  font-size: 14px;
}

.masonry {
  columns: 3 260px;
  column-gap: 22px;
}

.masonry .movie-card {
  display: inline-flex;
  width: 100%;
  margin: 0 0 22px;
  break-inside: avoid;
}

.is-hidden-card {
  display: none !important;
}

.empty-state {
  display: none;
  padding: 38px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow);
  color: var(--gray-600);
  text-align: center;
  font-weight: 800;
}

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

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

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

  .nav-search {
    display: none;
  }

  .mobile-menu .nav-search {
    display: flex;
  }
}

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

  .nav-links {
    display: none;
  }

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

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

  .hero-content {
    padding: 60px 0;
  }

  .hero-search {
    flex-direction: column;
    border-radius: 22px;
  }

  .hero-search button {
    min-height: 44px;
  }

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

  .section {
    padding: 50px 0;
  }

  .rank-item {
    grid-template-columns: 42px 72px minmax(0, 1fr);
    gap: 12px;
  }

  .rank-img {
    width: 72px;
    height: 96px;
  }

  .heat {
    display: none;
  }

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

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

  .player-info,
  .detail-body {
    padding: 20px;
  }
}

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

  .brand {
    font-size: 17px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
    border-radius: 10px;
  }

  .grid-5,
  .grid-4,
  .grid-3 {
    grid-template-columns: 1fr;
  }

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

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