:root {
  --pink-50: #fff1f5;
  --pink-100: #ffe4ec;
  --pink-500: #ec4899;
  --pink-600: #db2777;
  --orange-100: #ffedd5;
  --orange-400: #fb923c;
  --orange-500: #f97316;
  --red-400: #f87171;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow: 0 22px 55px rgba(236, 72, 153, 0.16);
  --shadow-hover: 0 28px 75px rgba(236, 72, 153, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(244, 114, 182, 0.18);
  backdrop-filter: blur(18px);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: var(--gray-900);
  white-space: nowrap;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--pink-500), var(--red-400), var(--orange-500));
  box-shadow: 0 12px 28px rgba(236, 72, 153, 0.28);
}

.brand-name {
  font-size: 21px;
  letter-spacing: -0.02em;
}

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

.nav-link,
.mobile-link {
  padding: 10px 15px;
  border-radius: 13px;
  color: var(--gray-700);
  font-weight: 700;
  transition: 0.25s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: var(--pink-600);
  background: linear-gradient(135deg, var(--pink-100), var(--orange-100));
}

.header-search,
.mobile-search,
.big-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input,
.big-search input {
  min-width: 220px;
  border: 2px solid rgba(236, 72, 153, 0.18);
  border-radius: 999px;
  outline: none;
  padding: 10px 15px;
  background: var(--white);
  transition: 0.25s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.big-search input:focus {
  border-color: rgba(236, 72, 153, 0.55);
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.08);
}

.header-search button,
.mobile-search button,
.big-search button,
.primary-btn,
.secondary-btn {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
  transition: 0.25s ease;
}

.header-search button,
.mobile-search button,
.big-search button,
.primary-btn {
  color: var(--white);
  background: linear-gradient(135deg, var(--pink-500), var(--orange-500));
  box-shadow: 0 14px 30px rgba(236, 72, 153, 0.23);
}

.header-search button,
.mobile-search button {
  padding: 10px 18px;
}

.big-search {
  justify-content: center;
  width: min(760px, 100%);
  margin: 24px auto 0;
}

.big-search input {
  flex: 1;
  min-width: 0;
  padding: 15px 20px;
}

.big-search button {
  padding: 15px 28px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: var(--pink-100);
  color: var(--pink-600);
  cursor: pointer;
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

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

.mobile-nav {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.hero-section {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(120deg, #ec4899, #f87171 50%, #fb923c);
}

.hero-bg,
.hero-bg span {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  filter: saturate(1.12) contrast(1.05);
}

.hero-bg span {
  background: radial-gradient(circle at 78% 20%, rgba(255, 255, 255, 0.32), transparent 32%), linear-gradient(90deg, rgba(17, 24, 39, 0.7), rgba(17, 24, 39, 0.16));
}

.hero-inner {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  min-height: 500px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
  padding: 52px 0;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(44px, 7vw, 76px);
  line-height: 0.98;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.hero-copy h1 span {
  color: #fde68a;
}

.hero-copy p {
  max-width: 640px;
  margin: 24px 0 0;
  color: #fff7fb;
  font-size: 20px;
}

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

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

.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 28px;
}

.secondary-btn {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}

.primary-btn:hover,
.secondary-btn:hover,
.header-search button:hover,
.big-search button:hover {
  transform: translateY(-2px) scale(1.02);
}

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

.hero-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-weight: 800;
}

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

.hero-poster {
  position: relative;
  display: block;
  min-height: 330px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 34px;
  box-shadow: 0 35px 80px rgba(17, 24, 39, 0.34);
}

.hero-poster img {
  width: 100%;
  height: 330px;
  object-fit: cover;
}

.hero-poster strong {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 18px;
  z-index: 1;
  font-size: 26px;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.55);
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.75));
}

.hero-mini-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.hero-mini {
  position: relative;
  min-height: 92px;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.16);
}

.hero-mini img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  opacity: 0.74;
}

