:root {
  --strawberry: #ff3366;
  --strawberry-dark: #ed1659;
  --candy: #ff6bc4;
  --gummy: #facc15;
  --jelly: #2dd4bf;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #f4dce4;
  --soft: #fff1f3;
  --card: #ffffff;
  --shadow: 0 16px 42px rgba(255, 51, 102, 0.18);
  --shadow-strong: 0 24px 70px rgba(255, 51, 102, 0.28);
  --radius-lg: 32px;
  --radius-md: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  background:
    radial-gradient(circle at 10% 5%, rgba(255, 107, 196, 0.18), transparent 28%),
    radial-gradient(circle at 88% 10%, rgba(45, 212, 191, 0.14), transparent 26%),
    linear-gradient(135deg, #fdf2f8 0%, #fff1f2 45%, #fef2f2 100%);
}

img {
  max-width: 100%;
  display: block;
  object-fit: cover;
}

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 34px rgba(255, 51, 102, 0.08);
}

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

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

.brand-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 18px;
  background: linear-gradient(135deg, #ff3366, #ff6b8e, #ffa3b5);
  box-shadow: var(--shadow);
}

.brand-text {
  background: linear-gradient(135deg, #ff3366, #ff6bc4, #2dd4bf);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  padding: 10px 16px;
  color: #4b5563;
  border-radius: 999px;
  transition: all 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--strawberry-dark);
  background: #fff1f3;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--strawberry-dark);
  font-size: 28px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 12px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 46px 0 34px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 51, 102, 0.14), rgba(255, 107, 196, 0.08), rgba(45, 212, 191, 0.12)),
    radial-gradient(circle at 22% 28%, rgba(255, 255, 255, 0.86), transparent 34%);
}

.hero-shell {
  position: relative;
  min-height: 520px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 42px;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: var(--shadow-strong);
  overflow: hidden;
  backdrop-filter: blur(16px);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: 34px;
  align-items: center;
  padding: 54px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 14px;
  padding: 7px 14px;
  color: var(--strawberry-dark);
  background: #fff1f3;
  border: 1px solid #ffd2dd;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}

.hero h1,
.page-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero p,
.page-hero p {
  margin: 0;
  color: #4b5563;
  line-height: 1.85;
  font-size: 18px;
}

.hero-tags,
.detail-tags,
.tag-row,
.genre-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.hero-tags {
  margin: 24px 0;
}

.hero-tags span,
.detail-tags span,
.tag-row span,
.genre-links a {
  color: var(--strawberry-dark);
  padding: 7px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fff1f3, #fef1f9);
  border: 1px solid rgba(255, 163, 181, 0.6);
  font-size: 13px;
  font-weight: 700;
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.primary-btn,
.ghost-btn,
.section-link,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  transition: all 0.25s ease;
}

.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, #ff3366, #ff6b8e, #ffa3b5);
  box-shadow: var(--shadow);
}

.ghost-btn,
.section-link,
.text-link {
  color: var(--strawberry-dark);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid #ffd2dd;
}

.primary-btn:hover,
.ghost-btn:hover,
.section-link:hover,
.text-link:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.hero-poster {
  position: relative;
  justify-self: end;
  width: min(100%, 420px);
  aspect-ratio: 3 / 4;
  border: 10px solid rgba(255, 255, 255, 0.82);
  border-radius: 36px;
  overflow: hidden;
  box-shadow: var(--shadow-strong);
  background: linear-gradient(135deg, #ffeff4, #fdf2f8);
}

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

.hero-poster span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 9px 14px;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(10px);
  font-weight: 800;
}

.hero-dots {
  position: absolute;
  left: 54px;
  bottom: 34px;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #ffd2dd;
  cursor: pointer;
}

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

main {
  padding-bottom: 54px;
}

.section-block,
.page-main,
.detail-main {
  padding-top: 36px;
}

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

.section-heading h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 3vw, 38px);
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.search-panel {
  display: grid;
  gap: 18px;
  margin-top: 32px;
  padding: 24px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow);
}

.search-panel.slim {
  margin-top: 0;
  margin-bottom: 28px;
}

.search-box label {
  display: block;
  margin-bottom: 8px;
  color: var(--strawberry-dark);
  font-weight: 800;
}

.search-box input {
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid #ffd2dd;
  border-radius: 18px;
  outline: none;
  background: #fff;
}

.search-box input:focus {
  border-color: var(--strawberry);
  box-shadow: 0 0 0 4px rgba(255, 51, 102, 0.12);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chip {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #ffd2dd;
  border-radius: 999px;
  background: #fff;
  color: var(--strawberry-dark);
  cursor: pointer;
  font-weight: 700;
}

.filter-chip.active {
  color: #fff;
  background: var(--strawberry);
}

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

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

.movie-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: 30px;
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #fff1f3, #fef1f9);
}

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

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

