* {
  box-sizing: border-box;
}

:root {
  --bg: #fff7fb;
  --panel: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --light: #fdf2f8;
  --line: #ffe4e6;
  --rose: #e11d48;
  --rose-dark: #be123c;
  --pink: #db2777;
  --violet: #7c3aed;
  --shadow: 0 24px 70px rgba(190, 18, 60, 0.14);
  --soft-shadow: 0 16px 40px rgba(17, 24, 39, 0.08);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #ffffff 0%, var(--bg) 46%, #ffffff 100%);
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(255, 228, 230, 0.9);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 24px;
  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;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--pink), var(--violet));
  box-shadow: 0 12px 28px rgba(225, 29, 72, 0.28);
}

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

.desktop-nav a,
.mobile-nav a {
  padding: 9px 14px;
  color: #4b5563;
  border-radius: 999px;
  font-weight: 700;
  transition: 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--rose);
  background: #fff1f2;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #fff1f2;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

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

.mobile-nav {
  display: none;
  padding: 0 24px 18px;
  flex-direction: column;
  gap: 8px;
}

.hero {
  max-width: 1360px;
  margin: 0 auto;
  padding: 34px 24px 16px;
}

.hero-stage {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  border-radius: 34px;
  background: #14060d;
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.62fr);
  gap: 42px;
  align-items: center;
  padding: 72px;
  opacity: 0;
  transform: scale(1.015);
  pointer-events: none;
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(20, 6, 13, 0.92), rgba(20, 6, 13, 0.58), rgba(20, 6, 13, 0.88)), var(--hero-image);
  background-size: cover;
  background-position: center;
  filter: saturate(1.08);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(244, 63, 94, 0.42), transparent 32%), radial-gradient(circle at 80% 72%, rgba(124, 58, 237, 0.28), transparent 34%);
}

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

.hero-copy,
.hero-poster {
  position: relative;
  z-index: 2;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--rose);
  background: #fff1f2;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.hero-kicker {
  color: #ffe4e6;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-copy h1 {
  margin: 18px 0 18px;
  max-width: 880px;
  color: #ffffff;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.hero-copy p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 19px;
  line-height: 1.8;
}

.hero-meta,
.detail-meta,
.card-meta-line,
.detail-tags,
.card-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.hero-meta {
  margin-top: 24px;
}

.hero-meta span,
.detail-meta span {
  padding: 7px 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.hero-actions,
.flat-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
}

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 900;
  transition: 0.2s ease;
}

.primary-btn {
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  box-shadow: 0 18px 34px rgba(225, 29, 72, 0.32);
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 42px rgba(225, 29, 72, 0.38);
}

.ghost-btn {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.ghost-btn.dark {
  color: var(--rose);
  background: #fff1f2;
  border-color: #ffe4e6;
}

.hero-poster {
  justify-self: end;
  width: min(360px, 100%);
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border: 10px solid rgba(255, 255, 255, 0.14);
  border-radius: 30px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

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

.hero-dots {
  position: absolute;
  z-index: 5;
  left: 72px;
  bottom: 40px;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 34px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.hero-dot.active {
  background: #ffffff;
}

.home-intro,
.section-block,
.detail-main,
.site-footer {
  max-width: 1280px;
  margin: 0 auto;
  padding: 54px 24px;
}

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

.section-head.centered {
  display: block;
  max-width: 820px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-head h2,
.page-hero h1,
.content-block h2 {
  margin: 10px 0 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-head p,
.page-hero p,
.home-intro p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.text-link,
.mini-link {
  color: var(--rose);
  font-weight: 800;
}

.text-link:hover,
.mini-link:hover {
  color: var(--rose-dark);
}

.feature-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-row a {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(135deg, #ffffff, #fff1f2);
  box-shadow: var(--soft-shadow);
  transition: 0.2s ease;
}

.feature-row a:hover,
.channel-card:hover,
.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.feature-row strong {
  display: block;
  margin-bottom: 8px;
  font-size: 22px;
}

.feature-row span {
  color: var(--muted);
}

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

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

.channel-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  overflow: hidden;
  min-height: 210px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--soft-shadow);
  transition: 0.22s ease;
}

.channel-cover {
  position: relative;
  overflow: hidden;
  background: #111827;
}

.channel-cover img {
  height: 100%;
  object-fit: cover;
}

.channel-cover span {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(17, 24, 39, 0.4));
}

.channel-content {
  padding: 24px;
}

.channel-content h3 {
  margin: 0 0 10px;
  font-size: 24px;
}

.channel-content p {
  min-height: 54px;
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.7;
}

.channel-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.channel-samples a {
  max-width: 100%;
  padding: 6px 10px;
  color: #9f1239;
  background: #fff1f2;
  border-radius: 999px;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: var(--soft-shadow);
  transition: 0.22s ease;
}

.movie-card[hidden],
.rank-row[hidden] {
  display: none;
}

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #111827;
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.52));
}

.year-badge,
.rank-badge {
  position: absolute;
  top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  background: rgba(225, 29, 72, 0.9);
  backdrop-filter: blur(8px);
}

.year-badge {
  right: 12px;
}

.rank-badge {
  left: 12px;
  background: rgba(124, 58, 237, 0.9);
}

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

