:root {
  --strawberry-50: #fff1f4;
  --strawberry-100: #ffe4ec;
  --strawberry-400: #ff6b8e;
  --strawberry-500: #ff3366;
  --strawberry-600: #ed1659;
  --gummy-400: #ffa3b5;
  --ink: #2b1b25;
  --muted: #6b5b65;
  --card: rgba(255, 255, 255, 0.88);
  --line: rgba(255, 51, 102, 0.13);
  --shadow-soft: 0 2px 15px -3px rgba(255, 51, 102, 0.3), 0 10px 20px -2px rgba(255, 51, 102, 0.15);
  --shadow-float: 0 20px 60px -15px rgba(255, 51, 102, 0.4);
  --gradient-candy: linear-gradient(135deg, #ff3366, #ff6b8e, #ffa3b5);
  --gradient-page: linear-gradient(135deg, #fdf2f8 0%, #fff1f2 45%, #fef2f2 100%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--gradient-page);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 8%, rgba(255, 51, 102, 0.16), transparent 30%),
    radial-gradient(circle at 85% 16%, rgba(255, 163, 181, 0.2), transparent 32%),
    radial-gradient(circle at 50% 90%, rgba(255, 107, 142, 0.16), transparent 30%);
  z-index: -1;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.glass-effect {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.gummy-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 32px;
  background: var(--card);
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.gummy-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 51, 102, 0.28);
  box-shadow: var(--shadow-float);
}

.gummy-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 24px;
  padding: 10px 22px;
  font-weight: 700;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.gummy-button {
  color: #ffffff;
  background: var(--gradient-candy);
  box-shadow: var(--shadow-soft);
}

.gummy-button:hover,
.ghost-button:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-float);
}

.ghost-button {
  color: var(--strawberry-600);
  background: #ffffff;
  border: 1px solid rgba(255, 51, 102, 0.18);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 10px 30px rgba(255, 51, 102, 0.12);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 900;
  color: var(--strawberry-600);
}

.brand-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 18px;
  color: #ffffff;
  background: var(--gradient-candy);
  box-shadow: var(--shadow-soft);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 10px 14px;
  border-radius: 18px;
  color: #49343e;
  font-weight: 700;
}

.nav-links a:hover {
  color: var(--strawberry-600);
  background: rgba(255, 51, 102, 0.08);
}

.nav-toggle {
  display: none;
  border: 0;
  border-radius: 16px;
  padding: 9px 12px;
  color: var(--strawberry-600);
  background: #ffffff;
}

.home-hero {
  position: relative;
  min-height: 720px;
  padding: 72px 0 96px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  border-radius: 999px;
  filter: blur(6px);
  opacity: 0.7;
}

.hero-bg-one {
  width: 360px;
  height: 360px;
  left: -120px;
  top: 80px;
  background: rgba(255, 51, 102, 0.16);
}

.hero-bg-two {
  width: 420px;
  height: 420px;
  right: -160px;
  bottom: 60px;
  background: rgba(255, 163, 181, 0.28);
}

.hero-shell {
  position: relative;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: 42px;
}

.hero-static {
  padding: 32px 0;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  border-radius: 999px;
  padding: 7px 14px;
  color: var(--strawberry-600);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(255, 51, 102, 0.12);
  font-size: 14px;
  font-weight: 800;
}

