html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: linear-gradient(135deg, #fff1f8 0%, #f6edff 46%, #eaf7ff 100%);
  color: #1f2937;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    radial-gradient(circle at top left, rgba(236, 72, 153, 0.18), transparent 34rem),
    radial-gradient(circle at 82% 12%, rgba(59, 130, 246, 0.16), transparent 32rem),
    radial-gradient(circle at 60% 100%, rgba(168, 85, 247, 0.12), transparent 34rem);
}

img {
  background: linear-gradient(135deg, rgba(244, 114, 182, 0.16), rgba(96, 165, 250, 0.16));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(244, 114, 182, 0.18);
  box-shadow: 0 10px 30px rgba(31, 41, 55, 0.06);
}

.site-header-inner {
  max-width: 1200px;
  height: 72px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.brand-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border-radius: 12px;
  background: linear-gradient(135deg, #ec4899, #8b5cf6, #3b82f6);
  box-shadow: 0 12px 28px rgba(236, 72, 153, 0.26);
}

.brand-text {
  font-size: 1.35rem;
  background: linear-gradient(135deg, #ec4899, #8b5cf6, #2563eb);
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  padding: 9px 13px;
  border-radius: 999px;
  color: #4b5563;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #db2777;
  background: rgba(244, 114, 182, 0.12);
  transform: translateY(-1px);
}

.header-search {
  display: flex;
  align-items: center;
  width: 270px;
  padding: 4px;
  border: 1px solid rgba(244, 114, 182, 0.26);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
}

.header-search input,
.mobile-search input,
.big-search input,
.inline-filter input {
  width: 100%;
  color: #374151;
  outline: none;
  background: transparent;
}

.header-search input {
  padding: 8px 10px 8px 14px;
}

.header-search button,
.mobile-search button,
.big-search button,
.inline-filter button {
  white-space: nowrap;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  box-shadow: 0 10px 24px rgba(236, 72, 153, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-search button {
  padding: 8px 14px;
  font-size: 0.9rem;
}

.header-search button:hover,
.mobile-search button:hover,
.big-search button:hover,
.inline-filter button:hover,
.primary-button:hover,
.small-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 15px 32px rgba(236, 72, 153, 0.28);
}

.mobile-menu-button {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #db2777;
  background: rgba(244, 114, 182, 0.12);
}

.mobile-nav {
  display: none;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 18px;
}

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

.mobile-search {
  display: flex;
  gap: 8px;
  padding: 4px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(244, 114, 182, 0.24);
}

.mobile-search input {
  padding: 10px 14px;
}

.mobile-search button {
  padding: 10px 18px;
}

main {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-shell {
  position: relative;
  margin: 34px auto 28px;
  padding: 18px;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 30px 80px rgba(31, 41, 55, 0.12);
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  width: 280px;
  height: 280px;
  right: -70px;
  top: -80px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.28), transparent 68%);
}

.hero-slider {
  position: relative;
  min-height: 540px;
}

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

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

.hero-media {
  position: relative;
  height: 500px;
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 28px 64px rgba(31, 41, 55, 0.24);
}

.hero-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.38));
}

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

.hero-copy {
  position: relative;
  z-index: 1;
  padding: 30px 22px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #db2777;
  background: rgba(244, 114, 182, 0.14);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
  color: #111827;
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1.02;
}

.hero-copy h1 {
  max-width: 650px;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
}

.hero-copy p {
  max-width: 640px;
  margin-top: 18px;
  color: #4b5563;
  font-size: 1.08rem;
  line-height: 1.85;
}

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

.hero-tags {
  margin-top: 22px;
}

.hero-tags span,
.tag-row span,
.detail-meta span,
.movie-meta-line span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-weight: 700;
}

.hero-tags span,
.tag-row span {
  padding: 6px 10px;
  color: #6d28d9;
  background: rgba(139, 92, 246, 0.12);
}

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

.primary-button,
.ghost-button,
.small-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 800;
}

.primary-button,
.small-button {
  color: #ffffff;
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  box-shadow: 0 12px 28px rgba(236, 72, 153, 0.22);
}

.ghost-button {
  color: #db2777;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(244, 114, 182, 0.3);
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 28px;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(219, 39, 119, 0.28);
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 28px;
  background: #db2777;
}

.hero-quick-links {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 6px 2px;
}

.hero-quick-links a {
  padding: 10px 14px;
  border-radius: 999px;
  color: #4b5563;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.86);
  font-weight: 700;
}

.search-panel,
.page-hero,
.detail-hero,
.detail-content,
.player-section,
.content-section,
.site-footer {
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 22px 60px rgba(31, 41, 55, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.72);
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: 28px;
  align-items: center;
  margin: 28px 0;
  padding: 30px;
}

.search-panel h2,
.section-heading h2,
.detail-content h2 {
  color: #111827;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.search-panel h2,
.section-heading h2 {
  font-size: clamp(1.6rem, 3vw, 2.35rem);
}

.search-panel p {
  margin-top: 10px;
  color: #6b7280;
  line-height: 1.8;
}

.big-search,
.inline-filter {
  display: flex;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(244, 114, 182, 0.24);
}

.big-search input,
.inline-filter input {
  padding: 13px 16px;
}

.big-search button,
.inline-filter button {
  padding: 12px 20px;
}

.content-section {
  margin: 28px 0;
  padding: 28px;
}

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

.section-link {
  color: #db2777;
  font-weight: 800;
}

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

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

.category-card {
  min-height: 170px;
  padding: 20px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(253, 242, 248, 0.82));
  border: 1px solid rgba(244, 114, 182, 0.18);
  box-shadow: 0 16px 42px rgba(31, 41, 55, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(236, 72, 153, 0.14);
}

.category-mark {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
}

.category-card h2 {
  margin-top: 14px;
  color: #111827;
  font-size: 1.22rem;
  font-weight: 900;
}

.category-card p {
  margin-top: 8px;
  color: #6b7280;
  line-height: 1.7;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 16px 42px rgba(31, 41, 55, 0.09);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 70px rgba(31, 41, 55, 0.16);
}

.movie-cover {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #fdf2f8;
}

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

.movie-card:hover .movie-cover img,
.rank-item:hover .rank-thumb img {
  transform: scale(1.07);
}

.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(236, 72, 153, 0.88);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.82);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

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