.card-meta-line {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.card-meta-line span:not(:last-child)::after {
  content: "";
}

.movie-card h3 {
  margin: 10px 0 8px;
  font-size: 19px;
  line-height: 1.28;
}

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

.card-tags {
  margin-top: 14px;
}

.card-tags span,
.detail-tags span {
  padding: 5px 9px;
  color: #9f1239;
  background: #fff1f2;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.filter-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 26px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--soft-shadow);
}

.search-label {
  display: grid;
  grid-template-columns: auto minmax(220px, 420px);
  align-items: center;
  gap: 14px;
  width: 100%;
  color: var(--text);
  font-weight: 900;
}

.search-label input {
  width: 100%;
  height: 46px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: none;
  background: #ffffff;
}

.search-label input:focus {
  border-color: #fb7185;
  box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.14);
}

.filter-hint {
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

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

.full-rank {
  margin-top: 24px;
}

.rank-row {
  display: grid;
  grid-template-columns: auto 70px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
  transition: 0.2s ease;
}

.rank-row:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow);
}

.rank-row img {
  width: 70px;
  height: 70px;
  border-radius: 16px;
  object-fit: cover;
}

.list-rank {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  font-weight: 900;
}

.rank-row-main {
  min-width: 0;
}

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

.rank-row-main em {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.rank-views {
  color: var(--rose);
  font-size: 14px;
  font-weight: 900;
}

.page-hero {
  max-width: 1280px;
  margin: 34px auto 0;
  padding: 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.68fr);
  gap: 34px;
  align-items: center;
  border-radius: 34px;
  color: #ffffff;
  background: radial-gradient(circle at 10% 10%, rgba(255, 255, 255, 0.18), transparent 30%), linear-gradient(135deg, var(--rose), var(--pink), var(--violet));
  box-shadow: var(--shadow);
}

.small-hero,
.ranking-hero {
  display: block;
  max-width: 1280px;
}

.page-hero .section-kicker {
  color: #ffe4e6;
  background: rgba(255, 255, 255, 0.16);
}

.page-hero h1 {
  color: #ffffff;
  font-size: clamp(38px, 6vw, 68px);
}

.page-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.84);
}

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

.hero-side-list .rank-row {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  box-shadow: none;
}

.hero-side-list .rank-row-main em,
.hero-side-list .rank-views {
  color: rgba(255, 255, 255, 0.72);
}

.pager-links {
  display: flex;
  gap: 10px;
}

.pager-links a {
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--rose);
  background: #fff1f2;
  font-weight: 800;
}

.detail-main {
  padding-top: 30px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--muted);
  font-weight: 700;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.62fr);
  gap: 28px;
  align-items: start;
}

.player-card,
.detail-panel,
.content-block {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.player-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #050505;
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #ffffff;
  border: 0;
  background: linear-gradient(180deg, rgba(5, 5, 5, 0.16), rgba(5, 5, 5, 0.68));
  font-weight: 900;
  font-size: 18px;
  z-index: 4;
}

.play-overlay.is-hidden {
  display: none;
}

.play-icon {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 5px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  box-shadow: 0 18px 42px rgba(225, 29, 72, 0.42);
  font-size: 34px;
}

.detail-panel {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 22px;
  padding: 22px;
}

.detail-cover {
  height: 240px;
  border-radius: 22px;
  object-fit: cover;
}

.detail-info h1 {
  margin: 12px 0 12px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.detail-info p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.75;
}

.detail-meta span {
  color: var(--rose);
  background: #fff1f2;
  border-color: #ffe4e6;
}

.detail-tags {
  margin-top: 18px;
}

.content-block {
  margin-top: 26px;
  padding: 34px;
}

.content-block h2 {
  margin-bottom: 16px;
  font-size: 30px;
}

.content-block p {
  margin: 0 0 16px;
  color: #374151;
  font-size: 17px;
  line-height: 1.9;
}

.related-block {
  padding-left: 0;
  padding-right: 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 28px;
}

.site-footer p {
  max-width: 520px;
  color: var(--muted);
  line-height: 1.8;
}

.site-footer strong,
.site-footer a {
  display: block;
  margin-bottom: 10px;
}

.site-footer a:not(.footer-brand) {
  color: var(--muted);
}

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

.footer-bottom {
  margin-top: 28px;
  padding-top: 20px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  text-align: center;
}

@media (max-width: 1100px) {
  .movie-grid,
  .compact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .hero-poster {
    justify-self: start;
    width: 240px;
  }

  .rank-list {
    grid-template-columns: 1fr;
  }
}

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

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

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

  .nav-wrap,
  .hero,
  .home-intro,
  .section-block,
  .detail-main,
  .site-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-stage {
    min-height: 720px;
    border-radius: 26px;
  }

  .hero-slide {
    padding: 34px 24px 82px;
    align-content: center;
  }

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

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

  .hero-dots {
    left: 24px;
    bottom: 28px;
  }

  .feature-row,
  .channel-grid,
  .channel-grid.wide,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .channel-card,
  .detail-panel {
    grid-template-columns: 1fr;
  }

  .channel-cover {
    min-height: 220px;
  }

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

  .section-head,
  .filter-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .search-label {
    grid-template-columns: 1fr;
  }

  .page-hero {
    margin: 18px 16px 0;
    padding: 34px 24px;
    border-radius: 26px;
  }

  .rank-row {
    grid-template-columns: auto 58px minmax(0, 1fr);
  }

  .rank-row img {
    width: 58px;
    height: 58px;
  }

  .rank-views {
    display: none;
  }

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

  .content-block {
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .movie-grid,
  .compact-grid,
  .top-three {
    grid-template-columns: 1fr;
  }

  .brand,
  .footer-brand {
    font-size: 19px;
  }

  .hero-poster {
    width: 190px;
  }
}
