:root {
  --pink-50: #fdf2f8;
  --pink-100: #fce7f3;
  --pink-500: #ec4899;
  --pink-600: #db2777;
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --blue-500: #3b82f6;
  --green-50: #f0fdf4;
  --green-100: #dcfce7;
  --green-500: #22c55e;
  --orange-100: #ffedd5;
  --cyan-500: #06b6d4;
  --text-strong: #111827;
  --text-main: #374151;
  --text-muted: #6b7280;
  --border-soft: rgba(236, 72, 153, 0.16);
  --shadow-soft: 0 20px 45px rgba(31, 41, 55, 0.10);
  --shadow-card: 0 14px 30px rgba(31, 41, 55, 0.12);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --gradient-main: linear-gradient(135deg, #ec4899 0%, #3b82f6 52%, #22c55e 100%);
  --gradient-soft: linear-gradient(135deg, #fdf2f8 0%, #eff6ff 55%, #f0fdf4 100%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text-main);
  background: var(--gradient-soft);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

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

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #ffffff;
  background: var(--gradient-main);
  border-radius: 14px;
  box-shadow: 0 10px 18px rgba(236, 72, 153, 0.25);
}

.brand-text,
.footer-brand {
  font-size: 24px;
  line-height: 1;
  color: transparent;
  background: var(--gradient-main);
  background-clip: text;
  -webkit-background-clip: text;
}

.desktop-nav,
.mobile-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-link {
  color: var(--text-main);
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--pink-600);
}

.nav-link:hover {
  transform: translateY(-1px);
}

.top-search,
.mobile-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-search input,
.mobile-search input,
.filter-panel input,
.filter-panel select {
  border: 2px solid #fbcfe8;
  outline: none;
  background: #ffffff;
  color: var(--text-main);
  border-radius: 999px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.top-search input {
  width: 210px;
  padding: 10px 16px;
}

.top-search button,
.mobile-search button {
  width: 42px;
  height: 42px;
  border: 0;
  color: #ffffff;
  background: var(--gradient-main);
  border-radius: 50%;
}

.top-search input:focus,
.mobile-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--pink-500);
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.12);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  color: var(--text-strong);
  background: rgba(255, 255, 255, 0.7);
  border-radius: 14px;
}

.mobile-panel {
  display: none;
  padding: 0 0 18px;
}

.mobile-panel.is-open {
  display: block;
}

.mobile-panel-inner {
  display: grid;
  gap: 14px;
}

.mobile-search input {
  flex: 1;
  padding: 11px 16px;
}

.mobile-search button {
  width: auto;
  padding: 0 18px;
  border-radius: 999px;
}

.mobile-nav {
  align-items: stretch;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav .nav-link {
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.62);
  border-radius: 14px;
}

.page-home,
.page-space {
  padding: 34px 0 70px;
}

.hero-wrap {
  margin-bottom: 64px;
  padding: 1px;
  overflow: hidden;
  background: var(--gradient-main);
  border-radius: 34px;
  box-shadow: var(--shadow-soft);
}

.hero-frame {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 33px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.96fr);
  gap: 44px;
  align-items: center;
  padding: 58px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-copy h1,
.page-hero h1 {
  margin: 16px 0 22px;
  color: transparent;
  background: var(--gradient-main);
  background-clip: text;
  -webkit-background-clip: text;
  font-size: clamp(38px, 7vw, 68px);
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.hero-copy p,
.page-hero p {
  max-width: 680px;
  margin: 0;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.9;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 14px;
  color: var(--pink-600);
  background: var(--pink-100);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn.primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink-500), var(--blue-500));
  box-shadow: 0 14px 28px rgba(59, 130, 246, 0.22);
}

.btn.ghost {
  color: var(--pink-600);
  background: rgba(252, 231, 243, 0.9);
}

.btn.full {
  width: 100%;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 32px rgba(31, 41, 55, 0.18);
}

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 26px 60px rgba(31, 41, 55, 0.24);
  transform: rotate(1deg);
  transition: transform 0.45s ease;
}

