:root {
  --grape-950: #17031f;
  --grape-900: #2b0738;
  --grape-850: #3b0b4d;
  --grape-800: #4c1366;
  --grape-700: #682091;
  --grape-600: #8532b8;
  --grape-500: #a855f7;
  --grape-400: #c084fc;
  --grape-300: #d8b4fe;
  --gold-500: #f59e0b;
  --gold-400: #fbbf24;
  --gold-300: #fde68a;
  --ink: #08050d;
  --white: #ffffff;
  --muted: rgba(216, 180, 254, 0.72);
  --panel: rgba(38, 8, 54, 0.72);
  --panel-strong: rgba(58, 13, 80, 0.88);
  --border: rgba(216, 180, 254, 0.16);
  --shadow: 0 22px 55px rgba(0, 0, 0, 0.42);
  --glow: 0 0 24px rgba(168, 85, 247, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--white);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 8% 10%, rgba(168, 85, 247, 0.18), transparent 28rem),
    radial-gradient(circle at 85% 0%, rgba(251, 191, 36, 0.12), transparent 24rem),
    linear-gradient(180deg, #050108 0%, var(--grape-950) 44%, #020104 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.24;
  background-image:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 18px),
    linear-gradient(45deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 26px);
  z-index: -1;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background:
    linear-gradient(90deg, rgba(23, 3, 31, 0.96), rgba(59, 11, 77, 0.95), rgba(23, 3, 31, 0.96));
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(216, 180, 254, 0.14);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.header-inner {
  width: min(1280px, calc(100% - 32px));
  height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark,
.footer-logo span {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: var(--gold-300);
  background: linear-gradient(135deg, var(--grape-600), var(--grape-900));
  box-shadow: 0 0 22px rgba(168, 85, 247, 0.45);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-copy strong {
  font-size: clamp(16px, 1.9vw, 22px);
  letter-spacing: 0.02em;
  color: transparent;
  background: linear-gradient(90deg, var(--grape-300), var(--gold-300), var(--grape-300));
  -webkit-background-clip: text;
  background-clip: text;
  white-space: nowrap;
}

.brand-copy small {
  margin-top: 4px;
  color: var(--grape-400);
  font-size: 12px;
}

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

.desktop-nav a,
.mobile-panel a {
  color: var(--grape-300);
  border-radius: 12px;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.desktop-nav a {
  padding: 10px 14px;
}

.desktop-nav a:hover,
.desktop-nav a.is-active,
.mobile-panel a:hover,
.mobile-panel a.is-active {
  color: var(--gold-300);
  background: rgba(104, 32, 145, 0.72);
  box-shadow: 0 0 18px rgba(251, 191, 36, 0.18);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(216, 180, 254, 0.16);
  border-radius: 14px;
  background: rgba(23, 3, 31, 0.8);
}

.header-search input,
.mobile-search input,
.filter-input {
  min-width: 0;
  color: var(--white);
  background: rgba(76, 19, 102, 0.62);
  border: 1px solid rgba(216, 180, 254, 0.18);
  border-radius: 12px;
  outline: none;
  transition: border 0.25s ease, box-shadow 0.25s ease;
}

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

.header-search input:focus,
.mobile-search input:focus,
.filter-input:focus {
  border-color: rgba(251, 191, 36, 0.55);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.22);
}

.header-search button,
.mobile-search button,
.primary-button,
.secondary-button,
.filter-button {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.header-search button,
.mobile-search button,
.primary-button {
  color: var(--white);
  background: linear-gradient(135deg, var(--grape-600), var(--grape-800));
  box-shadow: 0 12px 24px rgba(76, 19, 102, 0.46);
}

.header-search button {
  padding: 9px 14px;
}

.header-search button:hover,
.mobile-search button:hover,
.primary-button:hover,
.secondary-button:hover,
.filter-button:hover {
  transform: translateY(-2px);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  color: var(--grape-300);
  background: rgba(76, 19, 102, 0.6);
  border: 1px solid rgba(216, 180, 254, 0.14);
  border-radius: 12px;
}

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

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

.mobile-search {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

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

.mobile-search button {
  padding: 10px 16px;
}

.mobile-panel nav {
  display: grid;
  gap: 8px;
}

.mobile-panel a {
  padding: 12px 14px;
}

.hero {
  position: relative;
  height: 78vh;
  min-height: 560px;
  overflow: hidden;
  isolation: isolate;
}

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

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

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

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

.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.96) 0%, rgba(11, 2, 17, 0.86) 38%, rgba(0, 0, 0, 0.18) 100%),
    linear-gradient(0deg, #050108 0%, rgba(5, 1, 8, 0) 38%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 690px;
  padding-top: 34px;
}

.hero-kicker,
.section-kicker,
.detail-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-300);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hero-kicker::before,
.section-kicker::before,
.detail-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--gold-400);
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.8);
}

