* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: #1f2937;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(135deg, #fdf2f8 0%, #ffffff 44%, #eff6ff 100%);
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 30px rgba(31, 41, 55, 0.08);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
}

.brand-mark {
  color: #ef4444;
  animation: heartbeat 1.7s ease-in-out infinite;
}

.brand-text,
.footer-brand {
  color: transparent;
  background: linear-gradient(90deg, #ec4899, #ef4444);
  -webkit-background-clip: text;
  background-clip: text;
}

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

.nav-link {
  color: #374151;
  font-weight: 700;
  transition: color 0.2s ease;
}

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

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #fff1f2;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #ef4444;
}

.mobile-nav {
  display: none;
  padding: 12px 16px 18px;
  border-top: 1px solid #fce7f3;
  background: #fff;
}

.mobile-nav.open {
  display: grid;
  gap: 8px;
  animation: slide-down 0.25s ease-out;
}

.mobile-link {
  padding: 12px 16px;
  border-radius: 12px;
  color: #374151;
  font-weight: 700;
}

.mobile-link:hover,
.mobile-link.active {
  color: #ef4444;
  background: #fdf2f8;
}

.site-hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  margin-bottom: 48px;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #ec4899, #ef4444, #facc15, #ec4899);
  background-size: 220% 220%;
  animation: gradient 8s ease infinite;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
}

.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 90px;
  background: linear-gradient(to top, #fdf2f8, rgba(253, 242, 248, 0));
}

.hero-inner {
  position: relative;
  z-index: 2;
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 48px;
  align-items: center;
  color: #fff;
}

.hero-copy {
  max-width: 720px;
  animation: fade-in 0.7s ease-in;
}

.eyebrow {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: #ec4899;
}

.hero-copy h1 {
  margin: 0 0 22px;
  font-size: clamp(46px, 7vw, 84px);
  line-height: 1;
  font-weight: 900;
  animation: bounce-slow 2.5s ease-in-out infinite;
}

.hero-desc {
  margin: 0 0 30px;
  max-width: 620px;
  font-size: clamp(18px, 2.2vw, 26px);
  line-height: 1.65;
}

.hero-search,
.inline-filter {
  display: flex;
  width: min(100%, 620px);
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 48px rgba(31, 41, 55, 0.18);
}

.hero-search input,
.inline-filter input,
.inline-filter select {
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 16px 20px;
  color: #111827;
  background: transparent;
}

.hero-search input,
.inline-filter input {
  flex: 1;
}

.hero-search button {
  border: 0;
  padding: 0 24px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(90deg, #ec4899, #ef4444);
}

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

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-button {
  color: #ef4444;
  background: #fff;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.22);
}

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

.ghost-button {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.ghost-button.dark {
  color: #ef4444;
  border-color: #fecdd3;
  background: #fff5f7;
}

.hero-category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-category-links a {
  padding: 9px 14px;
  border-radius: 999px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.16);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-category-links a:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-2px);
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: end;
  opacity: 0;
  transform: translateX(20px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

.hero-poster {
  position: relative;
  display: block;
  height: 420px;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.34);
}

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

.hero-slide-text {
  position: relative;
  z-index: 2;
  width: calc(100% - 34px);
  margin: -92px auto 0;
  padding: 20px;
  border-radius: 22px;
  color: #fff;
  background: rgba(17, 24, 39, 0.68);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
}

.hero-slide-text span,
.rank-info,
.movie-meta-line {
  color: #fbcfe8;
  font-size: 13px;
  font-weight: 700;
}

.hero-slide-text h2 {
  margin: 8px 0;
  font-size: 26px;
  line-height: 1.2;
}

.hero-slide-text p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
}

.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}

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

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

.section-block {
  margin-bottom: 56px;
}

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

.section-head h2,
.inner-hero h1,
.detail-info h1,
.story-panel h2,
.side-panel h2 {
  margin: 0;
  color: #111827;
  font-weight: 900;
}

.section-head h2 {
  font-size: clamp(28px, 3vw, 42px);
}

