:root {
  --page: #f8fafc;
  --text: #1f2937;
  --muted: #64748b;
  --line: #e2e8f0;
  --card: #ffffff;
  --cyan: #06b6d4;
  --blue: #2563eb;
  --pink: #ec4899;
  --dark: #0f172a;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
  --soft-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--dark);
  white-space: nowrap;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--blue), var(--pink));
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.22);
}

.desktop-nav {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.nav-link,
.mobile-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: #334155;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: #0891b2;
  background: #ecfeff;
}

.header-search {
  display: flex;
  align-items: center;
  width: 280px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
}

.header-search input,
.mobile-search input,
.page-filter input,
.search-panel input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.header-search input {
  padding: 8px 12px;
}

.header-search button,
.mobile-search button,
.search-panel button {
  border: 0;
  border-radius: 999px;
  padding: 8px 16px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  font-weight: 800;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #ecfeff;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: #0891b2;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.mobile-search {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding: 8px;
  border-radius: 18px;
  background: #f8fafc;
}

.hero-slider {
  position: relative;
  min-height: 660px;
  overflow: hidden;
  color: #ffffff;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

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

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.04);
  transform: scale(1.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 72% 30%, rgba(6, 182, 212, 0.25), transparent 28%), linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(15, 23, 42, 0.72) 48%, rgba(15, 23, 42, 0.18)), linear-gradient(0deg, rgba(2, 6, 23, 0.86), transparent 38%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1200px, calc(100% - 32px));
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 360px;
  gap: 52px;
  align-items: center;
  padding: 96px 0 136px;
}

.eyebrow,
.section-head span,
.page-hero span,
.detail-kicker,
.band-text span {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #0891b2;
  background: #ecfeff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-text h1 {
  margin: 20px 0 18px;
  font-size: clamp(42px, 8vw, 84px);
  line-height: 0.96;
  letter-spacing: -0.06em;
  font-weight: 950;
  text-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.hero-text p {
  max-width: 720px;
  margin: 0;
  color: #dbeafe;
  font-size: 18px;
}

.hero-tags,
.detail-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags {
  margin-top: 24px;
}

.hero-tags span,
.detail-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.hero-tags span {
  padding: 8px 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

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

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.28);
}

.ghost-btn {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.08);
}

.primary-btn:hover,
.ghost-btn:hover,
.movie-card:hover,
.category-tile:hover {
  transform: translateY(-4px);
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 34px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.42);
  aspect-ratio: 3 / 4;
  background: rgba(255, 255, 255, 0.08);
}

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

.hero-poster span,
.play-float {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.35);
}

.hero-poster span {
  left: 50%;
  top: 50%;
  width: 78px;
  height: 78px;
  border-radius: 28px;
  transform: translate(-50%, -50%);
  font-size: 28px;
}

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

.hero-controls button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  cursor: pointer;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px !important;
  height: 10px !important;
  border: 0 !important;
  padding: 0 !important;
  background: rgba(255, 255, 255, 0.38) !important;
}

.hero-dot.is-active {
  width: 28px !important;
  background: #ffffff !important;
}

.hero-mini-panel {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 4;
  width: min(1200px, calc(100% - 32px));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  transform: translateX(-50%);
}

.hero-mini {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(12px);
}

.hero-mini img {
  height: 72px;
  border-radius: 14px;
  object-fit: cover;
}

.hero-mini span {
  min-width: 0;
  color: #ffffff;
  font-weight: 900;
}

.hero-mini small {
  display: block;
  margin-top: 2px;
  color: #bfdbfe;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-cats,
.content-section,
.gradient-band,
.detail-layout {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.quick-cats {
  padding: 54px 0 18px;
}

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

.section-head h2,
.page-hero h1,
.detail-info h1,
.band-text h2 {
  margin: 10px 0 0;
  color: var(--dark);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 42px);
}

.section-head a {
  color: #0891b2;
  font-weight: 900;
}

.compact-head {
  align-items: start;
  justify-content: start;
  flex-direction: column;
  margin-bottom: 18px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.chip-row a {
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: #334155;
  font-weight: 900;
  box-shadow: var(--soft-shadow);
}

.chip-row a:hover {
  color: #0891b2;
  background: #ecfeff;
}

.content-section {
  padding: 62px 0;
}

.movie-grid {
  display: grid;
  gap: 24px;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.82);
  border-radius: 26px;
  background: var(--card);
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  box-shadow: var(--shadow);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #e2e8f0;
}

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

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

.card-type,
.rank-badge {
  position: absolute;
  top: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.card-type {
  right: 12px;
  padding: 6px 10px;
  color: #0e7490;
  background: rgba(236, 254, 255, 0.92);
}

.rank-badge {
  left: 12px;
  min-width: 40px;
  padding: 7px 10px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--blue));
}

.play-float {
  right: 14px;
  bottom: 14px;
  width: 44px;
  height: 44px;
  border-radius: 16px;
}

.card-body {
  padding: 18px;
}

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

.card-body h2 {
  margin: 8px 0 8px;
  font-size: 18px;
  line-height: 1.25;
  color: var(--dark);
  font-weight: 950;
}

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

.tag-row span,
.detail-tags span {
  padding: 5px 9px;
  color: #0e7490;
  background: #ecfeff;
}

