:root {
  --twilight-950: #240329;
  --twilight-900: #3b0764;
  --twilight-800: #581c87;
  --twilight-700: #6b21a8;
  --twilight-600: #7e22ce;
  --twilight-500: #9333ea;
  --dusk-500: #c026d3;
  --dusk-400: #d946ef;
  --sunset-300: #fdba74;
  --text-main: #ffffff;
  --text-soft: rgba(255, 255, 255, 0.78);
  --text-muted: rgba(255, 255, 255, 0.58);
  --panel: rgba(255, 255, 255, 0.10);
  --panel-strong: rgba(255, 255, 255, 0.16);
  --border-soft: rgba(255, 255, 255, 0.16);
  --shadow-glow: 0 18px 60px rgba(217, 70, 239, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text-main);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 20% 10%, rgba(217, 70, 239, 0.24), transparent 30rem),
    radial-gradient(circle at 80% 0%, rgba(253, 186, 116, 0.16), transparent 28rem),
    linear-gradient(135deg, #3b0764 0%, #581c87 48%, #4a044e 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent 70%);
  z-index: -1;
}

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

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

button,
input {
  font: inherit;
}

.glass-effect {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.dusk-card {
  border: 1px solid rgba(217, 70, 239, 0.22);
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(112, 26, 117, 0.42), rgba(107, 33, 168, 0.34));
  box-shadow: 0 20px 50px rgba(24, 3, 40, 0.20);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.dusk-card:hover {
  transform: translateY(-4px);
  border-color: rgba(253, 186, 116, 0.42);
  box-shadow: var(--shadow-glow);
}

.gradient-text {
  background: linear-gradient(90deg, #d8b4fe, #f0abfc, #fdba74);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.glow-text {
  text-shadow: 0 0 32px rgba(216, 180, 254, 0.44);
}

.btn-primary,
.btn-secondary,
.link-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.7rem;
  border: 0;
  cursor: pointer;
  line-height: 1;
  transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease, border-color 0.24s ease;
}

.btn-primary {
  padding: 0.9rem 1.35rem;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(90deg, #9333ea, #c026d3);
  box-shadow: 0 14px 42px rgba(139, 92, 246, 0.36);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  background: linear-gradient(90deg, #a855f7, #d946ef);
  box-shadow: 0 0 30px rgba(217, 70, 239, 0.48);
}

.btn-secondary,
.link-pill {
  padding: 0.75rem 1rem;
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.10);
}

.btn-secondary:hover,
.link-pill:hover {
  transform: translateY(-2px);
  border-color: rgba(253, 186, 116, 0.45);
  background: rgba(255, 255, 255, 0.16);
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  border-width: 0 0 1px 0;
}

.header-inner {
  width: min(100% - 2rem, 80rem);
  height: 4.75rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.logo-mark {
  width: 2.55rem;
  height: 2.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.9rem;
  background: linear-gradient(135deg, #9333ea, #c026d3);
  box-shadow: 0 12px 30px rgba(147, 51, 234, 0.35);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
  font-weight: 600;
}

.nav-links a:hover,
.nav-links a.active {
  color: #d8b4fe;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.search-form {
  position: relative;
  width: 17rem;
}

.search-form input,
.local-filter input,
.search-hero-form input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0.8rem;
  outline: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.10);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.search-form input {
  height: 2.55rem;
  padding: 0 2.8rem 0 1rem;
}

.search-form input::placeholder,
.local-filter input::placeholder,
.search-hero-form input::placeholder {
  color: rgba(255, 255, 255, 0.52);
}

.search-form input:focus,
.local-filter input:focus,
.search-hero-form input:focus {
  border-color: rgba(216, 180, 254, 0.76);
  background: rgba(255, 255, 255, 0.15);
}

.search-form button {
  position: absolute;
  top: 50%;
  right: 0.35rem;
  width: 2rem;
  height: 2rem;
  transform: translateY(-50%);
  border: 0;
  color: rgba(255, 255, 255, 0.72);
  background: transparent;
}

.mobile-menu-button {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.75rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.10);
}

.mobile-menu {
  display: none;
  width: min(100% - 2rem, 80rem);
  margin: 0 auto 1rem;
  padding: 1rem;
  border-radius: 1rem;
}

.mobile-menu.is-open {
  display: grid;
  gap: 0.85rem;
}

.mobile-menu a {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 650;
}

.page-main {
  padding-top: 4.75rem;
}

.container {
  width: min(100% - 2rem, 80rem);
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: 72vh;
  overflow: hidden;
  display: grid;
  align-items: stretch;
}

.hero-slider {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.9s ease, transform 1.1s ease;
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.03);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(36, 3, 41, 0.96), rgba(59, 7, 100, 0.74), rgba(74, 4, 78, 0.30)),
    linear-gradient(0deg, rgba(36, 3, 41, 0.88), transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(18rem, 0.62fr);
  gap: 2rem;
  align-items: end;
  padding: 7.5rem 0 4rem;
}

.hero-copy {
  max-width: 54rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  margin-bottom: 1.1rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(253, 186, 116, 0.24);
  border-radius: 999px;
  color: #fed7aa;
  background: rgba(253, 186, 116, 0.10);
  font-size: 0.88rem;
  font-weight: 700;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.45rem, 6vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-description {
  max-width: 46rem;
  margin: 1.2rem 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.8;
}

.hero-actions,
.section-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.6rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.4rem;
  color: rgba(255, 255, 255, 0.76);
  font-weight: 650;
}

.hero-meta span {
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
}

.hero-panel {
  align-self: end;
  padding: 1.15rem;
}

.hero-panel h2 {
  margin: 0 0 0.85rem;
  font-size: 1.1rem;
}

.hero-mini-list {
  display: grid;
  gap: 0.8rem;
}

.hero-mini-card {
  display: grid;
  grid-template-columns: 4.6rem 1fr;
  gap: 0.8rem;
  align-items: center;
  padding: 0.65rem;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.08);
}

