:root {
  --text: #1f2937;
  --muted: #6b7280;
  --soft: #f9fafb;
  --panel: #ffffff;
  --line: #e5e7eb;
  --pink: #ec4899;
  --purple: #8b5cf6;
  --blue: #3b82f6;
  --dark: #111827;
  --shadow: 0 24px 60px rgba(17, 24, 39, 0.12);
}

body {
  min-height: 100vh;
  background: linear-gradient(180deg, #fff7fb 0%, #ffffff 26%, #f8fafc 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
}

img {
  background: linear-gradient(135deg, #fdf2f8, #ede9fe);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
  backdrop-filter: blur(16px);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.logo-mark {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink), var(--purple), var(--blue));
  box-shadow: 0 12px 30px rgba(236, 72, 153, 0.32);
}

.logo-mark::before,
.logo-mark::after {
  content: "";
  position: absolute;
  background: white;
}

.logo-mark::before {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  left: 9px;
  top: 12px;
}

.logo-mark::after {
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 10px solid white;
  left: 18px;
  top: 11px;
  background: transparent;
}

.logo-text {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, var(--pink), var(--purple), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 15px;
  font-weight: 650;
  color: #374151;
}

.nav-links a:hover {
  color: var(--pink);
}

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

.search-box {
  position: relative;
  width: 260px;
}

.search-box input,
.category-filter input {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 11px 18px;
  background: #ffffff;
  color: #111827;
  outline: none;
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-box input:focus,
.category-filter input:focus {
  border-color: #f472b6;
  box-shadow: 0 0 0 4px rgba(244, 114, 182, 0.16);
}

.search-results {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(460px, 92vw);
  max-height: 430px;
  overflow: auto;
  border-radius: 22px;
  border: 1px solid rgba(229, 231, 235, 0.92);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
  padding: 10px;
  display: none;
}

.search-results.is-open {
  display: block;
}

.search-result-item {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
  color: #111827;
}

.search-result-item:hover {
  background: linear-gradient(90deg, #fdf2f8, #faf5ff);
}

.search-result-item img {
  width: 54px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
}

.search-result-item strong {
  display: block;
  font-size: 14px;
  line-height: 1.3;
}

.search-result-item span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #6b7280;
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  color: white;
  font-weight: 800;
}

.mobile-menu {
  display: none;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px 18px;
}

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

.mobile-menu a {
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff;
  color: #374151;
  font-weight: 650;
}

.page-main {
  min-height: 60vh;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s ease;
}

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

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(17, 24, 39, 0.95) 0%, rgba(88, 28, 135, 0.76) 44%, rgba(17, 24, 39, 0.35) 100%), var(--hero-image);
  background-position: center;
  background-size: cover;
  transform: scale(1.04);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 360px;
  gap: 46px;
  align-items: center;
  padding: 92px 0 120px;
}

.hero-copy {
  color: white;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: #fbcfe8;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  font-size: 14px;
  font-weight: 700;
}

.hero h1 {
  margin-top: 22px;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.03;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.hero h2 {
  margin-top: 18px;
  font-size: clamp(26px, 4vw, 44px);
  line-height: 1.12;
  font-weight: 850;
}

.hero p {
  margin-top: 18px;
  max-width: 720px;
  color: #e5e7eb;
  font-size: 18px;
  line-height: 1.9;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  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: white;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  box-shadow: 0 18px 35px rgba(236, 72, 153, 0.32);
}

.btn-light {
  color: #111827;
  background: rgba(255, 255, 255, 0.92);
}

.btn-ghost {
  color: #ec4899;
  border: 1px solid #f9a8d4;
  background: #fff;
}

.hero-poster {
  overflow: hidden;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.42);
  transform: rotate(2deg);
}

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

.hero-meta {
  position: absolute;
  left: 50%;
  bottom: 32px;
  z-index: 3;
  width: min(1280px, calc(100% - 40px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.hero-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px;
}

.hero-thumb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 190px;
  padding: 8px;
  border-radius: 18px;
  color: white;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.hero-thumb.is-active {
  background: linear-gradient(90deg, rgba(236, 72, 153, 0.75), rgba(139, 92, 246, 0.75));
}

.hero-thumb img {
  width: 44px;
  height: 58px;
  border-radius: 12px;
  object-fit: cover;
}

.hero-thumb span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 760;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
}

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

.container {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
}

.section {
  padding: 74px 0 0;
}

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

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #111827;
}

.section-desc {
  max-width: 720px;
  margin-top: 10px;
  color: #6b7280;
  font-size: 16px;
  line-height: 1.8;
}

