* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #1f2937;
  background: linear-gradient(180deg, #eff6ff 0%, #fff1f6 46%, #f5f3ff 100%);
}

body.nav-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(253, 242, 248, 0.94), rgba(239, 246, 255, 0.94), rgba(245, 243, 255, 0.94));
  box-shadow: 0 12px 34px rgba(148, 163, 184, 0.18);
  backdrop-filter: blur(18px);
}

.site-header-inner {
  max-width: 1180px;
  height: 68px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  font-size: 14px;
  background: linear-gradient(135deg, #ef4444, #f97316);
  box-shadow: 0 12px 24px rgba(239, 68, 68, 0.28);
}

.brand-name {
  font-size: 22px;
  line-height: 1;
  background: linear-gradient(90deg, #ef4444, #f97316, #ec4899);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 0.02em;
}

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

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  color: #374151;
  background: transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ec4899;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 24px rgba(236, 72, 153, 0.14);
}

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 280px;
  padding: 10px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel,
.nav-dropdown:focus-within .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-panel a {
  display: block;
  padding: 12px 14px;
  border-radius: 16px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.dropdown-panel a:hover {
  background: linear-gradient(90deg, #fff1f2, #faf5ff);
  transform: translateX(2px);
}

.dropdown-panel span {
  display: block;
  font-weight: 700;
  color: #111827;
}

.dropdown-panel small {
  display: block;
  margin-top: 4px;
  color: #6b7280;
  line-height: 1.4;
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: #374151;
}

.mobile-nav {
  display: none;
  padding: 10px 20px 22px;
  border-top: 1px solid rgba(229, 231, 235, 0.92);
  background: rgba(255, 255, 255, 0.98);
}

.mobile-nav a {
  display: block;
  padding: 11px 14px;
  border-radius: 14px;
  color: #374151;
}

.mobile-nav a:hover {
  background: #fdf2f8;
  color: #db2777;
}

.mobile-nav-title {
  margin: 8px 14px 4px;
  color: #9ca3af;
  font-size: 13px;
  font-weight: 700;
}

main {
  overflow: hidden;
}

.hero {
  position: relative;
  padding: 58px 20px 42px;
  overflow: hidden;
  background: linear-gradient(135deg, #ffe4ec 0%, #dbeafe 50%, #ede9fe 100%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(42px);
  opacity: 0.36;
  animation: floatBlob 10s ease-in-out infinite;
}

.hero::before {
  width: 310px;
  height: 310px;
  left: 6%;
  top: 10%;
  background: #fecaca;
}

.hero::after {
  width: 380px;
  height: 380px;
  right: 4%;
  bottom: 5%;
  background: #fed7aa;
  animation-delay: 1.4s;
}

.hero-inner {
  position: relative;
  max-width: 1180px;
  min-height: 540px;
  margin: 0 auto;
}

.hero-slides {
  position: relative;
  min-height: 500px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(300px, 0.98fr);
  gap: 34px;
  align-items: center;
  opacity: 0;
  transform: translateX(24px);
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-copy {
  padding: 26px 0;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  margin-bottom: 18px;
  border-radius: 999px;
  color: #db2777;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 28px rgba(236, 72, 153, 0.12);
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, #ef4444, #f97316 50%, #ec4899);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 650px;
  margin: 0 0 22px;
  color: #4b5563;
  font-size: 18px;
  line-height: 1.8;
}

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

.hero-tags {
  margin-bottom: 28px;
}

.hero-tags span,
.detail-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  color: #be123c;
  background: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  font-weight: 700;
}

.hero-actions,
.section-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px) scale(1.01);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(90deg, #ef4444, #f97316);
  box-shadow: 0 16px 34px rgba(239, 68, 68, 0.24);
}

.btn-secondary {
  color: #374151;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 28px rgba(148, 163, 184, 0.18);
}

.hero-media {
  position: relative;
  min-height: 430px;
}

.hero-card {
  position: absolute;
  inset: 0;
  border: 10px solid rgba(255, 255, 255, 0.56);
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 32px 78px rgba(15, 23, 42, 0.22);
  transform: rotate(1.2deg);
  background: rgba(255, 255, 255, 0.5);
}

.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hero-slide.active .hero-card img {
  transform: scale(1.04);
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.62));
}

.hero-info-card {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 2;
  padding: 18px;
  border-radius: 24px;
  color: #fff;
  background: rgba(15, 23, 42, 0.52);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.22);
  backdrop-filter: blur(14px);
}