.hero-static h1,
.hero-copy h1 {
  margin: 18px 0 18px;
  font-size: clamp(38px, 6vw, 74px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero-static p,
.hero-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.hero-search {
  display: flex;
  gap: 10px;
  margin-top: 30px;
  padding: 8px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
}

.hero-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  padding: 0 16px;
  color: var(--ink);
  background: transparent;
}

.hero-search button {
  border: 0;
  border-radius: 22px;
  padding: 10px 20px;
  color: #ffffff;
  background: var(--gradient-candy);
  font-weight: 800;
}

.hero-quick-links,
.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.hero-quick-links a {
  border-radius: 999px;
  padding: 8px 13px;
  color: var(--strawberry-600);
  background: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1.03fr 0.97fr;
  align-items: center;
  gap: 26px;
  opacity: 0;
  transform: translateX(26px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-copy {
  position: relative;
  z-index: 2;
  border-radius: 32px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow-soft);
}

.hero-copy h1 {
  font-size: clamp(28px, 4vw, 52px);
}

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

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

.hero-tags span,
.movie-tags span,
.detail-tags span {
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--strawberry-600);
  background: var(--strawberry-50);
  font-size: 12px;
  font-weight: 800;
}

.hero-visual {
  position: relative;
  display: block;
  min-height: 480px;
  border-radius: 38px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(255, 51, 102, 0.32);
  background: var(--gradient-candy);
}

.hero-visual img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.hero-visual:hover img {
  transform: scale(1.07);
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.04));
}

.hero-badge {
  position: absolute;
  right: 20px;
  bottom: 20px;
  z-index: 2;
  border-radius: 999px;
  padding: 8px 14px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.52);
  font-weight: 800;
}

.hero-dots {
  position: absolute;
  left: 30px;
  bottom: 20px;
  z-index: 5;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 51, 102, 0.25);
}

.hero-dot.is-active {
  width: 34px;
  background: var(--gradient-candy);
}

.page-main {
  padding: 42px 0 72px;
}

.page-section {
  padding: 56px 0;
}

.no-top-gap {
  padding-top: 24px;
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.section-heading h2,
.page-title h1,
.detail-info h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.14;
}

.section-heading p,
.page-title p {
  margin: 0;
  color: var(--muted);
}

.filter-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  padding: 14px;
}

.filter-bar input,
.filter-bar select {
  min-height: 44px;
  border: 1px solid rgba(255, 51, 102, 0.12);
  border-radius: 18px;
  outline: 0;
  padding: 0 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.8);
}

.filter-bar input {
  flex: 1;
  min-width: 180px;
}

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

.movie-card {
  display: flex;
  flex-direction: column;
}

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--gradient-candy);
}

.movie-poster img,
.rank-cover img,
.category-tile img,
.category-page-cover img,
.detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.movie-card:hover .movie-poster img,
.category-tile:hover img,
.category-page-card:hover img,
.rank-item:hover img,
.detail-cover:hover img {
  transform: scale(1.08);
}

.movie-poster::after,
.rank-cover::after,
.category-tile::after,
.category-page-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.52), transparent 55%);
  opacity: 0.9;
}

.movie-duration {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  border-radius: 10px;
  padding: 4px 8px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.58);
  font-size: 12px;
}

.play-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  color: var(--strawberry-500);
  background: rgba(255, 255, 255, 0.9);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.82);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

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

.movie-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
}

.movie-title,
.rank-title {
  color: #2a1823;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.3;
}

.movie-title:hover,
.rank-title:hover {
  color: var(--strawberry-600);
}

.movie-desc {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #7a6872;
  font-size: 13px;
}

.movie-meta span,
.detail-meta span {
  border-radius: 999px;
  padding: 4px 9px;
  background: rgba(255, 255, 255, 0.72);
}

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

.category-tile {
  position: relative;
  min-height: 210px;
  padding: 20px;
  color: #ffffff;
  background: var(--gradient-candy);
}

.category-tile img {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.72;
}

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

.category-tile span {
  display: block;
  margin-top: 92px;
  font-size: 22px;
  font-weight: 900;
}

.category-tile p {
  margin: 8px 0 0;
  font-size: 13px;
}

.rank-preview-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 54px 92px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 12px;
}

.rank-number {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 16px;
  color: #ffffff;
  background: var(--gradient-candy);
  font-weight: 900;
}

.rank-cover {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  border-radius: 20px;
  overflow: hidden;
  background: var(--gradient-candy);
}

.rank-content p {
  display: -webkit-box;
  margin: 6px 0 8px;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.page-title {
  margin-bottom: 28px;
  padding: 34px;
}

.page-title span {
  color: var(--strawberry-600);
  font-weight: 900;
}

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

.category-page-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 22px;
  padding: 18px;
}

