:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.72);
  --panel-solid: #111827;
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --cyan: #22d3ee;
  --cyan-strong: #06b6d4;
  --violet: #7c3aed;
  --gold: #facc15;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 20% 0%, rgba(34, 211, 238, 0.18), transparent 28rem),
    radial-gradient(circle at 80% 10%, rgba(124, 58, 237, 0.22), transparent 30rem),
    linear-gradient(180deg, #020617 0%, #0f172a 45%, #020617 100%);
  color: var(--text);
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto 0;
  background: rgba(15, 23, 42, 0.92);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 20px 40px rgba(2, 6, 23, 0.28);
  backdrop-filter: blur(14px);
}

.header-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: white;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  box-shadow: 0 10px 30px rgba(34, 211, 238, 0.24);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 21px;
  letter-spacing: 0.02em;
}

.brand-text em {
  margin-top: 3px;
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}

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

.nav-link {
  color: var(--soft);
  font-weight: 700;
  transition: color 0.2s ease;
}

.nav-link:hover,
.mobile-link:hover,
.footer-links a:hover,
.section-link:hover {
  color: var(--cyan);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.6);
}

.menu-button span {
  width: 20px;
  height: 2px;
  background: white;
  border-radius: 99px;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  padding: 10px 16px 18px;
}

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

.mobile-link {
  padding: 12px 0;
  color: var(--soft);
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.main-area {
  min-height: 70vh;
  padding-top: 68px;
}

.hero-slider {
  position: relative;
  height: 72vh;
  min-height: 560px;
  overflow: hidden;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  pointer-events: none;
  transition: opacity 0.7s ease, transform 1.1s ease;
}

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

.hero-bg,
.detail-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.12);
}

.hero-shade,
.detail-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.68) 46%, rgba(2, 6, 23, 0.2) 100%),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.1) 52%, rgba(2, 6, 23, 0.7) 100%);
}

.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding-bottom: 86px;
}

.hero-copy {
  width: min(720px, 100%);
}

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

.hero-tags a,
.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.76);
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: var(--soft);
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.hero-tags a,
.tag-row span:first-child {
  background: rgba(6, 182, 212, 0.82);
  border-color: rgba(103, 232, 249, 0.38);
  color: white;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 18px 0 16px;
  font-size: clamp(38px, 6vw, 70px);
  line-height: 1.03;
  letter-spacing: -0.055em;
  text-shadow: 0 12px 35px rgba(0, 0, 0, 0.42);
}

.hero-one {
  margin: 0 0 14px;
  color: #e2e8f0;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.65;
}

.hero-desc,
.page-hero p,
.quick-panel p,
.detail-one {
  color: var(--soft);
  line-height: 1.8;
  font-size: 16px;
}

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

.primary-button,
.ghost-button,
.rank-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 12px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, border 0.2s ease;
}

.primary-button {
  background: linear-gradient(135deg, var(--cyan-strong), var(--cyan));
  color: #001018;
  box-shadow: 0 16px 36px rgba(34, 211, 238, 0.2);
}

.ghost-button,
.rank-action {
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
}

.primary-button:hover,
.ghost-button:hover,
.rank-action:hover {
  transform: translateY(-2px);
}

.hero-arrow {
  position: absolute;
  bottom: 46px;
  z-index: 5;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  font-size: 36px;
  line-height: 1;
  backdrop-filter: blur(14px);
}

.hero-arrow.prev {
  right: 96px;
}

.hero-arrow.next {
  right: 38px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 58px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 18px;
  height: 5px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
  width: 38px;
  background: var(--cyan);
}

.quick-panel {
  margin-top: -26px;
  position: relative;
  z-index: 4;
}

.quick-inner {
  display: grid;
  grid-template-columns: 1fr 1.45fr;
  gap: 26px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.quick-inner h2,
.section-head h2,
.detail-article h2,
.side-panel h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.03em;
}

.quick-inner p {
  margin: 10px 0 0;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: center;
}

.quick-links a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--soft);
  background: rgba(30, 41, 59, 0.86);
  border: 1px solid var(--line);
  transition: color 0.2s ease, border 0.2s ease, transform 0.2s ease;
}

