
:root {
  --rose-50: #fff1f2;
  --rose-100: #ffe4e6;
  --rose-400: #fb7185;
  --rose-500: #f43f5e;
  --orange-50: #fff7ed;
  --orange-400: #fb923c;
  --orange-500: #f97316;
  --pink-50: #fdf2f8;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --shadow-soft: 0 14px 35px rgba(244, 63, 94, 0.14);
  --shadow-card: 0 10px 28px rgba(17, 24, 39, 0.10);
  --gradient-main: linear-gradient(135deg, var(--rose-500), var(--orange-500));
  --gradient-page: linear-gradient(135deg, var(--rose-50), var(--orange-50) 52%, var(--pink-50));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--gray-800);
  background: var(--gradient-page);
  min-height: 100vh;
}

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

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

button,
input {
  font: inherit;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, rgba(255, 241, 242, 0.95), rgba(255, 247, 237, 0.95));
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
}

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

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

.brand-icon {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose-400), var(--orange-400));
  box-shadow: 0 10px 22px rgba(244, 63, 94, 0.32);
}

.brand-text {
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  background: linear-gradient(90deg, var(--rose-500), var(--orange-500));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

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

.nav-link,
.mobile-link {
  color: var(--gray-700);
  font-weight: 650;
  border-radius: 999px;
  transition: 0.2s ease;
}

.nav-link {
  padding: 10px 14px;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: var(--rose-500);
  background: rgba(255, 255, 255, 0.74);
}

.header-search {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 220px;
}

.header-search input,
.mobile-search input,
.filter-search input {
  width: 100%;
  border: 1px solid rgba(156, 163, 175, 0.38);
  border-radius: 999px;
  outline: none;
  background: rgba(255, 255, 255, 0.88);
  transition: 0.2s ease;
}

.header-search input {
  padding: 10px 42px 10px 16px;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-search input:focus {
  border-color: var(--rose-400);
  box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.18);
}

.header-search button {
  position: absolute;
  right: 6px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: var(--rose-500);
  background: transparent;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  color: var(--gray-800);
}

.mobile-panel {
  display: none;
  border-top: 1px solid rgba(229, 231, 235, 0.8);
  padding: 14px 16px 18px;
}

.mobile-panel.is-open {
  display: block;
}

.mobile-search {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.mobile-search input {
  padding: 10px 14px;
}

.mobile-search button {
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: var(--gradient-main);
  padding: 0 18px;
}

.mobile-nav {
  display: grid;
  gap: 8px;
}

.mobile-link {
  padding: 12px 14px;
}

.hero {
  position: relative;
  height: min(72vh, 640px);
  min-height: 500px;
  overflow: hidden;
  background: var(--gray-900);
}

.hero-track,
.hero-slide {
  position: absolute;
  inset: 0;
}

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

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

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(1.05);
}

.hero-slide.is-active .hero-image {
  animation: heroZoom 8s ease forwards;
}

@keyframes heroZoom {
  from {
    transform: scale(1.04);
  }
  to {
    transform: scale(1.12);
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.44) 48%, rgba(0, 0, 0, 0.18));
}

.hero-content {
  position: absolute;
  left: 50%;
  bottom: 72px;
  transform: translateX(-50%);
  color: #ffffff;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-kicker {
  padding: 6px 14px;
  margin-bottom: 16px;
  background: var(--gradient-main);
}

.hero h1 {
  max-width: 760px;
  margin: 0 0 18px;
  font-size: clamp(2.35rem, 6vw, 5.2rem);
  line-height: 1.02;
  font-weight: 900;
  text-shadow: 0 12px 42px rgba(0, 0, 0, 0.48);
}

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

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: 0.2s ease;
}

.button-primary {
  color: #ffffff;
  background: var(--gradient-main);
  box-shadow: 0 15px 30px rgba(244, 63, 94, 0.25);
}

.button-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 38px rgba(244, 63, 94, 0.34);
}

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

.button.full {
  width: 100%;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 46px;
  height: 46px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.32);
}

.hero-arrow-left {
  left: 24px;
}