.hero-info-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 20px;
}

.hero-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.hero-buttons {
  display: flex;
  gap: 10px;
}

.hero-control {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  color: #374151;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 24px rgba(148, 163, 184, 0.2);
  cursor: pointer;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: #cbd5e1;
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

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

.section {
  padding: 56px 20px;
}

.section-white {
  background: rgba(255, 255, 255, 0.72);
}

.section-inner {
  max-width: 1180px;
  margin: 0 auto;
}

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

.section-title {
  margin: 0;
  color: #111827;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.15;
}

.section-subtitle {
  max-width: 740px;
  margin: 10px 0 0;
  color: #6b7280;
  line-height: 1.75;
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 52px rgba(15, 23, 42, 0.14);
}

.card-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #ffe4e6, #dbeafe);
}

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

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

.play-sign {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: rgba(15, 23, 42, 0.42);
  transform: translate(-50%, -50%) scale(0.82);
  opacity: 0;
  backdrop-filter: blur(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.duration,
.rank-badge {
  position: absolute;
  border-radius: 999px;
  color: #fff;
  background: rgba(15, 23, 42, 0.72);
  font-size: 12px;
  font-weight: 700;
}

.duration {
  right: 10px;
  bottom: 10px;
  padding: 5px 9px;
}

.rank-badge {
  left: 10px;
  top: 10px;
  min-width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, #ef4444, #f97316);
}

.card-body {
  padding: 16px;
}

.card-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  margin-bottom: 10px;
  border-radius: 999px;
  color: #db2777;
  background: #fdf2f8;
  font-size: 12px;
  font-weight: 800;
}

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

.card-body h2 a:hover {
  color: #ec4899;
}

.card-body p {
  min-height: 44px;
  margin: 0 0 12px;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.58;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta,
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #6b7280;
  font-size: 13px;
}

.card-foot {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f3f4f6;
}

.card-foot a {
  color: #ef4444;
  font-weight: 700;
}

.movie-card-wide {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
}

.movie-card-wide .card-cover {
  aspect-ratio: auto;
  min-height: 190px;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  padding: 24px;
  border-radius: 28px;
  background: linear-gradient(135deg, #fff1f2, #eff6ff 52%, #faf5ff);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 56px rgba(15, 23, 42, 0.13);
}

.category-card::after {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  right: -58px;
  top: -58px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.54);
  transition: transform 0.3s ease;
}

.category-card:hover::after {
  transform: scale(1.25);
}

.category-card h2 {
  position: relative;
  z-index: 1;
  margin: 0 0 10px;
  font-size: 24px;
}

.category-card p {
  position: relative;
  z-index: 1;
  margin: 0 0 18px;
  color: #6b7280;
  line-height: 1.7;
}

.category-card span {
  position: relative;
  z-index: 1;
  color: #ef4444;
  font-weight: 800;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 180px;
  gap: 12px;
  padding: 14px;
  margin-bottom: 26px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 0 14px;
  color: #374151;
  background: #fff;
  outline: none;
}

.filter-bar input:focus,
.filter-bar select:focus {
  border-color: #fb7185;
  box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.14);
}

.no-results {
  display: none;
  padding: 34px;
  border-radius: 24px;
  text-align: center;
  color: #6b7280;
  background: rgba(255, 255, 255, 0.82);
}

.no-results.show {
  display: block;
}

.page-hero {
  padding: 60px 20px 34px;
  background: linear-gradient(135deg, #ffe4ec, #dbeafe 52%, #ede9fe);
}

.page-hero-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: #6b7280;
  font-size: 14px;
}

