:root {
  --pink: #ec4899;
  --pink-dark: #db2777;
  --orange: #f97316;
  --yellow: #facc15;
  --blue: #38bdf8;
  --purple: #8b5cf6;
  --ink: #1f2937;
  --muted: #6b7280;
  --soft: #fff7ed;
  --card: rgba(255, 255, 255, 0.9);
  --line: rgba(236, 72, 153, 0.14);
  --shadow: 0 24px 60px rgba(219, 39, 119, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(135deg, #fdf2f8 0%, #fff7ed 48%, #fefce8 100%);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", Arial, sans-serif;
}

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

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

svg {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 34px rgba(236, 72, 153, 0.08);
  backdrop-filter: blur(18px);
}

.nav-shell {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 1280px;
  height: 72px;
  padding: 0 24px;
  margin: 0 auto;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
  background: linear-gradient(90deg, var(--pink), var(--orange), var(--yellow));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

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

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

.nav-links a,
.mobile-panel a {
  padding: 10px 14px;
  color: #4b5563;
  font-weight: 700;
  border-radius: 999px;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-active,
.mobile-panel a:hover,
.mobile-panel a.is-active {
  color: var(--pink-dark);
  background: rgba(236, 72, 153, 0.1);
}

.header-search,
.mobile-search,
.hero-search,
.inline-filter {
  display: flex;
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(236, 72, 153, 0.08);
  overflow: hidden;
}

.header-search {
  width: min(300px, 28vw);
}

.header-search input,
.mobile-search input,
.hero-search input,
.inline-filter input {
  width: 100%;
  min-width: 0;
  padding: 12px 14px;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
}

.header-search button,
.mobile-search button,
.hero-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 46px;
  color: white;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  border: 0;
  cursor: pointer;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
}

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

.mobile-panel {
  display: none;
  max-width: 1280px;
  padding: 0 24px 18px;
  margin: 0 auto;
}

.mobile-panel.is-open {
  display: grid;
  gap: 10px;
}

.hero-slider {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    var(--pink),
    var(--orange) 55%,
    var(--yellow)
  );
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.03);
  transition:
    opacity 0.6s ease,
    transform 1.2s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.hero-backdrop,
.detail-bg,
.sub-hero.image-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(17, 24, 39, 0.82),
    rgba(219, 39, 119, 0.45),
    rgba(249, 115, 22, 0.22)
  );
}

.stars {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 740px;
  padding: 0 24px;
  margin-left: max(24px, calc((100vw - 1280px) / 2 + 24px));
  color: white;
  animation: fadeInUp 0.8s ease both;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  margin-bottom: 18px;
  color: white;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  backdrop-filter: blur(12px);
}

.hero-content h1,
.sub-hero h1,
.detail-info h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.05em;
  text-shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
}

.hero-content p,
.sub-hero p,
.detail-info .lead {
  max-width: 680px;
  margin: 22px 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(17px, 2vw, 24px);
  line-height: 1.8;
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  padding: 6px 10px;
  color: var(--pink-dark);
  font-size: 12px;
  font-weight: 800;
  background: #fff1f2;
  border-radius: 999px;
}

.hero-tags span {
  color: white;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  font-weight: 900;
  border-radius: 999px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.primary-button {
  color: white;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  box-shadow: 0 18px 42px rgba(236, 72, 153, 0.35);
}

.ghost-button {
  color: white;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
}

.ghost-button.dark {
  color: var(--pink-dark);
  background: white;
  border-color: var(--line);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 22px 56px rgba(236, 72, 153, 0.28);
}

.hero-tools {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(280px, 460px) 1fr;
  gap: 24px;
  align-items: end;
  max-width: 1280px;
  padding: 0 24px 34px;
  margin: 0 auto;
  min-height: 640px;
  pointer-events: none;
}

.hero-tools > * {
  pointer-events: auto;
}

.hero-search {
  align-self: end;
  min-height: 58px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
}

.hero-search span {
  display: grid;
  width: 54px;
  place-items: center;
  color: var(--pink);
  font-size: 22px;
}

.hero-search button {
  min-width: 86px;
  height: 58px;
  font-weight: 900;
}

.hero-thumbs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  align-self: end;
}