.movie-info {
  padding: 16px;
}

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 10px;
}

.movie-meta-line span {
  padding: 4px 8px;
  color: #6b7280;
  background: #f3f4f6;
  font-size: 0.75rem;
}

.movie-info h3 {
  color: #111827;
  font-weight: 900;
  font-size: 1.05rem;
  line-height: 1.35;
}

.movie-info h3 a:hover,
.rank-main h2 a:hover {
  color: #db2777;
}

.movie-info p {
  display: -webkit-box;
  min-height: 48px;
  margin-top: 8px;
  overflow: hidden;
  color: #6b7280;
  line-height: 1.65;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row {
  margin-top: 12px;
}

.tag-row.large {
  margin: 20px 0;
}

.page-shell,
.detail-shell {
  padding: 32px 0 42px;
}

.page-hero {
  margin-bottom: 28px;
  padding: 42px;
}

.page-hero h1 {
  max-width: 900px;
  font-size: clamp(2.3rem, 5vw, 4.2rem);
}

.page-hero p {
  max-width: 760px;
  margin-top: 16px;
  color: #6b7280;
  font-size: 1.08rem;
  line-height: 1.8;
}

.inline-filter {
  max-width: 760px;
  margin-top: 24px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 64px 92px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 38px rgba(31, 41, 55, 0.08);
}

.rank-number {
  color: #db2777;
  font-size: 1.55rem;
  font-weight: 900;
  text-align: center;
}

.rank-thumb {
  display: block;
  width: 92px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 18px;
}

.rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.rank-main h2 {
  color: #111827;
  font-size: 1.18rem;
  font-weight: 900;
}

.rank-main p {
  margin: 8px 0 10px;
  color: #6b7280;
  line-height: 1.7;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #6b7280;
  font-weight: 700;
}

.breadcrumb a {
  color: #db2777;
}

.detail-hero {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  padding: 30px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 24px 62px rgba(31, 41, 55, 0.18);
}

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

.detail-info h1 {
  font-size: clamp(2.3rem, 5vw, 4.6rem);
}

.detail-line {
  margin-top: 16px;
  color: #4b5563;
  font-size: 1.14rem;
  line-height: 1.9;
}

.detail-meta {
  margin-top: 18px;
}

.detail-meta span {
  padding: 8px 12px;
  color: #db2777;
  background: rgba(244, 114, 182, 0.12);
}

.player-section {
  margin-top: 28px;
  padding: 18px;
}

.player-frame {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #111827;
  aspect-ratio: 16 / 9;
}

.player-frame video,
.player-cover,
.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.player-frame video,
.player-cover img {
  object-fit: cover;
}

.player-cover {
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.player-cover::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.12), rgba(17, 24, 39, 0.62));
}

.player-cover span {
  position: relative;
  z-index: 3;
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  font-size: 2rem;
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.34);
}

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

.detail-content {
  margin-top: 28px;
  padding: 34px;
}

.detail-content h2 {
  margin-top: 28px;
  font-size: 1.65rem;
}

.detail-content h2:first-child {
  margin-top: 0;
}

.detail-content p {
  margin-top: 12px;
  color: #4b5563;
  font-size: 1.05rem;
  line-height: 2;
}

.related-section {
  margin-top: 28px;
}

.movie-card.compact .movie-info p {
  min-height: 0;
}

.site-footer {
  width: min(1200px, calc(100% - 32px));
  margin: 34px auto 30px;
  padding: 34px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 26px;
}

.site-footer h2 {
  color: #111827;
  font-size: 1.15rem;
  font-weight: 900;
}

.site-footer p,
.footer-links a {
  color: #6b7280;
  line-height: 1.8;
}

.footer-links {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

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

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

@media (max-width: 1080px) {
  .header-search {
    display: none;
  }

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

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

  .hero-slider {
    min-height: 860px;
  }

  .hero-media {
    height: 520px;
  }
}

@media (max-width: 760px) {
  .site-header-inner {
    height: 64px;
    padding: 0 16px;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  main,
  .site-footer {
    width: min(100% - 20px, 1200px);
  }

  .hero-shell,
  .search-panel,
  .page-hero,
  .content-section,
  .detail-hero,
  .detail-content,
  .site-footer {
    border-radius: 22px;
    padding: 20px;
  }

  .hero-slider {
    min-height: 720px;
  }

  .hero-media {
    height: 420px;
    border-radius: 22px;
  }

  .hero-copy {
    padding: 14px 4px 28px;
  }

  .hero-dots {
    bottom: 20px;
  }

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

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

  .big-search,
  .inline-filter {
    border-radius: 20px;
    flex-direction: column;
  }

  .rank-item {
    grid-template-columns: 42px 74px minmax(0, 1fr);
  }

  .rank-item .small-button {
    grid-column: 2 / 4;
  }

  .rank-thumb {
    width: 74px;
  }

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

@media (max-width: 520px) {
  .brand-text {
    font-size: 1.08rem;
  }

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

  .hero-slider {
    min-height: 650px;
  }

  .hero-media {
    height: 340px;
  }

  .movie-card {
    border-radius: 20px;
  }

  .player-cover span {
    width: 68px;
    height: 68px;
  }
}
