* {
  box-sizing: border-box;
}

:root {
  --rose: #f43f5e;
  --rose-dark: #e11d48;
  --pink: #ec4899;
  --orange: #fb923c;
  --slate: #0f172a;
  --muted: #64748b;
  --line: #e5e7eb;
  --soft: #f8fafc;
  --card: #ffffff;
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: #111827;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.topbar {
  max-width: 1280px;
  height: 68px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.brand-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  box-shadow: 0 10px 24px rgba(244, 63, 94, 0.35);
  font-size: 15px;
}

.brand-text {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.04em;
  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: 6px;
}

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

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

.header-search,
.mobile-search,
.catalog-filter {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-search input,
.mobile-search input,
.catalog-filter input {
  width: 220px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 11px 16px;
  outline: none;
  color: #111827;
  background: #ffffff;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.catalog-filter input:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.12);
}

.header-search button,
.mobile-search button,
.catalog-filter button {
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  color: #ffffff;
  background: var(--rose);
  cursor: pointer;
  font-weight: 800;
  transition: background 0.2s ease, transform 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.catalog-filter button:hover {
  background: var(--rose-dark);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #f3f4f6;
  cursor: pointer;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #111827;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  border-top: 1px solid #e5e7eb;
  padding: 14px 24px 20px;
  background: #ffffff;
}

.mobile-link {
  display: block;
  padding: 13px 0;
  font-weight: 800;
  color: #4b5563;
}

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

.hero-carousel {
  position: relative;
  height: 640px;
  overflow: hidden;
  background: var(--slate);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 900ms ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.06));
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(1180px, calc(100% - 48px));
  transform: translate(-50%, -42%);
  color: #ffffff;
}

.hero-content h1 {
  max-width: 760px;
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.hero-content p {
  max-width: 720px;
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.65;
}

.hero-kicker,
.page-kicker,
.panel-label {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--rose);
  font-weight: 900;
  font-size: 14px;
  margin-bottom: 18px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 18px;
}

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

.hero-tags span,
.tag-row span,
.tag-cloud span {
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  padding: 14px 30px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--rose);
  font-weight: 900;
  box-shadow: 0 16px 30px rgba(244, 63, 94, 0.32);
  transition: transform 0.2s ease, background 0.2s ease;
}

.hero-button:hover {
  transform: translateY(-2px);
  background: var(--rose-dark);
}

.hero-button.small {
  margin-top: 8px;
  padding: 12px 22px;
}

.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 34px;
  display: flex;
  justify-content: center;
  gap: 9px;
}

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

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

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

.inner-section {
  padding-top: 42px;
}

.white-section {
  background: #ffffff;
}

.soft-section {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

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

.section-head h2,
.feature-panel h2,
.side-feature h2,
.related-card h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -0.05em;
  color: #111827;
}

.section-head p,
.feature-panel p,
.page-hero p {
  margin: 8px 0 0;
  color: #64748b;
  line-height: 1.7;
}

.text-link {
  color: var(--rose);
  font-weight: 900;
}

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

.category-tile,
.category-overview {
  min-height: 170px;
  padding: 28px;
  color: #ffffff;
  border-radius: 24px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover,
.category-overview:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.18);
}

.category-tile span {
  display: block;
  font-size: 44px;
  margin-bottom: 12px;
}

.category-tile strong,
.category-overview .category-title {
  display: block;
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 8px;
}

.category-tile em,
.category-overview .category-desc {
  display: block;
  font-style: normal;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.65;
}

