:root {
  --site-bg: #fff7fb;
  --panel: rgba(255, 255, 255, 0.88);
  --text: #2f2933;
  --muted: #756575;
  --line: rgba(244, 114, 182, 0.22);
  --brand: #db2777;
  --brand-dark: #be185d;
  --rose: #fb7185;
  --shadow: 0 22px 70px rgba(190, 24, 93, 0.16);
}

body {
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 0%, rgba(244, 114, 182, 0.22), transparent 34rem),
    radial-gradient(circle at 90% 5%, rgba(251, 113, 133, 0.18), transparent 30rem),
    linear-gradient(180deg, #fff7fb 0%, #fff 34%, #fff7fb 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

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

.header-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--rose));
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(219, 39, 119, 0.28);
}

.brand-text {
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}

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

.nav-link,
.mobile-link {
  color: #5f5261;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease;
}

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

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

.menu-button span {
  width: 20px;
  height: 2px;
  background: var(--brand-dark);
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mobile-link {
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.home-hero {
  position: relative;
  min-height: 620px;
  margin-top: 28px;
  overflow: hidden;
  border-radius: 36px;
  box-shadow: var(--shadow);
  background: #240817;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

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

.hero-bg img {
  height: 100%;
  object-fit: cover;
  filter: blur(16px) saturate(1.18);
  transform: scale(1.08);
  opacity: 0.5;
}

.hero-bg::after,
.detail-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(33, 8, 24, 0.92), rgba(60, 14, 42, 0.68), rgba(219, 39, 119, 0.28)),
    linear-gradient(180deg, transparent, rgba(33, 8, 24, 0.86));
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 360px;
  gap: 48px;
  align-items: center;
  min-height: 620px;
  padding: 70px;
}

.hero-copy {
  color: #fff;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--brand-dark);
  background: rgba(253, 242, 248, 0.95);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.hero-copy h1,
.hero-copy h2,
.page-hero h1,
.detail-copy h1 {
  margin-top: 20px;
  font-size: clamp(2.45rem, 7vw, 5.8rem);
  line-height: 0.96;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.hero-copy p {
  max-width: 720px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.08rem;
  line-height: 1.9;
}

.hero-cover {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 30px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
  transform: rotate(2deg);
}

.hero-cover img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

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

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

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

.primary-button {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--rose));
  box-shadow: 0 18px 40px rgba(219, 39, 119, 0.28);
}

.secondary-button {
  color: var(--brand-dark);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-2px);
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 16px;
  transform: translateX(-50%);
}

.hero-arrow,
.hero-dot {
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.hero-arrow {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
}

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

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

.section-heading {
  margin-bottom: 28px;
  text-align: center;
}

.section-heading.align-left {
  text-align: left;
}

.section-heading h2 {
  margin-top: 12px;
  color: #382b39;
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  font-weight: 950;
  letter-spacing: -0.04em;
}

.section-heading p {
  max-width: 720px;
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.8;
}

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

.category-tile,
.category-overview-card {
  display: flex;
  min-height: 160px;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: linear-gradient(135deg, #fff, #fff0f7);
  box-shadow: 0 14px 34px rgba(190, 24, 93, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover,
.category-overview-card:hover,
.movie-card:hover,
.rank-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.category-tile span,
.category-main-link {
  color: var(--brand-dark);
  font-size: 1.2rem;
  font-weight: 950;
}

.category-tile strong {
  margin-top: 12px;
  color: #392a3a;
  font-size: 1rem;
}

.category-tile em,
.category-overview-card p {
  color: var(--muted);
  font-style: normal;
  line-height: 1.65;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1fr);
  gap: 18px;
  align-items: end;
  margin-bottom: 28px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--panel);
  box-shadow: 0 12px 34px rgba(190, 24, 93, 0.08);
}

.filter-search {
  margin-top: 12px;
}

.filter-search input {
  width: 100%;
  height: 48px;
  padding: 0 18px;
  color: #372b38;
  border: 1px solid rgba(244, 114, 182, 0.25);
  border-radius: 999px;
  background: #fff;
  outline: none;
}

.filter-search input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(219, 39, 119, 0.12);
}

.filter-chips,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chip,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(244, 114, 182, 0.28);
  border-radius: 999px;
  color: var(--brand-dark);
  background: rgba(253, 242, 248, 0.92);
  font-size: 0.85rem;
  font-weight: 800;
}