.hero h1 {
  margin: 18px 0 18px;
  font-size: clamp(40px, 7vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-shadow: 0 18px 50px rgba(0, 0, 0, 0.65);
  animation: floatText 3.5s ease-in-out infinite;
}

.hero p {
  margin: 0;
  color: rgba(216, 180, 254, 0.9);
  font-size: clamp(16px, 2vw, 22px);
  line-height: 1.72;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.hero-meta,
.detail-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0;
}

.hero-meta span,
.detail-meta span,
.meta-pill,
.score-badge,
.duration-badge,
.rank-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(216, 180, 254, 0.16);
  background: rgba(0, 0, 0, 0.46);
  color: var(--grape-300);
}

.hero-meta span,
.detail-meta span,
.meta-pill {
  padding: 8px 12px;
}

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

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  font-weight: 700;
}

.secondary-button {
  color: var(--grape-200, #eadcff);
  background: rgba(76, 19, 102, 0.48);
  border: 1px solid rgba(216, 180, 254, 0.18);
}

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

.hero-dot {
  width: 36px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(216, 180, 254, 0.28);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
  width: 62px;
  background: var(--gold-400);
}

.content-section,
.detail-section {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 0;
}

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

.section-heading h2 {
  margin: 8px 0 0;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.15;
}

.section-heading p {
  max-width: 680px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.section-link {
  flex: 0 0 auto;
  color: var(--gold-300);
  padding: 10px 16px;
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.08);
}

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

.movie-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(76, 19, 102, 0.62), rgba(18, 4, 26, 0.92));
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.movie-card:hover {
  transform: translateY(-8px) scale(1.015);
  border-color: rgba(251, 191, 36, 0.36);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.42), var(--glow);
}

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

.poster-wrap {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #12041b;
}

.poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, opacity 0.3s ease;
}

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.76));
}

.score-badge,
.duration-badge,
.rank-mark {
  position: absolute;
  z-index: 2;
  min-height: 28px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
}

.score-badge {
  top: 10px;
  right: 10px;
  color: var(--gold-300);
}

.duration-badge {
  left: 10px;
  bottom: 10px;
}

.rank-mark {
  left: 10px;
  top: 10px;
  color: #09020d;
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  border: 0;
}

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

.movie-card-body h3 {
  margin: 0 0 9px;
  font-size: 17px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.movie-tags,
.card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.movie-tags span {
  color: var(--grape-300);
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(104, 32, 145, 0.58);
}

.card-meta {
  margin-top: 12px;
  color: rgba(216, 180, 254, 0.64);
  font-size: 12px;
  justify-content: space-between;
}

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

.category-tile {
  position: relative;
  min-height: 170px;
  overflow: hidden;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background:
    radial-gradient(circle at 80% 10%, rgba(251, 191, 36, 0.15), transparent 9rem),
    linear-gradient(145deg, rgba(76, 19, 102, 0.82), rgba(16, 3, 24, 0.94));
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.category-tile:hover {
  transform: translateY(-6px);
  border-color: rgba(251, 191, 36, 0.35);
}

.category-tile strong {
  display: block;
  margin-bottom: 12px;
  font-size: 22px;
}

.category-tile p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.category-tile span {
  position: absolute;
  right: 18px;
  bottom: 14px;
  color: rgba(251, 191, 36, 0.5);
  font-size: 44px;
  font-weight: 900;
}

.filter-panel {
  margin: 28px 0 28px;
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--panel);
}

.filter-input {
  width: 100%;
  padding: 14px 16px;
}

.filter-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-button {
  color: var(--grape-300);
  padding: 10px 14px;
  background: rgba(104, 32, 145, 0.42);
  border: 1px solid rgba(216, 180, 254, 0.16);
}

.filter-button.is-active {
  color: #12041b;
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
}

.empty-state {
  display: none;
  padding: 36px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed rgba(216, 180, 254, 0.2);
  border-radius: 20px;
}

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

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 82px 0 52px;
  background:
    radial-gradient(circle at 20% 0%, rgba(168, 85, 247, 0.24), transparent 26rem),
    linear-gradient(135deg, rgba(24, 3, 33, 0.92), rgba(7, 1, 10, 0.98));
  border-bottom: 1px solid rgba(216, 180, 254, 0.12);
}

