:root {
  --page-bg: #060713;
  --panel-bg: rgba(18, 21, 38, 0.78);
  --panel-strong: rgba(28, 32, 56, 0.92);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f8fafc;
  --muted: #a9b0c7;
  --soft: #dde3ff;
  --accent: #ff3d7f;
  --accent-2: #7c3cff;
  --accent-3: #0fd6ff;
  --gold: #ffd166;
  --radius-xl: 30px;
  --radius-lg: 22px;
  --shadow-card: 0 26px 70px rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 18px 48px rgba(5, 8, 22, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 10%, rgba(124, 60, 255, 0.22), transparent 26rem),
    radial-gradient(circle at 85% 12%, rgba(255, 61, 127, 0.18), transparent 24rem),
    linear-gradient(135deg, #060713 0%, #111426 48%, #090a17 100%);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(24px);
  background: rgba(8, 10, 25, 0.78);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 24px;
  min-height: 76px;
}

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

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 30px rgba(255, 61, 127, 0.35);
}

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

.main-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.main-nav a,
.mobile-nav a {
  padding: 10px 14px;
  color: var(--soft);
  border-radius: 999px;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.main-nav a:hover,
.mobile-nav a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.header-search {
  display: flex;
  align-items: center;
  width: min(360px, 28vw);
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.header-search input {
  width: 100%;
  min-width: 0;
  color: #ffffff;
  border: 0;
  outline: 0;
  padding: 9px 12px;
  background: transparent;
}

.header-search input::placeholder {
  color: rgba(232, 236, 255, 0.56);
}

.header-search button,
.primary-btn,
.secondary-btn,
.player-link {
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  cursor: pointer;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 16px 32px rgba(124, 60, 255, 0.32);
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

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

.primary-btn,
.secondary-btn,
.player-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 20px;
  font-weight: 800;
}

.secondary-btn {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
  border: 1px solid var(--line);
}

.header-search button:hover,
.primary-btn:hover,
.secondary-btn:hover,
.player-link:hover {
  transform: translateY(-2px);
  opacity: 0.94;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  color: #ffffff;
  border-radius: 999px;
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.08);
}

.mobile-nav {
  display: none;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.07);
}

.mobile-nav.is-open {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

main {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: 680px;
  display: grid;
  align-items: center;
  padding: 58px 0 42px;
}

.hero-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 38px;
  background: rgba(10, 12, 28, 0.76);
  box-shadow: var(--shadow-card);
}

.hero-slide {
  display: none;
  min-height: 560px;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 42px;
  align-items: center;
  padding: 58px;
}

.hero-slide.is-active {
  display: grid;
  animation: fadeIn 0.5s ease both;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 30px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
}

.hero h1,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 70px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.hero h2 {
  margin: 10px 0 0;
  color: #ffffff;
  font-size: clamp(28px, 4vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero-desc,
.page-hero p,
.detail-info .lead {
  max-width: 720px;
  margin: 20px 0 0;
  color: var(--soft);
  font-size: 18px;
}

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

.hero-tags,
.meta-pills,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.hero-tags span,
.meta-pills span,
.tag-row span,
.category-mini a {
  color: var(--soft);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(255, 255, 255, 0.08);
}

.hero-poster-wrap {
  position: relative;
  z-index: 2;
  min-height: 460px;
}

.hero-poster {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 34px;
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.48);
  transform: rotate(2deg);
}

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

.hero-glow {
  position: absolute;
  width: 260px;
  height: 260px;
  right: -40px;
  bottom: -34px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 61, 127, 0.55), rgba(124, 60, 255, 0));
  filter: blur(8px);
}

.hero-controls {
  position: absolute;
  left: 58px;
  bottom: 34px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-arrow,
.hero-dot {
  border: 1px solid var(--line);
  color: #ffffff;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
  transition: background 0.25s ease, transform 0.25s ease;
}

.hero-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

.hero-dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border-radius: 50%;
}

.hero-dot.is-active {
  width: 34px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-3));
}

.hero-arrow:hover,
.hero-dot:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.18);
}

.quick-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 22px;
}

.quick-card,
.category-card,
.info-panel,
.filter-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel-bg);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.quick-card {
  display: block;
  padding: 18px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.quick-card:hover,
.category-card:hover,
.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.26);
}

.quick-card strong {
  display: block;
  font-size: 18px;
}

.quick-card span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.section {
  margin: 70px 0;
}

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

.section-head h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 40px);
  letter-spacing: -0.04em;
}

.section-head p {
  max-width: 620px;
  margin: 8px 0 0;
  color: var(--muted);
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.065);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

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

.poster img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.movie-card:hover .poster img {
  transform: scale(1.06);
  filter: saturate(1.12);
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: grid;
  min-width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 12px;
  color: #161102;
  font-weight: 900;
  background: linear-gradient(135deg, #fff7b1, var(--gold));
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.32);
}

.card-content {
  padding: 15px;
}

.card-meta {
  color: var(--muted);
  font-size: 13px;
}

.card-content h3 {
  margin: 8px 0 7px;
  font-size: 17px;
  line-height: 1.35;
}