.g1 {
  background: linear-gradient(135deg, #fb923c, #ef4444);
}

.g2 {
  background: linear-gradient(135deg, #f43f5e, #ec4899);
}

.g3 {
  background: linear-gradient(135deg, #38bdf8, #06b6d4);
}

.g4 {
  background: linear-gradient(135deg, #a855f7, #ec4899);
}

.g5 {
  background: linear-gradient(135deg, #334155, #0f172a);
}

.g6 {
  background: linear-gradient(135deg, #22c55e, #14b8a6);
}

.g7 {
  background: linear-gradient(135deg, #f472b6, #fb7185);
}

.g8 {
  background: linear-gradient(135deg, #f59e0b, #84cc16);
}

.movie-grid {
  display: grid;
  gap: 24px;
}

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

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

.movie-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 46px rgba(15, 23, 42, 0.14);
}

.poster-frame {
  position: relative;
  display: block;
  height: 265px;
  overflow: hidden;
  background: #111827;
}

.movie-card.compact .poster-frame {
  height: 180px;
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.58));
  opacity: 0;
  transition: opacity 0.2s ease;
}

.movie-card:hover .poster-shade {
  opacity: 1;
}

.movie-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--rose);
  font-weight: 900;
  font-size: 13px;
}

.hover-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%) scale(0.85);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .hover-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.movie-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
}

.movie-info strong {
  color: #111827;
  font-size: 17px;
  line-height: 1.35;
  min-height: 46px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.movie-card:hover .movie-info strong {
  color: var(--rose);
}

.movie-info em {
  min-height: 46px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
  font-style: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #6b7280;
  font-size: 14px;
}

.tag-row span,
.tag-cloud span {
  background: #f1f5f9;
  color: #475569;
}

.split-section,
.split-rank {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 28px;
  align-items: start;
}

.feature-panel,
.rank-box,
.side-feature,
.detail-info,
.related-card,
.player-card {
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.feature-panel {
  min-height: 440px;
  padding: 42px;
  background: linear-gradient(135deg, #fff1f2, #fff7ed);
  border: 1px solid #ffe4e6;
}

.feature-panel .panel-label {
  color: #ffffff;
}

.rank-box {
  padding: 18px;
}

.rank-line {
  display: grid;
  grid-template-columns: 50px 76px minmax(0, 1fr) 56px;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border-radius: 18px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-line:hover {
  background: #f8fafc;
  transform: translateX(2px);
}

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

.rank-line img {
  width: 76px;
  height: 52px;
  object-fit: cover;
  border-radius: 12px;
}

.rank-copy {
  min-width: 0;
}

.rank-copy strong {
  display: block;
  color: #111827;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-copy em {
  display: block;
  color: #64748b;
  font-size: 13px;
  font-style: normal;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-score,
.score-pill {
  justify-self: end;
  border-radius: 999px;
  padding: 6px 10px;
  color: #a16207;
  background: #fef3c7;
  font-weight: 900;
}

.page-shell {
  padding-top: 68px;
}

.page-hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 82px 24px 48px;
}

.compact-hero {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.category-hero {
  margin-top: 38px;
  border-radius: 32px;
  color: #ffffff;
  box-shadow: var(--shadow);
}

.page-hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(42px, 6vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.06em;
}

.category-hero p,
.category-hero .page-kicker {
  color: #ffffff;
}

.category-hero .page-kicker {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.category-hero .catalog-filter {
  margin-top: 26px;
}

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

.category-overview {
  display: flex;
  flex-direction: column;
  min-height: 260px;
  position: relative;
  overflow: hidden;
}

.category-icon {
  font-size: 42px;
  margin-bottom: 12px;
}

.category-covers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: auto;
  padding-top: 18px;
}

.category-covers img {
  height: 66px;
  width: 100%;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.35);
}

.catalog-filter.main-filter {
  margin-top: 24px;
}

.catalog-filter.main-filter input,
.catalog-filter input.local-search {
  width: min(520px, 100%);
}

.empty-state {
  margin-top: 32px;
  padding: 30px;
  border-radius: 18px;
  background: #fff1f2;
  color: var(--rose);
  font-weight: 900;
  text-align: center;
}

.large-rank {
  max-height: none;
}

.side-feature {
  padding: 24px;
  position: sticky;
  top: 92px;
}

.side-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 20px;
}

.detail-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 96px 24px 76px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
  color: #64748b;
  font-weight: 800;
}

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

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

.watch-column {
  min-width: 0;
}

.player-card {
  overflow: hidden;
  margin-bottom: 24px;
  background: #000000;
}

.player-shell {
  position: relative;
  background: #000000;
  aspect-ratio: 16 / 9;
}

.movie-video {
  width: 100%;
  height: 100%;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: #000000;
  cursor: pointer;
  transition: opacity 0.22s ease;
}

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

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

.player-dim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.64));
}