.quick-links a:hover {
  color: white;
  border-color: rgba(34, 211, 238, 0.4);
  transform: translateY(-2px);
}

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

.tinted-section {
  background: rgba(15, 23, 42, 0.32);
  border-block: 1px solid rgba(148, 163, 184, 0.06);
}

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

.section-kicker {
  display: inline-flex;
  margin-bottom: 9px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.section-link {
  color: var(--cyan);
  font-weight: 800;
}

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

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

.movie-card {
  min-width: 0;
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.86);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3);
}

.poster-wrap img,
.wide-thumb img,
.rank-cover img,
.category-tile img,
.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.movie-card:hover .poster-wrap img,
.wide-card:hover .wide-thumb img,
.rank-item:hover .rank-cover img,
.category-tile:hover img {
  transform: scale(1.08);
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.88) 0%, transparent 55%);
}

.play-badge,
.wide-thumb span {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%) scale(0.82);
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(34, 211, 238, 0.92);
  color: #02111b;
  opacity: 0;
  box-shadow: 0 16px 40px rgba(34, 211, 238, 0.28);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.year-badge {
  position: absolute;
  right: 10px;
  top: 10px;
  padding: 4px 8px;
  border-radius: 8px;
  color: white;
  font-size: 12px;
  font-weight: 800;
  background: rgba(6, 182, 212, 0.82);
}

.card-body {
  padding-top: 13px;
}

.card-body h3 {
  margin: 9px 0 7px;
  color: white;
  font-size: 17px;
  line-height: 1.36;
}

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

.card-body a:hover,
.rank-info a:hover,
.detail-article a:hover {
  color: var(--cyan);
}

.card-body p,
.wide-body p,
.rank-info p,
.detail-article p,
.side-panel dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.card-meta {
  margin-top: 10px;
  color: #64748b;
  font-size: 13px;
}

.card-meta span:first-child {
  color: var(--gold);
}

.horizontal-list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(320px, 380px);
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 14px;
  scrollbar-color: var(--cyan) rgba(15, 23, 42, 0.9);
}

.wide-card {
  display: grid;
  gap: 14px;
}

.wide-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.86);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3);
}

.wide-body h3 {
  margin: 9px 0 7px;
  font-size: 22px;
}

.page-main {
  padding-top: 68px;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 330px;
  display: flex;
  align-items: flex-end;
  background:
    radial-gradient(circle at 12% 18%, rgba(34, 211, 238, 0.24), transparent 23rem),
    radial-gradient(circle at 88% 14%, rgba(124, 58, 237, 0.22), transparent 28rem),
    linear-gradient(135deg, #0f172a, #020617);
}

.compact-hero .container {
  padding: 74px 0 58px;
}

.page-hero h1 {
  margin-bottom: 12px;
}

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

.category-tile {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border-radius: 22px;
  padding: 20px;
  display: flex;
  justify-content: flex-end;
  flex-direction: column;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.82);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

.category-tile img,
.category-gradient {
  position: absolute;
  inset: 0;
}

.category-gradient {
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.94) 0%, rgba(2, 6, 23, 0.42) 70%, rgba(2, 6, 23, 0.12) 100%);
}

.category-tile strong,
.category-tile em {
  position: relative;
}

.category-tile strong {
  font-size: 22px;
}

.category-tile em {
  margin-top: 8px;
  color: var(--soft);
  font-style: normal;
  line-height: 1.55;
  font-size: 13px;
}

.catalog-filter {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 30px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(14px);
}

.catalog-filter label {
  display: grid;
  gap: 7px;
  color: var(--soft);
  font-size: 13px;
  font-weight: 800;
}

.catalog-filter input,
.catalog-filter select {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  padding: 0 12px;
  outline: 0;
  color: var(--text);
  background: rgba(2, 6, 23, 0.62);
}

.catalog-filter input:focus,
.catalog-filter select:focus {
  border-color: rgba(34, 211, 238, 0.66);
}

