:root {
  --site-pink: #ffb6c1;
  --site-blue: #87ceeb;
  --site-mint: #98d8c8;
  --site-cream: #fff8dc;
  --site-peach: #ffdab9;
  --site-ink: #1f2937;
  --site-muted: #6b7280;
  --site-line: rgba(31, 41, 55, 0.1);
  --site-card: rgba(255, 255, 255, 0.9);
  --site-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  --site-shadow-lg: 0 16px 45px rgba(31, 41, 55, 0.14);
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  color: var(--site-ink);
  background:
    radial-gradient(circle at top left, rgba(255, 182, 193, 0.22), transparent 32rem),
    radial-gradient(circle at top right, rgba(135, 206, 235, 0.2), transparent 34rem),
    linear-gradient(180deg, #ffffff 0%, #fffdf6 50%, #f8fbff 100%);
}

img {
  object-fit: cover;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 182, 193, 0.24);
  box-shadow: 0 8px 25px rgba(31, 41, 55, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: clamp(20px, 2vw, 28px);
  letter-spacing: -0.04em;
  color: var(--site-ink);
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #ffffff;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--site-pink), var(--site-blue));
  box-shadow: 0 10px 26px rgba(255, 182, 193, 0.48);
}

.brand-text {
  background: linear-gradient(90deg, #ff8faa, #66bde4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 15px;
  font-weight: 650;
  color: #4b5563;
}

.main-nav a,
.footer-links a,
.breadcrumbs a {
  transition: color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.footer-links a:hover,
.breadcrumbs a:hover {
  color: #f07f99;
}

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

.search-mini {
  position: relative;
  display: flex;
  align-items: center;
}

.search-mini input {
  width: 220px;
  height: 40px;
  padding: 0 42px 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 182, 193, 0.42);
  background: #ffffff;
  color: var(--site-ink);
  outline: none;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.search-mini input:focus,
.search-box input:focus,
.page-filter input:focus,
.page-filter select:focus {
  border-color: var(--site-pink);
  box-shadow: 0 0 0 4px rgba(255, 182, 193, 0.22);
}

.search-mini button {
  position: absolute;
  right: 4px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--site-pink), var(--site-blue));
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: var(--site-ink);
  background: rgba(255, 182, 193, 0.18);
}

.mobile-panel {
  display: none;
  padding: 0 0 20px;
}

.mobile-panel a {
  display: block;
  padding: 12px 0;
  color: #4b5563;
  border-top: 1px solid rgba(31, 41, 55, 0.08);
}

.hero-carousel {
  position: relative;
  overflow: hidden;
  min-height: 660px;
  isolation: isolate;
}

.hero-slide {
  display: none;
  position: relative;
  min-height: 660px;
  align-items: center;
}

.hero-slide.is-active {
  display: flex;
}

.hero-background {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(16, 24, 39, 0.9), rgba(16, 24, 39, 0.52), rgba(16, 24, 39, 0.18)),
    var(--hero-image);
  background-position: center;
  background-size: cover;
  transform: scale(1.04);
  z-index: -2;
}

.hero-background::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 24%, rgba(255, 182, 193, 0.38), transparent 22rem),
    radial-gradient(circle at 78% 18%, rgba(135, 206, 235, 0.34), transparent 24rem),
    linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.9) 100%);
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: center;
  gap: 48px;
  padding: 92px 0 120px;
}

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

.hero-eyebrow,
.section-eyebrow,
.detail-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 750;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.26);
}

.hero-copy h1,
.page-hero h1,
.detail-title {
  margin: 0;
  font-size: clamp(36px, 6vw, 76px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.08em;
}

.hero-movie-title {
  margin: 18px 0 0;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.hero-desc {
  max-width: 640px;
  margin: 22px 0 0;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.88);
}

.hero-meta,
.card-meta,
.detail-meta,
.rank-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

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

.hero-meta span,
.card-meta span,
.detail-meta span,
.rank-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.hero-meta span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-actions,
.section-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

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

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

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--site-pink), var(--site-blue));
  box-shadow: 0 14px 30px rgba(255, 182, 193, 0.36);
}