.breadcrumbs a {
  color: #ec4899;
  font-weight: 700;
}

.page-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.page-hero p {
  max-width: 790px;
  margin: 16px 0 0;
  color: #4b5563;
  font-size: 17px;
  line-height: 1.8;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 360px;
  gap: 28px;
}

.content-panel,
.side-panel {
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.content-panel {
  padding: 24px;
}

.side-panel {
  padding: 20px;
}

.player-box {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  background: #020617;
  box-shadow: 0 26px 64px rgba(2, 6, 23, 0.24);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.08), rgba(2, 6, 23, 0.52));
  cursor: pointer;
}

.player-overlay span {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border-radius: 999px;
  font-size: 32px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(10px);
  transition: transform 0.2s ease, background 0.2s ease;
}

.player-overlay:hover span {
  transform: scale(1.07);
  background: rgba(255, 255, 255, 0.25);
}

.player-box.is-playing .player-overlay {
  display: none;
}

.player-status {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  color: #fff;
  font-size: 14px;
  text-align: center;
  pointer-events: none;
}

.detail-title {
  margin: 24px 0 14px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
}

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

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #4b5563;
  background: #f9fafb;
  font-size: 14px;
  font-weight: 700;
}

.detail-section {
  margin-top: 24px;
}

.detail-section h2,
.side-panel h2 {
  margin: 0 0 12px;
  color: #111827;
  font-size: 22px;
}

.detail-section p {
  margin: 0 0 14px;
  color: #4b5563;
  font-size: 16px;
  line-height: 1.9;
}

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

.side-card {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 12px;
  padding: 10px;
  border-radius: 18px;
  background: #f9fafb;
  transition: transform 0.18s ease, background 0.18s ease;
}

.side-card:hover {
  transform: translateX(2px);
  background: #fff1f2;
}

.side-card img {
  width: 100%;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
  background: linear-gradient(135deg, #ffe4e6, #dbeafe);
}

.side-card strong {
  display: block;
  margin: 2px 0 6px;
  font-size: 14px;
  line-height: 1.35;
}

.side-card small {
  color: #6b7280;
}

.back-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 45;
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  box-shadow: 0 18px 36px rgba(139, 92, 246, 0.25);
  cursor: pointer;
}

.back-top.show {
  display: block;
}

.site-footer {
  padding: 46px 20px 26px;
  border-top: 1px solid rgba(229, 231, 235, 0.9);
  background: linear-gradient(180deg, #f9fafb, #f3f4f6);
}

.footer-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 30px;
}

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

.site-footer h2 {
  margin: 0 0 14px;
  font-size: 17px;
}

.site-footer p,
.site-footer a {
  display: block;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.8;
}

.site-footer a:hover {
  color: #ec4899;
}

.footer-bottom {
  max-width: 1180px;
  margin: 28px auto 0;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
  color: #6b7280;
  text-align: center;
  font-size: 14px;
}

@keyframes floatBlob {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(24px, -18px, 0) scale(1.06);
  }
}

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

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

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

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

  .mobile-toggle {
    display: block;
  }

  body.nav-open .mobile-nav {
    display: block;
  }

  .hero {
    padding-top: 34px;
  }

  .hero-inner,
  .hero-slides {
    min-height: 760px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-media {
    min-height: 340px;
  }

  .hero-controls {
    bottom: -10px;
  }

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

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

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

@media (max-width: 560px) {
  .site-header-inner {
    height: 62px;
    padding: 0 14px;
  }

  .brand-name {
    font-size: 20px;
  }

  .hero-inner,
  .hero-slides {
    min-height: 790px;
  }

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

  .hero-media {
    min-height: 280px;
  }

  .hero-card {
    border-width: 6px;
    border-radius: 24px;
  }

  .hero-info-card {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .section-head {
    display: block;
  }

  .movie-grid,
  .movie-grid.three,
  .movie-grid.two,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .movie-card-wide {
    display: block;
  }

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

  .content-panel,
  .side-panel {
    border-radius: 18px;
    padding: 16px;
  }
}
