:root {
  --red: #ef4444;
  --red-dark: #dc2626;
  --pink: #ec4899;
  --orange: #f97316;
  --text: #111827;
  --muted: #6b7280;
  --soft: #fff1f2;
  --line: #f3d5da;
  --card: rgba(255, 255, 255, 0.92);
  --shadow: 0 18px 48px rgba(127, 29, 29, 0.13);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 0% 0%, rgba(236, 72, 153, 0.18), transparent 28rem),
    radial-gradient(circle at 100% 8%, rgba(239, 68, 68, 0.16), transparent 30rem),
    linear-gradient(135deg, #fff7f7 0%, #fff1f2 38%, #ffffff 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(248, 113, 113, 0.16);
  box-shadow: 0 8px 28px rgba(127, 29, 29, 0.08);
}

.header-inner {
  width: min(1200px, calc(100% - 32px));
  height: 70px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--red), var(--pink));
  box-shadow: 0 10px 22px rgba(236, 72, 153, 0.27);
}

.brand-text {
  font-size: 1.3rem;
  line-height: 1;
  color: transparent;
  background: linear-gradient(90deg, var(--red-dark), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
}

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

.nav-link,
.mobile-link {
  color: #374151;
  font-weight: 650;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: var(--red-dark);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  border: 1px solid rgba(248, 113, 113, 0.25);
  border-radius: 999px;
  background: #ffffff;
}

.header-search input,
.mobile-search input,
.filter-bar input,
.filter-bar select {
  border: 0;
  outline: 0;
  background: #ffffff;
  color: var(--text);
  font: inherit;
}

.header-search input {
  width: 200px;
  padding: 8px 6px 8px 14px;
}

.header-search button,
.mobile-search button {
  border: 0;
  color: #ffffff;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--red), var(--pink));
  font-weight: 700;
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #fff1f2;
  cursor: pointer;
}

.mobile-menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--red-dark);
}

.mobile-panel {
  display: none;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 18px;
  border-radius: 0 0 22px 22px;
  background: rgba(255, 255, 255, 0.96);
}

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

.mobile-panel nav {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

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

.mobile-search input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid rgba(248, 113, 113, 0.25);
  border-radius: 999px;
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: #1f1117;
}

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

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.05);
  transform: scale(1.02);
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(20, 13, 18, 0.82), rgba(20, 13, 18, 0.12) 50%, rgba(20, 13, 18, 0.54)),
    radial-gradient(circle at 18% 26%, rgba(236, 72, 153, 0.38), transparent 24rem);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1200px, calc(100% - 32px));
  min-height: 620px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: center;
  gap: 56px;
  color: #ffffff;
  padding: 64px 0;
}

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

.hero h1 {
  margin: 20px 0 18px;
  max-width: 830px;
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero p {
  max-width: 760px;
  margin: 0;
  color: #ffe4e6;
  font-size: 1.12rem;
}

.hero-tags,
.movie-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags {
  margin-top: 24px;
}

.hero-tags span,
.movie-tags span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff1f2;
  color: #be123c;
  font-size: 0.86rem;
  font-weight: 700;
}

.hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

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

.primary-button,
.ghost-button,
.light-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(90deg, var(--red), var(--pink));
  box-shadow: 0 14px 28px rgba(236, 72, 153, 0.28);
}

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

.light-button {
  color: var(--red-dark);
  border: 1px solid rgba(248, 113, 113, 0.28);
  background: #ffffff;
}

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

.hero-poster {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
  transform: rotate(1deg);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.hero-poster span {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--red), var(--pink));
  font-weight: 800;
}

.hero-controls {
  position: absolute;
  z-index: 5;
  right: max(24px, calc((100vw - 1200px) / 2));
  bottom: 34px;
  display: flex;
  gap: 12px;
}

.hero-controls button {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  cursor: pointer;
  font-size: 1.3rem;
}

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

.section {
  padding: 64px 0;
}

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

.section-kicker {
  display: inline-flex;
  color: var(--red-dark);
  font-weight: 800;
  margin-bottom: 8px;
}

.section-header h2,
.page-hero h1,
.detail-section h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.1;
}

.section-header p,
.page-hero p {
  max-width: 720px;
  margin: 12px 0 0;
  color: var(--muted);
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(248, 113, 113, 0.16);
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 10px 32px rgba(127, 29, 29, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.movie-poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #fee2e2, #fce7f3);
}

.movie-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(0, 0, 0, 0.64));
}

.movie-year,
.rank-number,
.poster-play {
  position: absolute;
  z-index: 2;
  color: #ffffff;
  font-weight: 800;
}

.movie-year {
  left: 12px;
  top: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(8px);
  font-size: 0.82rem;
}

.rank-number {
  right: 12px;
  top: 12px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--red), var(--pink));
}

