:root {
  color-scheme: light;
  --rose-50: #fff1f2;
  --rose-100: #ffe4e6;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --rose-700: #be123c;
  --rose-900: #881337;
  --pink-800: #9d174d;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --text: #111827;
  --muted: #6b7280;
  --panel: #ffffff;
  --radius: 24px;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
  --soft-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(1280px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose-600), #fb7185);
  border-radius: 14px;
  box-shadow: 0 14px 28px rgba(244, 63, 94, 0.32);
}

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

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

.desktop-nav a,
.mobile-nav a {
  padding: 10px 14px;
  color: var(--gray-700);
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

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

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: var(--rose-50);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--rose-700);
  border-radius: 99px;
}

.mobile-nav {
  display: none;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 10px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: var(--soft-shadow);
}

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

.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--rose-900), var(--pink-800), var(--rose-700));
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 20%, rgba(244, 63, 94, 0.28), transparent 32%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.54) 48%, rgba(0, 0, 0, 0.08) 100%);
}

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

.hero-content h1 {
  max-width: 760px;
  margin: 18px 0;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.hero-content p {
  max-width: 680px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.8;
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  color: var(--rose-700);
  background: var(--rose-50);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 650;
}

.hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  color: #ffffff;
  background: var(--rose-500);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 750;
  box-shadow: 0 12px 28px rgba(244, 63, 94, 0.35);
}

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

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

.primary-btn {
  color: #ffffff;
  background: var(--rose-500);
}

.primary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-2px);
}

.primary-btn:hover {
  background: var(--rose-600);
}

.ghost-btn {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 48px;
  height: 48px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.24);
  font-size: 34px;
  line-height: 1;
  transform: translateY(-50%);
  backdrop-filter: blur(10px);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 26px;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
}

.hero-dot.is-active {
  width: 28px;
  border-radius: 99px;
  background: #ffffff;
}

.quick-search {
  width: min(1180px, calc(100% - 32px));
  margin: -56px auto 0;
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 24px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.search-panel {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: #ffffff;
  border: 1px solid var(--gray-200);
  border-radius: 18px;
}

.search-panel input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  color: var(--gray-900);
  border: 0;
  outline: 0;
  background: transparent;
}

.search-panel button {
  min-height: 42px;
  padding: 0 18px;
  color: #ffffff;
  border: 0;
  border-radius: 14px;
  background: var(--rose-500);
  white-space: nowrap;
}

.content-section {
  width: min(1280px, calc(100% - 32px));
  margin: 72px auto;
}

.section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 24px;
  align-items: end;
  margin-bottom: 28px;
}

.section-head.compact {
  display: block;
  margin: 0;
}

.eyebrow {
  color: var(--rose-600);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-head h2,
.page-hero h1,
.detail-info h1,
.detail-block h2,
.category-panel h2,
.archive-group h2 {
  margin: 6px 0 0;
  color: var(--gray-900);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 46px);
}

.section-head p,
.page-hero p,
.category-panel p,
.site-footer p {
  color: var(--muted);
  line-height: 1.75;
}

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

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

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

.movie-card {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 22px;
  box-shadow: var(--soft-shadow);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 50px rgba(15, 23, 42, 0.16);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, var(--rose-100), var(--gray-100));
}

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

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

.poster-play,
.rank-badge {
  position: absolute;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  border-radius: 999px;
}

.poster-play {
  left: 50%;
  top: 50%;
  width: 48px;
  height: 48px;
  background: rgba(244, 63, 94, 0.88);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.85);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

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

.rank-badge {
  left: 12px;
  top: 12px;
  min-width: 34px;
  height: 34px;
  padding: 0 9px;
  background: var(--rose-500);
  font-weight: 900;
}

.movie-body {
  padding: 16px;
}

.movie-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.movie-body h3 {
  margin: 8px 0 6px;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 850;
}

.movie-body p {
  min-height: 50px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.rose-band {
  width: 100%;
  max-width: none;
  padding: 70px max(16px, calc((100% - 1280px) / 2));
  background:
    radial-gradient(circle at 15% 20%, rgba(244, 63, 94, 0.12), transparent 26%),
    linear-gradient(135deg, #fff1f2, #ffffff 58%, #ffe4e6);
}

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

.category-tile {
  display: grid;
  min-height: 220px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(14px);
  transition: transform 0.22s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
}

.category-index {
  color: var(--rose-600);
  font-size: 13px;
  font-weight: 900;
}

.category-tile strong {
  margin-top: 14px;
  font-size: 24px;
}

.category-tile p {
  color: var(--muted);
  line-height: 1.7;
}

.category-tile div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.category-tile div a {
  padding: 5px 9px;
  color: var(--rose-700);
  background: var(--rose-50);
  border-radius: 999px;
  font-size: 13px;
}

.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 190px;
  gap: 18px;
  overflow-x: auto;
  padding: 4px 2px 22px;
  scroll-snap-type: x mandatory;
}

.rail .movie-card {
  scroll-snap-align: start;
}

.page-main,
.detail-main {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.page-hero {
  margin-top: 34px;
  padding: 58px;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 22%, rgba(255, 255, 255, 0.3), transparent 26%),
    linear-gradient(135deg, var(--rose-900), var(--pink-800), var(--rose-600));
  border-radius: 32px;
  color: #ffffff;
  box-shadow: var(--shadow);
}

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

.page-hero p {
  max-width: 820px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.page-hero .eyebrow {
  color: #ffe4e6;
}

.in-hero,
.ranking-search {
  max-width: 760px;
  margin-top: 24px;
}

.category-list {
  display: grid;
  gap: 22px;
}

.category-panel {
  padding: 24px;
  background: #ffffff;
  border: 1px solid var(--gray-200);
  border-radius: 26px;
  box-shadow: var(--soft-shadow);
}

.category-panel-head {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 18px;
  align-items: center;
}

.category-panel-head > span {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  color: #ffffff;
  background: var(--rose-500);
  border-radius: 18px;
  font-weight: 900;
}

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

.compact-link {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 10px;
  background: var(--gray-50);
  border-radius: 18px;
}

.compact-link img {
  width: 62px;
  height: 86px;
  object-fit: cover;
  border-radius: 14px;
}

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

.compact-link strong {
  margin-bottom: 6px;
  font-size: 15px;
}

.compact-link em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 62px 82px 1fr 120px;
  gap: 16px;
  align-items: center;
  padding: 14px;
}

.rank-row:hover {
  transform: translateY(-2px);
}

.rank-num {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose-500), var(--rose-700));
  border-radius: 18px;
  font-size: 18px;
  font-weight: 900;
}

