:root {
  --site-pink: #ec4899;
  --site-pink-soft: #fdf2f8;
  --site-purple: #a855f7;
  --site-orange: #f97316;
  --site-blue: #3b82f6;
  --site-text: #1f2937;
  --site-muted: #6b7280;
  --site-line: rgba(31, 41, 55, 0.12);
  --site-card: rgba(255, 255, 255, 0.86);
  --site-shadow: 0 18px 42px rgba(31, 41, 55, 0.12);
}

body {
  color: var(--site-text);
  background: linear-gradient(135deg, #fff4e6, #ffe8e0, #f8e8ee);
}

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

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

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: #111827;
  white-space: nowrap;
}

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, #f472b6, #a855f7);
  box-shadow: 0 12px 24px rgba(236, 72, 153, 0.24);
}

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

.nav-link {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  color: #4b5563;
  font-weight: 600;
}

.nav-link:hover,
.nav-link.active {
  color: #db2777;
  background: rgba(253, 242, 248, 0.94);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(31, 41, 55, 0.1);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-button span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #374151;
}

.mobile-nav {
  display: none;
  padding: 0 24px 18px;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.page-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 24px 72px;
}

.hero-section {
  position: relative;
  height: 600px;
  min-height: 520px;
  overflow: hidden;
  margin-bottom: 56px;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1000ms ease;
  pointer-events: none;
}

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

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

.hero-slide img.is-hidden {
  opacity: 0;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 25%, rgba(244, 114, 182, 0.42), transparent 34%),
    linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.46), rgba(0, 0, 0, 0.08));
}

.hero-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  color: #ffffff;
  padding: 52px 24px 76px;
}

.hero-content-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  font-weight: 700;
  margin-bottom: 18px;
}

.hero-content h1 {
  max-width: 780px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.05em;
  margin-bottom: 18px;
}

.hero-content p {
  max-width: 680px;
  font-size: clamp(16px, 2vw, 22px);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 24px;
}

.hero-tags,
.tag-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
}

.tag-row span {
  color: #db2777;
  background: #fdf2f8;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.primary-button,
.secondary-button,
.soft-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(90deg, #f472b6, #a855f7);
  box-shadow: 0 16px 30px rgba(236, 72, 153, 0.3);
}

.secondary-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

.soft-button {
  color: #db2777;
  background: #fdf2f8;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 48px;
  transform: translateY(-50%);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
  font-size: 28px;
  line-height: 1;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.46);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.hero-dots button {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
}

.hero-dots button.active {
  width: 34px;
  background: #ffffff;
}

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

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

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-icon {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, #f472b6, #a855f7);
  box-shadow: 0 12px 24px rgba(168, 85, 247, 0.18);
}

.section-title h2,
.page-title h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  color: #1f2937;
  letter-spacing: -0.03em;
}

.section-title p,
.page-title p {
  color: #6b7280;
  margin-top: 6px;
}

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

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

.movie-card {
  min-width: 0;
  border-radius: 24px;
  overflow: hidden;
  background: var(--site-card);
  box-shadow: var(--site-shadow);
  border: 1px solid rgba(255, 255, 255, 0.68);
}

.movie-card-link {
  display: block;
  height: 100%;
}

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

.poster-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease, opacity 300ms ease;
}

.poster-frame img.is-hidden {
  opacity: 0;
}

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

.poster-shade {
  position: absolute;
  inset: auto 0 0 0;
  height: 58%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  opacity: 0;
  transition: opacity 300ms ease;
}

.movie-card:hover .poster-shade {
  opacity: 1;
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  transform: translate(-50%, -50%) scale(0.86);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: all 300ms ease;
}

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

.poster-year {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(6px);
  font-size: 12px;
  font-weight: 800;
}

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

.movie-card-body h3 {
  font-size: 18px;
  font-weight: 900;
  color: #1f2937;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card-body p {
  min-height: 48px;
  color: #6b7280;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 12px;
  color: #6b7280;
  font-size: 13px;
}

.card-meta span {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
}

.horizontal-strip {
  overflow-x: auto;
  padding-bottom: 12px;
}

.horizontal-inner {
  display: flex;
  gap: 18px;
  width: max-content;
}

.horizontal-inner .movie-card {
  width: 300px;
  flex: 0 0 auto;
}

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

