:root {
  --pink: #ec4899;
  --pink-strong: #db2777;
  --purple: #8b5cf6;
  --blue: #3b82f6;
  --cyan: #06b6d4;
  --ink: #111827;
  --text: #374151;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #fdf2f8;
  --paper: #ffffff;
  --shadow: 0 20px 45px rgba(31, 41, 55, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(135deg, #fdf2f8 0%, #faf5ff 48%, #eff6ff 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

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

.top-ribbon {
  height: 4px;
  background: linear-gradient(90deg, #f472b6, #a855f7, #38bdf8);
  position: relative;
  overflow: hidden;
}

.top-ribbon::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.68), transparent);
  animation: ribbon-shine 3s infinite;
}

@keyframes ribbon-shine {
  0% { transform: translateX(-100%); }
  55%, 100% { transform: translateX(100%); }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(16px);
}

.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand, .footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: white;
  font-weight: 900;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 12px 24px rgba(236, 72, 153, 0.28);
  transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
  transform: rotate(8deg) scale(1.04);
}

.brand-copy strong {
  display: block;
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-copy small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

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

.nav-link {
  color: var(--text);
  font-weight: 650;
  transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--pink);
}

.header-search {
  width: 260px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(236, 72, 153, 0.18);
  border-radius: 999px;
  background: #fff;
  overflow: hidden;
}

.header-search input, .mobile-panel input, .filter-panel input, .filter-panel select {
  min-width: 0;
  border: 0;
  outline: 0;
  font: inherit;
  background: transparent;
}

.header-search input {
  width: 100%;
  padding: 10px 14px;
}

.header-search button, .mobile-panel button {
  border: 0;
  color: white;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 700;
  background: linear-gradient(90deg, var(--pink), var(--purple));
}

.menu-toggle {
  display: none;
  border: 0;
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
  color: var(--pink);
  box-shadow: 0 8px 20px rgba(31, 41, 55, 0.08);
}

.mobile-panel {
  display: none;
  padding: 0 16px 18px;
  border-top: 1px solid var(--line);
}

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

.mobile-panel nav {
  display: grid;
  gap: 12px;
  margin: 14px auto;
  width: min(1180px, 100%);
}

.mobile-panel a {
  font-weight: 700;
  color: var(--text);
}

.mobile-panel form {
  display: flex;
  width: min(1180px, 100%);
  margin: 0 auto;
  border: 1px solid rgba(236, 72, 153, 0.2);
  border-radius: 999px;
  background: white;
  overflow: hidden;
}

.mobile-panel input {
  width: 100%;
  padding: 11px 14px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 46px 0 30px;
}

.hero-orb {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  filter: blur(36px);
  opacity: 0.44;
  animation: float-orb 7s ease-in-out infinite;
}

.hero-orb-one {
  top: 30px;
  left: 6%;
  background: #f9a8d4;
}

.hero-orb-two {
  right: 8%;
  bottom: 10px;
  background: #c4b5fd;
  animation-delay: 1.2s;
}

@keyframes float-orb {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-22px) rotate(4deg); }
}

.hero-track {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  min-height: 540px;
  margin: 0 auto;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px) scale(0.985);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 540px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: 36px;
  padding: 54px;
  overflow: hidden;
  border-radius: 36px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.58));
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-bg {
  position: absolute;
  inset: 30px;
  border-radius: 36px;
  background: linear-gradient(90deg, rgba(244, 114, 182, 0.20), rgba(168, 85, 247, 0.18), rgba(56, 189, 248, 0.16));
}

.hero-text {
  position: relative;
  z-index: 2;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  margin-bottom: 20px;
  border-radius: 999px;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 20px rgba(31, 41, 55, 0.08);
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.03;
  letter-spacing: -0.06em;
  background: linear-gradient(90deg, var(--pink), var(--purple), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  width: min(720px, 100%);
  margin: 0 0 22px;
  color: var(--text);
  font-size: clamp(18px, 2.1vw, 24px);
}

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

.hero-tags span, .tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #9d174d;
  background: rgba(252, 231, 243, 0.92);
  font-size: 13px;
  font-weight: 700;
  padding: 5px 10px;
}

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

.primary-button, .ghost-button, .section-link, .pager-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 850;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-button {
  padding: 13px 26px;
  color: white;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  box-shadow: 0 16px 26px rgba(236, 72, 153, 0.24);
}

.ghost-button {
  padding: 13px 26px;
  color: var(--ink);
  background: white;
  box-shadow: 0 12px 24px rgba(31, 41, 55, 0.08);
}

.primary-button:hover, .ghost-button:hover, .section-link:hover, .pager-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(31, 41, 55, 0.14);
}

.hero-poster {
  position: relative;
  z-index: 2;
  aspect-ratio: 3 / 4;
  min-height: 420px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 30px;
  background: linear-gradient(135deg, #fce7f3, #ede9fe, #dbeafe);
  box-shadow: 0 28px 55px rgba(31, 41, 55, 0.20);
}

.hero-poster::after, .poster-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 44%, rgba(15, 23, 42, 0.62));
}

.hero-poster img, .poster-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-nav {
  position: relative;
  z-index: 4;
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 22px 0 0;
}

.hero-nav button {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(236, 72, 153, 0.28);
}