.btn-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(12px);
}

.btn-soft {
  color: #e27691;
  background: rgba(255, 182, 193, 0.16);
}

.hero-poster-card {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  min-height: 480px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: var(--site-shadow-lg);
  transform: rotate(1.5deg);
}

.hero-poster-card img {
  width: 100%;
  height: 480px;
}

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

.hero-poster-caption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 2;
  color: #ffffff;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 4;
}

.hero-dot {
  width: 44px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
  width: 72px;
  background: #ffffff;
}

.section {
  padding: 72px 0;
}

.section-soft {
  background: linear-gradient(135deg, rgba(255, 248, 220, 0.5), rgba(255, 218, 185, 0.3));
}

.section-blue {
  background: linear-gradient(135deg, rgba(135, 206, 235, 0.13), rgba(255, 182, 193, 0.1));
}

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

.section-title {
  margin: 0;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.section-desc,
.page-hero p,
.detail-lead {
  max-width: 720px;
  margin-top: 10px;
  color: var(--site-muted);
  line-height: 1.8;
}

.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.five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: var(--site-card);
  box-shadow: var(--site-shadow);
  border: 1px solid rgba(255, 255, 255, 0.72);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--site-shadow-lg);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, rgba(255, 182, 193, 0.24), rgba(135, 206, 235, 0.24));
}

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

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

.poster-badge,
.poster-year {
  position: absolute;
  top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  background: rgba(31, 41, 55, 0.62);
  backdrop-filter: blur(10px);
}

.poster-badge {
  left: 12px;
}

.poster-year {
  right: 12px;
}

.card-body {
  padding: 18px;
}

.card-title {
  display: -webkit-box;
  min-height: 3.1em;
  overflow: hidden;
  color: var(--site-ink);
  font-size: 18px;
  font-weight: 850;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-title:hover {
  color: #e27691;
}

.card-desc {
  display: -webkit-box;
  min-height: 4.8em;
  margin-top: 10px;
  overflow: hidden;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.card-meta {
  margin-top: 14px;
}

.card-meta span,
.rank-meta span {
  color: #6b7280;
  background: rgba(255, 182, 193, 0.13);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag-list span,
.tag-list a {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  color: #e27691;
  font-size: 12px;
  font-weight: 750;
  background: rgba(255, 182, 193, 0.14);
}

.card-link {
  display: inline-flex;
  align-items: center;
  margin-top: 16px;
  color: #e27691;
  font-weight: 850;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  padding: 24px;
  border-radius: 26px;
  color: var(--site-ink);
  background:
    radial-gradient(circle at top right, rgba(135, 206, 235, 0.28), transparent 9rem),
    linear-gradient(135deg, #ffffff, rgba(255, 248, 220, 0.75));
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: var(--site-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--site-shadow-lg);
}

.category-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 18px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--site-pink), var(--site-blue));
}

.category-card h2,
.category-card h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
}

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

.page-hero {
  padding: 72px 0 48px;
}

.page-hero-card {
  position: relative;
  overflow: hidden;
  padding: clamp(30px, 6vw, 64px);
  border-radius: 34px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(31, 41, 55, 0.85), rgba(31, 41, 55, 0.5)),
    linear-gradient(135deg, var(--site-pink), var(--site-blue));
  box-shadow: var(--site-shadow-lg);
}

.page-filter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 180px;
  gap: 14px;
  margin: 0 0 28px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--site-shadow);
}

.page-filter input,
.page-filter select,
.search-box input {
  height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(31, 41, 55, 0.12);
  background: #ffffff;
  outline: none;
}

.rank-list {
  display: grid;
  gap: 16px;
  counter-reset: rank-counter;
}

.rank-item {
  counter-increment: rank-counter;
  display: grid;
  grid-template-columns: 78px 96px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.74);
  box-shadow: var(--site-shadow);
}

.rank-number {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 20px;
  color: #ffffff;
  font-size: 20px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--site-pink), var(--site-blue));
}

.rank-thumb {
  overflow: hidden;
  width: 96px;
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  background: rgba(135, 206, 235, 0.16);
}

.rank-thumb img {
  width: 100%;
  height: 100%;
}