.hero-mini span {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 8px;
  z-index: 1;
  font-size: 13px;
  font-weight: 900;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.content-section,
.page-hero,
.detail-content {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.content-section {
  padding: 76px 0;
}

.tinted-section {
  width: 100%;
  max-width: none;
  padding-left: max(16px, calc((100% - 1180px) / 2));
  padding-right: max(16px, calc((100% - 1180px) / 2));
  background: linear-gradient(100deg, rgba(255, 228, 236, 0.68), rgba(255, 237, 213, 0.62));
}

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

.section-heading h2,
.page-hero h1,
.rank-aside h2,
.detail-content h2 {
  margin: 0;
  color: var(--gray-900);
  font-weight: 950;
  letter-spacing: -0.035em;
}

.section-heading h2 {
  font-size: clamp(28px, 4vw, 42px);
}

.section-heading p,
.page-hero p {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--gray-500);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--pink-600);
  font-weight: 950;
}

.section-more {
  flex: 0 0 auto;
  color: var(--pink-600);
  font-weight: 900;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(244, 114, 182, 0.16);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

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

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

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

.poster-badge,
.poster-play {
  position: absolute;
  z-index: 2;
  color: var(--white);
  font-weight: 950;
}

.poster-badge {
  top: 14px;
  left: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink-500), var(--orange-500));
  font-size: 12px;
}

.poster-play {
  right: 14px;
  bottom: 14px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.64);
  backdrop-filter: blur(8px);
}

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

.movie-card h3 {
  margin: 9px 0 6px;
  color: var(--gray-900);
  font-size: 20px;
  line-height: 1.25;
}

.movie-card h3 a:hover {
  color: var(--pink-600);
}

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

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

.movie-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.movie-tags span,
.detail-meta span,
.filter-tabs button {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--pink-600);
  background: linear-gradient(135deg, var(--pink-50), var(--orange-100));
  font-size: 12px;
  font-weight: 900;
}

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

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

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 34px;
  align-items: start;
}

.rank-aside {
  position: sticky;
  top: 96px;
  padding: 24px;
  border-radius: 30px;
  background: linear-gradient(155deg, #ffffff, #fff1f5);
  box-shadow: var(--shadow);
}

.rank-aside h2 {
  margin-bottom: 16px;
  font-size: 28px;
}

.rank-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rank-list li + li {
  margin-top: 10px;
}

.rank-list a {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  transition: 0.2s ease;
}

.rank-list a:hover {
  background: var(--white);
  transform: translateX(4px);
}

.rank-list span,
.rank-number {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--pink-500), var(--orange-500));
  font-weight: 950;
}

.rank-list strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

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

.category-tile {
  position: relative;
  min-height: 146px;
  padding: 24px;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(135deg, #ffffff, #fff1f5 45%, #ffedd5);
  box-shadow: var(--shadow);
  transition: 0.25s ease;
}

.category-tile::after {
  content: "";
  position: absolute;
  width: 96px;
  height: 96px;
  right: -22px;
  bottom: -22px;
  border-radius: 999px;
  background: rgba(236, 72, 153, 0.11);
}

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

.category-tile span {
  display: block;
  color: var(--gray-900);
  font-size: 22px;
  font-weight: 950;
}

.category-tile p {
  margin: 10px 0 0;
  color: var(--gray-500);
}

.category-tile strong {
  display: inline-block;
  margin-top: 14px;
  color: var(--pink-600);
}

.page-main {
  min-height: 58vh;
}

.page-hero {
  margin-top: 34px;
  padding: 58px 42px;
  overflow: hidden;
  border-radius: 36px;
  background: radial-gradient(circle at 90% 15%, rgba(255, 255, 255, 0.66), transparent 24%), linear-gradient(135deg, #ffe4ec, #ffedd5);
  box-shadow: var(--shadow);
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(36px, 5vw, 60px);
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}

.filter-tabs button {
  border: 0;
  cursor: pointer;
}

.filter-tabs button.active,
.filter-tabs button:hover {
  color: var(--white);
  background: linear-gradient(135deg, var(--pink-500), var(--orange-500));
}

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

.rank-row {
  display: grid;
  grid-template-columns: 58px 112px 1fr;
  gap: 20px;
  align-items: center;
  padding: 18px;
  border-radius: 26px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.rank-thumb {
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--pink-100), var(--orange-100));
}

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

.rank-row h2 {
  margin: 0 0 6px;
  color: var(--gray-900);
  font-size: 24px;
}

.rank-row p {
  margin: 0 0 10px;
  color: var(--gray-700);
}

.detail-main {
  background: linear-gradient(180deg, #fff7fb 0%, #ffffff 48%);
}

.watch-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 30px;
  align-items: center;
}

.watch-player {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  background: #050505;
  box-shadow: 0 35px 90px rgba(17, 24, 39, 0.32);
  aspect-ratio: 16 / 9;
}

.watch-player video {
  width: 100%;
  height: 100%;
  display: block;
  background: #050505;
  object-fit: contain;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  gap: 12px;
  color: var(--white);
  border: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.58));
  cursor: pointer;
}

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