.hero-nav button.active {
  width: 34px;
  background: linear-gradient(90deg, var(--pink), var(--purple));
}

.main-section {
  padding: 58px 0;
}

.main-section.soft {
  background: rgba(255, 255, 255, 0.54);
  backdrop-filter: blur(10px);
}

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

.section-heading h1, .section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--muted);
}

.section-link {
  padding: 9px 16px;
  color: var(--pink);
  background: rgba(255, 255, 255, 0.82);
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 28px rgba(31, 41, 55, 0.09);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 40px rgba(31, 41, 55, 0.14);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #fce7f3, #ede9fe, #dbeafe);
}

.poster-link img {
  transition: transform 0.3s ease;
}

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

.card-year, .rank-badge, .card-play {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: white;
  font-weight: 850;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.20);
}

.card-year {
  top: 12px;
  right: 12px;
  padding: 5px 10px;
  font-size: 12px;
  background: rgba(15, 23, 42, 0.72);
}

.rank-badge {
  top: 12px;
  left: 12px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f97316, #ec4899);
}

.card-play {
  right: 14px;
  bottom: 14px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--pink), var(--purple));
}

.card-body {
  padding: 18px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.card-body h2 {
  margin: 8px 0 8px;
  font-size: 19px;
  line-height: 1.3;
}

.card-body h2 a:hover {
  color: var(--pink);
}

.card-body p {
  min-height: 52px;
  margin: 0 0 14px;
  color: var(--text);
  font-size: 14px;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 170px;
  padding: 24px;
  border-radius: var(--radius);
  color: white;
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 46px rgba(31, 41, 55, 0.16);
}

.category-card::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -34px;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.20);
}

.category-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 24px;
}

.category-card p {
  position: relative;
  z-index: 2;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 12px;
  padding: 16px;
  margin-bottom: 24px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 30px rgba(31, 41, 55, 0.08);
}

.filter-panel input, .filter-panel select {
  width: 100%;
  border-radius: 999px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid rgba(236, 72, 153, 0.16);
}

.page-hero {
  padding: 54px 0 18px;
}

.page-card {
  border-radius: 30px;
  padding: 40px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.72);
}

.page-card h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.1;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--pink), var(--purple), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-card p {
  margin: 0;
  color: var(--text);
  font-size: 18px;
}

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

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

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

.player-shell {
  overflow: hidden;
  border-radius: 30px;
  background: #0f172a;
  box-shadow: var(--shadow);
}

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

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  gap: 18px;
  border: 0;
  color: white;
  cursor: pointer;
  text-align: center;
  background: radial-gradient(circle at 50% 45%, rgba(236, 72, 153, 0.30), rgba(2, 6, 23, 0.84));
}

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

.play-ring {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: white;
  font-size: 30px;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 20px 42px rgba(236, 72, 153, 0.34);
}

.player-overlay strong {
  max-width: min(720px, calc(100% - 32px));
  font-size: clamp(24px, 4vw, 44px);
  line-height: 1.18;
}

.detail-card, .side-card {
  margin-top: 24px;
  padding: 26px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 30px rgba(31, 41, 55, 0.08);
}

.detail-card h1, .detail-card h2, .side-card h2 {
  margin: 0 0 14px;
  line-height: 1.2;
}

.detail-card h1 {
  font-size: clamp(30px, 4vw, 48px);
}

.detail-card h2, .side-card h2 {
  font-size: 24px;
}

.detail-card p {
  color: var(--text);
  margin: 0 0 16px;
}

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

.info-list div {
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff, #fdf2f8);
}

.info-list span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.info-list strong {
  display: block;
  margin-top: 4px;
}

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

.side-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
}

.side-thumb {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(135deg, #fce7f3, #ede9fe, #dbeafe);
}

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

.side-item h3 {
  margin: 0 0 4px;
  font-size: 15px;
  line-height: 1.35;
}

.side-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

.pager-button {
  padding: 10px 18px;
  color: var(--pink);
  background: white;
}

.site-footer {
  margin-top: 60px;
  background: linear-gradient(135deg, #f9fafb, #f3f4f6);
  border-top: 1px solid var(--line);
}

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

.footer-grid h2 {
  margin: 0 0 12px;
  font-size: 17px;
}

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

.footer-grid a {
  display: block;
  color: var(--text);
  margin: 8px 0;
}

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

.footer-bottom {
  padding: 16px;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.empty-state {
  display: none;
  padding: 34px;
  border-radius: 24px;
  background: white;
  text-align: center;
  color: var(--muted);
}

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

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

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

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

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

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

  .hero-track, .hero-content {
    min-height: auto;
  }

  .hero-slide {
    position: relative;
    display: none;
  }

  .hero-slide.active {
    display: block;
  }

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

  .hero-poster {
    min-height: auto;
  }

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

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

  .info-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .brand-copy small {
    display: none;
  }

  .hero {
    padding-top: 24px;
  }

  .hero-content, .page-card, .detail-card, .side-card {
    padding: 20px;
    border-radius: 22px;
  }

  .hero-actions, .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-button, .ghost-button, .section-link {
    width: 100%;
  }

  .movie-grid, .movie-grid.featured, .category-strip, .footer-grid, .filter-panel {
    grid-template-columns: 1fr;
  }

  .card-body p {
    min-height: auto;
  }
}
