:root {
  --rose-50: #fff1f2;
  --rose-100: #ffe4e6;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --rose-700: #be123c;
  --green-500: #22c55e;
  --amber-400: #fbbf24;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #f9fafb;
  --panel: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: linear-gradient(180deg, var(--rose-50) 0%, #ffffff 38%, #ffffff 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 35px rgba(15, 23, 42, 0.06);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  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;
  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-600), #fb7185);
  box-shadow: 0 14px 28px rgba(225, 29, 72, 0.3);
}

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

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: #374151;
  font-weight: 650;
}

.desktop-nav a,
.mobile-nav a,
.footer-links a {
  transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover,
.footer-links a:hover {
  color: var(--rose-600);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  color: var(--rose-700);
  background: var(--rose-100);
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

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

.mobile-nav a {
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--soft);
  font-weight: 650;
}

.hero {
  position: relative;
  height: 70vh;
  min-height: 560px;
  overflow: hidden;
  color: #ffffff;
  background: #111827;
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  filter: saturate(1.08);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 20%, rgba(244, 63, 94, 0.5), transparent 28%),
    linear-gradient(90deg, rgba(17, 24, 39, 0.88), rgba(17, 24, 39, 0.45) 48%, rgba(17, 24, 39, 0.8)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.72));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #fff1f2;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
  font-size: 0.9rem;
  font-weight: 750;
}

.hero h1,
.page-hero h1,
.watch-info h1 {
  margin: 0;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: -0.07em;
}

.hero h2 {
  margin: 0;
  max-width: 880px;
  font-size: clamp(1.8rem, 4vw, 3.7rem);
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.hero p {
  max-width: 700px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 2vw, 1.35rem);
}

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

.primary-button,
.ghost-button,
.section-more,
.full-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: #ffffff;
  background: var(--rose-600);
  box-shadow: 0 16px 34px rgba(225, 29, 72, 0.34);
}

.primary-button:hover,
.ghost-button:hover,
.section-more:hover,
.full-button:hover {
  transform: translateY(-2px);
}

.ghost-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(14px);
}

.ghost-button.light {
  color: var(--rose-700);
  background: #ffffff;
  border-color: rgba(255, 255, 255, 0.55);
}

.full,
.full-button {
  width: 100%;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 120px;
  z-index: 4;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 36px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
}

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

.hero-search {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 5;
  width: min(760px, calc(100% - 32px));
  min-height: 64px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  padding: 8px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-search input,
.library-filter input,
.library-filter select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0 16px;
  outline: none;
  color: var(--ink);
  background: #ffffff;
}

.hero-search input:focus,
.library-filter input:focus,
.library-filter select:focus {
  border-color: var(--rose-500);
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.14);
}

.hero-search button {
  min-width: 108px;
  border: 0;
  border-radius: 18px;
  color: #ffffff;
  background: var(--rose-600);
  font-weight: 850;
}