.page-hero-inner,
.detail-hero-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.page-hero h1,
.detail-hero h1 {
  margin: 12px 0 12px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.08;
}

.page-hero p,
.detail-hero p {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.75;
  margin: 0;
}

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

.player-panel,
.detail-panel {
  border: 1px solid var(--border);
  border-radius: 26px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(45, 8, 62, 0.84), rgba(7, 1, 10, 0.94));
  box-shadow: var(--shadow);
}

.video-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-shell video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: 1;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  cursor: pointer;
  border: 0;
  padding: 0;
  background: #000;
}

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

.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
}

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(168, 85, 247, 0.24), transparent 24rem),
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.76));
}

.play-orb {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  transform: translate(-50%, -50%);
  width: 92px;
  height: 92px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #14031e;
  font-size: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  box-shadow: 0 0 0 12px rgba(251, 191, 36, 0.14), 0 0 42px rgba(251, 191, 36, 0.55);
}

.player-info {
  padding: 24px;
}

.player-info h2 {
  margin: 0 0 12px;
  font-size: 28px;
}

.player-info p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.detail-panel {
  padding: 24px;
}

.detail-poster {
  overflow: hidden;
  margin-bottom: 20px;
  border-radius: 20px;
  aspect-ratio: 2 / 3;
  background: #12041b;
}

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

.info-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.info-row {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  color: rgba(216, 180, 254, 0.84);
}

.info-row dt {
  color: var(--gold-300);
  font-weight: 700;
}

.info-row dd {
  margin: 0;
}

.text-panel {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--panel);
}

.text-panel h2,
.text-panel h3 {
  margin: 0 0 14px;
}

.text-panel p {
  margin: 0;
  color: rgba(236, 216, 255, 0.86);
  line-height: 1.86;
}

.text-stack {
  display: grid;
  gap: 20px;
}

.breadcrumb {
  width: min(1280px, calc(100% - 32px));
  margin: 22px auto 0;
  color: rgba(216, 180, 254, 0.62);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--grape-300);
}

.site-footer {
  margin-top: 82px;
  background: linear-gradient(180deg, rgba(23, 3, 31, 0.88), rgba(0, 0, 0, 0.98));
  border-top: 1px solid rgba(216, 180, 254, 0.12);
}

.footer-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.footer-logo strong {
  font-size: 20px;
}

.footer-brand p {
  max-width: 480px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.footer-links h3 {
  margin: 0 0 14px;
  color: var(--grape-300);
}

.footer-links div {
  display: grid;
  gap: 9px;
}

.footer-links a {
  color: rgba(216, 180, 254, 0.72);
}

.footer-links a:hover {
  color: var(--gold-300);
}

.footer-bottom {
  padding: 18px 0;
  text-align: center;
  color: rgba(216, 180, 254, 0.48);
  border-top: 1px solid rgba(216, 180, 254, 0.1);
}

@keyframes floatText {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

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

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

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

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

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

  .hero {
    height: 72vh;
  }

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

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

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

  .brand-copy small {
    display: none;
  }

  .hero {
    min-height: 620px;
  }

  .hero-content {
    align-items: flex-end;
    padding-bottom: 88px;
  }

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

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

  .section-heading,
  .filter-panel {
    display: block;
  }

  .section-link {
    display: inline-flex;
    margin-top: 16px;
  }

  .filter-actions {
    margin-top: 12px;
  }

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

  .movie-card-body h3 {
    font-size: 15px;
  }

  .player-info,
  .detail-panel,
  .text-panel {
    padding: 18px;
  }

  .play-orb {
    width: 72px;
    height: 72px;
    font-size: 26px;
  }
}
