:root {
  --bg: #090a1a;
  --bg-2: #11112b;
  --panel: rgba(255, 255, 255, 0.08);
  --panel-strong: rgba(255, 255, 255, 0.14);
  --line: rgba(255, 255, 255, 0.14);
  --text: #ffffff;
  --muted: #c7c8e6;
  --soft: #9da1ca;
  --accent: #f8d45c;
  --pink: #ff70b8;
  --purple: #a977ff;
  --indigo: #4f63ff;
  --radius: 24px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 0%, rgba(109, 72, 255, 0.32), transparent 32rem),
    radial-gradient(circle at 90% 10%, rgba(255, 74, 168, 0.26), transparent 30rem),
    linear-gradient(180deg, #0b0d22 0%, #0c0b1c 46%, #090a14 100%);
  min-height: 100vh;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, rgba(49, 36, 125, 0.95), rgba(91, 38, 128, 0.95), rgba(147, 39, 112, 0.95));
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: min(1280px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--pink));
  color: #26113f;
  font-size: 14px;
  box-shadow: 0 0 28px rgba(248, 212, 92, 0.42);
}

.logo-text {
  font-size: 24px;
  background: linear-gradient(90deg, #fff6b0, #ffd3ef, #d7c7ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.header-search {
  position: relative;
  flex: 1;
  max-width: 390px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.header-search input,
.mobile-search input,
.search-panel input,
.select-like {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
  color: #fff;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
  padding: 11px 16px;
}

.header-search input::placeholder,
.mobile-search input::placeholder,
.search-panel input::placeholder {
  color: rgba(235, 227, 255, 0.6);
}

.header-search input:focus,
.mobile-search input:focus,
.search-panel input:focus {
  border-color: rgba(248, 212, 92, 0.8);
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 0 4px rgba(248, 212, 92, 0.12);
}

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

.header-search button,
.mobile-search button,
.primary-btn {
  background: linear-gradient(135deg, var(--accent), var(--pink));
  color: #210a2d;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(255, 112, 184, 0.25);
}

.header-search button {
  padding: 10px 18px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link,
.mobile-nav-link {
  color: rgba(255, 255, 255, 0.88);
  border-radius: 14px;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-link {
  padding: 10px 14px;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  padding: 10px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #fff;
  border-radius: 99px;
}

.mobile-nav {
  display: none;
  padding: 0 20px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.mobile-nav.is-open {
  display: grid;
  gap: 10px;
}

.mobile-nav-link {
  padding: 12px 14px;
}

.mobile-search {
  display: flex;
  gap: 8px;
}

.mobile-search input {
  padding: 11px 14px;
}

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

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

.hero-carousel {
  position: relative;
  min-height: calc(100vh - 68px);
  overflow: hidden;
  isolation: isolate;
}

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

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

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 8, 24, 0.95) 0%, rgba(11, 10, 31, 0.72) 42%, rgba(18, 12, 38, 0.48) 100%),
    var(--hero-image) center / cover no-repeat;
  transform: scale(1.04);
  filter: saturate(1.1);
  z-index: -2;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 24%, rgba(248, 212, 92, 0.22), transparent 18rem),
    radial-gradient(circle at 72% 22%, rgba(255, 112, 184, 0.24), transparent 22rem),
    linear-gradient(180deg, transparent 50%, var(--bg) 100%);
  z-index: -1;
}

.hero-inner {
  width: min(1280px, calc(100% - 32px));
  min-height: calc(100vh - 68px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
  align-items: center;
  gap: clamp(28px, 6vw, 78px);
  padding: 56px 0 86px;
}

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

.hero-kicker,
.section-kicker,
.page-kicker {
  color: var(--accent);
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(40px, 7vw, 86px);
  line-height: 0.98;
  letter-spacing: -0.075em;
}

.hero-copy h2 {
  margin: 22px 0 12px;
  font-size: clamp(28px, 4vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.hero-copy p {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(16px, 1.8vw, 20px);
}

.hero-tags,
.tag-row,
.detail-tags,
.meta-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.tag-row span,
.detail-tags span,
.meta-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #f9f0ff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
}

.hero-actions,
.page-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 13px 22px;
}

.ghost-btn {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.hero-poster {
  position: relative;
  justify-self: end;
  width: min(430px, 100%);
}

.hero-poster-card {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

.hero-poster-card img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.hero-floating {
  position: absolute;
  left: -24px;
  bottom: 26px;
  max-width: 84%;
  padding: 18px;
  border-radius: 22px;
  background: rgba(13, 12, 36, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.17);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.hero-floating strong {
  display: block;
  font-size: 18px;
  margin-bottom: 6px;
}

.hero-floating span {
  color: var(--muted);
  font-size: 14px;
}

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

.hero-dot {
  width: 42px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.28);
}

.hero-dot.is-active {
  background: linear-gradient(90deg, var(--accent), var(--pink));
}

.content-section,
.page-hero,
.detail-layout,
.player-section {
  margin: 72px 0;
}

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

.section-heading h2,
.page-hero h1,
.detail-title h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.section-heading p,
.page-hero p,
.detail-title p {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 740px;
}

.section-more {
  flex: 0 0 auto;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.08);
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.055));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.18);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  border-color: rgba(248, 212, 92, 0.45);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.34);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 24px 24px 0 0;
  background: rgba(255, 255, 255, 0.08);
}

