:root {
  --site-bg: #fff8fb;
  --site-text: #243042;
  --site-muted: #6b7280;
  --site-pink: #ff3366;
  --site-pink-soft: #ff6b8e;
  --site-candy: #ff6bc4;
  --site-yellow: #facc15;
  --site-teal: #2dd4bf;
  --site-line: rgba(255, 51, 102, 0.14);
  --site-shadow: 0 18px 45px rgba(255, 51, 102, 0.18);
  --site-radius: 28px;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--site-text);
  background:
    radial-gradient(circle at top left, rgba(255, 107, 196, 0.18), transparent 32rem),
    radial-gradient(circle at top right, rgba(250, 204, 21, 0.20), transparent 30rem),
    linear-gradient(180deg, #fff5f8 0%, #fff 44%, #fff8fb 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
}

.site-nav {
  width: min(1180px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #ff3366, #ff6bc4, #facc15);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.logo-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, #ff3366, #ff6b8e, #ffa3dd);
  box-shadow: var(--site-shadow);
  font-size: 16px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-menu a {
  padding: 10px 16px;
  border-radius: 999px;
  color: #4b5563;
  font-weight: 700;
  transition: all 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: #fff;
  background: linear-gradient(135deg, #ff3366, #ff6b8e, #ffa3dd);
  box-shadow: 0 12px 28px rgba(255, 51, 102, 0.22);
}

.nav-toggle {
  width: 44px;
  height: 44px;
  border: 0;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 8px 18px rgba(255, 51, 102, 0.16);
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 99px;
  background: var(--site-pink);
}

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

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  padding: 76px 0 120px;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.58), transparent 12rem),
    linear-gradient(135deg, #ff3366 0%, #ff6b8e 34%, #ff6bc4 68%, #facc15 100%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  filter: blur(3px);
  animation: float 7s ease-in-out infinite;
}

.hero::before {
  width: 220px;
  height: 220px;
  top: 48px;
  right: 9%;
}

.hero::after {
  width: 160px;
  height: 160px;
  left: 6%;
  bottom: 80px;
  animation-delay: 1.4s;
}

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

.hero-slide {
  display: none;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: 46px;
}

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

.hero-copy {
  color: #fff;
}

.hero-kicker,
.page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
  font-weight: 800;
}

.hero h1,
.page-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.07em;
  font-weight: 950;
}

.hero h2 {
  margin: 0 0 18px;
  font-size: clamp(30px, 4.6vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.05em;
  font-weight: 950;
}

.hero p {
  max-width: 650px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 18px;
  line-height: 1.85;
}

.hero-actions,
.page-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
}

.hero-search {
  width: min(620px, 100%);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 26px 0 6px;
  padding: 9px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 34px rgba(120, 12, 64, 0.16);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 13px 16px;
  color: #3f3f46;
  background: transparent;
}

.hero-search button,
.primary-button,
.secondary-button,
.filter-button,
.play-overlay,
.text-link {
  border: 0;
  cursor: pointer;
  border-radius: 18px;
  font-weight: 850;
  transition: all 0.2s ease;
}

.hero-search button,
.primary-button,
.play-overlay,
.text-link {
  color: #fff;
  background: linear-gradient(135deg, #ff3366, #ff6b8e, #ffa3dd);
  box-shadow: 0 14px 28px rgba(255, 51, 102, 0.24);
}

.hero-search button {
  padding: 13px 22px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
}

.secondary-button {
  color: #fff;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
}

.primary-button:hover,
.secondary-button:hover,
.hero-search button:hover,
.text-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 44px rgba(255, 51, 102, 0.30);
}

.hero-art {
  position: relative;
}

.hero-poster-wrap {
  position: relative;
  min-height: 480px;
  border-radius: 42px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.26);
  box-shadow: 0 28px 70px rgba(88, 19, 58, 0.30);
  transform: rotate(1.5deg);
}

.hero-poster-wrap img {
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: cover;
}