[data-card].is-hidden {
  display: none;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 64px 100px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.rank-item.top {
  border-color: rgba(34, 211, 238, 0.32);
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.11), rgba(124, 58, 237, 0.11)), rgba(15, 23, 42, 0.78);
}

.rank-number {
  color: var(--cyan);
  font-size: 26px;
  font-weight: 900;
  text-align: center;
}

.rank-cover {
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.8);
}

.rank-info h2 {
  margin: 8px 0;
  font-size: 22px;
}

.detail-hero {
  min-height: 580px;
}

.detail-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 290px 1fr;
  align-items: end;
  gap: 38px;
  padding: 110px 0 70px;
}

.detail-poster {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  box-shadow: var(--shadow);
  background: rgba(15, 23, 42, 0.85);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a::after {
  content: "/";
  margin-left: 9px;
  color: #475569;
}

.detail-copy h1 {
  font-size: clamp(36px, 5vw, 64px);
}

.detail-meta {
  margin: 18px 0;
  color: var(--soft);
}

.detail-meta span:first-child {
  color: var(--gold);
  font-weight: 900;
}

.detail-tags {
  margin-bottom: 24px;
}

.player-block {
  padding-top: 44px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: black;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.movie-player,
.player-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.movie-player {
  z-index: 1;
  background: black;
}

.player-cover {
  z-index: 2;
  border: 0;
  color: white;
  background-size: cover;
  background-position: center;
}

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

.player-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.35));
}

.player-play {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #02111b;
  font-size: 34px;
  background: var(--cyan);
  box-shadow: 0 18px 60px rgba(34, 211, 238, 0.38);
}

.player-title {
  position: absolute;
  left: 28px;
  bottom: 24px;
  right: 28px;
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 900;
  text-align: left;
}

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

.detail-article,
.side-panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.72);
}

.detail-article h2:not(:first-child) {
  margin-top: 28px;
}

.detail-article p {
  margin-top: 14px;
  font-size: 17px;
}

.side-panel dl {
  margin: 18px 0 0;
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px 14px;
}

.side-panel dt {
  color: #64748b;
}

.side-panel a {
  color: var(--cyan);
}

.search-panel {
  display: grid;
  gap: 22px;
}

.search-results:empty::before {
  content: "输入关键词浏览影片";
  color: var(--muted);
  grid-column: 1 / -1;
  padding: 36px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.62);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.9);
  padding: 48px 0 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 30px;
}

.footer-brand {
  color: white;
  font-size: 24px;
}

.site-footer p {
  color: var(--muted);
  line-height: 1.75;
}

.site-footer h2 {
  margin: 0 0 14px;
  font-size: 17px;
}

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

.footer-links a {
  color: var(--muted);
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  color: #64748b;
  text-align: center;
  font-size: 14px;
}

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

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

  .detail-hero-inner {
    grid-template-columns: 220px 1fr;
  }
}

@media (max-width: 820px) {
  .desktop-nav {
    display: none;
  }

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

  .hero-slider {
    height: 78vh;
    min-height: 600px;
  }

  .hero-content {
    padding-bottom: 108px;
  }

  .hero-arrow {
    bottom: 34px;
  }

  .hero-dots {
    bottom: 48px;
  }

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

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

  .section-head,
  .rank-item {
    align-items: stretch;
  }

  .section-head {
    flex-direction: column;
  }

  .rank-item {
    grid-template-columns: 46px 84px 1fr;
  }

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

  .detail-poster {
    max-width: 230px;
  }
}

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

  .brand-text strong {
    font-size: 18px;
  }

  .brand-text em {
    display: none;
  }

  .hero-copy h1,
  .page-hero h1,
  .detail-copy h1 {
    letter-spacing: -0.035em;
  }

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

  .horizontal-list {
    grid-auto-columns: minmax(280px, 86vw);
  }

  .rank-item {
    grid-template-columns: 40px 76px 1fr;
    gap: 12px;
    padding: 12px;
  }

  .rank-info h2 {
    font-size: 18px;
  }

  .player-shell {
    border-radius: 18px;
  }

  .player-play {
    width: 68px;
    height: 68px;
  }
}