.hero-arrow-right {
  right: 24px;
}

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

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

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

.page-main {
  min-height: 60vh;
}

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

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

.section-kicker {
  color: var(--rose-500);
  font-size: 0.75rem;
  margin-bottom: 8px;
}

.section-heading h2,
.compact-hero h1,
.detail-content-card h1 {
  margin: 0;
  color: var(--gray-800);
  font-size: clamp(1.75rem, 4vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.section-more,
.section-count {
  font-weight: 800;
  color: var(--rose-500);
}

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

.category-card,
.category-overview-card,
.filter-card,
.detail-content-card,
.detail-cover-card,
.detail-meta-card {
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.category-card {
  padding: 22px;
  transition: 0.22s ease;
}

.category-card:hover,
.category-overview-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(244, 63, 94, 0.18);
}

.category-icon {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  background: var(--gradient-main);
  margin-bottom: 14px;
}

.category-icon.large {
  width: 48px;
  height: 48px;
  border-radius: 16px;
}

.category-card strong,
.category-overview-card h2 {
  display: block;
  color: var(--gray-800);
  font-size: 1.15rem;
  font-weight: 850;
}

.category-card em,
.category-count {
  display: inline-block;
  margin: 8px 0;
  color: var(--rose-500);
  font-style: normal;
  font-weight: 800;
}

.category-card p,
.category-overview-card p {
  margin: 0;
  color: var(--gray-600);
  font-size: 0.95rem;
}

.category-overview-card {
  padding: 26px;
}

.category-overview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 22px;
}

.category-samples span,
.movie-tags span,
.tag-list span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: var(--rose-500);
  background: var(--rose-50);
  font-weight: 700;
}

.category-samples span {
  padding: 6px 10px;
  font-size: 0.78rem;
}

.filter-card {
  display: grid;
  grid-template-columns: minmax(240px, 360px) 1fr;
  gap: 20px;
  padding: 18px;
  margin-bottom: 24px;
}

.filter-search label {
  display: block;
  color: var(--gray-700);
  font-weight: 800;
  margin-bottom: 8px;
}

.filter-search input {
  padding: 12px 16px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: center;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--gray-700);
  background: #ffffff;
  font-weight: 800;
  transition: 0.2s ease;
}

.chip:hover,
.chip.is-active {
  color: #ffffff;
  background: var(--gradient-main);
  box-shadow: 0 10px 24px rgba(244, 63, 94, 0.22);
}

.filter-result {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--gray-600);
  font-weight: 700;
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 45px rgba(17, 24, 39, 0.15);
}

.movie-card.is-hidden {
  display: none;
}

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: radial-gradient(circle at 20% 10%, rgba(251, 113, 133, 0.35), transparent 32%), linear-gradient(135deg, #1f2937, #111827);
}

.movie-poster img,
.detail-cover-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

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

.movie-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.5), transparent 55%);
  opacity: 0;
  transition: 0.2s ease;
}

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

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 50%;
  background: rgba(244, 63, 94, 0.88);
  transform: translate(-50%, -50%) scale(0.84);
  opacity: 0;
  transition: 0.2s ease;
}

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

.rank-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 3;
  color: #ffffff;
  background: var(--gradient-main);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(244, 63, 94, 0.32);
}

.movie-info {
  padding: 15px;
}

.movie-meta-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--gray-500);
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.movie-info h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 850;
  color: var(--gray-800);
}

.movie-info h3 a:hover {
  color: var(--rose-500);
}

.movie-info p {
  margin: 0 0 12px;
  min-height: 42px;
  color: var(--gray-600);
  font-size: 0.88rem;
  line-height: 1.55;
}

.movie-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.movie-tags span {
  padding: 4px 8px;
  font-size: 0.72rem;
}

.page-hero {
  padding: 72px 0;
  background: radial-gradient(circle at 10% 0%, rgba(251, 113, 133, 0.28), transparent 30%), radial-gradient(circle at 90% 0%, rgba(249, 115, 22, 0.22), transparent 34%), rgba(255, 255, 255, 0.42);
}