.hero-mini-card img {
  width: 4.6rem;
  height: 5.8rem;
  border-radius: 0.72rem;
  object-fit: cover;
}

.hero-mini-card strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.98rem;
}

.hero-mini-card span {
  display: block;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.82rem;
}

.hero-dots {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 1.35rem;
  transform: translateX(-50%);
  display: flex;
  gap: 0.55rem;
}

.hero-dot {
  width: 0.68rem;
  height: 0.68rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
}

.hero-dot.is-active {
  width: 2.1rem;
  background: linear-gradient(90deg, #d8b4fe, #fdba74);
}

.section {
  padding: 4rem 0 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.45rem;
}

.section-title {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  line-height: 1.15;
}

.section-desc {
  max-width: 46rem;
  margin-top: 0.55rem;
  color: var(--text-soft);
  line-height: 1.7;
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1.15rem;
}

.movie-card {
  overflow: hidden;
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 1rem 1rem 0 0;
  background: rgba(0, 0, 0, 0.18);
}

.poster-link::after {
  content: "▶";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%) scale(0.85);
  border-radius: 999px;
  color: #fff;
  opacity: 0;
  background: rgba(147, 51, 234, 0.88);
  box-shadow: 0 12px 36px rgba(147, 51, 234, 0.45);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

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

.poster {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.movie-card:hover .poster {
  transform: scale(1.05);
}

.movie-card-body {
  padding: 0.9rem;
}

.movie-meta,
.detail-meta,
.rank-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
}

.movie-card h3 {
  margin: 0.5rem 0 0.4rem;
  color: #fff;
  font-size: 1rem;
  line-height: 1.35;
}

.movie-card h3 a:hover {
  color: #f0abfc;
}

.movie-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.86rem;
  line-height: 1.6;
}

.line-clamp-2,
.line-clamp-3 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
}

.line-clamp-2 {
  -webkit-line-clamp: 2;
}

.line-clamp-3 {
  -webkit-line-clamp: 3;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.75rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 1.35rem;
  padding: 0.22rem 0.48rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.70);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.72rem;
}

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

.category-card {
  min-height: 12rem;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.category-card strong {
  display: block;
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}

.category-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  line-height: 1.65;
}

.category-card span {
  margin-top: 1rem;
  color: #fed7aa;
  font-weight: 700;
}