.big-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 86px;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(244, 63, 94, 0.9);
  box-shadow: 0 20px 45px rgba(244, 63, 94, 0.34);
  font-size: 34px;
}

.detail-info {
  padding: 34px;
}

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

.detail-badge {
  position: static;
  display: inline-flex;
  margin-bottom: 14px;
  color: #ffffff;
  background: var(--rose);
}

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

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 22px;
  color: #64748b;
}

.detail-meta span {
  border-radius: 999px;
  padding: 7px 12px;
  background: #f1f5f9;
}

.text-block,
.tag-cloud {
  border-top: 1px solid #e5e7eb;
  padding-top: 24px;
  margin-top: 24px;
}

.text-block h2,
.tag-cloud h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.text-block p {
  margin: 0 0 14px;
  color: #4b5563;
  line-height: 1.9;
  font-size: 16px;
}

.lead-text {
  color: #111827 !important;
  font-weight: 800;
}

.related-card {
  padding: 24px;
  position: sticky;
  top: 92px;
}

.related-card h2 {
  font-size: 24px;
  margin-bottom: 18px;
}

.related-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.related-item {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  transition: background 0.2s ease;
}

.related-item:hover {
  background: #f8fafc;
}

.related-item img {
  width: 116px;
  height: 74px;
  object-fit: cover;
  border-radius: 13px;
}

.related-item strong {
  display: block;
  color: #111827;
  line-height: 1.4;
  font-weight: 900;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-item em {
  display: block;
  margin-top: 6px;
  color: #64748b;
  font-style: normal;
  font-size: 13px;
}

.site-footer {
  background: linear-gradient(180deg, #f8fafc, #eef2f7);
  border-top: 1px solid #e5e7eb;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 50px 24px 34px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 36px;
}

.footer-brand p {
  max-width: 520px;
  color: #64748b;
  line-height: 1.75;
}

.footer-column h3 {
  margin: 0 0 14px;
  font-size: 17px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column li {
  margin: 9px 0;
}

.footer-column a {
  color: #64748b;
}

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

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 24px 32px;
  color: #94a3b8;
  border-top: 1px solid #e5e7eb;
}

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

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

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

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

  .nav-toggle {
    display: block;
  }

  .site-header.is-open .mobile-nav {
    display: block;
  }

  .hero-carousel {
    height: 590px;
  }

  .hero-content {
    transform: translate(-50%, -38%);
  }

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

  .related-card,
  .side-feature {
    position: static;
  }
}

@media (max-width: 700px) {
  .topbar {
    height: 64px;
    padding: 0 16px;
  }

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

  .hero-carousel {
    height: 560px;
  }

  .hero-content {
    width: calc(100% - 32px);
  }

  .hero-meta,
  .detail-meta {
    gap: 8px;
  }

  .section,
  .page-hero,
  .detail-page {
    padding-left: 16px;
    padding-right: 16px;
  }

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

  .category-grid,
  .category-overview-grid,
  .catalog-grid,
  .home-grid,
  .side-card-grid {
    grid-template-columns: 1fr;
  }

  .poster-frame {
    height: 310px;
  }

  .rank-line {
    grid-template-columns: 38px 62px minmax(0, 1fr);
  }

  .rank-score {
    display: none;
  }

  .catalog-filter,
  .mobile-search {
    align-items: stretch;
    flex-direction: column;
  }

  .catalog-filter input,
  .mobile-search input,
  .catalog-filter.main-filter input,
  .catalog-filter input.local-search {
    width: 100%;
  }

  .title-row {
    flex-direction: column;
  }

  .detail-info {
    padding: 24px;
  }

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

  .related-item img {
    width: 98px;
    height: 66px;
  }
}