.compact-hero p {
  max-width: 780px;
  margin: 16px 0 0;
  color: var(--gray-600);
  font-size: 1.05rem;
}

.detail-main {
  padding-top: 32px;
}

.detail-layout {
  padding-bottom: 24px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--gray-500);
  font-weight: 750;
  margin: 0 0 22px;
}

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

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 26px;
}

.player-shell,
.detail-content-card,
.detail-cover-card,
.detail-meta-card {
  margin-bottom: 22px;
}

.player-shell {
  border-radius: 24px;
  overflow: hidden;
  background: #0f172a;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.35);
}

.player-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: radial-gradient(circle at 50% 30%, rgba(244, 63, 94, 0.2), transparent 34%), #020617;
}

.player-frame video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #020617;
}

.player-start {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: var(--gradient-main);
  padding: 16px 28px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 18px 40px rgba(244, 63, 94, 0.35);
}

.player-start.is-hidden {
  display: none;
}

.player-start-icon {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}

.player-status {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 12px;
  z-index: 5;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.85rem;
  text-align: center;
  pointer-events: none;
}

.detail-content-card {
  padding: 28px;
}

.detail-content-card h1 {
  margin-bottom: 12px;
}

.detail-one-line {
  margin: 0 0 18px;
  color: var(--gray-600);
  font-size: 1.08rem;
  line-height: 1.8;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
}

.tag-list span {
  padding: 7px 12px;
  font-size: 0.82rem;
}

.detail-content-card h2 {
  margin: 28px 0 12px;
  font-size: 1.25rem;
  font-weight: 900;
}

.detail-content-card p {
  color: var(--gray-700);
  line-height: 1.9;
}

.detail-cover-card {
  padding: 14px;
}

.detail-cover-card img {
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  background: linear-gradient(135deg, #111827, #374151);
  margin-bottom: 14px;
}

.detail-meta-card {
  padding: 22px;
}

.detail-meta-card h2 {
  margin: 0 0 14px;
  font-size: 1.2rem;
  font-weight: 900;
}

.detail-meta-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--gray-100);
  padding: 11px 0;
}

.detail-meta-item span {
  color: var(--gray-500);
  font-weight: 750;
}

.detail-meta-item strong {
  color: var(--gray-800);
  text-align: right;
}

.site-footer {
  margin-top: 24px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--gray-900), var(--gray-800));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 26px;
  padding: 44px 0;
}

.footer-brand {
  margin-bottom: 14px;
}

.footer-grid h3 {
  margin: 0 0 14px;
  font-size: 1rem;
}

.footer-grid p,
.footer-grid a {
  color: var(--gray-400);
  line-height: 1.8;
}

.footer-grid a {
  display: block;
  margin-bottom: 8px;
  transition: 0.2s ease;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 0;
  color: var(--gray-400);
  text-align: center;
}

.image-missing {
  opacity: 0.08;
}

.no-results {
  grid-column: 1 / -1;
  padding: 28px;
  border-radius: 22px;
  color: var(--gray-600);
  background: rgba(255, 255, 255, 0.86);
  text-align: center;
  font-weight: 800;
}

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

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

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

  .detail-aside {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 20px;
  }
}

@media (max-width: 840px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .hero {
    min-height: 520px;
  }

  .hero-content {
    bottom: 78px;
  }

  .hero-arrow {
    display: none;
  }

  .section-heading,
  .filter-card {
    grid-template-columns: 1fr;
    align-items: start;
  }

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

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

  .detail-aside {
    grid-template-columns: 1fr;
  }
}

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

  .header-inner {
    height: 62px;
  }

  .brand-icon {
    width: 34px;
    height: 34px;
  }

  .hero {
    height: 560px;
  }

  .hero-content {
    bottom: 70px;
  }

  .hero h1 {
    font-size: 2.45rem;
  }

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

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

  .movie-info {
    padding: 12px;
  }

  .movie-info p {
    min-height: auto;
  }

  .detail-content-card,
  .detail-meta-card {
    padding: 20px;
  }

  .player-start {
    padding: 12px 20px;
  }
}