.play-icon {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--pink-600);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  font-size: 30px;
}

.watch-info {
  padding: 28px;
  border-radius: 32px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--pink-600);
  font-weight: 800;
}

.watch-info h1 {
  margin: 0;
  color: var(--gray-900);
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.08;
  font-weight: 950;
}

.lead-text {
  margin: 18px 0 0;
  color: var(--gray-700);
  font-size: 18px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
}

.detail-content {
  padding: 48px 0 0;
}

.detail-content article {
  padding: 34px;
  border-radius: 32px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.detail-content h2 {
  margin-top: 0;
  font-size: 28px;
}

.detail-content h2:not(:first-child) {
  margin-top: 30px;
}

.detail-content p {
  margin: 12px 0 0;
  color: var(--gray-700);
  font-size: 18px;
}

.related-section {
  padding-top: 54px;
}

.site-footer {
  margin-top: 70px;
  color: var(--white);
  background: linear-gradient(135deg, var(--pink-500), #ef4444, var(--orange-500));
}

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

.footer-brand {
  color: var(--white);
  margin-bottom: 12px;
}

.footer-brand .brand-mark {
  color: var(--pink-600);
  background: var(--white);
}

.footer-inner p {
  max-width: 520px;
  margin: 0;
  color: #fff7fb;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-content: center;
}

.footer-links a {
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-weight: 800;
}

.footer-copy {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff7fb;
  font-size: 14px;
}

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

.empty-state {
  grid-column: 1 / -1;
  padding: 46px;
  border-radius: 28px;
  color: var(--gray-500);
  background: var(--white);
  box-shadow: var(--shadow);
  text-align: center;
  font-weight: 800;
}

@media (max-width: 1040px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
    margin-left: auto;
  }

  .hero-inner,
  .watch-hero,
  .split-section,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    max-width: 720px;
  }

  .rank-aside {
    position: static;
  }

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

@media (max-width: 760px) {
  .header-inner {
    height: 64px;
    gap: 12px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .brand-name {
    font-size: 18px;
  }

  .hero-section,
  .hero-inner {
    min-height: auto;
  }

  .hero-inner {
    padding: 42px 0;
  }

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

  .hero-mini-grid,
  .movie-grid,
  .category-grid,
  .large-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-heading {
    display: block;
  }

  .section-more {
    display: inline-block;
    margin-top: 14px;
  }

  .rank-row {
    grid-template-columns: 44px 88px 1fr;
    gap: 12px;
  }

  .rank-row h2 {
    font-size: 19px;
  }

  .page-hero {
    padding: 40px 20px;
    border-radius: 28px;
  }

  .watch-info,
  .detail-content article {
    padding: 22px;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .movie-grid,
  .category-grid,
  .hero-mini-grid,
  .large-category-grid {
    grid-template-columns: 1fr;
  }

  .hero-poster,
  .hero-poster img {
    min-height: 260px;
    height: 260px;
  }

  .hero-actions,
  .big-search,
  .mobile-search {
    align-items: stretch;
    flex-direction: column;
  }

  .big-search button,
  .mobile-search button,
  .primary-btn,
  .secondary-btn {
    width: 100%;
  }

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

  .rank-thumb {
    display: none;
  }
}