.hero-thumb {
  position: relative;
  height: 92px;
  overflow: hidden;
  color: white;
  text-align: left;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  cursor: pointer;
  isolation: isolate;
}

.hero-thumb img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.15);
}

.hero-thumb::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(
    0deg,
    rgba(17, 24, 39, 0.78),
    rgba(17, 24, 39, 0.1)
  );
}

.hero-thumb span {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.3;
}

.hero-thumb.is-active {
  border-color: white;
  box-shadow: 0 14px 36px rgba(255, 255, 255, 0.22);
}

.content-section {
  max-width: 1280px;
  padding: 64px 24px 0;
  margin: 0 auto;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.section-icon {
  display: grid;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  place-items: center;
  color: white;
  font-size: 24px;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(236, 72, 153, 0.25);
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-heading p {
  margin: 4px 0 0;
  color: var(--muted);
}

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

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

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

.movie-card {
  overflow: hidden;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 24px;
  box-shadow: 0 14px 34px rgba(31, 41, 55, 0.08);
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease;
}

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

.movie-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #fce7f3, #fed7aa);
}

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

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

.movie-cover::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.48), transparent 54%);
}

.play-pill,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 900;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.play-pill {
  right: 14px;
  bottom: 14px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
}

.rank-badge {
  top: 12px;
  left: 12px;
  padding: 7px 10px;
  font-size: 12px;
  border-radius: 999px;
}

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

.movie-card-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.movie-card-meta span,
.detail-meta span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.movie-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 900;
}

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

.movie-card p {
  display: -webkit-box;
  min-height: 3.4em;
  margin: 0 0 14px;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.7;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

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

.movie-card-compact p {
  font-size: 14px;
}

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

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

.category-tile {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  color: white;
  border-radius: 28px;
  box-shadow: var(--shadow);
  isolation: isolate;
}

.category-tile img,
.category-gradient {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.category-gradient {
  z-index: -1;
  background: linear-gradient(
    135deg,
    rgba(236, 72, 153, 0.82),
    rgba(249, 115, 22, 0.68),
    rgba(250, 204, 21, 0.4)
  );
}

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

.category-tile strong,
.category-tile em {
  position: absolute;
  right: 20px;
  left: 20px;
}

.category-tile strong {
  bottom: 62px;
  font-size: 26px;
  font-style: normal;
  font-weight: 900;
}

.category-tile em {
  bottom: 24px;
  display: -webkit-box;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  line-height: 1.5;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.ranking-panel {
  position: sticky;
  top: 96px;
  align-self: start;
  padding: 24px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 30px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.ranking-list {
  display: grid;
  gap: 14px;
}

.ranking-list .movie-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  border-radius: 20px;
}

.ranking-list .movie-cover {
  height: 100%;
  min-height: 124px;
}

.ranking-list .movie-card p,
.ranking-list .tag-row {
  display: none;
}

.ranking-more {
  width: 100%;
  margin-top: 18px;
}

.sub-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: white;
  background: linear-gradient(
    135deg,
    var(--pink),
    var(--orange) 54%,
    var(--yellow)
  );
}

.sub-hero {
  min-height: 360px;
}

.sub-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  padding: 86px 24px 64px;
  margin: 0 auto;
}

.sub-hero p {
  max-width: 760px;
}

.sub-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(17, 24, 39, 0.8),
    rgba(236, 72, 153, 0.44),
    rgba(249, 115, 22, 0.18)
  );
}

.inline-filter {
  max-width: 560px;
  min-height: 54px;
  margin-top: 24px;
}

.inline-filter input {
  padding: 16px 22px;
  font-size: 16px;
}

.detail-hero {
  min-height: 620px;
}

