:root {
  --rose-50: #fff1f2;
  --rose-100: #ffe4e6;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --rose-700: #be123c;
  --rose-900: #881337;
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-500: #f59e0b;
  --amber-700: #b45309;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow-soft: 0 10px 25px rgba(17, 24, 39, 0.08);
  --shadow-strong: 0 20px 40px rgba(17, 24, 39, 0.16);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
  color: var(--gray-800);
  background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 42%, var(--white) 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

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

.nav-shell {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

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

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--white);
  font-size: 14px;
  background: linear-gradient(135deg, var(--rose-600), var(--amber-500));
  box-shadow: 0 10px 22px rgba(225, 29, 72, 0.28);
}

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

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--gray-700);
  font-weight: 650;
}

.nav-link {
  padding: 9px 0;
  transition: color 0.25s ease;
}

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

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--gray-100);
  cursor: pointer;
}

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

.mobile-nav {
  display: none;
  padding: 10px 16px 18px;
  border-top: 1px solid var(--gray-200);
  background: var(--white);
}

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

.mobile-link {
  padding: 12px 6px;
  color: var(--gray-700);
  font-weight: 650;
}

.hero {
  position: relative;
  height: 70vh;
  min-height: 520px;
  overflow: hidden;
  background: linear-gradient(110deg, var(--rose-900), #7c2d12);
}

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

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

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, var(--rose-900), var(--amber-700));
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.54) 48%, rgba(0, 0, 0, 0.12));
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-copy {
  width: min(670px, 92%);
  color: var(--white);
}

.hero-pill,
.sub-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 14px;
  border-radius: 999px;
  color: var(--white);
  background: var(--rose-600);
  font-size: 14px;
  font-weight: 750;
  box-shadow: 0 10px 24px rgba(225, 29, 72, 0.28);
}

.hero h1 {
  margin: 18px 0 18px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.8;
}

.hero-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.hero-meta span,
.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

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

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 12px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-btn {
  color: var(--white);
  background: var(--rose-600);
  box-shadow: 0 14px 28px rgba(225, 29, 72, 0.35);
}

.primary-btn:hover {
  transform: translateY(-2px);
  background: var(--rose-700);
  box-shadow: 0 18px 36px rgba(225, 29, 72, 0.42);
}

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

.ghost-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.22);
}

.ghost-btn.dark {
  color: var(--gray-800);
  border-color: rgba(17, 24, 39, 0.1);
  background: rgba(255, 255, 255, 0.72);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  font-size: 34px;
  line-height: 1;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.04);
}

.hero-prev {
  left: 18px;
  transform: translateY(-50%);
}

.hero-next {
  right: 18px;
  transform: translateY(-50%);
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 5;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

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

.hero-dot.is-active {
  width: 34px;
  background: var(--white);
}

.content-section {
  padding: 72px 0;
}

.soft-section {
  background: linear-gradient(90deg, var(--amber-50), var(--rose-50));
}

.gray-section {
  background: var(--gray-50);
}

.warm-section {
  background: linear-gradient(135deg, var(--rose-100), var(--amber-50), #fff7ed);
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  color: var(--gray-800);
}

.section-heading p {
  margin: 9px 0 0;
  color: var(--gray-600);
  line-height: 1.7;
}

.section-more {
  flex: 0 0 auto;
  color: var(--rose-600);
  font-weight: 800;
}

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

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

.movie-card {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

.poster-wrap {
  position: relative;
  display: block;
  height: 270px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--rose-900), var(--amber-700));
}

.compact-card .poster-wrap {
  height: 210px;
}

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

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

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

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

.card-badge,
.year-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
}

.card-badge {
  top: 12px;
  right: 12px;
  background: var(--rose-600);
}

.year-badge {
  left: 12px;
  bottom: 12px;
  background: rgba(17, 24, 39, 0.72);
  backdrop-filter: blur(8px);
}

.rank-badge {
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, var(--amber-500), var(--rose-600));
}

.card-body {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.card-body strong {
  color: var(--gray-800);
  font-size: 19px;
  line-height: 1.35;
  transition: color 0.25s ease;
}

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

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

.card-meta {
  color: var(--gray-500);
  font-size: 13px;
  line-height: 1.55;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

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

.category-tile {
  display: grid;
  gap: 10px;
  min-height: 150px;
  padding: 26px;
  border-radius: var(--radius);
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-500), var(--amber-500));
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-strong);
  filter: saturate(1.05);
}

.category-tile span {
  font-size: 24px;
  font-weight: 900;
}

.category-tile small {
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.65;
}

.sub-hero {
  padding: 76px 0;
  background: linear-gradient(135deg, var(--rose-50), var(--amber-50));
}

.sub-hero h1 {
  margin: 18px 0 12px;
  color: var(--gray-900);
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing: -0.035em;
}

.sub-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--gray-600);
  font-size: 18px;
  line-height: 1.8;
}

.filter-panel {
  padding: 30px 0;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}

