:root {
  --rose: #f43f5e;
  --rose-dark: #e11d48;
  --pink: #ec4899;
  --orange: #fb923c;
  --blue: #0ea5e9;
  --cyan: #06b6d4;
  --gold: #f59e0b;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #f9fafb;
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-shell {
  width: min(1200px, 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 rgba(229, 231, 235, 0.9);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(16px);
}

.nav-shell {
  height: 68px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  box-shadow: 0 10px 20px rgba(244, 63, 94, 0.26);
}

.brand-text {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--rose), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  min-width: 0;
}

.nav-link {
  font-size: 14px;
  color: #4b5563;
  transition: color 0.2s ease;
  white-space: nowrap;
}

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

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-search input,
.toolbar input,
.toolbar select {
  border: 1px solid #d1d5db;
  border-radius: 999px;
  padding: 11px 16px;
  outline: none;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input:focus,
.toolbar input:focus,
.toolbar select:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.12);
}

.nav-search button,
.button {
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(244, 63, 94, 0.24);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.button.primary {
  background: #fff;
  color: var(--rose);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: none;
}

.button.small {
  padding: 9px 15px;
  font-size: 14px;
}

.menu-button {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #fff1f2;
  color: var(--rose);
}

.mobile-menu {
  display: none;
  padding: 0 16px 16px;
  border-top: 1px solid var(--line);
}

.mobile-menu a {
  display: block;
  padding: 10px 8px;
  color: #4b5563;
}

.mobile-menu.open {
  display: block;
}

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #f43f5e 0%, #ec4899 45%, #fb923c 100%);
}

.hero-shell {
  position: relative;
  min-height: 560px;
  padding: 76px 0 64px;
}

.hero-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(12px);
  opacity: 0.22;
  background: #fff;
}

.hero-glow.one {
  width: 280px;
  height: 280px;
  left: 6%;
  top: 42px;
}

.hero-glow.two {
  width: 420px;
  height: 420px;
  right: 4%;
  bottom: -120px;
  background: #fde68a;
}

.hero-slide {
  position: absolute;
  inset: 76px 0 84px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  align-items: center;
  gap: 44px;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--rose);
}

.section-kicker.blue {
  color: var(--blue);
}

.section-kicker.gold {
  color: var(--gold);
}

.section-kicker.light {
  color: rgba(255, 255, 255, 0.86);
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 70px);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.hero-copy h1 span {
  display: block;
  color: #fef3c7;
}

.hero-copy p {
  max-width: 620px;
  margin: 22px 0 26px;
  font-size: 20px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.86);
}

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

.hero-tags span,
.tag-row span {
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.tag-row span {
  background: #f3f4f6;
  color: #4b5563;
}

.tag-row.large span {
  background: #fff1f2;
  color: var(--rose-dark);
}

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

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 28px;
  min-height: 330px;
  box-shadow: 0 30px 80px rgba(31, 41, 55, 0.28);
  transform: translateZ(0);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  min-height: 330px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hero-poster:hover img {
  transform: scale(1.06);
}

.hero-poster-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 28%, rgba(0, 0, 0, 0.72));
}

.hero-poster strong {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 22px;
  font-size: 27px;
  line-height: 1.25;
}

.hero-dots {
  position: absolute;
  left: 0;
  bottom: 38px;
  display: flex;
  gap: 9px;
}

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

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

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

.section-block.compact {
  padding-top: 0;
}

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

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

.section-head a {
  color: var(--rose);
  font-weight: 800;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #111827;
}

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

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

.badge {
  position: absolute;
  top: 12px;
  right: 12px;
  border-radius: 999px;
  padding: 6px 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--rose), var(--pink));
}

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

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

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

.movie-card p {
  min-height: 48px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  color: #6b7280;
  font-size: 13px;
}

.meta-row span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.movie-card .tag-row {
  margin-top: 13px;
}

.soft-section {
  background: linear-gradient(90deg, #eff6ff, #ecfeff);
}

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

.category-tile,
.category-overview-card,
.side-card,
.detail-content-card,
.player-card,
.rank-panel {
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.category-tile {
  padding: 22px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--pink));
}

.category-tile strong {
  display: block;
  font-size: 19px;
  margin-bottom: 8px;
}

.category-tile p,
.category-overview-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}

.category-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-top: 16px;
}

.category-thumbs img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  object-fit: cover;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  padding: 60px 0;
}

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

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

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

.rank-list.tight {
  gap: 8px;
}

.rank-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  background: #f9fafb;
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
  background: #fff1f2;
  transform: translateX(3px);
}

.rank-num {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--rose));
  font-size: 13px;
  font-weight: 900;
}

.rank-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}

.rank-heat {
  color: var(--rose);
  font-weight: 900;
}

.page-hero {
  color: #fff;
  padding: 66px 0;
}

