:root {
  --red: #ef4444;
  --red-dark: #dc2626;
  --pink: #ec4899;
  --pink-dark: #db2777;
  --ink: #111827;
  --muted: #6b7280;
  --soft: #fff1f2;
  --panel: #ffffff;
  --line: #f3d8de;
  --shadow: 0 18px 42px rgba(239, 68, 68, 0.16);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(135deg, #fff7f7 0%, #fff1f6 42%, #ffffff 100%);
  min-height: 100vh;
}

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

img {
  display: block;
  max-width: 100%;
  background: linear-gradient(135deg, #ffe4e6, #fdf2f8);
}

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(244, 114, 182, 0.18);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 28px rgba(17, 24, 39, 0.06);
}

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

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

.brand-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--red), var(--pink));
  box-shadow: 0 12px 24px rgba(236, 72, 153, 0.25);
}

.brand-text {
  font-size: 21px;
  background: linear-gradient(90deg, var(--red-dark), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

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

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

.nav-link:hover {
  transform: translateY(-1px);
}

.nav-search {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #f3c4d1;
  border-radius: 999px;
  padding: 4px;
  min-width: 260px;
}

.nav-search input,
.mobile-search input {
  border: 0;
  outline: 0;
  width: 100%;
  padding: 10px 12px;
  color: var(--ink);
  background: transparent;
}

.nav-search button,
.mobile-search button {
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, var(--red), var(--pink));
  border-radius: 999px;
  padding: 9px 14px;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: #fff1f2;
  cursor: pointer;
}

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

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0 18px;
}

.mobile-panel.is-open {
  display: grid;
  gap: 12px;
}

.mobile-link {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 241, 242, 0.72);
}

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

.hero-carousel {
  position: relative;
  height: 620px;
  overflow: hidden;
  background: #111827;
}

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

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 18%, rgba(236, 72, 153, 0.34), transparent 26%),
    linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.68) 46%, rgba(17, 24, 39, 0.08));
}

.hero-content {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: max(24px, calc((100% - 1180px) / 2));
  width: min(650px, calc(100% - 48px));
  transform: translateY(-50%);
  color: #ffffff;
  animation: slideIn 0.8s ease both;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: #ffffff;
  background: linear-gradient(135deg, var(--red), var(--pink));
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.hero-content h2 {
  margin: 0 0 18px;
  color: #fecdd3;
  font-size: clamp(25px, 3.6vw, 46px);
}

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

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

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

.hero-tags span,
.detail-tags span,
.card-tags span {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  padding: 6px 10px;
  font-size: 13px;
  backdrop-filter: blur(8px);
}

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

.primary-button,
.ghost-button,
.wide-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  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(135deg, var(--red), var(--pink));
  padding: 0 26px;
  box-shadow: 0 16px 30px rgba(236, 72, 153, 0.32);
}

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

.ghost-button.light {
  color: var(--red-dark);
  border-color: #fecdd3;
  background: #fff1f2;
}

.primary-button:hover,
.ghost-button:hover,
.wide-link:hover {
  transform: translateY(-2px) scale(1.02);
}

.hero-dots {
  position: absolute;
  z-index: 4;
  right: max(24px, calc((100% - 1180px) / 2));
  bottom: 34px;
  display: flex;
  gap: 10px;
}

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

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

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

.section-heading {
  margin-bottom: 28px;
}

.section-heading h2,
.page-hero h1 {
  margin: 12px 0 10px;
  color: var(--ink);
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.03em;
}

.section-heading p,
.page-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.split-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.center-heading {
  text-align: center;
}

.center-heading .section-kicker {
  margin: 0 auto;
}

.text-link {
  color: var(--red-dark);
  font-weight: 800;
}

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

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

.movie-card {
  min-width: 0;
}

.card-link {
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(17, 24, 39, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #ffe4e6, #fdf2f8);
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.02), rgba(17, 24, 39, 0.65));
}

.year-badge,
.duration-badge {
  position: absolute;
  top: 12px;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.72);
  backdrop-filter: blur(8px);
}

.year-badge {
  left: 12px;
}

.duration-badge {
  right: 12px;
}

.play-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--red-dark);
  background: rgba(255, 255, 255, 0.92);
  transform: translate(-50%, -50%) scale(0.92);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

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

.card-body strong {
  font-size: 18px;
  line-height: 1.35;
}

.card-meta,
.card-desc {
  color: var(--muted);
  line-height: 1.6;
}

.card-meta {
  font-size: 13px;
}

