* {
  box-sizing: border-box;
}

:root {
  --rose-50: #fff1f2;
  --rose-100: #ffe4e6;
  --rose-200: #fecdd3;
  --rose-400: #fb7185;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --pink-500: #ec4899;
  --purple-500: #a855f7;
  --amber-400: #fbbf24;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --shadow-md: 0 10px 30px rgba(225, 29, 72, 0.12);
  --shadow-lg: 0 22px 50px rgba(17, 24, 39, 0.14);
  --radius-xl: 24px;
  --radius-lg: 18px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--gray-900);
  background: linear-gradient(135deg, #fff7f8 0%, #fff 38%, #f7f2ff 100%);
}

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

img {
  display: block;
  width: 100%;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 241, 242, 0.92);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 30px rgba(225, 29, 72, 0.08);
}

.header-inner {
  width: min(1240px, calc(100% - 32px));
  height: 80px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

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

.brand-icon {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 24px;
  background: linear-gradient(135deg, var(--rose-400), var(--pink-500));
  box-shadow: 0 12px 25px rgba(236, 72, 153, 0.28);
  transition: transform 0.3s ease;
}

.brand:hover .brand-icon {
  transform: scale(1.08) rotate(-3deg);
}

.brand-text strong {
  display: block;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, var(--rose-600), var(--pink-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text small {
  display: block;
  margin-top: 3px;
  color: var(--gray-600);
  font-size: 12px;
}

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

.main-nav a {
  position: relative;
  color: var(--gray-700);
  font-weight: 700;
  padding: 8px 0;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--rose-600);
  transition: width 0.25s ease;
}

.main-nav a:hover {
  color: var(--rose-600);
}

.main-nav a:hover::after {
  width: 100%;
}

.top-search,
.mobile-search {
  display: flex;
  align-items: center;
  position: relative;
}

.top-search input,
.mobile-search input,
.filter-input,
.select-input {
  border: 2px solid var(--rose-200);
  background: #fff;
  outline: none;
  border-radius: 999px;
  color: var(--gray-800);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.top-search input {
  width: 240px;
  padding: 10px 78px 10px 18px;
}

.mobile-search input {
  width: 100%;
  padding: 10px 82px 10px 18px;
}

.filter-input,
.select-input {
  padding: 12px 18px;
}

.top-search input:focus,
.mobile-search input:focus,
.filter-input:focus,
.select-input:focus {
  border-color: var(--rose-400);
  box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.13);
}

.top-search button,
.mobile-search button {
  position: absolute;
  right: 4px;
  border: 0;
  padding: 8px 14px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
  cursor: pointer;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--gray-700);
  font-size: 28px;
  cursor: pointer;
}

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

.mobile-nav nav {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.mobile-nav a {
  padding: 12px 4px;
  border-bottom: 1px solid var(--rose-200);
  color: var(--gray-700);
  font-weight: 700;
}

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

.hero-slider {
  position: relative;
  overflow: hidden;
  min-height: 640px;
  background: radial-gradient(circle at 8% 8%, rgba(251, 113, 133, 0.22), transparent 28%), radial-gradient(circle at 92% 10%, rgba(168, 85, 247, 0.16), transparent 30%), linear-gradient(135deg, #1f1024 0%, #3f1230 45%, #5f1738 100%);
  color: #fff;
}

.hero-slide {
  display: none;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 70px 0 54px;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.88fr);
  align-items: center;
  gap: 50px;
}

.hero-slide.is-active {
  display: grid;
  animation: fadeLift 0.55s ease both;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  font-weight: 700;
}

.hero-copy h1 {
  margin: 24px 0 18px;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-copy p {
  max-width: 680px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 19px;
  line-height: 1.8;
}

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

.hero-tags span,
.tag-list span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.hero-tags span {
  padding: 8px 13px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
}

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

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

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
  box-shadow: 0 14px 28px rgba(236, 72, 153, 0.28);
}

.btn-secondary {
  color: var(--rose-600);
  background: #fff;
  box-shadow: 0 12px 24px rgba(255, 255, 255, 0.16);
}

.btn-light {
  color: var(--gray-900);
  background: #fff;
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  color: var(--rose-600);
  background: var(--rose-50);
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-light:hover,
.btn-ghost:hover {
  transform: translateY(-2px) scale(1.02);
}

.hero-visual {
  position: relative;
  min-height: 500px;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 24px 0 -24px 22px;
  border-radius: 36px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
  transform: rotate(4deg);
}

.hero-poster {
  position: relative;
  overflow: hidden;
  height: 500px;
  border-radius: 36px;
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.36);
  background: rgba(255, 255, 255, 0.08);
}

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

.hero-card-float {
  position: absolute;
  left: -22px;
  bottom: 30px;
  max-width: 280px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.2);
}

.hero-card-float strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.hero-card-float span {
  display: block;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 4;
}

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

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

.section {
  padding: 56px 0;
}

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

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

.section-lead {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--gray-600);
  line-height: 1.8;
}

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

.category-tile {
  position: relative;
  min-height: 170px;
  padding: 22px;
  border-radius: 24px;
  color: #fff;
  overflow: hidden;
  background: linear-gradient(135deg, var(--rose-500), var(--purple-500));
  box-shadow: var(--shadow-md);
}

.category-tile::after {
  content: "";
  position: absolute;
  width: 130px;
  height: 130px;
  right: -38px;
  bottom: -38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.category-tile h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  font-size: 22px;
}