.hero-poster:hover {
  transform: rotate(0deg) scale(1.03);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: linear-gradient(135deg, #fce7f3, #dbeafe);
}

.hero-poster::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(to top, rgba(0, 0, 0, 0.64), transparent 60%);
}

.hero-poster span {
  position: absolute;
  right: 24px;
  bottom: 22px;
  left: 24px;
  z-index: 1;
  color: #ffffff;
  font-size: 28px;
  font-weight: 900;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 0;
  color: var(--text-strong);
  background: rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(31, 41, 55, 0.18);
  transform: translateY(-50%);
}

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  background: #f9a8d4;
  border-radius: 999px;
  opacity: 0.58;
}

.hero-dot.is-active {
  width: 30px;
  background: var(--gradient-main);
  opacity: 1;
}

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

.content-section.soft-band,
.content-section.rank-band {
  padding: 34px;
  background: linear-gradient(135deg, #ffedd5, #fce7f3 48%, #dbeafe);
  border-radius: 32px;
  box-shadow: var(--shadow-soft);
}

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

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

.section-title h2,
.side-card h2,
.detail-content h2 {
  margin: 0;
  color: var(--text-strong);
  font-size: 30px;
  line-height: 1.2;
  font-weight: 900;
}

.section-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(31, 41, 55, 0.08);
}

.section-link {
  color: var(--pink-600);
  font-weight: 800;
}

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

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

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

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

.card-cover {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #fce7f3, #dbeafe);
}

.card-cover img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.card-badge,
.card-year {
  position: absolute;
  z-index: 2;
  padding: 6px 10px;
  color: #ffffff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.card-badge {
  top: 12px;
  left: 12px;
  background: rgba(236, 72, 153, 0.92);
}

.card-year {
  right: 12px;
  bottom: 12px;
  background: rgba(17, 24, 39, 0.75);
}

.card-body {
  padding: 18px;
}

.card-body h3 {
  margin: 0 0 10px;
  color: var(--text-strong);
  font-size: 18px;
  line-height: 1.35;
}

.card-body h3 a:hover,
.compact-title:hover,
.rank-info a:hover {
  color: var(--pink-600);
}

.card-body p {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 16px;
  overflow: hidden;
  color: var(--text-muted);
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-meta,
.rank-meta,
.compact-meta,
.detail-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--text-muted);
  font-size: 13px;
}

.card-meta span,
.detail-topline span,
.detail-topline a {
  padding: 5px 9px;
  background: var(--blue-50);
  border-radius: 999px;
}

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

.category-tile,
.category-overview-card {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 20px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 24px;
  box-shadow: 0 12px 26px rgba(31, 41, 55, 0.08);
}

.category-visual,
.category-overview-cover {
  overflow: hidden;
  align-self: start;
  border-radius: 18px;
}

.category-visual img,
.category-overview-cover img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.category-tile h3,
.category-overview-card h2 {
  margin: 4px 0 10px;
  color: var(--text-strong);
  font-size: 24px;
  font-weight: 900;
}

.category-tile p,
.category-overview-card p {
  margin: 0 0 14px;
  color: var(--text-muted);
  line-height: 1.75;
}

.mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mini-links a,
.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  color: var(--pink-600);
  background: var(--pink-100);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

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

.category-hero,
.rank-hero,
.search-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.filter-panel {
  padding: 24px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 26px;
}

.filter-row label {
  display: grid;
  flex: 1 1 260px;
  gap: 8px;
  color: var(--text-strong);
  font-weight: 800;
}

.filter-row input,
.filter-row select {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
}

.empty-state {
  display: none;
  padding: 46px 20px;
  color: var(--text-muted);
  text-align: center;
  background: var(--blue-50);
  border-radius: 22px;
  font-weight: 800;
}

.empty-state.is-visible {
  display: block;
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 54px 150px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 22px;
  box-shadow: 0 8px 22px rgba(31, 41, 55, 0.08);
}

.rank-number {
  color: transparent;
  background: var(--gradient-main);
  background-clip: text;
  -webkit-background-clip: text;
  font-size: 28px;
  font-weight: 950;
}

.rank-cover {
  overflow: hidden;
  border-radius: 16px;
}