.stats-strip,
.section-block,
.split-section,
.search-panel,
.page-main,
.detail-main,
.ranking-list {
  width: min(1180px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.stats-strip {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.stats-strip div {
  padding: 22px;
  border: 1px solid rgba(244, 63, 94, 0.14);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.stats-strip strong {
  display: block;
  color: var(--rose-600);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  line-height: 1;
}

.stats-strip span {
  color: var(--muted);
  font-weight: 700;
}

.section-block,
.split-section,
.search-panel {
  padding: 58px 0 0;
}

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

.section-head.inside {
  margin-bottom: 20px;
}

.section-head.narrow {
  margin-bottom: 18px;
}

.section-head h2,
.rank-panel h2,
.detail-article h2,
.side-card h2 {
  margin: 0;
  font-size: clamp(1.55rem, 4vw, 2.35rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-head p,
.rank-panel p,
.page-hero p,
.detail-article p,
.category-card-large p {
  margin: 8px 0 0;
  color: var(--muted);
}

.section-more {
  color: var(--rose-700);
  background: var(--rose-100);
}

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

.category-tile {
  padding: 22px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-tile strong {
  display: block;
  font-size: 1.22rem;
}

.category-tile span {
  color: var(--muted);
}

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

.compact-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #ffe4e6, #ffffff);
}

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

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

.play-dot {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(225, 29, 72, 0.92);
  box-shadow: 0 14px 24px rgba(225, 29, 72, 0.35);
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 3;
  min-width: 38px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: var(--rose-600);
  font-weight: 900;
}

.card-body {
  padding: 16px;
}

.meta-line,
.detail-meta,
.small-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 650;
}

.meta-line span,
.detail-meta span {
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--soft);
}

.card-body h3 {
  margin: 10px 0 6px;
  font-size: 1.08rem;
  line-height: 1.25;
}

.card-body p {
  margin: 0;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.chip-row a,
.chip-row span,
.tag-cloud span {
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--rose-700);
  background: var(--rose-50);
  font-size: 0.82rem;
  font-weight: 750;
}

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

.rank-panel {
  position: sticky;
  top: 94px;
  padding: 24px;
  border-radius: 28px;
  background: #111827;
  color: #ffffff;
  box-shadow: var(--shadow);
}

.rank-panel p {
  color: rgba(255, 255, 255, 0.72);
}

.rank-list {
  display: grid;
  gap: 8px;
  margin: 20px 0;
}

.rank-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 8px 12px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
}

.rank-row:hover {
  background: rgba(255, 255, 255, 0.14);
}

.rank-num {
  grid-row: span 2;
  color: #fb7185;
  font-weight: 950;
  font-size: 1.2rem;
}

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

.rank-info {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.86rem;
}

.search-panel[hidden] {
  display: none;
}

.search-results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.search-result {
  padding: 16px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.search-result strong {
  display: block;
  margin-bottom: 4px;
}

.search-result span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.page-main,
.detail-main {
  padding-bottom: 70px;
}

.page-hero {
  margin: 34px auto 0;
  padding: 48px;
  border-radius: 34px;
  color: #ffffff;
  background:
    radial-gradient(circle at 75% 0%, rgba(255, 255, 255, 0.2), transparent 28%),
    linear-gradient(135deg, var(--rose-700), var(--rose-500));
  box-shadow: var(--shadow);
}

.simple-hero .eyebrow,
.category-hero .eyebrow {
  margin-bottom: 12px;
}

.category-large-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.category-card-large {
  padding: 24px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.category-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--ink);
}

.category-title span {
  font-size: 1.3rem;
  font-weight: 900;
}

.category-title strong {
  min-width: 52px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: var(--rose-600);
}

.mini-list {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.mini-link {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--soft);
}

.mini-link span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 750;
}

.mini-link small {
  flex: 0 0 auto;
  color: var(--muted);
}

.library-filter {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 12px;
  max-width: 780px;
  margin-top: 22px;
}

.library-filter input,
.library-filter select {
  min-height: 52px;
}

.ranking-list {
  display: grid;
  gap: 16px;
  margin-top: 34px;
}

.ranking-card {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 20px;
  padding: 18px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.ranking-poster {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 2 / 3;
  background: var(--rose-100);
}

.ranking-poster span {
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 2;
  padding: 4px 8px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--rose-600);
  font-size: 0.8rem;
  font-weight: 900;
}

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

.ranking-card h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.ranking-card p {
  margin: 0 0 12px;
  color: var(--muted);
}

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

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

.watch-section {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
  gap: 28px;
  align-items: stretch;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #050816;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
  aspect-ratio: 16 / 9;
}

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

.play-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(5, 8, 22, 0.2), rgba(5, 8, 22, 0.72));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-circle {
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: var(--rose-600);
  box-shadow: 0 18px 35px rgba(225, 29, 72, 0.42);
  font-size: 1.6rem;
}

.play-layer strong {
  max-width: min(620px, calc(100% - 44px));
  text-align: center;
  font-size: clamp(1.2rem, 3vw, 2.1rem);
}

.play-layer small {
  color: rgba(255, 255, 255, 0.78);
}

.watch-info {
  padding: 30px;
  border-radius: 30px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.watch-info .eyebrow {
  color: var(--rose-700);
  background: var(--rose-50);
  border-color: var(--rose-100);
}

.watch-info h1 {
  margin-top: 18px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  color: var(--ink);
}

.lead-text {
  margin: 16px 0;
  color: #374151;
  font-size: 1.08rem;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
  margin-top: 34px;
}

.detail-article,
.side-card {
  padding: 28px;
  border-radius: 30px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.detail-article h2 + p {
  margin-bottom: 24px;
}

.detail-article p {
  color: #374151;
  font-size: 1.03rem;
}

.side-card {
  display: grid;
  gap: 14px;
  align-content: start;
}

.side-card img {
  width: 100%;
  border-radius: 22px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: var(--rose-100);
}

.related-block {
  width: 100%;
  padding-top: 40px;
}

.site-footer {
  margin-top: 40px;
  color: #d1d5db;
  background: #111827;
}

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

.footer-brand {
  color: #ffffff;
  font-size: 1.25rem;
}

.site-footer p {
  max-width: 430px;
  color: #9ca3af;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: #ffffff;
}

.footer-links {
  display: grid;
  gap: 9px;
}

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

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

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

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

  .rank-panel {
    position: static;
  }

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

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

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

  .menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero {
    min-height: 640px;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 14vw, 3.2rem);
  }

  .hero h2 {
    font-size: clamp(1.6rem, 10vw, 2.45rem);
  }

  .hero-dots {
    bottom: 136px;
  }

  .hero-search,
  .library-filter {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .hero-search {
    display: grid;
  }

  .hero-search button {
    min-height: 48px;
  }

  .stats-strip,
  .movie-grid,
  .compact-grid,
  .category-grid,
  .category-large-grid,
  .search-results,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-hero,
  .watch-info,
  .detail-article,
  .side-card {
    padding: 24px;
    border-radius: 24px;
  }

  .ranking-card {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 14px;
  }

  .mini-link {
    display: grid;
  }
}
