:root {
  --rose-50: #fff1f2;
  --rose-100: #ffe4e6;
  --rose-300: #fda4af;
  --rose-400: #fb7185;
  --rose-500: #f43f5e;
  --pink-500: #ec4899;
  --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-soft: 0 18px 45px rgba(244, 63, 94, 0.16);
  --shadow-card: 0 12px 30px rgba(17, 24, 39, 0.08);
  --radius-xl: 24px;
  --radius-lg: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, rgba(255, 241, 242, 0.55), #ffffff 34%, rgba(255, 241, 242, 0.35));
  color: var(--gray-800);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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.92);
  border-bottom: 1px solid rgba(244, 63, 94, 0.12);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 30px rgba(17, 24, 39, 0.06);
}

.header-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: var(--rose-500);
  letter-spacing: 0.02em;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(244, 63, 94, 0.28);
}

.brand-text {
  font-size: 22px;
  background: linear-gradient(90deg, var(--rose-500), var(--pink-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  color: var(--gray-600);
  font-weight: 700;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--rose-500);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: var(--rose-50);
  border-radius: 14px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--rose-500);
  border-radius: 99px;
}

.mobile-panel {
  display: none;
  border-top: 1px solid rgba(244, 63, 94, 0.12);
  background: #ffffff;
}

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

.mobile-panel-inner {
  padding: 16px 0 20px;
  display: grid;
  gap: 14px;
}

.mobile-category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mobile-category-links a {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--rose-50);
  color: var(--rose-500);
  font-size: 14px;
}

.hero-carousel {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--rose-100), #fff7ed, #fdf2f8);
}

.hero-slides {
  position: relative;
  min-height: 650px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
  background-image: linear-gradient(90deg, rgba(17, 24, 39, 0.88), rgba(17, 24, 39, 0.42), rgba(244, 63, 94, 0.18)), var(--hero-image);
  background-size: cover;
  background-position: center;
}

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 22%, rgba(251, 113, 133, 0.5), transparent 32%), radial-gradient(circle at 76% 72%, rgba(236, 72, 153, 0.4), transparent 28%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 650px;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 54px;
  align-items: center;
}

.hero-copy {
  color: #ffffff;
  max-width: 760px;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--rose-500);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-kicker {
  padding: 8px 14px;
  color: #ffffff;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
}

.hero-copy h1 {
  margin: 0 0 20px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

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

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
}

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

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

.primary-btn,
.secondary-btn,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 14px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.secondary-btn {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.text-link {
  min-height: auto;
  padding: 0;
  color: var(--rose-500);
}

.primary-btn:hover,
.secondary-btn:hover,
.text-link:hover {
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  height: 500px;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 32px 70px rgba(17, 24, 39, 0.5);
  transform: rotate(2deg);
}

.hero-poster:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 42%, rgba(17, 24, 39, 0.74));
}

.hero-poster span {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 72px;
  height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(12px);
  font-size: 28px;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 34px;
  line-height: 1;
  backdrop-filter: blur(12px);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-indicator {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  transition: width 0.2s ease, background 0.2s ease;
}

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

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

.intro-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: -48px;
  padding: 30px;
  position: relative;
  z-index: 8;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
}

.intro-band h2,
.section-title-row h2,
.feature-panel h2,
.page-hero h1,
.detail-content-card h1 {
  margin: 0;
  color: var(--gray-900);
  font-weight: 950;
  letter-spacing: -0.035em;
}

.intro-band h2,
.section-title-row h2,
.feature-panel h2 {
  font-size: clamp(28px, 4vw, 42px);
}

.intro-band p,
.feature-panel p,
.page-hero p,
.category-card-body p,
.movie-card-body p,
.detail-content-card p,
.site-footer p {
  color: var(--gray-600);
  line-height: 1.8;
}

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

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

.category-tile,
.category-card-large a {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile:hover,
.category-card-large a:hover,
.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 50px rgba(244, 63, 94, 0.18);
}

.category-tile img {
  height: 140px;
}

.category-tile span,
.category-tile em {
  display: block;
  padding: 0 16px;
}

.category-tile span {
  margin-top: 14px;
  color: var(--gray-900);
  font-size: 18px;
  font-weight: 900;
}

.category-tile em {
  min-height: 74px;
  padding-bottom: 18px;
  color: var(--gray-600);
  font-size: 13px;
  font-style: normal;
  line-height: 1.65;
}

.search-panel {
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid rgba(244, 63, 94, 0.12);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

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

.search-line input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  outline: none;
}

.search-line input:focus {
  border-color: var(--rose-400);
  box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.12);
}

.search-line button,
.filter-pill {
  border: 0;
  border-radius: 14px;
  background: var(--rose-50);
  color: var(--rose-500);
  font-weight: 900;
}

.search-line button {
  min-width: 88px;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.filter-pill {
  padding: 9px 14px;
}

.filter-pill.active,
.filter-pill:hover {
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
  color: #ffffff;
}

.empty-state {
  margin-top: 16px;
  padding: 18px;
  border-radius: 14px;
  background: var(--gray-50);
  color: var(--gray-600);
  text-align: center;
}

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

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

.movie-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #ffffff;
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.movie-link {
  display: grid;
  height: 100%;
}

.poster-frame {
  position: relative;
  height: 320px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--rose-50), #fff);
}

.small-card .poster-frame {
  height: 210px;
}

.poster-frame img {
  transition: transform 0.5s ease;
}

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

.poster-type,
.rank-mark {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
  font-size: 12px;
  font-weight: 900;
}

.rank-mark {
  left: auto;
  right: 12px;
  min-width: 34px;
  text-align: center;
  background: rgba(17, 24, 39, 0.82);
}

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

