/* Static movie site styles derived from the uploaded purple gradient React/Tailwind theme. */
:root {
  --bg: #fff7ff;
  --surface: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --primary: #7c3aed;
  --primary-dark: #6d28d9;
  --secondary: #ec4899;
  --accent: #3b82f6;
  --warning: #f59e0b;
  --radius: 22px;
  --shadow: 0 18px 45px rgba(91, 33, 182, 0.12);
  --shadow-hover: 0 26px 68px rgba(91, 33, 182, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background: linear-gradient(180deg, #faf5ff 0%, #ffffff 48%, #fff7fb 100%);
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(90deg, #7c3aed 0%, #a855f7 50%, #db2777 100%);
  box-shadow: 0 14px 30px rgba(76, 29, 149, 0.18);
}

.navbar {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 6px rgba(168, 85, 247, 0.18);
}

.logo-mark::before {
  content: "";
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, #c084fc, #7c3aed);
}

.logo-text {
  font-size: 20px;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: rgba(255, 255, 255, 0.96);
  font-weight: 600;
}

.nav-links a {
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
  color: #f3e8ff;
  transform: translateY(-1px);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-form {
  position: relative;
}

.search-form input {
  width: min(290px, 30vw);
  border: 0;
  outline: 0;
  border-radius: 999px;
  padding: 11px 42px 11px 16px;
  background: rgba(255, 255, 255, 0.92);
  color: #3b0764;
  transition: box-shadow 0.2s ease, background 0.2s ease;
}

.search-form input:focus {
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(233, 213, 255, 0.7);
}

.search-form button {
  position: absolute;
  top: 50%;
  right: 7px;
  transform: translateY(-50%);
  border: 0;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  color: #7c3aed;
  background: transparent;
  cursor: pointer;
}

.mobile-toggle {
  display: none;
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 9px 11px;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  padding: 0 0 16px;
}

.mobile-menu a {
  display: block;
  color: #ffffff;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.hero {
  position: relative;
  min-height: 64vh;
  color: #ffffff;
  overflow: hidden;
  background: linear-gradient(120deg, #581c87 0%, #9333ea 45%, #db2777 100%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  filter: blur(54px);
  pointer-events: none;
}

.hero::before {
  width: 240px;
  height: 240px;
  left: 8%;
  top: 16%;
}

.hero::after {
  width: 320px;
  height: 320px;
  right: 9%;
  bottom: 8%;
}

.hero-slider {
  position: relative;
  min-height: 64vh;
}

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

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

.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 76% 34%, rgba(236, 72, 153, 0.46), transparent 38%),
    linear-gradient(90deg, rgba(88, 28, 135, 0.96), rgba(126, 34, 206, 0.72), rgba(219, 39, 119, 0.58));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 64vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 42px;
  padding: 76px 0 58px;
}

.hero-copy {
  max-width: 760px;
}

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

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero p {
  margin: 0;
  font-size: clamp(16px, 2vw, 22px);
  line-height: 1.75;
  color: #f3e8ff;
}

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

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  backdrop-filter: blur(10px);
  font-size: 14px;
  font-weight: 700;
}

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

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

.btn:hover {
  transform: translateY(-2px) scale(1.02);
}

.btn-primary {
  color: #7c2d12;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(255, 255, 255, 0.2);
}

.btn-glass {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.hero-card {
  position: relative;
  z-index: 2;
  border-radius: 30px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(18px);
  box-shadow: 0 30px 80px rgba(35, 7, 82, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.hero-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  opacity: 1;
}

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

.hero-card-title {
  font-size: 21px;
  font-weight: 900;
  margin-bottom: 8px;
}

.hero-card-desc {
  color: #f3e8ff;
  line-height: 1.6;
  font-size: 14px;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

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

.section {
  padding: 54px 0;
}

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

.section-title {
  margin: 0;
  color: #1f2937;
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.03em;
}

.section-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.more-link {
  color: var(--primary);
  font-weight: 800;
}

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

.movie-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 12px 32px rgba(88, 28, 135, 0.1);
  transition: transform 0.26s ease, box-shadow 0.26s ease;
}

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

.poster {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #e9d5ff, #fbcfe8);
}

.poster::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.35), transparent 28%),
    linear-gradient(180deg, transparent 48%, rgba(0, 0, 0, 0.7) 100%);
  z-index: 1;
}

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

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

.badge {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 10px;
  border-radius: 10px;
  padding: 5px 8px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  background: rgba(124, 58, 237, 0.92);
  backdrop-filter: blur(10px);
}

.poster-play {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: rgba(124, 58, 237, 0.9);
  transform: translate(-50%, -50%) scale(0.82);
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

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

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

.movie-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.45;
}

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

.card-desc {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.rank-card {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 16px;
  padding: 12px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(88, 28, 135, 0.1);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.rank-thumb {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(135deg, #ddd6fe, #fbcfe8);
}

.rank-thumb img {
  width: 100%;
  height: 118px;
  object-fit: cover;
}

.rank-number {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #7c3aed;
  color: #ffffff;
  font-weight: 900;
}

.rank-content h3 {
  margin: 4px 0 8px;
  font-size: 17px;
}

.rank-score {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 9px;
  background: #f3e8ff;
  color: #7c3aed;
  font-size: 12px;
  font-weight: 800;
}

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

.category-card {
  position: relative;
  min-height: 150px;
  overflow: hidden;
  border-radius: 24px;
  padding: 22px;
  color: #ffffff;
  background: linear-gradient(135deg, #7c3aed, #db2777);
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -42px;
  width: 130px;
  height: 130px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.category-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow-hover);
}

.category-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 10px;
  font-size: 22px;
}

.category-card p,
.category-card span {
  position: relative;
  z-index: 1;
  color: #f3e8ff;
  line-height: 1.6;
}

.page-hero {
  color: #ffffff;
  background:
    radial-gradient(circle at 78% 20%, rgba(236, 72, 153, 0.42), transparent 28%),
    linear-gradient(90deg, #6d28d9, #db2777);
  padding: 64px 0;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 56px);
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 760px;
  margin: 12px 0 0;
  color: #f3e8ff;
  font-size: 18px;
  line-height: 1.7;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
  padding: 16px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(88, 28, 135, 0.08);
}

.toolbar input,
.toolbar select {
  width: min(360px, 100%);
  border: 1px solid #ede9fe;
  border-radius: 999px;
  padding: 12px 16px;
  outline: 0;
  color: var(--text);
  background: #faf5ff;
}

.toolbar input:focus {
  border-color: #a855f7;
  box-shadow: 0 0 0 4px rgba(233, 213, 255, 0.7);
}

.breadcrumb {
  color: #7c3aed;
  font-size: 14px;
  margin-bottom: 18px;
  font-weight: 700;
}

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

.detail-main,
.detail-sidebar,
.detail-block {
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(88, 28, 135, 0.1);
}

.player-wrap {
  overflow: hidden;
  border-radius: 24px;
  background: #080712;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.2);
  margin-bottom: 24px;
}

.video-box {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #05030a;
}

.video-box video {
  width: 100%;
  height: 100%;
  display: block;
  background: #05030a;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background:
    radial-gradient(circle at center, rgba(124, 58, 237, 0.28), transparent 30%),
    linear-gradient(180deg, rgba(8, 7, 18, 0.18), rgba(8, 7, 18, 0.72));
  cursor: pointer;
  transition: opacity 0.2s ease;
}

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

.play-button {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #7c3aed, #db2777);
  box-shadow: 0 20px 45px rgba(124, 58, 237, 0.42);
  font-size: 34px;
  padding-left: 5px;
}

.player-status {
  padding: 12px 16px;
  color: #ddd6fe;
  background: rgba(255, 255, 255, 0.06);
  font-size: 14px;
}

.detail-content {
  padding: 26px;
}

.detail-content h1 {
  margin: 0 0 16px;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.03em;
}

.info-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.info-chip {
  border-radius: 12px;
  padding: 8px 11px;
  background: #f5f3ff;
  color: #6d28d9;
  font-size: 14px;
  font-weight: 800;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 18px 0 22px;
}

.tag {
  border-radius: 999px;
  padding: 8px 11px;
  background: linear-gradient(90deg, #8b5cf6, #ec4899);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
}

.detail-section {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid #f1eaff;
}

.detail-section h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.detail-section p {
  color: #4b5563;
  line-height: 1.9;
  margin: 0;
  white-space: pre-line;
}

.detail-sidebar {
  position: sticky;
  top: 88px;
  padding: 18px;
}

.detail-sidebar h2 {
  margin: 0 0 16px;
  font-size: 21px;
}

.side-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
  transition: background 0.2s ease;
}

.side-card:hover {
  background: #faf5ff;
}

.side-card img {
  width: 112px;
  height: 74px;
  object-fit: cover;
  border-radius: 12px;
  background: linear-gradient(135deg, #e9d5ff, #fbcfe8);
}

.side-card h3 {
  margin: 2px 0 7px;
  font-size: 14px;
  line-height: 1.45;
}

.side-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.empty-state {
  display: none;
  padding: 60px 20px;
  text-align: center;
  color: var(--muted);
}

.site-footer {
  margin-top: 56px;
  color: #f3e8ff;
  background: linear-gradient(180deg, #581c87, #3b0764);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 30px;
  padding: 48px 0;
}

.footer-grid h3 {
  margin: 0 0 14px;
  color: #ffffff;
}

.footer-grid p,
.footer-grid li {
  color: #ddd6fe;
  line-height: 1.8;
}

.footer-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-grid a:hover {
  color: #ffffff;
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px 0;
  text-align: center;
  color: #ddd6fe;
  font-size: 14px;
}

.hidden {
  display: none !important;
}

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

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

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

  .hero-card {
    display: none;
  }

  .detail-sidebar {
    position: static;
  }
}

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

  .mobile-toggle {
    display: inline-flex;
  }

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

  .mobile-menu .search-form {
    display: block;
    margin: 12px 0;
  }

  .mobile-menu .search-form input {
    width: 100%;
  }

  .hero-content {
    min-height: 70vh;
    padding: 70px 0 76px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .section {
    padding: 38px 0;
  }

  .section-header,
  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

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

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

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

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

  .logo-text {
    font-size: 17px;
  }
}

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

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

  .rank-card {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .rank-thumb img {
    height: 96px;
  }

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