.rank-title {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
}

.rank-title a:hover {
  color: #e27691;
}

.rank-desc {
  margin-top: 6px;
  color: var(--site-muted);
  line-height: 1.65;
}

.search-box {
  display: flex;
  gap: 12px;
  max-width: 820px;
  margin-top: 24px;
}

.search-box input {
  flex: 1;
  height: 54px;
  font-size: 17px;
}

.search-box button {
  min-width: 128px;
  height: 54px;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 850;
  background: linear-gradient(135deg, var(--site-pink), var(--site-blue));
}

.search-results {
  margin-top: 30px;
}

.detail-hero {
  padding: 56px 0;
}

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

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

.detail-poster {
  overflow: hidden;
  border-radius: 30px;
  box-shadow: var(--site-shadow-lg);
}

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

.detail-info {
  padding: 34px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--site-shadow);
}

.detail-eyebrow {
  color: #e27691;
  background: rgba(255, 182, 193, 0.14);
  border-color: rgba(255, 182, 193, 0.22);
}

.detail-title {
  font-size: clamp(34px, 5vw, 60px);
}

.detail-meta {
  margin: 20px 0;
}

.detail-meta span {
  color: #4b5563;
  background: rgba(135, 206, 235, 0.15);
}

.player-section {
  padding: 36px 0 72px;
}

.player-frame {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background: #111827;
  box-shadow: 0 26px 64px rgba(17, 24, 39, 0.25);
}

.movie-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111827;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  color: #ffffff;
  background-image:
    linear-gradient(135deg, rgba(17, 24, 39, 0.72), rgba(17, 24, 39, 0.4)),
    var(--cover-image);
  background-position: center;
  background-size: cover;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-button-inner {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 28px;
  border-radius: 999px;
  font-size: 18px;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 22px 42px rgba(0, 0, 0, 0.18);
}

.play-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--site-pink), var(--site-blue));
}

.content-card {
  padding: clamp(24px, 4vw, 42px);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--site-shadow);
}

.content-card h2 {
  margin: 0 0 16px;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 900;
}

.content-card p {
  color: #4b5563;
  line-height: 2;
}

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

.site-footer {
  margin-top: 56px;
  padding: 46px 0;
  border-top: 1px solid rgba(31, 41, 55, 0.08);
  background: linear-gradient(135deg, rgba(255, 182, 193, 0.08), rgba(135, 206, 235, 0.08));
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

.footer-text {
  margin-top: 12px;
  color: var(--site-muted);
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px 22px;
  color: #4b5563;
  font-weight: 700;
}

.copyright {
  margin-top: 18px;
  color: #8a94a6;
  font-size: 13px;
}

.hidden-by-filter {
  display: none !important;
}

@media (max-width: 1024px) {
  .main-nav,
  .search-mini {
    display: none;
  }

  .mobile-toggle {
    display: grid;
    place-items: center;
  }

  .mobile-panel.is-open {
    display: block;
  }

  .hero-content,
  .detail-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-poster-card {
    max-width: 360px;
    min-height: auto;
    transform: none;
  }

  .hero-poster-card img {
    height: 460px;
  }

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

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

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

@media (max-width: 640px) {
  .site-container {
    width: min(100% - 22px, 1180px);
  }

  .header-inner {
    min-height: 66px;
  }

  .brand {
    font-size: 19px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .hero-carousel,
  .hero-slide {
    min-height: 760px;
  }

  .hero-content {
    gap: 26px;
    padding: 54px 0 94px;
  }

  .hero-actions,
  .section-actions,
  .detail-actions,
  .search-box {
    flex-direction: column;
  }

  .btn,
  .search-box button {
    width: 100%;
  }

  .hero-poster-card img {
    height: 380px;
  }

  .section {
    padding: 52px 0;
  }

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

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

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

  .rank-number {
    width: 42px;
    height: 42px;
    border-radius: 15px;
    font-size: 16px;
  }

  .rank-thumb {
    width: 76px;
  }

  .rank-action {
    grid-column: 1 / -1;
  }

  .detail-info {
    padding: 24px;
  }

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