.poster-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.52);
  font-size: 12px;
  font-weight: 800;
}

.movie-info {
  padding: 16px;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.meta-line span:not(:last-child)::after {
  content: "·";
  margin-left: 8px;
  color: #d1d5db;
}

.movie-info h3,
.rank-info h2 {
  margin: 9px 0 8px;
  line-height: 1.35;
  font-size: 18px;
}

.movie-info p,
.rank-info p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card.compact .movie-info p {
  -webkit-line-clamp: 2;
}

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

.category-tile {
  position: relative;
  min-height: 210px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  color: #fff;
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.06));
}

.category-tile span {
  font-size: 21px;
  font-weight: 900;
}

.category-tile em {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.86);
  font-style: normal;
  line-height: 1.5;
  font-size: 13px;
}

.page-hero {
  margin-bottom: 30px;
  padding: 42px;
  border-radius: 38px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
}

.small-hero h1 {
  font-size: clamp(34px, 5vw, 58px);
}

.category-list {
  display: grid;
  gap: 22px;
}

.category-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  padding: 18px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.category-cover {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 24px;
}

.category-cover img {
  width: 100%;
  height: 100%;
}

.category-card h2 {
  margin: 0 0 10px;
}

.category-card p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.7;
}

.category-card ul {
  margin: 0 0 14px;
  padding-left: 18px;
  columns: 2;
  color: #4b5563;
  line-height: 1.8;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 58px 110px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.rank-num {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, #ff3366, #ff6bc4);
  font-weight: 900;
}

.rank-thumb {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 18px;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 18px;
  color: #6b7280;
}

.breadcrumb a {
  color: var(--strawberry-dark);
  font-weight: 700;
}

.breadcrumb em {
  font-style: normal;
}

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

.watch-card,
.detail-content,
.story-card,
.detail-side,
.score-card {
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.watch-card {
  padding: 16px;
}

.player {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 26px;
  background: #111827;
}

.player video {
  width: 100%;
  height: 100%;
  display: block;
  background: #111827;
}

.play-overlay {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 82px;
  height: 82px;
  border: 0;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  color: #fff;
  background: linear-gradient(135deg, #ff3366, #ff6b8e);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  font-size: 32px;
}

.player.playing .play-overlay {
  opacity: 0;
  pointer-events: none;
}

.detail-actions {
  justify-content: center;
  margin-top: 16px;
}

.detail-side {
  padding: 16px;
  align-self: start;
}

.detail-poster {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 26px;
}

.score-card {
  margin-top: 16px;
  padding: 18px;
  text-align: center;
}

.score-card strong {
  display: block;
  color: var(--strawberry-dark);
  font-size: 40px;
}

.score-card span {
  color: var(--muted);
}

.detail-content {
  margin-top: 26px;
  padding: 28px;
}

.detail-title-row h1 {
  margin: 0 0 10px;
  font-size: clamp(32px, 5vw, 54px);
}

.detail-title-row p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
  font-size: 18px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0;
}

.info-grid div {
  padding: 16px;
  border: 1px solid #ffd2dd;
  border-radius: 20px;
  background: #fff8fa;
}

.info-grid span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
}

.info-grid strong {
  font-size: 18px;
}

.detail-tags,
.genre-links {
  margin-bottom: 16px;
}

.story-card {
  margin-top: 18px;
  padding: 24px;
  box-shadow: none;
  border: 1px solid #ffd2dd;
}

.story-card.accent {
  background: linear-gradient(135deg, #fff1f3, #fef1f9);
}

.story-card h2 {
  margin: 0 0 12px;
}

.story-card p {
  margin: 0;
  color: #374151;
  line-height: 1.9;
}

.site-footer {
  margin-top: 46px;
  padding: 44px 0 24px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.82));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 26px;
}

.site-footer h2 {
  margin: 0 0 12px;
  color: var(--strawberry-dark);
  font-size: 20px;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-links a {
  color: #4b5563;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 0;
  padding-top: 18px;
  color: var(--muted);
  border-top: 1px solid #ffd2dd;
  text-align: center;
}

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

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

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

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

  .detail-side {
    max-width: 340px;
  }
}

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

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

  .mobile-nav.open {
    display: grid;
    gap: 6px;
  }

  .brand {
    font-size: 20px;
  }

  .hero-shell {
    min-height: 760px;
    border-radius: 30px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    padding: 28px;
  }

  .hero-poster {
    justify-self: start;
    width: min(100%, 280px);
  }

  .hero-dots {
    left: 28px;
    bottom: 24px;
  }

  .section-heading,
  .footer-grid {
    display: block;
  }

  .section-link {
    margin-top: 14px;
  }

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

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

  .category-card ul {
    columns: 1;
  }

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

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

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

  .hero-shell {
    min-height: 830px;
  }

  .page-hero,
  .detail-content {
    padding: 22px;
  }

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