.poster-play {
  left: 14px;
  bottom: 12px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.movie-body {
  padding: 16px;
}

.movie-topline,
.list-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.movie-body h3 {
  margin: 8px 0 8px;
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.3;
}

.movie-body h3 a:hover,
.list-content h3 a:hover,
.related-card h3 a:hover {
  color: var(--red-dark);
}

.movie-body p {
  min-height: 52px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.94rem;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 150px;
  padding: 22px;
  border-radius: 24px;
  color: #ffffff;
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.32), transparent 7rem),
    linear-gradient(135deg, var(--red), var(--pink));
  box-shadow: 0 18px 42px rgba(236, 72, 153, 0.21);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:nth-child(2n) {
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.32), transparent 7rem),
    linear-gradient(135deg, #f97316, #ef4444);
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 54px rgba(236, 72, 153, 0.28);
}

.category-card h2,
.category-card h3 {
  margin: 0 0 10px;
  font-size: 1.36rem;
}

.category-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
}

.list-stack {
  display: grid;
  gap: 16px;
}

.list-card {
  display: grid;
  grid-template-columns: auto 150px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(248, 113, 113, 0.16);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(127, 29, 29, 0.07);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.list-rank {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--red), var(--pink));
  font-weight: 900;
}

.list-cover {
  overflow: hidden;
  border-radius: 16px;
  background: #fee2e2;
}

.list-cover img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.list-content h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.list-content p {
  margin: 0 0 10px;
  color: var(--muted);
}

.page-hero {
  padding: 58px 0 28px;
}

.page-hero-card {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 56px);
  border-radius: 32px;
  background:
    radial-gradient(circle at 92% 10%, rgba(255, 255, 255, 0.45), transparent 12rem),
    linear-gradient(135deg, #ffe4e6, #ffffff 54%, #fdf2f8);
  border: 1px solid rgba(248, 113, 113, 0.18);
  box-shadow: var(--shadow);
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 180px 180px 160px;
  gap: 12px;
  margin: 24px 0 28px;
  padding: 14px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(248, 113, 113, 0.16);
  box-shadow: 0 12px 34px rgba(127, 29, 29, 0.07);
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid rgba(248, 113, 113, 0.24);
  border-radius: 16px;
}

.detail-hero {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 52px 0 32px;
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 30px;
  box-shadow: var(--shadow);
  background: #fee2e2;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.94rem;
}

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

.detail-info h1 {
  margin: 0 0 18px;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.detail-lead {
  max-width: 820px;
  margin: 0 0 20px;
  color: #4b5563;
  font-size: 1.12rem;
}

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

.detail-section {
  padding: 34px 0;
}

.content-card,
.player-panel {
  padding: clamp(22px, 4vw, 36px);
  border-radius: 28px;
  border: 1px solid rgba(248, 113, 113, 0.16);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 34px rgba(127, 29, 29, 0.07);
}

.content-card p {
  margin: 14px 0 0;
  color: #374151;
  font-size: 1.03rem;
}

.player-panel h2 {
  margin-bottom: 22px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #0f172a;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.3);
}

.player-shell video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0f172a;
  cursor: pointer;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  background: rgba(15, 23, 42, 0.2);
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-cover-inner {
  display: grid;
  place-items: center;
  gap: 12px;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 800;
}

.player-cover-inner span:first-child {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--pink));
  box-shadow: 0 18px 42px rgba(236, 72, 153, 0.36);
  font-size: 1.6rem;
}

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

.related-card {
  overflow: hidden;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid rgba(248, 113, 113, 0.15);
  box-shadow: 0 8px 24px rgba(127, 29, 29, 0.07);
}

.related-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.related-card h3 {
  margin: 10px 12px 12px;
  font-size: 0.95rem;
  line-height: 1.28;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 34px 0 0;
}

.page-link {
  min-width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid rgba(248, 113, 113, 0.22);
  background: #ffffff;
  color: var(--red-dark);
  font-weight: 800;
}

.page-link.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--red), var(--pink));
}

.site-footer {
  margin-top: 64px;
  color: #d1d5db;
  background: #171923;
}

.footer-inner {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 34px;
}

.footer-logo .brand-text {
  color: #ffffff;
  background: none;
  -webkit-text-fill-color: #ffffff;
}

.footer-brand p {
  max-width: 420px;
  color: #9ca3af;
}

.footer-links h2 {
  margin: 0 0 14px;
  color: #fecdd3;
  font-size: 1.08rem;
}

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

.footer-links a {
  color: #9ca3af;
}

.footer-links a:hover {
  color: #fda4af;
}

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

.empty-state {
  display: none;
  padding: 30px;
  border-radius: 22px;
  background: #ffffff;
  color: var(--muted);
  text-align: center;
}

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

  .mobile-menu-button {
    display: block;
    margin-left: auto;
  }

  .hero-content {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-poster {
    display: none;
  }

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

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

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

@media (max-width: 760px) {
  .header-inner {
    height: 64px;
  }

  .hero,
  .hero-content {
    min-height: 560px;
  }

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

  .hero p {
    font-size: 1rem;
  }

  .hero-controls {
    left: 16px;
    right: auto;
  }

  .section {
    padding: 42px 0;
  }

  .section-header {
    display: grid;
  }

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

  .list-card {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .list-rank {
    grid-row: 1 / span 2;
  }

  .list-cover {
    display: none;
  }

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

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

  .detail-poster {
    max-width: 280px;
  }

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

@media (max-width: 460px) {
  .movie-grid,
  .category-strip,
  .related-grid {
    grid-template-columns: 1fr;
  }

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