.poster-link img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.movie-card:hover .poster-link img {
  transform: scale(1.055);
  filter: saturate(1.15) brightness(1.05);
}

.poster-glow {
  position: absolute;
  inset: auto 0 0;
  height: 48%;
  background: linear-gradient(180deg, transparent, rgba(8, 7, 24, 0.82));
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 15px;
  color: #241037;
  background: linear-gradient(135deg, #fff0a6, #ff7bc1);
  font-weight: 900;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.movie-info {
  padding: 16px;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--soft);
  font-size: 12px;
  margin-bottom: 10px;
}

.movie-info h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.3;
}

.movie-info h3 a:hover {
  color: var(--accent);
}

.movie-info p {
  display: -webkit-box;
  min-height: 44px;
  margin: 9px 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row {
  gap: 6px;
}

.tag-row span {
  min-height: 24px;
  padding: 4px 8px;
  font-size: 12px;
  color: #eadfff;
}

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 170px;
  padding: 24px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 82% 10%, rgba(255, 112, 184, 0.32), transparent 10rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.13);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
  border-color: rgba(248, 212, 92, 0.46);
}

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

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

.category-tile span {
  display: inline-flex;
  margin-top: 20px;
  color: var(--accent);
  font-weight: 800;
}

.rank-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rank-item {
  display: grid;
  grid-template-columns: 58px 78px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.rank-num {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 18px;
  color: #25113a;
  background: linear-gradient(135deg, #fff0a6, #ff7bc1);
  font-weight: 900;
}

.rank-item img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 14px;
}

.rank-info h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.rank-info p {
  margin: 0;
  color: var(--muted);
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.rank-link {
  color: var(--accent);
  font-weight: 800;
}

.search-panel,
.filter-panel,
.notice-panel,
.breadcrumb,
.info-panel,
.detail-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(16px);
}

.search-panel {
  padding: 22px;
  margin-bottom: 28px;
}

.search-panel input {
  padding: 16px 20px;
  font-size: 18px;
}

.filter-panel {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px;
  margin-bottom: 28px;
}

.filter-btn {
  padding: 10px 14px;
  color: #f8f3ff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.filter-btn.is-active {
  color: #221031;
  background: linear-gradient(135deg, var(--accent), var(--pink));
  border-color: transparent;
  font-weight: 900;
}

.notice-panel {
  display: none;
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

.notice-panel.is-visible {
  display: block;
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  margin-top: 30px;
  color: var(--muted);
}

.breadcrumb a {
  color: #fff;
}

.detail-header {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 34px;
  align-items: end;
  margin-top: 28px;
}

.detail-cover {
  overflow: hidden;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow);
}

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

.detail-title h1 {
  font-size: clamp(34px, 5.8vw, 72px);
}

.meta-strip {
  margin: 18px 0;
}

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

.player-shell video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  outline: none;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(10, 9, 26, 0.2), rgba(10, 9, 26, 0.66));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-button {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  color: #210a2d;
  background: linear-gradient(135deg, #fff1a8, #ff79c4);
  box-shadow: 0 20px 64px rgba(255, 112, 184, 0.38);
}

.play-button svg {
  width: 34px;
  height: 34px;
  margin-left: 5px;
}

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

.detail-card,
.info-panel {
  padding: 26px;
}

.detail-card + .detail-card {
  margin-top: 18px;
}

.detail-card h2,
.info-panel h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.detail-card p,
.info-panel p {
  color: var(--muted);
  line-height: 1.85;
}

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

.side-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  transition: background 0.2s ease, transform 0.2s ease;
}

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

.side-item img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 12px;
}

.side-item strong {
  display: block;
  line-height: 1.35;
}

.side-item span {
  display: block;
  margin-top: 4px;
  color: var(--soft);
  font-size: 13px;
}

.hidden-card {
  display: none !important;
}

.site-footer {
  margin-top: 84px;
  padding: 46px 0 30px;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.28);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 28px;
}

.footer-logo {
  display: inline-flex;
  color: #fff;
  font-size: 24px;
  margin-bottom: 8px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.copyright {
  width: min(1280px, calc(100% - 32px));
  margin: 24px auto 0;
  color: rgba(255, 255, 255, 0.45);
  font-size: 14px;
}

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

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

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

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

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

  .hero-poster {
    justify-self: start;
    width: min(330px, 78vw);
  }

  .section-heading,
  .page-hero,
  .footer-inner {
    align-items: start;
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .detail-cover {
    width: min(320px, 80vw);
  }
}

@media (max-width: 760px) {
  .nav-shell,
  .main-shell,
  .hero-inner,
  .footer-inner,
  .copyright {
    width: min(100% - 24px, 1280px);
  }

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

  .hero-carousel,
  .hero-inner {
    min-height: auto;
  }

  .hero-slide {
    position: relative;
    display: none;
  }

  .hero-slide.is-active {
    display: block;
  }

  .hero-inner {
    padding: 44px 0 92px;
  }

  .hero-floating {
    left: 14px;
    right: 14px;
    max-width: none;
  }

  .hero-controls {
    bottom: 18px;
  }

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

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

  .movie-info {
    padding: 13px;
  }

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

  .rank-item {
    grid-template-columns: 44px 60px minmax(0, 1fr);
  }

  .rank-link {
    grid-column: 3;
  }

  .rank-num {
    width: 40px;
    height: 40px;
  }

  .content-section,
  .page-hero,
  .detail-layout,
  .player-section {
    margin: 48px 0;
  }
}
