:root {
  --site-max: 1280px;
  --site-radius: 28px;
  --site-text: #283043;
  --site-muted: #68728a;
  --site-purple: #7c3aed;
  --site-pink: #ec4899;
  --site-blue: #2563eb;
  --site-green: #10b981;
  --site-white: rgba(255, 255, 255, 0.88);
}

body {
  color: var(--site-text);
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  width: 32rem;
  height: 32rem;
  border-radius: 999px;
  filter: blur(12px);
  opacity: 0.32;
  pointer-events: none;
  z-index: -1;
}

body::before {
  left: -12rem;
  top: 12rem;
  background: radial-gradient(circle, #ffffff 0%, rgba(255, 255, 255, 0) 70%);
}

body::after {
  right: -10rem;
  top: 4rem;
  background: radial-gradient(circle, #ffd4f1 0%, rgba(255, 255, 255, 0) 70%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-radius: 0 0 28px 28px;
}

.site-header__inner {
  width: min(var(--site-max), calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 800;
  white-space: nowrap;
  color: #27314b;
}

.site-logo__mark {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  box-shadow: 0 14px 30px rgba(124, 58, 237, 0.32);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.site-nav a,
.mobile-nav a {
  color: #374151;
  font-weight: 650;
  transition: color 0.25s ease, transform 0.25s ease;
}

.site-nav a:hover,
.mobile-nav a:hover {
  color: var(--site-purple);
  transform: translateY(-1px);
}

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

.header-search input,
.mobile-search input,
.filter-panel input,
.filter-panel select {
  height: 42px;
  border-radius: 999px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.55);
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.header-search input {
  width: 210px;
}

.header-search button,
.mobile-search button,
.filter-panel button,
.hero-secondary,
.section-more,
.pagination a,
.play-overlay strong {
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 750;
  background: rgba(255, 255, 255, 0.78);
  color: var(--site-purple);
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.filter-panel button:hover,
.hero-secondary:hover,
.section-more:hover,
.pagination a:hover,
.play-overlay:hover strong {
  transform: translateY(-2px);
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(90, 62, 180, 0.16);
}

.mobile-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--site-purple);
  font-size: 1.35rem;
}

.mobile-panel {
  display: none;
  width: min(var(--site-max), calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 0 0 18px;
}

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

.mobile-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

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

.hero-carousel {
  position: relative;
  width: min(var(--site-max), calc(100% - 32px));
  height: min(680px, calc(100vh - 96px));
  min-height: 520px;
  margin: 28px auto 56px;
  overflow: hidden;
  border-radius: 38px;
  box-shadow: 0 32px 90px rgba(41, 37, 96, 0.34);
  isolation: isolate;
}

.hero-stage,
.hero-slide,
.hero-slide__bg,
.hero-slide__shade {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transform: scale(1.04);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.hero-slide__bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1) contrast(1.05);
}

.hero-slide__shade {
  background:
    radial-gradient(circle at 15% 25%, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0) 28%),
    linear-gradient(90deg, rgba(20, 18, 52, 0.82) 0%, rgba(59, 36, 106, 0.58) 43%, rgba(0, 0, 0, 0.12) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.08));
}

.hero-slide__content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 70px min(8vw, 90px);
  color: #ffffff;
}

.hero-kicker {
  width: max-content;
  border-radius: 999px;
  padding: 8px 16px;
  margin-bottom: 18px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(18px);
  font-weight: 750;
}

.hero-slide h1 {
  font-size: clamp(2.35rem, 7vw, 5.6rem);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: -0.06em;
  text-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
}

.hero-slide p {
  margin-top: 22px;
  max-width: 720px;
  font-size: clamp(1rem, 2vw, 1.28rem);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
}

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

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

.hero-tags span,
.movie-card__tags span,
.detail-tags span {
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.72);
  color: #5b3ea4;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-meta span {
  padding: 8px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(18px);
  font-weight: 700;
}

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

.hero-primary {
  color: #503192;
  background: #ffffff;
}

.hero-secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-size: 2.2rem;
  backdrop-filter: blur(18px);
}

.hero-arrow--prev {
  left: 22px;
}