.card-desc {
  display: -webkit-box;
  overflow: hidden;
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-tags span {
  color: var(--red-dark);
  background: #fff1f2;
}

.compact-card .card-link {
  display: grid;
  grid-template-columns: 124px 1fr;
  min-height: 104px;
  border-radius: 18px;
}

.compact-card .poster-frame {
  aspect-ratio: auto;
  height: 100%;
}

.compact-card .card-body {
  padding: 13px;
}

.compact-card .card-desc,
.compact-card .card-tags {
  display: none;
}

.category-band {
  background: linear-gradient(135deg, #ffe4e6 0%, #fdf2f8 50%, #ffffff 100%);
}

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

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

.category-chip {
  display: grid;
  gap: 10px;
  min-height: 172px;
  padding: 24px;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-chip:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

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

.category-chip strong {
  font-size: 21px;
}

.category-chip small {
  color: var(--muted);
  line-height: 1.7;
}

.two-column-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 34px;
  align-items: start;
}

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

.rank-list-large {
  gap: 18px;
}

.rank-link {
  display: grid;
  grid-template-columns: 48px 96px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-link:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

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

.rank-link img {
  width: 96px;
  height: 64px;
  border-radius: 14px;
  object-fit: cover;
}

.rank-info {
  display: grid;
  gap: 5px;
}

.rank-info strong {
  font-size: 18px;
}

.rank-info span,
.rank-info em {
  color: var(--muted);
  font-size: 14px;
  font-style: normal;
}

.side-card-grid {
  display: grid;
  gap: 14px;
}

.wide-link {
  width: 100%;
  margin-top: 18px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--red), var(--pink));
}

.page-hero,
.detail-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 30px auto 0;
  padding: 56px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 84% 14%, rgba(236, 72, 153, 0.24), transparent 32%),
    linear-gradient(135deg, #fff1f2, #ffffff 64%);
  box-shadow: 0 18px 40px rgba(17, 24, 39, 0.08);
}

.page-hero > div {
  max-width: 760px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--red-dark);
  font-weight: 700;
}

.toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
  padding: 18px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.07);
}

.toolbar label {
  display: grid;
  gap: 8px;
  width: min(520px, 100%);
  color: var(--muted);
  font-weight: 700;
}

.toolbar input {
  width: 100%;
  border: 1px solid #f3c4d1;
  border-radius: 999px;
  outline: none;
  padding: 13px 17px;
  background: #fffafa;
}

.toolbar input:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.1);
}

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

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

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

.detail-hero {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 38px;
  align-items: center;
  color: #ffffff;
  background:
    radial-gradient(circle at 82% 12%, rgba(236, 72, 153, 0.42), transparent 30%),
    linear-gradient(135deg, #111827 0%, #3b0f1b 54%, #7f1d1d 100%);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.34);
}

.detail-info h1 {
  margin: 12px 0 16px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.detail-line {
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
  line-height: 1.8;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
}

.detail-meta span {
  border-radius: 999px;
  padding: 7px 11px;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}

.detail-hero .breadcrumb,
.detail-hero .breadcrumb a {
  color: rgba(255, 255, 255, 0.86);
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #111827;
  box-shadow: 0 24px 52px rgba(17, 24, 39, 0.22);
  aspect-ratio: 16 / 9;
}

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

.player-cover {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: transparent;
  transition: opacity 0.28s ease;
}

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

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

.player-cover-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.18), rgba(17, 24, 39, 0.72));
}

.player-button-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--red-dark);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
  transform: translate(-50%, -50%);
}

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

.detail-article,
.detail-aside {
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
}

.detail-article {
  padding: 34px;
}

.detail-article h2,
.detail-aside h2 {
  margin: 0 0 16px;
  font-size: 25px;
}

.detail-article h2:not(:first-child) {
  margin-top: 32px;
}

.detail-article p {
  margin: 0;
  color: #374151;
  font-size: 17px;
  line-height: 1.95;
}

.detail-aside {
  padding: 22px;
}

.related-grid .compact-card .card-link {
  grid-template-columns: 112px 1fr;
}

.site-footer {
  margin-top: 40px;
  color: #ffffff;
  background: linear-gradient(135deg, #111827, #1f2937 56%, #3b0f1b);
}

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

.footer-brand p {
  color: #d1d5db;
  line-height: 1.8;
}

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

.footer-column {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-column h2 {
  margin: 0 0 8px;
  color: #fda4af;
  font-size: 18px;
}

.footer-column a {
  color: #d1d5db;
  transition: color 0.2s ease;
}

.footer-column a:hover {
  color: #ffffff;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  text-align: center;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translate(-20px, -50%);
  }

  to {
    opacity: 1;
    transform: translate(0, -50%);
  }
}

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

  .two-column-section,
  .detail-layout {
    grid-template-columns: 1fr;
  }

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

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

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

  .hero-carousel {
    height: 680px;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.68), rgba(17, 24, 39, 0.92));
  }

  .hero-content {
    top: auto;
    bottom: 82px;
    transform: none;
  }

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

  .hero-dots {
    right: auto;
    left: 24px;
  }

  .split-heading,
  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

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

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

  .detail-poster img {
    max-height: 320px;
  }

  .page-hero {
    padding: 32px;
  }

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

@media (max-width: 560px) {
  .nav-inner,
  .section-wrap,
  .page-hero,
  .detail-hero,
  .footer-inner,
  .footer-bottom {
    width: min(100% - 24px, 1180px);
  }

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

  .hero-carousel {
    height: 720px;
  }

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

  .hero-actions,
  .detail-actions {
    display: grid;
  }

  .movie-grid,
  .featured-grid,
  .category-grid,
  .category-grid-large {
    grid-template-columns: 1fr;
  }

  .rank-link {
    grid-template-columns: 40px 82px 1fr;
    gap: 10px;
  }

  .rank-link img {
    width: 82px;
    height: 58px;
  }

  .compact-card .card-link {
    grid-template-columns: 108px 1fr;
  }

  .detail-article {
    padding: 24px;
  }
}