.movie-card-body h3 {
  margin: 0 0 10px;
  color: var(--gray-900);
  font-size: 19px;
  line-height: 1.35;
}

.movie-card-body p {
  min-height: 50px;
  margin: 0 0 14px;
  font-size: 14px;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--gray-500);
  font-size: 13px;
}

.movie-meta span:not(:last-child):after {
  content: "·";
  margin-left: 8px;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 28px;
}

.feature-panel,
.rank-panel,
.side-card,
.detail-content-card,
.player-card {
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.feature-panel {
  padding: 30px;
}

.rank-panel {
  padding: 24px;
  align-self: start;
  position: sticky;
  top: 96px;
}

.rank-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  color: var(--gray-900);
  font-size: 22px;
  font-weight: 950;
}

.rank-heading a {
  color: var(--rose-500);
  font-size: 14px;
}

.rank-row {
  display: grid;
  grid-template-columns: 30px 74px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  transition: background 0.2s ease;
}

.rank-row:hover {
  background: var(--rose-50);
}

.rank-number {
  color: var(--rose-500);
  font-weight: 950;
}

.rank-row img {
  height: 50px;
  border-radius: 10px;
}

.rank-info strong,
.rank-info em {
  display: block;
}

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

.rank-info em {
  color: var(--gray-500);
  font-size: 12px;
  font-style: normal;
}

.rank-year {
  color: var(--gray-500);
  font-size: 12px;
}

.page-hero {
  padding: 86px 0;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
  position: relative;
  overflow: hidden;
}

.page-hero:before,
.page-hero:after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  filter: blur(16px);
}

.page-hero:before {
  left: -120px;
  top: -130px;
}

.page-hero:after {
  right: -120px;
  bottom: -150px;
}

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

.page-hero .section-kicker,
.page-hero h1,
.page-hero p {
  color: #ffffff;
}

.page-hero h1 {
  font-size: clamp(40px, 6vw, 66px);
}

.page-hero p {
  max-width: 760px;
  font-size: 18px;
}

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

.category-card-images {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4px;
  height: 210px;
}

.category-card-body {
  padding: 22px;
}

.category-card-body h2 {
  margin: 0 0 10px;
  color: var(--gray-900);
  font-size: 24px;
}

.category-card-body span {
  color: var(--rose-500);
  font-weight: 900;
}

.hero-mini-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.spotlight-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.spotlight-item img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.detail-shell {
  padding: 34px 0 70px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 24px;
  color: var(--gray-500);
  font-size: 14px;
}

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

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
}

.player-card {
  overflow: hidden;
  margin-bottom: 24px;
}

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

.player-wrap video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 0;
  padding: 0;
  background: #000000;
  cursor: pointer;
}

.player-cover:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.62));
}

.player-cover span {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
  box-shadow: 0 22px 46px rgba(244, 63, 94, 0.42);
  font-size: 34px;
}

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

.detail-content-card {
  padding: 30px;
}

.detail-content-card h1 {
  margin-bottom: 16px;
  font-size: clamp(32px, 5vw, 52px);
}

.detail-content-card h2 {
  margin: 28px 0 12px;
  color: var(--gray-900);
  font-size: 22px;
}

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

.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--gray-100);
  color: var(--gray-700);
  font-size: 14px;
  font-weight: 800;
}

.large-tags {
  margin-bottom: 10px;
}

.detail-side {
  display: grid;
  gap: 20px;
  align-content: start;
}

.side-card {
  padding: 20px;
}

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

.poster-card img {
  height: 420px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.full-btn {
  width: 100%;
}

.side-list {
  display: grid;
  gap: 6px;
}

.side-list .rank-row {
  grid-template-columns: 26px 58px 1fr;
}

.side-list .rank-year {
  display: none;
}

.related-section {
  padding-bottom: 0;
}

.ranking-grid .movie-card:nth-child(-n + 3) .rank-mark {
  background: linear-gradient(135deg, #f59e0b, var(--rose-500));
}

.site-footer {
  margin-top: 60px;
  background: linear-gradient(180deg, #ffffff, var(--rose-50));
  border-top: 1px solid rgba(244, 63, 94, 0.12);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 42px;
  padding: 44px 0;
}

.footer-brand {
  margin-bottom: 14px;
  font-size: 22px;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--gray-900);
  font-size: 18px;
}

.footer-links {
  display: grid;
  gap: 9px;
  color: var(--gray-600);
}

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

.footer-bottom {
  padding: 18px 16px;
  color: var(--gray-500);
  text-align: center;
  border-top: 1px solid rgba(244, 63, 94, 0.12);
}

@media (max-width: 980px) {
  .desktop-nav {
    display: none;
  }

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

  .hero-content {
    grid-template-columns: 1fr;
    padding: 76px 0 88px;
  }

  .hero-poster {
    display: none;
  }

  .category-grid,
  .movie-grid,
  .compact-grid,
  .footer-grid,
  .detail-grid,
  .split-layout,
  .category-overview-grid {
    grid-template-columns: 1fr 1fr;
  }

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

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

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

  .header-inner {
    height: 64px;
  }

  .brand-text {
    font-size: 19px;
  }

  .hero-carousel,
  .hero-slides,
  .hero-content {
    min-height: 590px;
  }

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

  .hero-copy p {
    font-size: 16px;
  }

  .hero-arrow {
    display: none;
  }

  .intro-band,
  .section-title-row,
  .search-line {
    flex-direction: column;
    align-items: stretch;
  }

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

  .poster-frame {
    height: 360px;
  }

  .page-hero {
    padding: 64px 0;
  }

  .rank-row {
    grid-template-columns: 26px 64px 1fr;
  }

  .rank-year {
    display: none;
  }

  .detail-content-card,
  .feature-panel {
    padding: 22px;
  }

  .poster-card img {
    height: 360px;
  }
}