.hero-poster-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), transparent 58%);
}

.hero-card-float {
  position: absolute;
  left: -24px;
  bottom: 26px;
  width: min(330px, 80%);
  padding: 20px;
  border-radius: 28px;
  color: #fff;
  background: rgba(20, 16, 24, 0.55);
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 45px rgba(30, 10, 20, 0.25);
}

.hero-card-float h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.hero-card-float p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
}

.hero-dots {
  position: absolute;
  left: 0;
  bottom: -54px;
  display: flex;
  gap: 10px;
}

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

.hero-dot.active {
  width: 42px;
  background: #fff;
}

.featured-strip {
  position: relative;
  z-index: 3;
  margin-top: -76px;
}

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

.page-hero {
  padding: 72px 0 54px;
  color: #fff;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.34), transparent 18rem),
    linear-gradient(135deg, #ff3366, #ff6b8e, #ff6bc4);
}

.page-hero p {
  max-width: 820px;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 18px;
  line-height: 1.8;
}

.section {
  padding: 70px 0 0;
}

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

.section-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.section-icon {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(135deg, #ff3366, #ff6b8e, #ffa3dd);
  box-shadow: var(--site-shadow);
}

.section h2,
.section-title h2 {
  margin: 0;
  font-size: clamp(28px, 3.8vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-weight: 950;
}

.section-title p,
.section-header p {
  margin: 6px 0 0;
  color: var(--site-muted);
}

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

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

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

.movie-scroll {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 6px 0 24px;
  scrollbar-width: none;
}

.movie-scroll::-webkit-scrollbar {
  display: none;
}

.movie-scroll .movie-card {
  min-width: 300px;
}

.movie-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: rgba(255, 255, 255, 0.94);
}

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

.movie-cover {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 51, 102, 0.16), rgba(255, 107, 196, 0.15));
}

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

.movie-card:hover .movie-cover img,
.ranking-item:hover img {
  transform: scale(1.06);
}

.movie-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 800;
}

.movie-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

.movie-info h3 {
  margin: 8px 0 10px;
  font-size: 21px;
  line-height: 1.25;
  font-weight: 900;
}

.movie-info h3 a:hover,
.ranking-content h3 a:hover {
  color: var(--site-pink);
}

.movie-info p {
  flex: 1;
  margin: 0 0 16px;
  color: var(--site-muted);
  line-height: 1.72;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: #8a5366;
  font-size: 13px;
  font-weight: 700;
}

.movie-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #fff1f3;
}

.movie-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.movie-tags span,
.detail-tags span {
  padding: 5px 10px;
  border-radius: 999px;
  color: #ed1659;
  background: #ffe4e9;
  font-size: 12px;
  font-weight: 800;
}

.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-height: 38px;
  padding: 0 16px;
  font-size: 14px;
}

.movie-card-horizontal {
  flex-direction: row;
}

.movie-card-horizontal .movie-cover {
  width: 38%;
  min-width: 180px;
  aspect-ratio: 4 / 3;
}

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

.category-card {
  position: relative;
  min-height: 178px;
  padding: 28px;
  overflow: hidden;
  border-radius: 30px;
  background: #fff;
  box-shadow: var(--site-shadow);
  transition: all 0.2s ease;
}

.category-card::after {
  content: "";
  position: absolute;
  width: 110px;
  height: 110px;
  right: -30px;
  bottom: -30px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 51, 102, 0.22), rgba(250, 204, 21, 0.28));
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 56px rgba(255, 51, 102, 0.22);
}

.category-card h2,
.category-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 950;
}

.category-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--site-muted);
  line-height: 1.7;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, minmax(120px, 0.6fr));
  gap: 12px;
  margin-bottom: 28px;
  padding: 16px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 34px rgba(255, 51, 102, 0.12);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(255, 51, 102, 0.16);
  outline: 0;
  padding: 0 14px;
  border-radius: 16px;
  color: #384152;
  background: #fff;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--site-pink-soft);
  box-shadow: 0 0 0 4px rgba(255, 107, 142, 0.12);
}

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