.rank-list {
  display: grid;
  gap: 0.85rem;
}

.rank-row {
  display: grid;
  grid-template-columns: 3rem 5rem 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 0.8rem;
}

.rank-number {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.75rem;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, #9333ea, #d946ef);
}

.rank-row img {
  width: 5rem;
  height: 6.4rem;
  border-radius: 0.8rem;
  object-fit: cover;
}

.rank-row h3 {
  margin: 0 0 0.38rem;
  font-size: 1.04rem;
}

.rank-row p {
  margin: 0.42rem 0 0;
  max-width: 58rem;
  color: rgba(255, 255, 255, 0.64);
  line-height: 1.6;
}

.page-hero {
  padding: 7rem 0 2.4rem;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 1.05;
}

.page-hero p {
  max-width: 54rem;
  margin: 1rem 0 0;
  color: var(--text-soft);
  font-size: 1.08rem;
  line-height: 1.8;
}

.local-filter {
  margin: 1.4rem 0 0;
  max-width: 42rem;
}

.local-filter input,
.search-hero-form input {
  height: 3.25rem;
  padding: 0 1rem;
  font-size: 1rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.92rem;
}

.breadcrumb a:hover {
  color: #f0abfc;
}

.detail-hero {
  padding: 7rem 0 2.5rem;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(15rem, 22rem) 1fr;
  gap: 2rem;
  align-items: end;
}

.detail-cover {
  overflow: hidden;
  border-radius: 1.25rem;
}

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

.detail-info h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.detail-intro {
  max-width: 60rem;
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.08rem;
  line-height: 1.82;
}

.player-section {
  padding-top: 1.5rem;
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 1.25rem;
  background: #050008;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.player-shell video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  cursor: pointer;
  background: #000;
  transition: opacity 0.22s ease, visibility 0.22s ease;
  z-index: 2;
}

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

.player-overlay img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.56) saturate(1.08);
}

.play-badge {
  position: relative;
  z-index: 2;
  width: clamp(4rem, 8vw, 6rem);
  height: clamp(4rem, 8vw, 6rem);
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  background: linear-gradient(135deg, #9333ea, #d946ef);
  box-shadow: 0 18px 60px rgba(217, 70, 239, 0.45);
}

.content-panel {
  padding: 1.4rem;
  line-height: 1.85;
}

.content-panel h2 {
  margin: 0 0 0.8rem;
  font-size: 1.5rem;
}

.content-panel p {
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.76);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
}

.search-hero-form {
  display: flex;
  gap: 0.75rem;
  max-width: 46rem;
  margin-top: 1.4rem;
}

.search-hero-form button {
  min-width: 7rem;
}

.no-results {
  padding: 1.5rem;
  color: rgba(255, 255, 255, 0.70);
}

.site-footer {
  margin-top: 4rem;
  padding: 2.4rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.62);
}

.footer-inner {
  width: min(100% - 2rem, 80rem);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a:hover {
  color: #f0abfc;
}

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

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

@media (max-width: 900px) {
  .nav-links,
  .header-actions .search-form {
    display: none;
  }

  .mobile-menu-button {
    display: inline-grid;
    place-items: center;
  }

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

  .hero-panel {
    display: none;
  }

  .rank-row {
    grid-template-columns: 2.6rem 4.6rem 1fr;
  }

  .rank-row .rank-action {
    grid-column: 2 / 4;
  }
}

@media (max-width: 720px) {
  .header-inner {
    height: 4.2rem;
  }

  .page-main {
    padding-top: 4.2rem;
  }

  .hero {
    min-height: 82vh;
  }

  .hero-content {
    padding: 6.4rem 0 3.7rem;
  }

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

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

  .section-head {
    display: block;
  }

  .rank-row {
    grid-template-columns: 2.5rem 4.3rem 1fr;
    gap: 0.75rem;
  }

  .rank-row img {
    width: 4.3rem;
    height: 5.6rem;
  }

  .detail-hero,
  .page-hero {
    padding-top: 5.8rem;
  }

  .search-hero-form {
    display: grid;
  }

  .footer-inner {
    display: grid;
  }
}