.filter-chip.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--rose));
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 28px rgba(190, 24, 93, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.movie-poster,
.rank-poster,
.detail-poster,
.channel-focus {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #fce7f3, #fff1f2);
}

.movie-poster img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.movie-type {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 5px 9px;
  color: #fff;
  background: rgba(219, 39, 119, 0.9);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
}

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

.movie-title {
  display: -webkit-box;
  min-height: 44px;
  overflow: hidden;
  color: #342835;
  font-size: 1rem;
  font-weight: 950;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-title:hover,
.rank-title:hover,
.detail-nav-links a:hover,
.mini-links a:hover {
  color: var(--brand);
}

.movie-meta {
  margin-top: 8px;
  color: var(--brand-dark);
  font-size: 0.82rem;
  font-weight: 800;
}

.movie-desc {
  display: -webkit-box;
  min-height: 60px;
  margin-top: 8px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.65;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

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

.movie-card .tag {
  min-height: 26px;
  padding: 0 9px;
  font-size: 0.72rem;
}

.ranking-section {
  padding-top: 20px;
}

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

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

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

.rank-item {
  position: relative;
  display: grid;
  grid-template-columns: 86px 52px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 126px;
  padding: 12px;
  border-radius: 24px;
}

.rank-poster {
  border-radius: 18px;
}

.rank-poster img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.rank-number {
  color: var(--brand);
  font-size: 1.6rem;
  font-weight: 950;
}

.rank-title {
  color: #352936;
  font-size: 1.05rem;
  font-weight: 950;
}

.rank-copy p {
  margin-top: 6px;
  color: var(--brand-dark);
  font-weight: 800;
}

.rank-copy span {
  display: -webkit-box;
  margin-top: 6px;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.6;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.center-action {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  margin-top: 28px;
  border-radius: 34px;
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 34px;
  align-items: center;
  padding: 58px;
  background:
    radial-gradient(circle at 85% 15%, rgba(251, 113, 133, 0.25), transparent 22rem),
    linear-gradient(135deg, #fff, #fff1f7);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.small-hero {
  display: block;
}

.page-hero h1 {
  color: #352936;
  font-size: clamp(2.2rem, 6vw, 4.8rem);
}

.page-hero p {
  max-width: 760px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.85;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
}

.channel-hero .breadcrumb {
  color: var(--muted);
}

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

.channel-focus {
  border-radius: 28px;
  box-shadow: 0 20px 50px rgba(190, 24, 93, 0.14);
}

.channel-focus img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.channel-focus strong,
.channel-focus span {
  display: block;
  padding: 0 18px;
  background: #fff;
}

.channel-focus strong {
  padding-top: 16px;
  color: #332734;
  font-size: 1.2rem;
  font-weight: 950;
}

.channel-focus span {
  padding-top: 8px;
  padding-bottom: 18px;
  color: var(--muted);
  line-height: 1.6;
}

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

.category-overview-card {
  min-height: 210px;
}

.mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.mini-links a {
  padding: 7px 10px;
  color: var(--brand-dark);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 800;
}

.detail-hero {
  min-height: 560px;
  color: #fff;
  background: #250716;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
}

.detail-backdrop img {
  height: 100%;
  object-fit: cover;
  filter: blur(18px) saturate(1.15);
  opacity: 0.46;
  transform: scale(1.08);
}

.detail-inner {
  position: relative;
  z-index: 2;
  padding: 56px 0;
}

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

.detail-poster {
  border-radius: 30px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
}

.detail-poster img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.detail-copy h1 {
  max-width: 840px;
}

.detail-meta,
.detail-one-line {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.06rem;
  line-height: 1.9;
}

.detail-copy .tag-row {
  margin-top: 18px;
}

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

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #14050d;
  box-shadow: var(--shadow);
}

.movie-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  color: #fff;
  background:
    radial-gradient(circle at 50% 45%, rgba(219, 39, 119, 0.45), transparent 14rem),
    rgba(15, 5, 11, 0.38);
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-icon {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  padding-left: 5px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--rose));
  border-radius: 999px;
  box-shadow: 0 20px 50px rgba(219, 39, 119, 0.36);
  font-size: 2.5rem;
}

.player-cover strong {
  font-size: 1.1rem;
}

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

.content-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 30px rgba(190, 24, 93, 0.08);
}

.content-card h2 {
  color: #352936;
  font-size: 1.35rem;
  font-weight: 950;
}

.content-card p {
  margin-top: 14px;
  color: #5f5261;
  line-height: 1.95;
}

.detail-nav-links {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.detail-nav-links a {
  padding: 18px;
  color: var(--brand-dark);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  font-weight: 900;
}

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

.site-footer {
  margin-top: 40px;
  padding: 36px 0;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--muted);
}

.footer-logo {
  font-size: 1.3rem;
}

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

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

  .hero-content {
    grid-template-columns: minmax(0, 1fr) 280px;
    padding: 46px;
  }

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

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

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

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

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

  .hero-content {
    grid-template-columns: 1fr;
    min-height: 720px;
    padding: 30px 24px 80px;
  }

  .hero-cover {
    max-width: 210px;
    transform: none;
  }

  .filter-panel,
  .page-hero,
  .detail-layout,
  .detail-content,
  .detail-nav-links {
    grid-template-columns: 1fr;
  }

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

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

  .page-hero {
    padding: 34px 24px;
    border-radius: 26px;
  }

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

  .rank-item {
    grid-template-columns: 76px 44px minmax(0, 1fr);
  }
}

@media (max-width: 520px) {
  .header-inner,
  .footer-inner,
  .section-block,
  .detail-inner,
  .page-hero,
  .home-hero {
    width: min(100% - 22px, 1180px);
  }

  .brand-text {
    font-size: 1.05rem;
  }

  .home-hero {
    margin-top: 14px;
  }

  .hero-copy h1,
  .hero-copy h2,
  .page-hero h1,
  .detail-copy h1 {
    font-size: 2.35rem;
  }

  .movie-grid,
  .related-grid {
    gap: 12px;
  }

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

  .rank-item {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .rank-number {
    position: absolute;
    left: 8px;
    top: 8px;
    padding: 3px 8px;
    color: #fff;
    background: var(--brand);
    border-radius: 999px;
    font-size: 0.8rem;
  }
}