.category-tile {
  position: relative;
  min-height: 160px;
  overflow: hidden;
  border-radius: 28px;
  padding: 24px;
  color: #ffffff;
  background: linear-gradient(135deg, #f472b6, #a855f7);
  box-shadow: var(--site-shadow);
}

.category-tile:nth-child(2n) {
  background: linear-gradient(135deg, #60a5fa, #2dd4bf);
}

.category-tile:nth-child(3n) {
  background: linear-gradient(135deg, #fb923c, #f472b6);
}

.category-tile h2,
.category-tile h3 {
  font-size: 26px;
  font-weight: 900;
  margin-bottom: 10px;
}

.category-tile p {
  color: rgba(255, 255, 255, 0.9);
}

.category-tile span {
  display: inline-flex;
  margin-top: 18px;
  font-weight: 900;
}

.filter-panel {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 12px;
  padding: 18px;
  margin-bottom: 28px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--site-shadow);
  border: 1px solid rgba(255, 255, 255, 0.66);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 44px;
  border-radius: 16px;
  padding: 0 14px;
  color: #374151;
  background: #ffffff;
  border: 1px solid rgba(31, 41, 55, 0.1);
  outline: none;
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 58px 96px 1fr;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--site-shadow);
}

.rank-num {
  width: 48px;
  height: 48px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, #fb7185, #a855f7);
}

.rank-item img {
  width: 96px;
  height: 72px;
  border-radius: 18px;
  object-fit: cover;
  background: linear-gradient(135deg, #fdf2f8, #faf5ff);
}

.rank-item img.is-hidden {
  opacity: 0;
}

.rank-item h2,
.rank-item h3 {
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 6px;
}

.rank-item p {
  color: #6b7280;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #000000;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  margin-bottom: 24px;
}

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

.player-start {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 24px 16px 18px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(244, 114, 182, 0.92);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(10px);
  font-weight: 900;
}

.player-start span {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #db2777;
  background: #ffffff;
}

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

.player-error {
  padding: 14px 18px;
  color: #991b1b;
  background: #fef2f2;
  border-top: 1px solid rgba(153, 27, 27, 0.14);
}

.detail-card,
.side-card {
  border-radius: 28px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--site-shadow);
  border: 1px solid rgba(255, 255, 255, 0.66);
}

.detail-card h1 {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 20px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--site-line);
}

.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  color: #4b5563;
  background: #ffffff;
  font-weight: 700;
}

.prose-block {
  margin-top: 24px;
}

.prose-block h2 {
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 12px;
}

.prose-block p {
  color: #4b5563;
  line-height: 1.9;
  margin-bottom: 12px;
}

.side-poster {
  overflow: hidden;
  border-radius: 24px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, #fdf2f8, #faf5ff);
}

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

.side-poster img.is-hidden {
  opacity: 0;
}

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

.mini-card {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: rgba(253, 242, 248, 0.8);
}

.mini-card img {
  width: 78px;
  height: 58px;
  border-radius: 14px;
  object-fit: cover;
  background: linear-gradient(135deg, #fdf2f8, #faf5ff);
}

.mini-card img.is-hidden {
  opacity: 0;
}

.mini-card span {
  font-weight: 800;
  color: #374151;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.empty-state {
  display: none;
  padding: 38px;
  border-radius: 24px;
  text-align: center;
  color: #6b7280;
  background: rgba(255, 255, 255, 0.82);
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.68);
}

.site-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 34px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #6b7280;
}

.site-footer strong {
  display: block;
  color: #1f2937;
  margin-bottom: 6px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-weight: 700;
  color: #db2777;
}

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

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

  .filter-panel input {
    grid-column: 1 / -1;
  }

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

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

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

  .mobile-nav.open {
    display: flex;
  }

  .hero-section {
    height: 560px;
  }

  .hero-arrow {
    display: none;
  }

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

  .rank-item {
    grid-template-columns: 42px 72px 1fr;
    gap: 10px;
  }

  .rank-num {
    width: 38px;
    height: 38px;
    border-radius: 14px;
  }

  .rank-item img {
    width: 72px;
    height: 56px;
  }
}

@media (max-width: 560px) {
  .site-header-inner,
  .page-main,
  .hero-content,
  .site-footer-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .site-logo {
    font-size: 18px;
  }

  .hero-section {
    min-height: 520px;
    height: 520px;
  }

  .hero-content {
    padding-bottom: 70px;
  }

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

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

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