.category-page-cover {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  border-radius: 24px;
  overflow: hidden;
  background: var(--gradient-candy);
}

.category-page-card h2 {
  margin: 4px 0 8px;
  font-size: 26px;
}

.category-page-card p {
  margin: 0 0 14px;
  color: var(--muted);
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.category-samples span {
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--strawberry-600);
  background: var(--strawberry-50);
  font-size: 12px;
  font-weight: 800;
}

.detail-main {
  padding-bottom: 72px;
}

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

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

.detail-cover {
  aspect-ratio: 2 / 3;
  background: var(--gradient-candy);
}

.detail-info {
  padding: 30px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--strawberry-600);
  font-size: 14px;
  font-weight: 800;
}

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

.detail-one-line {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 18px;
}

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

.player-section {
  padding: 24px 0;
}

.video-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #100810;
}

.video-shell video {
  width: 100%;
  height: 100%;
  background: #100810;
}

.video-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(255, 51, 102, 0.7), rgba(0, 0, 0, 0.58));
}

.video-shell.is-playing .video-overlay {
  display: none;
}

.video-play-icon {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 999px;
  color: var(--strawberry-500);
  background: rgba(255, 255, 255, 0.92);
  font-size: 34px;
  box-shadow: var(--shadow-float);
}

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

.detail-article,
.detail-side {
  padding: 28px;
}

.detail-article h2,
.detail-side h2 {
  margin: 0 0 12px;
  color: var(--strawberry-600);
}

.detail-article p {
  margin: 0 0 24px;
  color: #4d3e46;
  font-size: 17px;
}

.detail-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-side a {
  border-radius: 16px;
  padding: 12px 14px;
  color: var(--strawberry-600);
  background: rgba(255, 51, 102, 0.08);
  font-weight: 800;
}

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

.site-footer {
  margin-top: 40px;
  padding: 46px 0 22px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.55), rgba(255, 241, 242, 0.86));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 30px;
}

.footer-grid h2,
.footer-grid h3 {
  margin: 0 0 12px;
  color: var(--strawberry-600);
}

.footer-grid p {
  margin: 0;
  color: var(--muted);
}

.footer-grid a {
  display: block;
  margin: 6px 0;
  color: #5f4a55;
  font-weight: 700;
}

.footer-grid a:hover {
  color: var(--strawberry-600);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 51, 102, 0.12);
  color: var(--muted);
}

.back-top {
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  color: #ffffff;
  background: var(--gradient-candy);
  font-weight: 800;
}

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

@keyframes jelly {
  0%, 100% {
    transform: scale(1);
  }
  25% {
    transform: scale(0.92, 1.08);
  }
  50% {
    transform: scale(1.08, 0.92);
  }
  75% {
    transform: scale(0.96, 1.04);
  }
}

.brand:hover .brand-icon {
  animation: jelly 0.5s ease-in-out;
}

@media (max-width: 1040px) {
  .hero-shell,
  .hero-slide,
  .detail-layout,
  .detail-content-grid {
    grid-template-columns: 1fr;
  }

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

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

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

  .compact-rank,
  .category-page-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border-radius: 24px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-soft);
  }

  .nav-links.is-open {
    display: flex;
  }

  .brand {
    font-size: 18px;
  }

  .home-hero {
    min-height: auto;
    padding: 40px 0 70px;
  }

  .hero-static h1 {
    font-size: 36px;
  }

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

  .hero-copy {
    padding: 22px;
  }

  .hero-visual,
  .hero-visual img {
    min-height: 360px;
    height: 360px;
  }

  .hero-search,
  .filter-bar {
    flex-direction: column;
  }

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

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

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

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

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

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

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

  .hero-slide {
    gap: 18px;
  }

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

  .detail-info,
  .detail-article,
  .detail-side,
  .page-title {
    padding: 22px;
  }
}
