html {
  scroll-behavior: smooth;
}

body {
  color: #1f2937;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

main {
  min-height: 60vh;
}

img {
  background: linear-gradient(135deg, #fdf2f8, #ffedd5, #eff6ff);
  object-fit: cover;
}

.site-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.65);
}

.logo-mark svg {
  width: 1.5rem;
  height: 1.5rem;
  color: #ffffff;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #374151;
  font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ec4899;
}

.mobile-toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-toggle span {
  display: block;
  width: 1.45rem;
  height: 0.125rem;
  border-radius: 999px;
  background: #374151;
}

.mobile-menu {
  display: none;
  padding: 1rem 0;
  border-top: 1px solid #e5e7eb;
}

.mobile-menu.is-open {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-menu .nav-link {
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
}

.mobile-menu .nav-link:hover,
.mobile-menu .nav-link.active {
  background: #fdf2f8;
}

.hero-carousel {
  position: relative;
  height: min(74vh, 620px);
  min-height: 500px;
  overflow: hidden;
  background: linear-gradient(120deg, #ec4899, #fb923c, #60a5fa);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: saturate(1.04) contrast(1.02);
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.86), rgba(236, 72, 153, 0.62), rgba(251, 146, 60, 0.32)), linear-gradient(0deg, rgba(0, 0, 0, 0.56), transparent 55%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 330px;
  align-items: center;
  gap: 3rem;
}

.hero-copy {
  color: #ffffff;
  max-width: 780px;
}

.hero-site-name,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.eyebrow {
  color: #ec4899;
  background: #fdf2f8;
}

.hero-copy h1,
.hero-copy h2 {
  margin-top: 1.15rem;
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  line-height: 0.96;
  font-weight: 900;
  letter-spacing: -0.05em;
  text-shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
}

.hero-copy p {
  margin-top: 1.25rem;
  max-width: 660px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 2vw, 1.3rem);
  line-height: 1.75;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.4rem;
}

.hero-meta span {
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-primary,
.hero-secondary,
.cta-band a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 3.1rem;
  padding: 0.9rem 1.55rem;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hero-primary,
.cta-band a {
  color: #ec4899;
  background: #ffffff;
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.18);
}

.hero-secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.hero-primary:hover,
.hero-secondary:hover,
.cta-band a:hover {
  transform: translateY(-2px) scale(1.03);
}

.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  min-height: 420px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  transform: rotate(2deg);
  transition: transform 0.3s ease;
}

.hero-card:hover {
  transform: rotate(0deg) translateY(-4px);
}

.hero-card img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

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

.hero-card span,
.hero-card strong {
  position: absolute;
  z-index: 2;
  left: 1.4rem;
  right: 1.4rem;
  color: #ffffff;
}

.hero-card span {
  top: 1.2rem;
  width: fit-content;
  padding: 0.38rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
}

.hero-card strong {
  bottom: 1.4rem;
  font-size: 1.65rem;
  line-height: 1.2;
}

.hero-dots {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 1.4rem;
  display: flex;
  gap: 0.55rem;
  transform: translateX(-50%);
}

.hero-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 2.2rem;
  background: #ffffff;
}

.filter-section {
  margin-top: -3rem;
  position: relative;
  z-index: 4;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.35fr);
  gap: 1.5rem;
  align-items: center;
  padding: 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 70px rgba(236, 72, 153, 0.15);
  backdrop-filter: blur(18px);
}

.filter-panel h2 {
  margin-top: 0.5rem;
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  font-weight: 850;
  color: #1f2937;
}

.filter-controls {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(140px, 0.5fr) minmax(140px, 0.5fr) auto;
  gap: 0.75rem;
}

.filter-controls input,
.filter-controls select,
.filter-controls button {
  width: 100%;
  min-height: 3rem;
  border-radius: 999px;
  border: 1px solid #f3d5e6;
  background: #ffffff;
  padding: 0 1rem;
  color: #374151;
  outline: none;
}

.filter-controls input:focus,
.filter-controls select:focus {
  border-color: #ec4899;
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.12);
}