.filter-inner {
  display: grid;
  grid-template-columns: 1fr minmax(360px, 620px);
  gap: 24px;
  align-items: center;
}

.filter-inner h2 {
  margin: 0 0 8px;
  color: var(--gray-800);
  font-size: 24px;
}

.filter-inner p {
  margin: 0;
  color: var(--gray-600);
  line-height: 1.7;
}

.filter-controls {
  display: grid;
  grid-template-columns: 1fr 150px 150px;
  gap: 12px;
}

.filter-controls input,
.filter-controls select {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  color: var(--gray-800);
  background: var(--gray-50);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.empty-state {
  display: none;
  margin: 34px 0 0;
  padding: 24px;
  border-radius: var(--radius);
  color: var(--gray-600);
  text-align: center;
  background: var(--gray-50);
}

.empty-state.is-visible {
  display: block;
}

.category-preview-stack {
  display: grid;
  gap: 54px;
}

.compact-heading {
  margin-bottom: 22px;
}

.detail-head {
  padding: 22px 0;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  color: var(--gray-600);
  font-size: 14px;
}

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

.detail-section {
  padding: 42px 0 72px;
}

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

.detail-main {
  min-width: 0;
}

.player-card,
.detail-article,
.side-card {
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.player-card {
  overflow: hidden;
  background: #000;
}

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

.player-stage video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: var(--white);
  background: #000;
  cursor: pointer;
  overflow: hidden;
}

.player-cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
}

.player-mask {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(225, 29, 72, 0.22), rgba(0, 0, 0, 0.72));
}

.play-orb {
  position: relative;
  z-index: 2;
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--white);
  font-size: 28px;
  background: linear-gradient(135deg, var(--rose-600), var(--amber-500));
  box-shadow: 0 18px 44px rgba(225, 29, 72, 0.46);
}

.play-text {
  position: relative;
  z-index: 2;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.detail-article {
  margin-top: 28px;
  padding: 30px;
}

.detail-article h1 {
  margin: 0 0 16px;
  color: var(--gray-900);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.15;
}

.detail-article .detail-meta span {
  color: var(--gray-700);
  background: var(--gray-100);
  border-color: var(--gray-200);
}

.story-block {
  margin-top: 30px;
}

.story-block h2,
.info-card h2 {
  margin: 0 0 12px;
  color: var(--gray-800);
  font-size: 22px;
}

.story-block p {
  margin: 0;
  color: var(--gray-700);
  line-height: 1.9;
  white-space: pre-line;
}

.highlight-block,
.review-block {
  padding: 22px;
  border-radius: 16px;
  background: linear-gradient(90deg, var(--rose-50), var(--amber-50));
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-list span {
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--gray-700);
  background: var(--gray-100);
  font-size: 14px;
}

.detail-aside {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 18px;
}

.poster-card {
  overflow: hidden;
}

.poster-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: linear-gradient(135deg, var(--rose-900), var(--amber-700));
}

.info-card {
  padding: 24px;
}

.info-card dl {
  margin: 0;
}

.info-card dt {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--gray-200);
  color: var(--gray-500);
  font-size: 13px;
  font-weight: 800;
}

.info-card dt:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.info-card dd {
  margin: 7px 0 0;
  color: var(--gray-800);
  line-height: 1.65;
}

.info-card dd a {
  color: var(--rose-600);
  font-weight: 800;
}

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

.site-footer {
  background: linear-gradient(180deg, var(--gray-50), var(--gray-100));
  border-top: 1px solid var(--gray-200);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 36px;
  padding: 46px 0;
}

.site-footer h2,
.site-footer h3 {
  margin: 0 0 14px;
  color: var(--gray-800);
}

.site-footer p {
  margin: 0;
  color: var(--gray-600);
  line-height: 1.75;
}

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

.footer-links a {
  color: var(--gray-600);
}

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

.footer-bottom {
  padding: 18px 16px;
  color: var(--gray-600);
  text-align: center;
  border-top: 1px solid var(--gray-200);
}

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

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

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

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

  .desktop-nav {
    gap: 12px;
    font-size: 14px;
  }
}

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

  .menu-toggle {
    display: block;
  }

  .hero {
    min-height: 560px;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.45));
  }

  .hero-arrow {
    display: none;
  }

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

  .section-heading {
    align-items: start;
  }

  .filter-controls {
    grid-template-columns: 1fr;
  }

  .detail-aside {
    position: static;
  }

  .poster-card {
    display: none;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

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

  .hero h1 {
    font-size: 38px;
  }

  .content-section {
    padding: 52px 0;
  }

  .movie-grid,
  .related-grid,
  .category-grid,
  .category-grid.standalone {
    grid-template-columns: 1fr;
  }

  .poster-wrap,
  .compact-card .poster-wrap {
    height: 240px;
  }

  .detail-article {
    padding: 22px;
  }

  .play-orb {
    width: 68px;
    height: 68px;
  }
}