.detail-bg-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(17, 24, 39, 0.88),
    rgba(131, 24, 67, 0.62),
    rgba(249, 115, 22, 0.2)
  );
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  padding: 34px 24px 72px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 44px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 800;
}

.breadcrumb a:hover {
  color: white;
}

.detail-layout {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 44px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border: 8px solid rgba(255, 255, 255, 0.24);
  border-radius: 32px;
  box-shadow: 0 34px 82px rgba(0, 0, 0, 0.35);
}

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

.detail-meta span {
  color: rgba(255, 255, 255, 0.78);
}

.large-tags {
  margin: 20px 0 8px;
}

.large-tags span {
  color: white;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.detail-content {
  display: grid;
  gap: 28px;
}

.player-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #09090b;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 32px;
  box-shadow: var(--shadow);
}

.movie-player {
  width: 100%;
  height: 100%;
  background: #09090b;
  cursor: pointer;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  color: white;
  background: linear-gradient(
    0deg,
    rgba(17, 24, 39, 0.64),
    rgba(17, 24, 39, 0.22)
  );
  border: 0;
  cursor: pointer;
}

.player-card.is-playing .player-overlay,
.player-overlay[hidden] {
  display: none;
}

.player-play-icon {
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  color: white;
  font-size: 34px;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  border-radius: 999px;
  box-shadow: 0 18px 48px rgba(236, 72, 153, 0.46);
}

.player-overlay strong {
  font-size: 28px;
  font-weight: 900;
}

.player-overlay em {
  color: rgba(255, 255, 255, 0.78);
  font-style: normal;
}

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

.story-card {
  padding: 28px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 28px;
  box-shadow: 0 14px 38px rgba(31, 41, 55, 0.08);
}

.story-card h2 {
  margin: 0 0 12px;
  font-size: 26px;
  font-weight: 900;
}

.story-card p {
  margin: 0;
  color: #4b5563;
  font-size: 17px;
  line-height: 1.95;
}

.site-footer {
  margin-top: 72px;
  background: linear-gradient(
    90deg,
    rgba(252, 231, 243, 0.92),
    rgba(255, 237, 213, 0.92),
    rgba(254, 249, 195, 0.92)
  );
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  max-width: 1280px;
  padding: 36px 24px;
  margin: 0 auto;
}

.footer-inner p {
  max-width: 620px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a {
  padding: 10px 14px;
  color: var(--pink-dark);
  font-weight: 800;
  background: rgba(255, 255, 255, 0.68);
  border-radius: 999px;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(26px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

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

  .ranking-panel {
    position: static;
  }

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

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

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

  .nav-shell {
    height: 64px;
    gap: 14px;
    padding: 0 16px;
  }

  .brand {
    font-size: 20px;
  }

  .hero-slider,
  .hero-tools {
    min-height: 720px;
  }

  .hero-content {
    margin: 0;
    padding: 0 18px;
  }

  .hero-tools {
    padding: 0 18px 28px;
  }

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

  .movie-grid,
  .compact-grid,
  .featured-grid,
  .category-grid,
  .category-grid.large,
  .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .detail-layout {
    gap: 26px;
  }

  .detail-poster {
    max-width: 280px;
  }

  .content-section {
    padding: 48px 16px 0;
  }

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

@media (max-width: 560px) {
  .hero-slider,
  .hero-tools {
    min-height: 760px;
  }

  .hero-thumbs {
    grid-template-columns: 1fr;
  }

  .hero-thumb {
    height: 72px;
  }

  .hero-search {
    min-height: 52px;
  }

  .hero-search button {
    min-width: 68px;
    height: 52px;
  }

  .movie-grid,
  .compact-grid,
  .featured-grid,
  .category-grid,
  .category-grid.large,
  .article-grid {
    grid-template-columns: 1fr;
  }

  .ranking-list .movie-card {
    grid-template-columns: 118px minmax(0, 1fr);
  }

  .detail-info h1,
  .sub-hero h1,
  .hero-content h1 {
    font-size: 38px;
  }

  .player-card {
    border-radius: 22px;
  }
}