.rank-poster img {
  width: 82px;
  height: 116px;
  object-fit: cover;
  border-radius: 16px;
}

.rank-info h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.rank-info p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.7;
}

.heat-box {
  text-align: right;
}

.heat-box strong {
  display: block;
  color: var(--rose-600);
  font-size: 28px;
  line-height: 1;
}

.heat-box span {
  color: var(--muted);
  font-size: 13px;
}

.archive-list {
  display: grid;
  gap: 28px;
}

.archive-group {
  padding: 24px;
  background: #ffffff;
  border: 1px solid var(--gray-200);
  border-radius: 26px;
  box-shadow: var(--soft-shadow);
}

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

.archive-links a {
  min-width: 0;
  padding: 12px;
  background: var(--gray-50);
  border-radius: 14px;
  font-weight: 750;
}

.archive-links a span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--rose-600);
  font-weight: 750;
}

.detail-hero {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 34px;
  padding: 34px;
  background: #ffffff;
  border: 1px solid var(--gray-200);
  border-radius: 32px;
  box-shadow: var(--shadow);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 24px;
}

.detail-info h1 {
  margin-top: 18px;
  font-size: clamp(36px, 5vw, 62px);
}

.lead {
  max-width: 820px;
  color: var(--gray-700);
  font-size: 19px;
  line-height: 1.8;
}

.detail-meta {
  margin: 18px 0;
}

.detail-meta span {
  padding: 8px 10px;
  background: var(--gray-100);
  border-radius: 999px;
}

.tag-row.large {
  margin: 0 0 24px;
}

.player-section {
  margin: 34px 0;
}

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

.movie-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.play-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.32), rgba(136, 19, 55, 0.36));
}

.play-cover span {
  display: grid;
  width: 90px;
  height: 90px;
  place-items: center;
  color: #ffffff;
  background: var(--rose-500);
  border-radius: 50%;
  font-size: 34px;
  box-shadow: 0 18px 38px rgba(244, 63, 94, 0.34);
}

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

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

.detail-block {
  padding: 28px;
  background: #ffffff;
  border: 1px solid var(--gray-200);
  border-radius: 28px;
  box-shadow: var(--soft-shadow);
}

.detail-block h2 {
  margin-top: 0;
  font-size: 28px;
}

.detail-block p {
  color: var(--gray-700);
  font-size: 17px;
  line-height: 2;
}

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

.site-footer {
  margin-top: 84px;
  padding: 36px 0;
  background: #111827;
  color: #ffffff;
}

.footer-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}

.site-footer p {
  max-width: 680px;
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
}

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

@media (max-width: 1180px) {
  .card-grid,
  .hot-grid,
  .related-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

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

  .menu-toggle {
    display: block;
  }

  .hero {
    height: 540px;
  }

  .hero-arrow {
    display: none;
  }

  .quick-search {
    grid-template-columns: 1fr;
    margin-top: 18px;
  }

  .section-head {
    grid-template-columns: 1fr;
  }

  .card-grid,
  .hot-grid,
  .related-grid,
  .category-grid,
  .compact-list,
  .archive-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .category-panel-head,
  .rank-row,
  .detail-hero {
    grid-template-columns: 1fr;
  }

  .rank-poster img {
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 3;
  }

  .heat-box {
    text-align: left;
  }

  .footer-inner {
    display: grid;
  }
}

@media (max-width: 540px) {
  .brand-text {
    font-size: 18px;
  }

  .hero-content h1 {
    font-size: 40px;
  }

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

  .card-grid,
  .hot-grid,
  .related-grid,
  .category-grid,
  .compact-list,
  .archive-links {
    grid-template-columns: 1fr;
  }

  .search-panel {
    display: grid;
  }

  .content-section {
    margin: 48px auto;
  }

  .detail-hero,
  .detail-block {
    padding: 20px;
    border-radius: 24px;
  }
}