.gradient-text {
  background: linear-gradient(90deg, var(--pink), var(--purple), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #fff;
  border: 1px solid rgba(229, 231, 235, 0.86);
  box-shadow: 0 14px 40px rgba(17, 24, 39, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(17, 24, 39, 0.14);
}

.movie-card a {
  display: block;
}

.poster-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4.15;
  background: linear-gradient(135deg, #fdf2f8, #ede9fe);
}

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

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

.badge-row {
  position: absolute;
  inset: 12px 12px auto;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  pointer-events: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: white;
  background: rgba(17, 24, 39, 0.72);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.badge-hot {
  background: linear-gradient(90deg, #f97316, #ec4899);
}

.card-body {
  padding: 16px;
}

.card-title {
  color: #111827;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 850;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-desc {
  margin-top: 8px;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.65;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

.card-meta span {
  padding: 5px 8px;
  border-radius: 999px;
  background: #f3f4f6;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 180px;
  border-radius: 28px;
  padding: 24px;
  color: white;
  background: linear-gradient(135deg, #ec4899, #8b5cf6 52%, #3b82f6);
  box-shadow: 0 20px 60px rgba(139, 92, 246, 0.2);
}

.category-card:nth-child(2n) {
  background: linear-gradient(135deg, #f97316, #ec4899 48%, #8b5cf6);
}

.category-card:nth-child(3n) {
  background: linear-gradient(135deg, #06b6d4, #3b82f6 48%, #8b5cf6);
}

.category-card::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -60px;
  width: 170px;
  height: 170px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.category-card h2,
.category-card h3 {
  position: relative;
  z-index: 2;
  font-size: 24px;
  font-weight: 900;
}

.category-card p {
  position: relative;
  z-index: 2;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.75;
  font-size: 14px;
}

.category-card span {
  position: relative;
  z-index: 2;
  display: inline-flex;
  margin-top: 18px;
  font-size: 13px;
  font-weight: 800;
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 68px 92px 1fr auto;
  gap: 18px;
  align-items: center;
  border-radius: 24px;
  border: 1px solid rgba(229, 231, 235, 0.86);
  background: #fff;
  padding: 12px 16px;
  box-shadow: 0 12px 36px rgba(17, 24, 39, 0.07);
}

.rank-number {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: white;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  font-weight: 900;
  font-size: 18px;
}

.ranking-item img {
  width: 92px;
  height: 122px;
  border-radius: 16px;
  object-fit: cover;
}

.ranking-copy strong {
  display: block;
  color: #111827;
  font-size: 19px;
  line-height: 1.35;
}

.ranking-copy p {
  margin-top: 8px;
  max-width: 760px;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.7;
}

.score {
  color: #ec4899;
  font-size: 22px;
  font-weight: 900;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 24px;
  color: #6b7280;
  font-size: 14px;
}

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

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

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

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #020617;
  box-shadow: 0 30px 80px rgba(17, 24, 39, 0.26);
}

.player-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 30px;
  color: white;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.24), rgba(2, 6, 23, 0.68));
  text-align: center;
}

.player-overlay.is-hidden {
  display: none;
}

.play-button-core {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 22px 50px rgba(236, 72, 153, 0.34);
  font-size: 38px;
  line-height: 1;
}

.player-overlay strong {
  display: block;
  font-size: 24px;
  font-weight: 900;
}

.player-overlay span:last-child {
  display: block;
  margin-top: 8px;
  color: #e5e7eb;
}

.detail-card {
  border-radius: 30px;
  border: 1px solid rgba(229, 231, 235, 0.86);
  background: #fff;
  box-shadow: 0 16px 46px rgba(17, 24, 39, 0.08);
  overflow: hidden;
}

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

.detail-info {
  padding: 20px;
}

.detail-info h1 {
  font-size: 28px;
  line-height: 1.25;
  font-weight: 900;
  color: #111827;
}

.detail-tags,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 14px;
}

.detail-tags span,
.tag-list span,
.tag-list a {
  padding: 7px 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #fdf2f8, #faf5ff);
  color: #7e22ce;
  font-size: 12px;
  font-weight: 760;
}

.prose-card {
  margin-top: 26px;
  border-radius: 30px;
  border: 1px solid rgba(229, 231, 235, 0.86);
  background: #fff;
  padding: 28px;
  box-shadow: 0 16px 46px rgba(17, 24, 39, 0.07);
}

.prose-card h2 {
  font-size: 24px;
  line-height: 1.28;
  font-weight: 900;
  color: #111827;
}

.prose-card p {
  margin-top: 14px;
  color: #4b5563;
  line-height: 2;
  font-size: 16px;
}

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

.site-footer {
  margin-top: 86px;
  color: white;
  background: linear-gradient(90deg, #111827, #581c87, #111827);
}

.footer-inner {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  padding: 46px 0;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 34px;
}

.footer-inner h2,
.footer-inner h3 {
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 14px;
}

.footer-inner p,
.footer-inner a {
  color: #d1d5db;
  line-height: 1.85;
  font-size: 14px;
}

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

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px 0;
  color: #d1d5db;
  text-align: center;
  font-size: 13px;
}

.page-hero {
  padding: 70px 0 12px;
}

.page-hero h1 {
  max-width: 920px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.1;
  font-weight: 930;
  letter-spacing: -0.05em;
  color: #111827;
}

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

.category-filter {
  margin: 28px 0 22px;
  max-width: 560px;
}

.empty-state {
  display: none;
  margin-top: 22px;
  padding: 22px;
  border-radius: 22px;
  background: #fff;
  color: #6b7280;
  border: 1px solid #e5e7eb;
}

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

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

  .hero-poster,
  .detail-card {
    max-width: 360px;
  }
}

@media (max-width: 840px) {
  .nav-links,
  .header-actions .search-box {
    display: none;
  }

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

  .hero {
    min-height: 760px;
  }

  .hero-content {
    padding-top: 58px;
    padding-bottom: 180px;
  }

  .hero-meta {
    display: block;
  }

  .hero-dots {
    margin-top: 12px;
  }

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

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

  .ranking-item img {
    width: 72px;
    height: 96px;
  }

  .score {
    grid-column: 3;
    font-size: 18px;
  }

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

@media (max-width: 560px) {
  .header-inner,
  .container,
  .footer-inner {
    width: calc(100% - 28px);
    padding-left: 0;
    padding-right: 0;
  }

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

  .hero-content,
  .hero-meta {
    width: calc(100% - 28px);
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero p {
    font-size: 15px;
  }

  .card-grid,
  .category-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: block;
  }

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

  .ranking-item img {
    display: none;
  }

  .score {
    grid-column: 2;
  }
}