.card-content p {
  min-height: 66px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.tag-row {
  margin-top: 13px;
}

.tag-row span {
  padding: 5px 8px;
  font-size: 12px;
}

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

.category-card {
  display: grid;
  min-height: 230px;
  padding: 24px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-card h3 {
  margin: 0;
  font-size: 24px;
}

.category-card p {
  margin: 10px 0 22px;
  color: var(--muted);
}

.category-card span {
  align-self: end;
  color: var(--gold);
  font-weight: 800;
}

.category-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.page-hero {
  margin: 46px 0 28px;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(255, 61, 127, 0.18), rgba(124, 60, 255, 0.16)),
    rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow-card);
}

.filter-panel {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 12px;
  margin: 26px 0 24px;
  padding: 14px;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  color: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  outline: none;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.08);
}

.filter-panel option {
  color: #111827;
}

.empty-state {
  display: none;
  margin: 34px 0;
  color: var(--muted);
  text-align: center;
}

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

.detail-hero {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 42px;
  align-items: center;
  margin: 46px 0;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 36px;
  background:
    radial-gradient(circle at 88% 14%, rgba(255, 61, 127, 0.22), transparent 22rem),
    rgba(255, 255, 255, 0.064);
  box-shadow: var(--shadow-card);
}

.detail-cover {
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 30px 76px rgba(0, 0, 0, 0.48);
}

.detail-cover img {
  aspect-ratio: 3 / 4.15;
  object-fit: cover;
}

.detail-info h1 {
  font-size: clamp(34px, 4.5vw, 62px);
}

.detail-body,
.player-section,
.related-section {
  margin: 54px 0;
}

.player-section h2,
.detail-body h2,
.related-section h2 {
  margin: 0 0 18px;
  font-size: clamp(24px, 3vw, 34px);
}

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 34px;
  background: #000000;
  box-shadow: var(--shadow-card);
}

.movie-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  cursor: pointer;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  cursor: pointer;
  background:
    radial-gradient(circle at center, rgba(124, 60, 255, 0.18), transparent 24rem),
    linear-gradient(180deg, rgba(6, 7, 19, 0.14), rgba(6, 7, 19, 0.74));
}

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

.play-core {
  display: grid;
  width: 96px;
  height: 96px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 26px 62px rgba(124, 60, 255, 0.46);
}

.play-core::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 7px;
  border-top: 18px solid transparent;
  border-bottom: 18px solid transparent;
  border-left: 28px solid #ffffff;
}

.detail-body {
  display: grid;
  grid-template-columns: 1fr 0.38fr;
  gap: 24px;
}

.info-panel {
  padding: 26px;
}

.info-panel p {
  margin: 0 0 16px;
  color: var(--soft);
  font-size: 17px;
}

.info-panel p:last-child {
  margin-bottom: 0;
}

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

.side-list a {
  display: block;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.06);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 56px 90px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.064);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.rank-item:hover {
  transform: translateX(4px);
  border-color: rgba(255, 255, 255, 0.24);
}

.rank-number {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 15px;
  font-weight: 900;
  color: #15110a;
  background: linear-gradient(135deg, #fff7b1, var(--gold));
}

.rank-thumb {
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 3 / 4;
}

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

.rank-info strong {
  display: block;
  font-size: 18px;
}

.rank-info span,
.rank-heat {
  color: var(--muted);
  font-size: 14px;
}

.site-footer {
  width: min(1240px, calc(100% - 32px));
  margin: 80px auto 34px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer strong {
  color: #ffffff;
  margin-right: 10px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1120px) {
  .header-inner {
    grid-template-columns: auto 1fr auto;
  }

  .main-nav {
    display: none;
  }

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

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

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

  .hero-slide,
  .detail-hero,
  .detail-body {
    grid-template-columns: 1fr;
  }

  .hero-poster-wrap {
    min-height: 420px;
  }
}

@media (max-width: 760px) {
  .header-inner {
    width: min(100% - 20px, 1240px);
    grid-template-columns: 1fr auto;
    gap: 12px;
    min-height: 68px;
  }

  .header-search {
    grid-column: 1 / -1;
    width: 100%;
    margin-bottom: 12px;
  }

  .mobile-nav.is-open {
    grid-template-columns: repeat(2, 1fr);
  }

  main {
    width: min(100% - 20px, 1240px);
  }

  .hero {
    min-height: auto;
    padding: 24px 0;
  }

  .hero-slide {
    min-height: auto;
    padding: 28px;
  }

  .hero-poster-wrap {
    min-height: 340px;
  }

  .hero-controls {
    position: static;
    padding: 0 28px 28px;
  }

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

  .category-grid,
  .quick-strip,
  .filter-panel {
    grid-template-columns: 1fr;
  }

  .section-head,
  .site-footer {
    display: block;
  }

  .page-hero,
  .detail-hero {
    padding: 24px;
    border-radius: 26px;
  }

  .rank-item {
    grid-template-columns: 42px 72px 1fr;
  }

  .rank-heat {
    grid-column: 2 / -1;
  }
}