.page-hero.rose {
  background: linear-gradient(135deg, var(--rose), var(--pink));
}

.page-hero.blue {
  background: linear-gradient(135deg, #2563eb, var(--cyan));
}

.page-hero.gold {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(38px, 5vw, 58px);
  letter-spacing: -0.05em;
}

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

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

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

.category-overview-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.category-overview-card h2 {
  margin: 0;
  font-size: 28px;
}

.compact-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.compact-card {
  overflow: hidden;
  border-radius: 14px;
  background: #f9fafb;
}

.compact-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.compact-card span {
  display: block;
  padding: 10px;
}

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

.compact-card strong {
  font-size: 13px;
}

.compact-card em {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
  padding: 16px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.07);
}

.toolbar-search {
  flex: 1;
}

.toolbar-search.wide {
  flex: 1.5;
}

.toolbar input {
  width: 100%;
}

.toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

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

.ranking-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.ranking-row:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.ranking-main {
  display: grid;
  grid-template-columns: 56px 128px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}

.ranking-index {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--gold), var(--rose));
  font-weight: 900;
}

.ranking-main img {
  width: 128px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 14px;
}

.ranking-copy strong,
.ranking-copy em,
.ranking-copy span {
  display: block;
}

.ranking-copy strong {
  font-size: 20px;
}

.ranking-copy em {
  margin: 5px 0;
  color: var(--rose);
  font-style: normal;
  font-weight: 700;
}

.ranking-copy span {
  color: var(--muted);
  line-height: 1.6;
}

.ranking-score {
  justify-self: end;
  color: var(--rose);
  font-size: 24px;
  font-weight: 900;
}

.detail-hero {
  background: linear-gradient(135deg, #fff1f2, #fdf2f8);
  border-bottom: 1px solid #ffe4e6;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  padding: 18px 0;
  color: #6b7280;
  font-size: 14px;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  padding: 32px 0 64px;
}

.detail-main {
  min-width: 0;
}

.player-card {
  overflow: hidden;
  padding: 0;
}

.video-player {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #000;
  aspect-ratio: 16 / 9;
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: #000;
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.66;
}

.play-circle {
  position: relative;
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  font-size: 36px;
  text-indent: 5px;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  box-shadow: 0 18px 42px rgba(244, 63, 94, 0.45);
}

.video-player.is-started .player-cover {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.detail-content-card {
  margin-top: 24px;
  padding: 28px;
}

.detail-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.detail-title-row h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.16;
  letter-spacing: -0.04em;
}

.detail-meta {
  margin-top: 12px;
}

.detail-content-card .tag-row {
  margin: 22px 0;
}

.text-section {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.text-section + .text-section {
  margin-top: 24px;
}

.text-section h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.text-section p {
  margin: 0;
  color: #374151;
  line-height: 2;
  font-size: 16px;
}

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

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

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

.side-card {
  padding: 22px;
}

.poster-side img {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  object-fit: cover;
  margin-bottom: 16px;
}

.side-card h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

.side-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.site-footer {
  color: #d1d5db;
  background: linear-gradient(135deg, #111827, #1f2937 48%, #111827);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.8fr 0.9fr;
  gap: 36px;
  padding: 46px 0;
}

.footer-brand {
  margin-bottom: 12px;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
}

.site-footer p {
  margin: 0;
  line-height: 1.8;
}

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

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

.footer-links a:hover {
  color: #fb7185;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 16px;
  text-align: center;
  color: #9ca3af;
}

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

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

  .nav-search {
    margin-left: auto;
  }

  .menu-button {
    display: inline-grid;
    place-items: center;
  }

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

  .rank-panel {
    position: static;
  }

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

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

  .hero-shell {
    min-height: 760px;
    padding-top: 52px;
  }

  .hero-slide {
    inset: 52px 0 76px;
    gap: 24px;
  }

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

  .hero-dots {
    bottom: 30px;
  }

  .featured-grid,
  .latest-grid,
  .category-grid,
  .overview-grid,
  .related-grid,
  .footer-grid,
  .movie-grid,
  .category-page-grid,
  .search-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .toolbar,
  .ranking-main,
  .ranking-row,
  .detail-title-row {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .ranking-score {
    justify-self: start;
  }

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

@media (max-width: 560px) {
  .site-shell {
    width: min(100% - 24px, 1200px);
  }

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

  .hero-shell {
    min-height: 820px;
  }

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

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

  .movie-grid,
  .featured-grid,
  .latest-grid,
  .category-grid,
  .overview-grid,
  .related-grid,
  .category-page-grid,
  .search-grid {
    grid-template-columns: 1fr;
  }

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

  .ranking-main {
    grid-template-columns: 44px 92px minmax(0, 1fr);
    gap: 10px;
  }

  .ranking-main img {
    width: 92px;
  }

  .detail-content-card,
  .side-card {
    padding: 20px;
  }
}
