:root {
  --pink: #ec4899;
  --purple: #8b5cf6;
  --blue: #3b82f6;
  --dark: #111827;
  --muted: #6b7280;
  --soft: #fdf2f8;
  --card: #ffffff;
  --line: rgba(15, 23, 42, 0.08);
  --shadow: 0 20px 45px rgba(88, 28, 135, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--dark);
  background: linear-gradient(135deg, #fdf2f8 0%, #f5f3ff 45%, #eff6ff 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(236, 72, 153, 0.96), rgba(139, 92, 246, 0.96), rgba(59, 130, 246, 0.96));
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.25);
  backdrop-filter: blur(18px);
}

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

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.logo-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  color: #fde68a;
}

.logo-text {
  font-size: 22px;
}

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

.nav-link,
.mobile-nav-link {
  color: rgba(255, 255, 255, 0.84);
  text-decoration: none;
  padding: 9px 14px;
  border-radius: 12px;
  transition: 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
}

.mobile-menu-button {
  width: 42px;
  height: 42px;
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
}

.mobile-menu-button span {
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 999px;
}

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

.mobile-nav.is-open {
  display: grid;
  gap: 8px;
}

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

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
  transform: scale(1.02);
}

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

.hero-slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(76, 5, 55, 0.94) 0%, rgba(88, 28, 135, 0.78) 46%, rgba(30, 64, 175, 0.72) 100%);
}

.hero-content {
  position: absolute;
  left: max(32px, calc((100% - 1180px) / 2));
  top: 50%;
  transform: translateY(-50%);
  width: min(650px, calc(100% - 64px));
  color: #ffffff;
}

.hero-kicker,
.section-heading span,
.detail-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fde68a;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hero-content h1 {
  margin: 16px 0 18px;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.02;
  font-weight: 900;
  text-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.hero-content p {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
  line-height: 1.8;
}

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

.hero-tags span,
.detail-tags span,
.card-tags span,
.ranking-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: inherit;
  font-size: 13px;
}

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

.primary-button,
.ghost-button,
.hero-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  transition: 0.25s ease;
}

.primary-button,
.hero-search button {
  background: linear-gradient(90deg, var(--pink), var(--purple));
  box-shadow: 0 18px 35px rgba(236, 72, 153, 0.35);
}

.ghost-button {
  background: rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

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

.hero-arrow {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
  transition: 0.25s ease;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.3);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

.hero-dots {
  position: absolute;
  right: max(32px, calc((100% - 1180px) / 2));
  bottom: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(130px, 1fr));
  gap: 12px;
  width: min(520px, calc(100% - 64px));
}

.hero-dot {
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px;
  border: 0;
  border-radius: 18px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
  text-align: left;
  backdrop-filter: blur(14px);
  transition: 0.25s ease;
}

.hero-dot img {
  width: 52px;
  height: 38px;
  border-radius: 12px;
  object-fit: cover;
}

.hero-dot span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 700;
}

.hero-dot.is-active,
.hero-dot:hover {
  background: rgba(255, 255, 255, 0.25);
}

.quick-search-section {
  position: relative;
  margin-top: -38px;
  z-index: 5;
}

.search-card,
.filter-panel,
.article-card,
.category-overview-card,
.player-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.search-card {
  display: grid;
  grid-template-columns: 1fr minmax(360px, 520px);
  gap: 24px;
  align-items: center;
  padding: 28px;
}

.search-card h2 {
  margin: 0 0 8px;
  font-size: 26px;
}

.search-card p {
  margin: 0;
  color: var(--muted);
}

.hero-search,
.filter-search {
  display: flex;
  gap: 10px;
}

.hero-search input,
.filter-search input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 999px;
  outline: none;
  padding: 0 18px;
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.hero-search input:focus,
.filter-search input:focus {
  border-color: rgba(236, 72, 153, 0.6);
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.12);
}

.content-section {
  padding: 72px 0;
}

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

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

.section-heading h2,
.inner-hero h1,
.detail-info h1 {
  margin: 10px 0 12px;
  color: #1f2937;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.18;
  font-weight: 900;
}

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

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

.text-link {
  color: var(--purple);
  text-decoration: none;
  font-weight: 800;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(67, 56, 202, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 44px rgba(67, 56, 202, 0.2);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #f9a8d4, #a78bfa);
}

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

.movie-card:hover .poster-wrap img {
  transform: scale(1.05);
}

.poster-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(17, 24, 39, 0.82));
}

.play-pill,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.play-pill {
  right: 12px;
  bottom: 12px;
  min-height: 30px;
  padding: 0 12px;
  background: linear-gradient(90deg, var(--pink), var(--purple));
}

.rank-badge {
  left: 12px;
  top: 12px;
  width: 34px;
  height: 34px;
  background: rgba(17, 24, 39, 0.72);
  backdrop-filter: blur(10px);
}

.card-body {
  padding: 18px;
}

.card-tags {
  color: #7c3aed;
}

.card-tags span {
  background: #f3e8ff;
}

.card-body h3 {
  margin: 12px 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.card-body h3 a,
.ranking-item h3 a {
  color: #111827;
  text-decoration: none;
}

.card-body p {
  min-height: 48px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 14px;
  color: #6b7280;
  font-size: 13px;
}

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

.compact-card .card-body h3 {
  font-size: 16px;
}

.compact-card .card-body p {
  display: none;
}

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

.category-tile {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border-radius: 26px;
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 16px 35px rgba(88, 28, 135, 0.18);
}

.category-tile > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: transform 0.3s ease;
}