.filter-controls button {
  color: #ffffff;
  font-weight: 800;
  border: 0;
  background: linear-gradient(90deg, #ec4899, #f97316);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-heading h2 {
  margin-top: 0.5rem;
  color: #1f2937;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-heading a {
  color: #ec4899;
  font-weight: 800;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 1.35rem;
  background: linear-gradient(180deg, #ffffff, #fff7fb);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 55px rgba(236, 72, 153, 0.18);
}

.movie-card-link {
  display: block;
  height: 100%;
}

.movie-poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4.05;
}

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

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

.poster-year,
.poster-play {
  position: absolute;
  z-index: 2;
}

.poster-year {
  top: 0.8rem;
  right: 0.8rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  color: #374151;
  font-size: 0.78rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
}

.poster-play {
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #ec4899, #f97316);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.28);
  transform: translate(-50%, -50%) scale(0.86);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.movie-card-body {
  padding: 1rem;
}

.movie-badges {
  margin-bottom: 0.75rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.7rem;
  padding: 0 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
}

.badge-pink {
  color: #be185d;
  background: linear-gradient(90deg, #fce7f3, #ffedd5);
}

.badge-blue {
  color: #1d4ed8;
  background: #dbeafe;
}

.badge-green {
  color: #15803d;
  background: #dcfce7;
}

.movie-title {
  color: #1f2937;
  font-size: 1.08rem;
  font-weight: 850;
  line-height: 1.32;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.movie-desc {
  margin-top: 0.55rem;
  color: #64748b;
  font-size: 0.92rem;
  line-height: 1.65;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.85rem;
}

.tag-row span,
.detail-tags span {
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  color: #64748b;
  font-size: 0.74rem;
  background: #f8fafc;
}

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

.category-tile {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border-radius: 1.5rem;
  padding: 1.4rem;
  color: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.14);
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease;
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.78), rgba(236, 72, 153, 0.45));
}

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

.category-tile span,
.category-tile p {
  position: relative;
  z-index: 2;
  display: block;
}

.category-tile span {
  margin-top: 4.6rem;
  font-size: 1.45rem;
  font-weight: 900;
}

.category-tile p {
  margin-top: 0.5rem;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.6;
}

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

.compact-card {
  overflow: hidden;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.compact-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(236, 72, 153, 0.16);
}

.compact-link {
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0.8rem;
  align-items: center;
}

.compact-link img {
  width: 6rem;
  height: 6rem;
  border-radius: 0.85rem;
}

.compact-link h3 {
  color: #1f2937;
  font-weight: 850;
  line-height: 1.35;
}

.compact-link p {
  margin-top: 0.35rem;
  color: #64748b;
  font-size: 0.86rem;
  line-height: 1.55;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.compact-link span {
  display: inline-block;
  margin-top: 0.45rem;
  color: #ec4899;
  font-size: 0.8rem;
  font-weight: 800;
}

.cta-band {
  border-radius: 1.7rem;
  padding: clamp(2rem, 5vw, 4rem);
  text-align: center;
  color: #ffffff;
  background: linear-gradient(120deg, #ec4899, #fb923c, #60a5fa);
  box-shadow: 0 24px 60px rgba(236, 72, 153, 0.18);
}

.cta-band h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 900;
}

.cta-band p {
  max-width: 760px;
  margin: 1rem auto 1.7rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  line-height: 1.8;
}

.page-hero {
  position: relative;
  overflow: hidden;
  min-height: 350px;
  display: flex;
  align-items: center;
  color: #ffffff;
  background: linear-gradient(120deg, #ec4899, #fb923c, #60a5fa);
}

.compact-hero {
  min-height: 300px;
  text-align: center;
}

.compact-hero .container {
  max-width: 900px;
}

.page-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.84), rgba(236, 72, 153, 0.48));
}

.page-hero-content,
.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  margin-top: 1rem;
  font-size: clamp(2.3rem, 5vw, 4.8rem);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 760px;
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.1rem;
  line-height: 1.8;
}

.compact-hero p {
  margin-left: auto;
  margin-right: auto;
}

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

.ranking-list {
  display: grid;
  gap: 1rem;
}

.ranking-row {
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
  overflow: hidden;
}

.ranking-row a {
  display: grid;
  grid-template-columns: 4rem 6.5rem minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding: 0.9rem 1rem;
}