.section-head a {
  color: #ef4444;
  font-weight: 800;
}

.rank-panel,
.category-card,
.story-panel,
.side-panel,
.top-rank-card,
.rank-list-card {
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 48px rgba(31, 41, 55, 0.08);
}

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

.rank-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-row:hover {
  background: #fdf2f8;
  transform: translateY(-2px);
}

.rank-no {
  color: #ef4444;
  font-weight: 900;
}

.rank-title {
  overflow: hidden;
  color: #111827;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-info {
  grid-column: 2;
  overflow: hidden;
  color: #6b7280;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

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

.category-card {
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover,
.movie-card:hover,
.top-rank-card:hover,
.rank-list-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 55px rgba(31, 41, 55, 0.14);
}

.category-main-link {
  display: block;
  padding: 22px;
}

.category-icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, #ec4899, #ef4444);
}

.category-card h2 {
  margin: 0 0 10px;
  font-size: 21px;
  color: #111827;
}

.category-card p {
  margin: 0;
  color: #6b7280;
  line-height: 1.65;
}

.category-sample {
  display: grid;
  gap: 8px;
  padding: 0 22px 22px;
}

.category-sample a {
  overflow: hidden;
  color: #ef4444;
  font-size: 14px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inline-filter {
  margin-bottom: 26px;
  border: 1px solid #fce7f3;
  box-shadow: 0 12px 28px rgba(31, 41, 55, 0.07);
}

.inline-filter.wide {
  width: 100%;
}

.inline-filter select {
  border-left: 1px solid #fce7f3;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(31, 41, 55, 0.09);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-cover {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #fdf2f8, #fee2e2);
}

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

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

.cover-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0.05) 58%, rgba(0, 0, 0, 0));
}

.cover-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ef4444;
  background: rgba(255, 255, 255, 0.92);
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .cover-play {
  opacity: 1;
  transform: scale(1);
}

.movie-card-body {
  padding: 16px;
}

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
  color: #9ca3af;
}

.movie-card h2 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
  color: #111827;
}