.gradient-band {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 40px;
  align-items: center;
  margin-top: 42px;
  margin-bottom: 42px;
  padding: 44px;
  border-radius: 34px;
  background: linear-gradient(135deg, #cffafe, #dbeafe 48%, #fce7f3);
  box-shadow: var(--shadow);
}

.band-text h2 {
  font-size: clamp(34px, 5vw, 58px);
}

.band-text p {
  color: #475569;
  font-size: 17px;
}

.rank-list,
.ranking-lines {
  display: grid;
  gap: 10px;
}

.rank-row,
.ranking-line {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.68);
}

.rank-row span,
.ranking-line span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  color: #ffffff;
  background: var(--dark);
  font-weight: 950;
}

.rank-row strong,
.ranking-line strong {
  overflow: hidden;
  color: var(--dark);
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-row em,
.ranking-line em {
  color: var(--muted);
  font-style: normal;
}

.rank-row b,
.ranking-line b {
  color: #0891b2;
}

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

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

.category-tile {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border-radius: 30px;
  color: #ffffff;
  box-shadow: var(--shadow);
  background: var(--dark);
  transition: transform 0.2s ease;
}

.category-tile img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.tile-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.18));
}

.category-tile div {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
}

.category-tile strong {
  display: block;
  font-size: 26px;
  line-height: 1.1;
  font-weight: 950;
}

.category-tile p {
  margin: 10px 0;
  color: #e0f2fe;
}

.category-tile em {
  display: block;
  overflow: hidden;
  color: #bae6fd;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-hero {
  position: relative;
  width: min(1200px, calc(100% - 32px));
  margin: 32px auto 0;
  overflow: hidden;
  border-radius: 36px;
  padding: 70px;
  background: radial-gradient(circle at 78% 20%, rgba(236, 72, 153, 0.16), transparent 30%), linear-gradient(135deg, #ecfeff, #dbeafe 50%, #fdf2f8);
  box-shadow: var(--soft-shadow);
}

.page-hero h1 {
  max-width: 840px;
  font-size: clamp(40px, 6vw, 72px);
}

.page-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  color: #475569;
  font-size: 18px;
}

.page-filter,
.search-panel {
  display: flex;
  gap: 10px;
  width: min(680px, 100%);
  margin-top: 30px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #ffffff;
}

.page-filter input,
.search-panel input {
  padding: 12px 14px;
}

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

.wall-grid a {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.wall-grid strong,
.wall-grid span {
  display: block;
}

.wall-grid strong {
  color: var(--dark);
  font-size: 20px;
  font-weight: 950;
}

.wall-grid span {
  margin-top: 8px;
  color: var(--muted);
}

.ranking-line {
  grid-template-columns: 56px minmax(0, 0.9fr) minmax(0, 1.4fr) auto;
  border: 1px solid var(--line);
  background: #ffffff;
}

.detail-layout {
  padding: 32px 0 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.breadcrumb a {
  color: #0891b2;
}

.detail-card {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 30px;
  align-items: stretch;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 36px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.video-shell {
  position: relative;
  overflow: hidden;
  height: 100%;
  min-height: 420px;
  border-radius: 28px;
  background: #020617;
}

.movie-video {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: contain;
  background: #020617;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.62), rgba(2, 6, 23, 0.16));
  cursor: pointer;
}

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

.player-cover span {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 30px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 18px 42px rgba(37, 99, 235, 0.36);
  font-size: 34px;
}

.player-cover strong {
  font-size: 18px;
  font-weight: 950;
}

.detail-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px;
}

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

.detail-one-line {
  color: #475569;
  font-size: 18px;
}

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

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #334155;
  background: #f1f5f9;
  font-weight: 800;
}

.detail-text p {
  margin: 0 0 22px;
  color: #334155;
  font-size: 18px;
  line-height: 1.9;
}

.detail-text h2 {
  margin: 30px 0 12px;
  color: var(--dark);
  font-size: 26px;
  font-weight: 950;
}

.site-footer {
  margin-top: 70px;
  color: #cbd5e1;
  background: #0f172a;
}

.footer-grid {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.7fr 1fr;
  gap: 40px;
  padding: 54px 0;
}

.footer-logo {
  color: #ffffff;
}

.site-footer p {
  max-width: 460px;
  color: #94a3b8;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 18px;
}

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

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

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

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  padding: 18px 16px;
  text-align: center;
  color: #94a3b8;
}

.is-filter-hidden {
  display: none !important;
}

.empty-results {
  grid-column: 1 / -1;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 28px;
  text-align: center;
  color: var(--muted);
  background: #ffffff;
}

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

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

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

  .hero-content,
  .detail-card,
  .gradient-band,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    max-width: 320px;
  }

  .three-col,
  .four-col,
  .category-grid,
  .category-grid.large,
  .link-wall .wall-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-mini-panel {
    display: none;
  }
}

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

  .site-logo {
    font-size: 18px;
  }

  .hero-slider {
    min-height: 760px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 54px 0 120px;
  }

  .hero-text h1 {
    font-size: 46px;
  }

  .hero-controls {
    bottom: 36px;
  }

  .page-hero {
    padding: 38px 24px;
    border-radius: 28px;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .three-col,
  .four-col,
  .category-grid,
  .category-grid.large,
  .link-wall .wall-grid {
    grid-template-columns: 1fr;
  }

  .gradient-band {
    padding: 28px;
  }

  .rank-row,
  .ranking-line {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .rank-row em,
  .rank-row b,
  .ranking-line em,
  .ranking-line b {
    grid-column: 2;
  }

  .video-shell,
  .movie-video {
    min-height: 260px;
  }

  .detail-card {
    padding: 14px;
    border-radius: 28px;
  }
}