.category-tile:hover > img {
  transform: scale(1.08);
}

.category-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.1), rgba(76, 29, 149, 0.86));
}

.category-icon,
.category-tile strong,
.category-tile em {
  position: absolute;
  z-index: 2;
  left: 18px;
  right: 18px;
}

.category-icon {
  top: 18px;
  font-size: 26px;
}

.category-tile strong {
  bottom: 62px;
  font-size: 22px;
}

.category-tile em {
  bottom: 18px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  line-height: 1.5;
  font-style: normal;
}

.inner-hero {
  padding: 72px 0 62px;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.14), rgba(139, 92, 246, 0.14), rgba(59, 130, 246, 0.12));
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
  color: #7c3aed;
  font-weight: 700;
}

.breadcrumb a,
.breadcrumb span {
  color: inherit;
  text-decoration: none;
}

.breadcrumb a::after {
  content: "/";
  padding-left: 10px;
  color: #c084fc;
}

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

.category-overview-card {
  overflow: hidden;
}

.category-overview-link {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 22px;
  color: inherit;
  text-decoration: none;
}

.category-preview-stack {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.category-preview-stack img {
  width: 100%;
  height: 160px;
  border-radius: 18px;
  object-fit: cover;
}

.category-overview-body span {
  color: #ec4899;
  font-size: 28px;
}

.category-overview-body h2 {
  margin: 10px 0;
  font-size: 28px;
}

.category-overview-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.filter-panel {
  display: grid;
  gap: 16px;
  margin-bottom: 30px;
  padding: 20px;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chip {
  min-height: 36px;
  padding: 0 15px;
  border: 0;
  border-radius: 999px;
  color: #6d28d9;
  background: #f3e8ff;
  cursor: pointer;
  transition: 0.2s ease;
}

.filter-chip.is-active,
.filter-chip:hover {
  color: #ffffff;
  background: linear-gradient(90deg, var(--pink), var(--purple));
}

[data-card].is-hidden {
  display: none;
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  padding: 14px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(67, 56, 202, 0.1);
}

.ranking-cover {
  position: relative;
  display: block;
  height: 150px;
  overflow: hidden;
  border-radius: 18px;
}

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

.ranking-cover span {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 2;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  font-weight: 900;
}

.ranking-item h3 {
  margin: 4px 0 10px;
  font-size: 20px;
}

.ranking-item p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.7;
}

.ranking-meta {
  color: #7c3aed;
}

.ranking-meta span {
  background: #f3e8ff;
}

.detail-head {
  padding: 52px 0;
  background: radial-gradient(circle at 20% 20%, rgba(236, 72, 153, 0.22), transparent 35%), linear-gradient(135deg, #111827, #3b0764 48%, #1e3a8a);
  color: #ffffff;
}

.detail-head .breadcrumb {
  color: #fde68a;
}

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

.detail-poster {
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.32);
}

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

.detail-info h1 {
  color: #ffffff;
  font-size: clamp(34px, 5vw, 58px);
}

.detail-one-line {
  max-width: 780px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.85;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 26px 0;
}

.detail-meta-grid span {
  display: grid;
  gap: 6px;
  min-height: 72px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
}

.detail-meta-grid strong {
  color: #f9a8d4;
  font-size: 13px;
}

.player-section {
  padding: 42px 0 0;
  background: #0f172a;
}

.player-card {
  position: relative;
  overflow: hidden;
  padding: 0;
  border-radius: 30px;
  background: #020617;
  box-shadow: 0 28px 70px rgba(2, 6, 23, 0.45);
}

.movie-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  background: #000000;
  cursor: pointer;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player-dim {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.74), rgba(88, 28, 135, 0.56));
}

.player-button {
  position: relative;
  z-index: 2;
  width: 92px;
  height: 92px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 18px 45px rgba(236, 72, 153, 0.36);
  font-size: 34px;
  padding-left: 6px;
}

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

.detail-content {
  display: grid;
  gap: 28px;
}

.article-card {
  padding: 30px;
}

.article-card h2 {
  margin: 0 0 14px;
  font-size: 28px;
}

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

.related-section {
  padding-top: 18px;
}

.site-footer {
  color: #ffffff;
  background: linear-gradient(90deg, #111827, #4c1d95, #111827);
}

.footer-container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 28px;
}

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

.footer-links {
  display: grid;
  gap: 12px;
  align-content: start;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}

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

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

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

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

  .search-card,
  .detail-layout,
  .category-overview-link {
    grid-template-columns: 1fr;
  }

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

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

  .mobile-menu-button {
    display: flex;
  }

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

  .hero-slider {
    height: 620px;
  }

  .hero-content {
    top: 42%;
  }

  .hero-dots {
    left: 16px;
    right: 16px;
    bottom: 16px;
    width: auto;
    grid-template-columns: 1fr;
  }

  .hero-dot:nth-child(n + 4) {
    display: none;
  }

  .hero-arrow {
    display: none;
  }

  .hero-search,
  .filter-search,
  .horizontal-heading {
    flex-direction: column;
    align-items: stretch;
  }

  .movie-grid,
  .small-grid,
  .category-grid,
  .category-overview-grid,
  .ranking-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .ranking-item {
    grid-template-columns: 1fr;
  }

  .ranking-cover {
    height: auto;
    aspect-ratio: 3 / 4;
  }

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

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

@media (max-width: 480px) {
  .movie-grid,
  .small-grid,
  .category-grid,
  .category-overview-grid,
  .ranking-grid {
    grid-template-columns: 1fr;
  }

  .content-section {
    padding: 50px 0;
  }

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