:root {
  --rose-50: #fff1f2;
  --rose-100: #ffe4e6;
  --rose-200: #fecdd3;
  --rose-400: #fb7185;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --pink-50: #fdf2f8;
  --pink-400: #f472b6;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(244, 63, 94, 0.14);
  --soft-shadow: 0 10px 28px rgba(31, 41, 55, 0.08);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

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 var(--rose-100);
  box-shadow: 0 10px 24px rgba(244, 63, 94, 0.08);
  backdrop-filter: blur(12px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

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

.logo-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-500), var(--pink-400));
  border-radius: 50%;
  box-shadow: 0 12px 30px rgba(244, 63, 94, 0.28);
}

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

.desktop-nav a,
.mobile-nav a {
  transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active,
.mobile-nav a:hover,
.mobile-nav a.is-active {
  color: var(--rose-500);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: var(--rose-50);
  border-radius: 14px;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--rose-500);
  border-radius: 2px;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 14px;
  padding: 0 24px 22px;
  font-weight: 700;
}

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

.top-hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 128px;
  background: linear-gradient(135deg, var(--rose-100), var(--pink-50) 55%, #ffffff);
}

.hero-orb {
  position: absolute;
  width: 320px;
  height: 320px;
  background: rgba(244, 63, 94, 0.14);
  border-radius: 50%;
  filter: blur(56px);
}

.hero-orb-left {
  top: 24px;
  left: -80px;
}

.hero-orb-right {
  right: -60px;
  bottom: 12px;
  background: rgba(244, 114, 182, 0.18);
}

.hero-heading {
  position: relative;
  text-align: center;
}

.title-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.title-line span,
.section-kicker {
  color: var(--rose-500);
}

h1,
h2,
h3,
p {
  margin: 0;
}

.hero-heading h1 {
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.15;
  background: linear-gradient(90deg, var(--rose-600), var(--pink-400), var(--rose-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-heading p,
.page-hero p {
  width: min(760px, 100%);
  margin: 18px auto 0;
  color: var(--gray-600);
  font-size: 18px;
}

.search-panel {
  width: min(760px, 100%);
  margin: 28px auto 0;
  padding: 14px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(254, 205, 211, 0.7);
  border-radius: 22px;
  box-shadow: var(--soft-shadow);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 16px;
  background: var(--white);
  border: 1px solid var(--rose-100);
  border-radius: 16px;
  color: var(--rose-500);
}

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

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.filter-chips button {
  border: 0;
  padding: 8px 15px;
  color: var(--gray-600);
  background: var(--rose-50);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-chips button:hover,
.filter-chips button.is-active {
  color: var(--white);
  background: linear-gradient(90deg, var(--rose-500), var(--pink-400));
  box-shadow: 0 10px 24px rgba(244, 63, 94, 0.18);
}

.featured-shell {
  margin-top: -86px;
  position: relative;
  z-index: 2;
}

.featured-card {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  overflow: hidden;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero-slider {
  position: relative;
  min-height: 460px;
  background: var(--gray-800);
}

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

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

.hero-slide img,
.hero-gradient,
.detail-backdrop img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-gradient {
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.88), rgba(17, 24, 39, 0.15));
}

.hero-copy {
  position: absolute;
  left: 36px;
  right: 36px;
  bottom: 36px;
  color: var(--white);
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
}

.hero-copy h2 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
}

.hero-copy p {
  max-width: 660px;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.86);
}

.hero-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.hero-tags span,
.detail-tags span {
  padding: 6px 11px;
  color: var(--rose-600);
  background: rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.primary-btn,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 22px;
  padding: 12px 22px;
  color: var(--white);
  background: linear-gradient(90deg, var(--rose-500), var(--pink-400));
  border-radius: 14px;
  box-shadow: 0 16px 32px rgba(244, 63, 94, 0.22);
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn:hover,
.text-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(244, 63, 94, 0.28);
}

.primary-btn.small {
  margin-top: 18px;
  padding: 9px 16px;
  font-size: 14px;
}

.text-link {
  margin-top: 0;
  padding: 10px 16px;
  color: var(--rose-600);
  background: var(--rose-50);
  box-shadow: none;
}

.hero-dots {
  position: absolute;
  left: 36px;
  bottom: 20px;
  display: flex;
  gap: 8px;
  z-index: 4;
}

.hero-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, 0.48);
  border-radius: 999px;
  cursor: pointer;
}

.hero-dots button.is-active {
  width: 28px;
  background: var(--white);
}

.featured-list {
  padding: 34px;
  background: linear-gradient(135deg, var(--rose-50), var(--pink-50));
}

.featured-list h2,
.section-head h2,
.page-hero h1,
.detail-copy h1,
.content-card h2,
.ranking-aside h2 {
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.2;
  color: var(--gray-800);
}

.featured-list p {
  margin: 10px 0 22px;
  color: var(--gray-600);
}

.ranking-mini,
.ranking-board {
  display: grid;
  gap: 12px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 42px 64px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(254, 205, 211, 0.58);
  border-radius: 16px;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.ranking-row:hover {
  transform: translateY(-2px);
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.ranking-index {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-500), var(--pink-400));
  border-radius: 50%;
  font-weight: 900;
}

.ranking-row img {
  height: 54px;
  border-radius: 12px;
  object-fit: cover;
}

.ranking-text {
  min-width: 0;
}