.hero-arrow--next {
  right: 22px;
}

.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 24px;
  z-index: 5;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: #ffffff;
}

.main-content {
  padding: 0 0 60px;
}

.section-block {
  width: min(var(--site-max), calc(100% - 32px));
  margin: 0 auto 54px;
}

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

.section-heading span {
  display: inline-block;
  margin-bottom: 6px;
  color: #fff;
  font-weight: 800;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
}

.section-heading h2 {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1.05;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.section-heading p {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.9);
  max-width: 640px;
}

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

.movie-card {
  min-width: 0;
}

.movie-card.is-hidden,
.rank-card.is-hidden {
  display: none;
}

.movie-card__poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4.15;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.22);
}

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

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

.movie-card__poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.66), rgba(0, 0, 0, 0) 55%);
  opacity: 0.78;
}

.movie-card__play {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(14px);
}

.movie-card__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  border-radius: 999px;
  padding: 6px 10px;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
}

.movie-card__body {
  padding: 16px;
}

.movie-card__meta,
.rank-card__meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--site-muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.movie-card h3 {
  margin-top: 10px;
  font-size: 1.05rem;
  line-height: 1.3;
  font-weight: 850;
  color: #27314b;
}

.movie-card p {
  margin: 8px 0 12px;
  color: var(--site-muted);
  font-size: 0.92rem;
  line-height: 1.62;
}

.movie-card__tags span {
  background: rgba(124, 58, 237, 0.1);
}

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

.category-card {
  position: relative;
  min-height: 300px;
}

.category-card a,
.category-card img,
.category-card__shade {
  position: absolute;
  inset: 0;
}

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

.category-card__shade {
  background:
    linear-gradient(0deg, rgba(23, 20, 54, 0.82), rgba(23, 20, 54, 0.12)),
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0));
}

.category-card__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  color: #ffffff;
}

.category-card__content > span {
  width: max-content;
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(14px);
  font-weight: 800;
}

.category-card h3 {
  margin-top: 12px;
  font-size: 1.55rem;
  font-weight: 900;
}

.category-card p {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.88);
}

.category-card__preview {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.category-card__preview span {
  max-width: 100%;
  border-radius: 999px;
  padding: 5px 8px;
  color: #4c1d95;
  background: rgba(255, 255, 255, 0.78);
  font-size: 0.75rem;
  font-weight: 750;
}

.filter-panel {
  width: min(var(--site-max), calc(100% - 32px));
  margin: 26px auto 28px;
  padding: 22px;
}

.filter-panel__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.filter-panel__title h2 {
  font-size: 1.35rem;
  font-weight: 900;
}

.filter-panel__title span {
  color: var(--site-purple);
  font-weight: 800;
}

.filter-panel__controls {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr) auto;
  gap: 12px;
}

.page-hero {
  width: min(var(--site-max), calc(100% - 32px));
  margin: 28px auto 28px;
  padding: clamp(34px, 7vw, 72px);
  border-radius: 38px;
  color: #ffffff;
  background:
    radial-gradient(circle at 18% 15%, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0) 34%),
    linear-gradient(135deg, rgba(102, 126, 234, 0.9), rgba(118, 75, 162, 0.82), rgba(236, 72, 153, 0.72));
  box-shadow: 0 32px 90px rgba(41, 37, 96, 0.28);
}

.page-hero h1 {
  max-width: 880px;
  font-size: clamp(2rem, 6vw, 4.8rem);
  line-height: 1.04;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 780px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.12rem;
  line-height: 1.8;
}

.page-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.page-hero__stats span {
  border-radius: 999px;
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  font-weight: 800;
}

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

.rank-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  min-height: 215px;
}

.rank-card__image {
  position: relative;
  overflow: hidden;
}

.rank-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-card__content {
  padding: 20px;
}

.rank-card__index {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(124, 58, 237, 0.1);
  color: var(--site-purple);
  font-weight: 900;
}

.rank-card__index--top {
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ec4899);
}

.rank-card h3 {
  margin-top: 12px;
  font-size: 1.25rem;
  font-weight: 900;
}