.rank-num {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 900;
  background: linear-gradient(135deg, #ec4899, #f97316);
}

.ranking-row img {
  width: 6.5rem;
  height: 7.4rem;
  border-radius: 0.9rem;
}

.ranking-row h2 {
  color: #1f2937;
  font-size: 1.25rem;
  font-weight: 900;
}

.ranking-row p {
  margin-top: 0.35rem;
  color: #64748b;
  line-height: 1.6;
}

.ranking-row div span {
  display: inline-block;
  margin-top: 0.55rem;
  color: #ec4899;
  font-weight: 800;
  font-size: 0.9rem;
}

.detail-wrap {
  min-height: 70vh;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 1.4rem;
  color: #64748b;
  font-weight: 700;
}

.breadcrumbs a:hover {
  color: #ec4899;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 0.8fr);
  gap: 2rem;
  align-items: start;
}

.detail-main,
.side-card {
  overflow: hidden;
  border-radius: 1.5rem;
  background: #ffffff;
  box-shadow: 0 20px 55px rgba(15, 23, 42, 0.1);
}

.player-card {
  position: relative;
  overflow: hidden;
  background: #000000;
  aspect-ratio: 16 / 9;
}

.player-card video {
  width: 100%;
  height: 100%;
  cursor: pointer;
  background: #000000;
}

.play-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 0.9rem;
  color: #ffffff;
  text-align: center;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.2));
  z-index: 3;
}

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

.play-pulse {
  display: grid;
  place-items: center;
  width: 5rem;
  height: 5rem;
  margin: 0 auto;
  border-radius: 999px;
  color: #ffffff;
  font-size: 2rem;
  background: linear-gradient(135deg, #ec4899, #f97316);
  box-shadow: 0 0 0 1rem rgba(255, 255, 255, 0.14), 0 18px 40px rgba(0, 0, 0, 0.28);
}

.play-layer strong {
  font-size: 1.15rem;
}

.detail-content {
  padding: clamp(1.2rem, 3vw, 2rem);
}

.detail-content h1 {
  margin-top: 1rem;
  color: #1f2937;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.15;
}

.lead {
  margin-top: 1rem;
  color: #475569;
  font-size: 1.1rem;
  line-height: 1.8;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.2rem;
}

.detail-meta-box {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 1.4rem;
  padding: 1rem;
  border-radius: 1rem;
  background: #f8fafc;
}

.detail-meta-box span {
  color: #475569;
  font-weight: 700;
}

.prose-block,
.review-block {
  margin-top: 1.6rem;
}

.prose-block h2,
.review-block h2,
.side-card h2 {
  color: #1f2937;
  font-size: 1.35rem;
  font-weight: 900;
}

.prose-block p,
.review-block p {
  margin-top: 0.8rem;
  color: #374151;
  line-height: 1.95;
}

.review-block {
  padding: 1.25rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, #fdf2f8, #fff7ed);
}

.detail-side {
  position: sticky;
  top: 5.5rem;
}

.side-card {
  padding: 1.2rem;
}

.side-list {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

.more-recommend {
  margin-top: 3.5rem;
}

.site-footer {
  margin-top: 4rem;
  padding-top: 3rem;
  color: #e5e7eb;
  background: #111827;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}

.footer-logo {
  display: inline-flex;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 900;
  background: linear-gradient(90deg, #f472b6, #fb923c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-footer p {
  color: #cbd5e1;
  line-height: 1.8;
}

.site-footer h2 {
  margin-bottom: 1rem;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 900;
}

.footer-links {
  display: grid;
  gap: 0.55rem;
}

.footer-links a {
  color: #cbd5e1;
}

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

.footer-bottom {
  margin-top: 2.5rem;
  padding: 1rem;
  color: #94a3b8;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.is-hidden {
  display: none !important;
}

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

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

  .hero-inner {
    grid-template-columns: minmax(0, 1fr) 280px;
  }
}

@media (max-width: 900px) {
  .hero-carousel {
    height: auto;
    min-height: 620px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 1.4rem;
    padding-top: 3rem;
    padding-bottom: 5rem;
  }

  .hero-card {
    display: none;
  }

  .filter-panel,
  .filter-controls,
  .detail-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .detail-side {
    position: static;
  }

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

@media (max-width: 640px) {
  .hero-copy h1,
  .hero-copy h2 {
    font-size: 2.7rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-primary,
  .hero-secondary,
  .cta-band a {
    width: 100%;
  }

  .movie-grid,
  .featured-grid,
  .category-movie-grid,
  .search-grid,
  .ranking-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

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

  .ranking-row a {
    grid-template-columns: 3.5rem 5rem minmax(0, 1fr);
  }

  .ranking-row img {
    width: 5rem;
    height: 6rem;
  }

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

  .compact-link {
    grid-template-columns: 5rem minmax(0, 1fr);
  }

  .compact-link img {
    width: 5rem;
    height: 5rem;
  }
}