.ranking-text strong,
.ranking-text em {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ranking-text strong {
  font-size: 15px;
}

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

.ranking-score {
  color: var(--rose-600);
  font-size: 18px;
  font-weight: 900;
}

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

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

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

.category-card,
.category-overview-card,
.content-card,
.ranking-aside {
  background: var(--white);
  border: 1px solid var(--rose-100);
  border-radius: var(--radius-md);
  box-shadow: var(--soft-shadow);
}

.category-card {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--white);
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

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

.category-card span,
.category-card p {
  position: relative;
  z-index: 2;
}

.category-card span {
  font-size: 22px;
  font-weight: 900;
}

.category-card p {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
}

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

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

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

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

.movie-cover {
  position: relative;
  display: block;
  height: 248px;
  overflow: hidden;
  background: var(--gray-100);
}

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

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

.movie-badge,
.rank-num {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  color: var(--white);
  background: var(--rose-500);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.rank-num {
  left: auto;
  right: 12px;
  background: rgba(17, 24, 39, 0.78);
}

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

.movie-card h3 {
  font-size: 18px;
  line-height: 1.35;
}

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

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

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

.movie-meta span {
  padding: 5px 9px;
  background: var(--rose-50);
  border-radius: 999px;
}

.page-hero {
  padding: 70px 0;
  text-align: center;
  background: linear-gradient(135deg, var(--rose-100), var(--pink-50), #ffffff);
}

.compact-hero {
  text-align: left;
}

.compact-hero .search-panel {
  margin-left: 0;
}

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

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

.category-overview-grid {
  display: grid;
  gap: 24px;
  padding: 48px 0 72px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 28px;
  padding: 22px;
  align-items: center;
}

.category-collage {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.category-collage img {
  height: 120px;
  object-fit: cover;
  border-radius: 16px;
}

.category-overview-card p {
  margin-top: 10px;
  color: var(--gray-600);
}

.ranking-section .ranking-board,
.ranking-layout .ranking-board.large {
  background: linear-gradient(135deg, var(--rose-50), var(--pink-50));
  border: 1px solid var(--rose-100);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--soft-shadow);
}

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

.ranking-aside {
  position: sticky;
  top: 96px;
  padding: 22px;
}

.slim-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.movie-card-compact .movie-cover {
  height: 160px;
}

.movie-card-compact .movie-card-body {
  padding: 12px;
}

.movie-card-compact h3 {
  font-size: 15px;
}

.movie-card-compact p {
  display: none;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0;
  color: var(--white);
  background: var(--gray-800);
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.38;
  filter: blur(2px);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.54));
}

.detail-intro {
  position: relative;
  z-index: 2;
}

.detail-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 34px;
  align-items: center;
}

.detail-poster img {
  height: 430px;
  object-fit: cover;
  border: 6px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.32);
}

.detail-copy h1 {
  color: var(--white);
  font-size: clamp(34px, 5vw, 56px);
}

.detail-one-line {
  margin-top: 16px;
  max-width: 820px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
}

.detail-copy .detail-tags span {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
}

.detail-meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.82);
}

.detail-meta-list span {
  padding: 9px 13px;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
}

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

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #111827;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.player-shell video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #111827;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  justify-content: center;
  border: 0;
  color: var(--white);
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.72), rgba(17, 24, 39, 0.2));
  cursor: pointer;
  z-index: 3;
}

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

.play-icon {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  padding-left: 5px;
  color: var(--rose-500);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  font-size: 30px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

.player-overlay strong {
  width: min(760px, 90%);
  text-align: center;
  font-size: clamp(20px, 3vw, 34px);
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.content-card {
  padding: 28px;
}

.content-card p {
  margin-top: 12px;
  color: var(--gray-700);
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 34px;
}

.site-footer p {
  max-width: 560px;
  margin-top: 12px;
  color: var(--gray-600);
}

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

.site-footer a {
  display: block;
  margin: 7px 0;
  color: var(--gray-600);
}

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

.footer-bottom {
  margin-top: 40px;
  padding: 20px;
  text-align: center;
  color: var(--gray-500);
  border-top: 1px solid var(--rose-100);
}

@media (max-width: 1024px) {
  .featured-card,
  .ranking-layout,
  .detail-content {
    grid-template-columns: 1fr;
  }

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

  .ranking-aside {
    position: static;
  }
}

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

  .menu-toggle {
    display: block;
  }

  .top-hero {
    padding: 48px 0 112px;
  }

  .title-line {
    align-items: flex-start;
  }

  .title-line span {
    display: none;
  }

  .featured-shell {
    margin-top: -72px;
  }

  .featured-card,
  .detail-grid,
  .category-overview-card,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-copy {
    left: 22px;
    right: 22px;
    bottom: 44px;
  }

  .featured-list,
  .content-card {
    padding: 22px;
  }

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

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

  .movie-cover {
    height: 210px;
  }

  .ranking-row {
    grid-template-columns: 36px 54px 1fr;
  }

  .ranking-score {
    display: none;
  }

  .detail-poster img {
    height: auto;
    max-height: 460px;
  }

  .player-section {
    padding-top: 26px;
  }
}

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

  .hero-heading h1,
  .page-hero h1,
  .detail-copy h1 {
    font-size: 30px;
  }

  .hero-heading p,
  .page-hero p,
  .detail-one-line {
    font-size: 16px;
  }

  .search-panel {
    padding: 10px;
  }

  .filter-chips button {
    padding: 7px 12px;
    font-size: 13px;
  }

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

  .movie-cover,
  .movie-card-compact .movie-cover {
    height: 240px;
  }

  .category-overview-card {
    padding: 16px;
  }

  .category-collage img {
    height: 94px;
  }
}