.rank-card p {
  margin: 10px 0 14px;
  color: var(--site-muted);
  line-height: 1.7;
}

.detail-layout {
  width: min(var(--site-max), calc(100% - 32px));
  margin: 30px auto 60px;
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, 0.75fr);
  gap: 24px;
}

.detail-main,
.detail-side {
  min-width: 0;
}

.player-card,
.detail-info-card,
.related-panel {
  padding: 22px;
}

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

.movie-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #111827;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: #ffffff;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.12), rgba(0, 0, 0, 0.5)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.18));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-overlay span {
  width: 84px;
  height: 84px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 6px;
  font-size: 2.4rem;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

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

.detail-info-card {
  margin-top: 22px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--site-muted);
  font-size: 0.9rem;
}

.detail-title {
  font-size: clamp(2rem, 5vw, 4.1rem);
  line-height: 1.05;
  font-weight: 950;
  color: #26304a;
  letter-spacing: -0.04em;
}

.detail-lead {
  margin-top: 18px;
  font-size: 1.12rem;
  line-height: 1.86;
  color: #4b5563;
}

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

.detail-meta span,
.detail-meta a {
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(124, 58, 237, 0.09);
  color: #5b3ea4;
}

.detail-section {
  margin-top: 26px;
}

.detail-section h2,
.related-panel h2 {
  font-size: 1.45rem;
  font-weight: 900;
  margin-bottom: 12px;
}

.detail-section p {
  color: #4b5563;
  line-height: 1.94;
}

.detail-side__cover {
  overflow: hidden;
  border-radius: 26px;
  aspect-ratio: 3 / 4.15;
}

.detail-side__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-panel {
  margin-top: 22px;
}

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

.related-item {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.5);
  transition: transform 0.25s ease, background 0.25s ease;
}

.related-item:hover {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.78);
}

.related-item img {
  width: 74px;
  height: 100px;
  object-fit: cover;
  border-radius: 14px;
}

.related-item h3 {
  font-weight: 850;
}

.related-item p {
  margin-top: 5px;
  color: var(--site-muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.sitemap-columns {
  columns: 4 220px;
  column-gap: 28px;
}

.sitemap-columns a {
  display: block;
  break-inside: avoid;
  margin: 0 0 9px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.58);
  color: #374151;
  font-weight: 700;
}

.site-footer {
  margin-top: 80px;
  border-radius: 36px 36px 0 0;
  padding: 42px 0;
}

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

.footer-grid h2 {
  margin-bottom: 12px;
  font-size: 1rem;
  font-weight: 900;
}

.footer-grid p,
.footer-grid li {
  color: var(--site-muted);
  line-height: 1.8;
}

.footer-grid a:hover {
  color: var(--site-purple);
}

.empty-state {
  display: none;
  width: min(var(--site-max), calc(100% - 32px));
  margin: 24px auto;
  padding: 28px;
  text-align: center;
  color: var(--site-muted);
}

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

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

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

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

  .detail-side {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 22px;
    align-items: start;
  }
}

@media (max-width: 940px) {
  .site-nav,
  .header-search {
    display: none;
  }

  .mobile-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

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

  .ranking-list {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 680px) {
  .site-header__inner {
    min-height: 66px;
  }

  .site-logo {
    font-size: 1rem;
  }

  .site-logo__mark {
    width: 36px;
    height: 36px;
  }

  .hero-carousel {
    min-height: 560px;
    height: 72vh;
    border-radius: 26px;
  }

  .hero-slide__content {
    padding: 58px 24px;
  }

  .hero-arrow {
    display: none;
  }

  .section-heading {
    display: block;
  }

  .section-more {
    display: inline-flex;
    margin-top: 14px;
  }

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

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

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

  .rank-card {
    grid-template-columns: 120px 1fr;
  }

  .detail-side {
    display: block;
  }

  .detail-side__cover {
    max-width: 260px;
    margin: 0 auto;
  }

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

@media (max-width: 420px) {
  .movie-grid {
    grid-template-columns: 1fr;
  }

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

  .rank-card__image {
    aspect-ratio: 16 / 9;
  }
}