.category-tile p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.6;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-md);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, var(--rose-100), #f5e8ff);
}

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

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

.poster-play {
  position: absolute;
  inset: auto 16px 16px auto;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
  box-shadow: 0 12px 26px rgba(225, 29, 72, 0.28);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .poster-play {
  opacity: 1;
  transform: translateY(0);
}

.rank-badge {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 1;
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--amber-400), var(--rose-500));
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

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

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--rose-600);
  font-size: 12px;
  font-weight: 800;
}

.movie-meta span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 9px;
  background: var(--rose-50);
}

.movie-card h3 {
  margin: 12px 0 9px;
  font-size: 20px;
  line-height: 1.28;
}

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

.movie-card p {
  min-height: 46px;
  margin: 0 0 14px;
  color: var(--gray-600);
  line-height: 1.65;
}

.tag-list span,
.detail-tags span {
  padding: 6px 10px;
  color: var(--rose-600);
  background: var(--rose-50);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 54px 92px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 16px;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-md);
}

.rank-number {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
}

.rank-cover {
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: 16px;
}

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

.rank-copy h3 {
  margin: 0 0 8px;
  font-size: 19px;
}

.rank-copy p {
  margin: 0 0 10px;
  color: var(--gray-600);
  line-height: 1.6;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 26px;
  color: var(--gray-600);
  font-size: 14px;
}

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

.page-hero {
  padding: 54px 0 38px;
}

.page-hero-card {
  overflow: hidden;
  border-radius: 30px;
  padding: clamp(28px, 5vw, 56px);
  color: #fff;
  background: radial-gradient(circle at top right, rgba(255,255,255,0.24), transparent 28%), linear-gradient(135deg, #be123c, #ec4899 55%, #7c3aed);
  box-shadow: var(--shadow-lg);
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(36px, 6vw, 64px);
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 850px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.8;
}

.filter-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-md);
}

.filter-input {
  flex: 1 1 260px;
}

.filter-chip {
  border: 0;
  border-radius: 999px;
  padding: 10px 15px;
  color: var(--rose-600);
  background: var(--rose-50);
  cursor: pointer;
  font-weight: 800;
}

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

.empty-state {
  display: none;
  padding: 40px;
  border-radius: 24px;
  color: var(--gray-600);
  text-align: center;
  background: #fff;
  box-shadow: var(--shadow-md);
}

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

.detail-hero {
  padding: 32px 0 56px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 30px;
  aspect-ratio: 2 / 3;
  box-shadow: var(--shadow-lg);
  background: var(--rose-100);
}

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

.detail-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.detail-lead {
  margin: 0 0 24px;
  color: var(--gray-700);
  font-size: 19px;
  line-height: 1.8;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.detail-meta span {
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--rose-600);
  background: #fff;
  box-shadow: var(--shadow-md);
  font-weight: 800;
}

.player-section {
  padding: 0 0 56px;
}

.player-shell {
  overflow: hidden;
  border-radius: 30px;
  background: #0f172a;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.34);
}

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

.video-box video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  cursor: pointer;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: radial-gradient(circle at center, rgba(244, 63, 94, 0.2), rgba(2, 6, 23, 0.5));
  cursor: pointer;
  z-index: 3;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.player-overlay span {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-size: 42px;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
  box-shadow: 0 18px 50px rgba(244, 63, 94, 0.4);
  transform: translateX(4px);
}

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

.player-caption {
  padding: 24px;
  color: #fff;
}

.player-caption h2 {
  margin: 0 0 10px;
  font-size: 26px;
}

.player-caption p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.75;
}

.article-box {
  padding: 42px;
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow-md);
}

.article-box h2 {
  margin: 0 0 18px;
  font-size: 30px;
}

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

.site-footer {
  margin-top: 30px;
  color: #d1d5db;
  background: linear-gradient(135deg, #111827, #1f2937 52%, #111827);
}

.footer-grid {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding: 48px 0;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 19px;
}

.site-footer p {
  margin: 0;
  color: #9ca3af;
  line-height: 1.8;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 9px;
}

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

.footer-bottom {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #9ca3af;
  text-align: center;
}

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

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

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

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

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

@media (max-width: 820px) {
  .header-inner {
    height: 70px;
  }

  .main-nav {
    display: none;
  }

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

  .brand-icon {
    width: 42px;
    height: 42px;
    font-size: 21px;
  }

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

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

  .hero-slide {
    padding: 42px 0 72px;
    gap: 28px;
  }

  .hero-visual,
  .hero-poster {
    min-height: 0;
    height: auto;
  }

  .hero-poster {
    aspect-ratio: 16 / 10;
  }

  .hero-card-float {
    left: 16px;
    right: 16px;
    max-width: none;
  }

  .category-rail,
  .movie-grid,
  .rank-panel,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .article-box {
    padding: 26px;
  }
}

@media (max-width: 520px) {
  .container,
  .header-inner,
  .mobile-nav,
  .footer-grid,
  .footer-bottom,
  .hero-slide {
    width: min(100% - 22px, 1240px);
  }

  .hero-copy p,
  .page-hero p,
  .detail-lead {
    font-size: 16px;
  }

  .hero-actions {
    display: grid;
  }

  .section-header {
    display: block;
  }

  .rank-copy p {
    display: none;
  }
}