.rank-cover img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.rank-info h3 {
  margin: 0 0 8px;
  color: var(--text-strong);
  font-size: 18px;
}

.rank-info p {
  margin: 0 0 10px;
  color: var(--text-muted);
  line-height: 1.65;
}

.rank-action {
  padding: 10px 16px;
  color: #ffffff;
  background: var(--gradient-main);
  border-radius: 999px;
  font-weight: 800;
}

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

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--text-muted);
  font-size: 14px;
}

.breadcrumbs a {
  color: var(--pink-600);
  font-weight: 800;
}

.player-card,
.detail-card,
.side-card {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 26px;
  box-shadow: var(--shadow-soft);
}

.player-card {
  margin-bottom: 24px;
  padding: 12px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  background: #050505;
  border-radius: 20px;
}

.movie-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #050505;
  object-fit: contain;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.58));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay.is-hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.play-core {
  display: grid;
  width: 84px;
  height: 84px;
  place-items: center;
  padding-left: 5px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink-500), var(--blue-500));
  border-radius: 50%;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  font-size: 38px;
}

.detail-card {
  padding: 30px;
}

.detail-card h1 {
  margin: 18px 0 16px;
  color: var(--text-strong);
  font-size: clamp(32px, 6vw, 52px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.04em;
}

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

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 26px;
}

.detail-content {
  display: grid;
  gap: 16px;
}

.detail-content h2 {
  margin-top: 18px;
  font-size: 24px;
}

.detail-content p {
  margin: 0;
  color: var(--text-main);
  line-height: 2;
}

.detail-side {
  display: grid;
  align-content: start;
  gap: 22px;
}

.side-card {
  padding: 22px;
}

.poster-card img {
  width: 100%;
  margin-bottom: 18px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 18px;
}

.related-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.compact-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
}

.compact-cover {
  overflow: hidden;
  border-radius: 14px;
}

.compact-cover img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.compact-title {
  display: block;
  margin-bottom: 5px;
  color: var(--text-strong);
  font-weight: 900;
}

.compact-info p {
  display: -webkit-box;
  margin: 6px 0 0;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.site-footer {
  padding: 46px 0 26px;
  background: rgba(255, 255, 255, 0.82);
  border-top: 1px solid rgba(255, 255, 255, 0.75);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 34px;
}

.footer-grid p {
  max-width: 520px;
  color: var(--text-muted);
  line-height: 1.8;
}

.footer-grid h2 {
  margin: 0 0 14px;
  color: var(--text-strong);
  font-size: 18px;
}

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

.footer-links a {
  padding: 7px 10px;
  color: var(--text-main);
  background: #ffffff;
  border-radius: 999px;
  font-weight: 700;
}

.footer-bottom {
  margin-top: 28px;
  color: var(--text-muted);
  font-size: 14px;
}

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

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #f472b6, #60a5fa);
  border-radius: 999px;
}

@media (max-width: 1080px) {
  .desktop-nav,
  .top-search {
    display: none;
  }

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

  .hero-slide {
    grid-template-columns: 1fr;
    min-height: 720px;
    padding: 40px;
  }

  .hero-poster img {
    max-height: 330px;
  }

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

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

@media (max-width: 720px) {
  .site-shell {
    width: min(100% - 22px, 1180px);
  }

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

  .page-home,
  .page-space {
    padding-top: 20px;
  }

  .hero-frame {
    min-height: 690px;
  }

  .hero-slide {
    padding: 28px 22px 70px;
  }

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

  .hero-copy p,
  .page-hero p {
    font-size: 16px;
  }

  .hero-arrow {
    top: auto;
    bottom: 16px;
    transform: none;
  }

  .hero-prev {
    left: 22px;
  }

  .hero-next {
    right: 22px;
  }

  .section-head,
  .category-hero,
  .rank-hero,
  .search-hero {
    align-items: flex-start;
    flex-direction: column;
  }

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

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

  .rank-number {
    font-size: 24px;
  }

  .detail-card,
  .filter-panel,
  .page-hero,
  .content-section.soft-band,
  .content-section.rank-band {
    padding: 22px;
  }
}