.ranking-item {
  position: relative;
  display: grid;
  grid-template-columns: 110px 48px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(255, 51, 102, 0.12);
  overflow: hidden;
}

.ranking-cover {
  width: 110px;
  height: 120px;
  border-radius: 20px;
  overflow: hidden;
  background: #fff1f3;
}

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

.ranking-number {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, #ff3366, #facc15);
  font-weight: 950;
}

.ranking-content h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 900;
}

.ranking-content p {
  margin: 0 0 10px;
  color: var(--site-muted);
  line-height: 1.65;
}

.detail-hero {
  padding: 52px 0 38px;
  background:
    radial-gradient(circle at 82% 20%, rgba(255, 255, 255, 0.24), transparent 16rem),
    linear-gradient(135deg, #1f1a2e, #ff3366 55%, #ff6bc4);
  color: #fff;
}

.detail-layout {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 34px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 34px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
  background: rgba(255, 255, 255, 0.1);
}

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

.breadcrumb {
  margin-bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #fff;
}

.detail-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.06em;
  font-weight: 950;
}

.detail-hero p {
  max-width: 780px;
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  line-height: 1.85;
}

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

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 36px;
  background: #09090b;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.28);
}

.player-box video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #050505;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.15));
  font-size: clamp(20px, 3vw, 34px);
  z-index: 2;
}

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

.content-card {
  padding: 30px;
  border-radius: 32px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(255, 51, 102, 0.12);
}

.content-card h2 {
  margin: 0 0 18px;
  font-size: 30px;
  line-height: 1.2;
  font-weight: 950;
}

.content-card p {
  margin: 0 0 18px;
  color: #4b5563;
  font-size: 17px;
  line-height: 1.95;
}

.content-card p:last-child {
  margin-bottom: 0;
}

.no-results {
  display: none;
  padding: 36px;
  border-radius: 28px;
  color: var(--site-muted);
  background: #fff;
  box-shadow: 0 12px 34px rgba(255, 51, 102, 0.12);
  text-align: center;
  font-weight: 800;
}

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

.site-footer {
  margin-top: 86px;
  padding: 52px 0 0;
  background: #111827;
  color: #fff;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
}

.footer-inner p {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.footer-links a {
  padding: 9px 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.08);
}

.footer-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.footer-bottom {
  margin-top: 36px;
  padding: 18px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.56);
  text-align: center;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-18px);
  }
}

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

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

  .hero-art {
    max-width: 620px;
  }
}

@media (max-width: 820px) {
  .site-nav {
    min-height: 66px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-menu {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 20px 50px rgba(255, 51, 102, 0.20);
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu a {
    text-align: center;
  }

  .hero {
    min-height: auto;
    padding: 52px 0 100px;
  }

  .hero-poster-wrap,
  .hero-poster-wrap img {
    min-height: 360px;
  }

  .featured-grid,
  .movie-grid,
  .movie-grid.three,
  .movie-grid.two,
  .category-grid,
  .ranking-list,
  .footer-inner {
    grid-template-columns: 1fr;
  }

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

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .site-logo,
  .footer-logo {
    font-size: 22px;
  }

  .logo-mark {
    width: 36px;
    height: 36px;
    border-radius: 14px;
  }

  .hero-search {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-search button {
    width: 100%;
  }

  .section-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .movie-card-horizontal {
    flex-direction: column;
  }

  .movie-card-horizontal .movie-cover {
    width: 100%;
    min-width: 0;
    aspect-ratio: 3 / 4;
  }

  .ranking-item {
    grid-template-columns: 84px 40px 1fr;
    gap: 10px;
  }

  .ranking-cover {
    width: 84px;
    height: 100px;
    border-radius: 16px;
  }

  .content-card {
    padding: 22px;
  }
}