.movie-card p {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 14px;
  overflow: hidden;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.mini-tags,
.detail-tags,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mini-tags span,
.detail-tags span,
.tag-cloud span {
  display: inline-flex;
  max-width: 100%;
  padding: 6px 10px;
  border-radius: 999px;
  color: #db2777;
  font-size: 12px;
  font-weight: 800;
  background: #fdf2f8;
}

.inner-hero {
  padding: 88px 0 54px;
  color: #fff;
  background: linear-gradient(120deg, #ec4899, #ef4444, #f97316);
}

.inner-hero h1 {
  color: #fff;
  font-size: clamp(38px, 5vw, 62px);
}

.inner-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  font-size: 18px;
  line-height: 1.7;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  font-weight: 700;
}

.detail-head {
  padding: 58px 0;
  color: #fff;
  background: radial-gradient(circle at 20% 20%, rgba(236, 72, 153, 0.45), transparent 34%), linear-gradient(130deg, #111827, #450a0a 70%, #831843);
}

.detail-grid {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 26px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}

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

.detail-info .crumbs {
  margin: 0 0 18px;
}

.detail-info h1 {
  color: #fff;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.08;
}

.detail-line {
  max-width: 860px;
  margin: 18px 0 20px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
  line-height: 1.75;
}

.player-section {
  margin-top: -24px;
  margin-bottom: 52px;
}

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

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

.player-start {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.12));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-start span {
  display: inline-flex;
  width: 82px;
  height: 82px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ef4444;
  font-size: 30px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
}

.player-start strong {
  font-size: 18px;
}

.player-shell.playing .player-start {
  opacity: 0;
  visibility: hidden;
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
}

.story-panel,
.side-panel {
  padding: 28px;
}

.story-panel h2,
.side-panel h2 {
  margin-bottom: 16px;
  font-size: 24px;
}

.story-panel p {
  margin: 0 0 26px;
  color: #4b5563;
  font-size: 17px;
  line-height: 1.9;
}

.side-panel dl {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px 14px;
  margin: 0 0 22px;
}

.side-panel dt {
  color: #9ca3af;
  font-weight: 800;
}

.side-panel dd {
  margin: 0;
  color: #374151;
}

.tag-cloud {
  margin-bottom: 24px;
}

.compact-list {
  display: grid;
  gap: 12px;
}

.compact-link {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.compact-link img {
  width: 64px;
  height: 82px;
  object-fit: cover;
  border-radius: 12px;
  background: #fdf2f8;
}

.compact-link strong,
.compact-link em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-link strong {
  color: #111827;
}

.compact-link em {
  margin-top: 4px;
  color: #9ca3af;
  font-size: 13px;
  font-style: normal;
}

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

.movie-card-small .movie-card-body {
  padding: 14px;
}

.movie-card-small h2 {
  font-size: 16px;
}

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

.top-rank-card {
  overflow: hidden;
}

.top-rank-card a {
  position: relative;
  display: block;
}

.top-rank-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #fdf2f8;
}

.rank-badge {
  position: absolute;
  left: 16px;
  top: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  background: linear-gradient(90deg, #ec4899, #ef4444);
}

.top-rank-card h2,
.top-rank-card p {
  padding: 0 20px;
}

.top-rank-card h2 {
  margin: 18px 0 10px;
  font-size: 22px;
}

.top-rank-card p {
  margin: 0 0 20px;
  color: #6b7280;
  line-height: 1.7;
}

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

.rank-list-card {
  display: grid;
  grid-template-columns: 96px 70px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 14px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rank-cover img {
  width: 96px;
  height: 126px;
  object-fit: cover;
  border-radius: 16px;
  background: #fdf2f8;
}

.rank-list-card h2 {
  margin: 0 0 8px;
  font-size: 21px;
}

.rank-list-card p {
  margin: 0 0 12px;
  color: #6b7280;
  line-height: 1.7;
}

.searchable-card.hidden-by-filter {
  display: none;
}

.site-footer {
  color: #d1d5db;
  background: #111827;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 220px 220px;
  gap: 32px;
  padding: 48px 0;
}

.footer-grid p {
  max-width: 560px;
  color: #9ca3af;
  line-height: 1.8;
}

.footer-grid h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 18px;
}

.footer-grid a {
  display: block;
  margin: 9px 0;
  color: #9ca3af;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  padding: 18px 16px;
  border-top: 1px solid #374151;
  color: #9ca3af;
  text-align: center;
}

@keyframes heartbeat {
  0%, 100% {
    transform: scale(1);
  }

  35% {
    transform: scale(1.12);
  }

  70% {
    transform: scale(0.96);
  }
}

@keyframes bounce-slow {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slide-down {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  border-radius: 5px;
  background: linear-gradient(to bottom, #ec4899, #ef4444);
}

@media (max-width: 1100px) {
  .hero-inner,
  .detail-content {
    grid-template-columns: 1fr;
  }

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

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

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

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

  .menu-toggle {
    display: inline-flex;
  }

  .site-hero,
  .hero-inner {
    min-height: auto;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    padding: 64px 0 96px;
  }

  .hero-copy h1 {
    font-size: 48px;
  }

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

  .hero-search button {
    padding: 14px 24px;
  }

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

  .rank-panel,
  .category-grid,
  .category-grid.large,
  .movie-grid,
  .top-rank-grid,
  .footer-grid,
  .detail-grid,
  .related-grid {
    grid-template-columns: 1fr 1fr;
  }

  .rank-list-card {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .rank-list-card .rank-no {
    display: none;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .hero-copy h1 {
    font-size: 42px;
  }

  .hero-desc,
  .inner-hero p,
  .detail-line {
    font-size: 16px;
  }

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

  .hero-poster {
    height: 340px;
  }

  .rank-panel,
  .category-grid,
  .category-grid.large,
  .movie-grid,
  .top-rank-grid,
  .footer-grid,
  .detail-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

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

  .player-start span {
    width: 66px;
    height: 66px;
  }
}
