:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.76);
  --panel-strong: rgba(15, 23, 42, 0.94);
  --line: rgba(148, 163, 184, 0.22);
  --text: #f8fafc;
  --muted: #94a3b8;
  --cyan: #22d3ee;
  --blue: #2563eb;
  --cyan-soft: rgba(34, 211, 238, 0.18);
  --shadow: 0 28px 80px rgba(2, 6, 23, 0.48);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 20% 0%, rgba(34, 211, 238, 0.15), transparent 32%), linear-gradient(180deg, #020617 0%, #0f172a 44%, #020617 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(2, 6, 23, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

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

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: white;
  box-shadow: 0 10px 30px rgba(34, 211, 238, 0.28);
}

.brand-name,
.footer-brand span:last-child {
  background: linear-gradient(90deg, #67e8f9, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 24px;
  letter-spacing: -0.02em;
}

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

.nav-link {
  color: #cbd5e1;
  font-weight: 650;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--cyan);
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.68);
  color: white;
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  padding: 12px 16px 18px;
  background: rgba(2, 6, 23, 0.96);
}

.mobile-nav a {
  display: block;
  padding: 12px 0;
  color: #cbd5e1;
  font-weight: 650;
}

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

.hero {
  position: relative;
  min-height: 690px;
  overflow: hidden;
  background: #020617;
}

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

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

.hero-backdrop,
.detail-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
}

.hero-overlay,
.detail-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.8) 42%, rgba(2, 6, 23, 0.46) 100%), linear-gradient(180deg, rgba(2, 6, 23, 0.18), #020617 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 360px;
  align-items: center;
  gap: 54px;
  min-height: 690px;
  padding: 82px 0 64px;
}

.hero-copy h1,
.compact-hero h1,
.detail-copy h1 {
  margin: 14px 0 18px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.03;
  letter-spacing: -0.05em;
}

.hero-copy p,
.compact-hero p,
.detail-copy p,
.search-panel p,
.notice-card p,
.section-heading p {
  color: #cbd5e1;
  line-height: 1.8;
}

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

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

.hero-tags span,
.tag-row span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 999px;
  background: rgba(8, 47, 73, 0.38);
  color: #cffafe;
  font-size: 12px;
  font-weight: 700;
}

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

.primary-button,
.ghost-button,
.text-button,
.search-form button,
.big-search-box button,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 0;
  border-radius: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button,
.search-form button,
.big-search-box button {
  padding: 0 22px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  color: white;
  box-shadow: 0 18px 42px rgba(37, 99, 235, 0.32);
}

.primary-button:hover,
.search-form button:hover,
.big-search-box button:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 52px rgba(34, 211, 238, 0.36);
}

.ghost-button {
  padding: 0 20px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.62);
  color: #e2e8f0;
}

.text-button,
.section-more {
  min-height: auto;
  color: var(--cyan);
  font-weight: 800;
}

.hero-poster,
.detail-poster {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.8);
  box-shadow: var(--shadow);
  transform: perspective(800px) rotateY(-6deg);
}

.hero-poster img,
.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.hero-poster span,
.detail-poster span {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: white;
  font-weight: 900;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.3);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(2, 6, 23, 0.56);
  color: white;
  font-size: 34px;
  cursor: pointer;
  backdrop-filter: blur(14px);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

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

.hero-dot.is-active {
  width: 34px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
}

.search-panel,
.big-search-box,
.filter-bar,
.notice-card,
.story-card,
.category-overview-card,
.sitemap-block {
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.86), rgba(30, 41, 59, 0.62));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.search-panel {
  position: relative;
  z-index: 6;
  display: grid;
  grid-template-columns: 1fr minmax(320px, 520px);
  gap: 26px;
  align-items: center;
  margin-top: -58px;
  padding: 30px;
  border-radius: 28px;
}

.search-panel h2,
.notice-card h2,
.story-card h2,
.section-heading h2,
.category-overview-card h2,
.sitemap-block h2 {
  margin: 0 0 10px;
}

.search-form,
.big-search-box {
  display: flex;
  gap: 12px;
}

.search-form input,
.big-search-box input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.68);
  color: white;
  padding: 0 16px;
  outline: none;
}

.search-form input:focus,
.big-search-box input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: rgba(34, 211, 238, 0.7);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12);
}

.page-section,
.page-main {
  padding: 64px 0;
}

.page-main {
  min-height: 60vh;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 28px;
}

.section-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.22), rgba(37, 99, 235, 0.28));
  color: var(--cyan);
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.72), rgba(15, 23, 42, 0.9));
  box-shadow: 0 18px 48px rgba(2, 6, 23, 0.32);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.45);
  box-shadow: 0 24px 58px rgba(2, 6, 23, 0.48);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: #0f172a;
}

.poster-link img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.quality-pill,
.score-pill,
.rank-badge {
  position: absolute;
  top: 10px;
  min-width: 40px;
  border-radius: 999px;
  padding: 5px 8px;
  color: white;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.quality-pill {
  left: 10px;
  background: rgba(15, 23, 42, 0.74);
}

.score-pill {
  right: 10px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.rank-badge {
  left: 10px;
  bottom: 10px;
  top: auto;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
}

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

.movie-card h2 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.35;
}

.movie-card h2 a:hover,
.ranking-info h2 a:hover,
.sitemap-block a:hover,
.category-overview-card a:hover {
  color: var(--cyan);
}

.movie-card p {
  min-height: 44px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #94a3b8;
  font-size: 12px;
}

.highlight-section {
  padding: 48px;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(8, 47, 73, 0.32), rgba(30, 41, 59, 0.42));
}

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

.category-card {
  display: grid;
  min-height: 180px;
  padding: 24px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.86), rgba(8, 47, 73, 0.48));
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.5);
}

.category-card span {
  color: #e2e8f0;
  font-size: 22px;
  font-weight: 900;
}

.category-card strong {
  color: var(--cyan);
}

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

.split-section {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 26px;
  align-items: stretch;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 48px 1fr 80px 60px;
  align-items: center;
  gap: 14px;
  min-height: 58px;
  padding: 12px 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.58);
}

.ranking-number,
.ranking-rank {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: white;
  font-weight: 900;
}

.ranking-title {
  font-weight: 800;
}

.notice-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding: 30px;
  border-radius: 28px;
}

.compact-hero {
  position: relative;
  overflow: hidden;
  padding: 58px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: radial-gradient(circle at 20% 0%, rgba(34, 211, 238, 0.2), transparent 34%), linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(8, 47, 73, 0.46));
  box-shadow: var(--shadow);
}

.compact-hero h1 {
  max-width: 860px;
  font-size: clamp(34px, 5vw, 58px);
}

.compact-hero p {
  max-width: 760px;
  margin: 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  color: #94a3b8;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--cyan);
}

.category-overview-grid {
  display: grid;
  gap: 20px;
  margin-top: 32px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
  padding: 22px;
  border-radius: 26px;
}

.category-thumbs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  align-items: center;
}

.category-thumbs img {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  object-fit: cover;
}

.category-overview-card h2 {
  font-size: 28px;
}

.category-overview-card p {
  color: #cbd5e1;
  line-height: 1.8;
}

.category-overview-card span {
  color: var(--cyan);
  font-weight: 800;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 180px 180px 180px;
  gap: 12px;
  margin: 28px 0;
  padding: 18px;
  border-radius: 22px;
}

.category-movie-grid {
  margin-top: 28px;
}

.ranking-page-list {
  display: grid;
  gap: 14px;
}

.ranking-card {
  display: grid;
  grid-template-columns: 56px 92px 1fr;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.76);
}

.ranking-cover img {
  width: 92px;
  aspect-ratio: 2 / 3;
  border-radius: 14px;
  object-fit: cover;
}

.ranking-info h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.ranking-info p {
  margin: 0 0 12px;
  color: #cbd5e1;
  line-height: 1.7;
}

.big-search-box {
  margin: 28px 0;
  padding: 18px;
  border-radius: 24px;
}

.search-result-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin: 28px 0 18px;
}

.search-result-head h2 {
  margin: 0;
}

.search-result-head p {
  margin: 0;
  color: var(--muted);
}

.detail-page {
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.12), #020617 42%);
}

.detail-hero {
  position: relative;
  min-height: 650px;
  overflow: hidden;
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  padding: 58px 0 70px;
}

.detail-intro {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 44px;
  align-items: center;
}

.detail-poster {
  transform: none;
}

.detail-copy h1 {
  max-width: 820px;
  font-size: clamp(36px, 6vw, 68px);
}

.detail-copy p {
  max-width: 820px;
  font-size: 18px;
}

.player-section {
  padding: 56px 0 28px;
}

.watch-player {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.26);
  border-radius: 28px;
  background: #000;
  box-shadow: var(--shadow);
  cursor: pointer;
}

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

.play-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  border: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.22), rgba(2, 6, 23, 0.76));
  color: white;
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.play-layer.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-icon {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 20px 46px rgba(37, 99, 235, 0.42);
  font-size: 34px;
  text-indent: 4px;
}

.play-layer strong {
  font-size: 22px;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
  padding: 36px 0 12px;
}

.story-card {
  padding: 30px;
  border-radius: 26px;
}

.story-card p {
  margin: 0;
  color: #cbd5e1;
  line-height: 2;
}

.accent-card {
  background: linear-gradient(135deg, rgba(8, 47, 73, 0.46), rgba(15, 23, 42, 0.86));
}

.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.sitemap-block {
  padding: 24px;
  border-radius: 24px;
}

.sitemap-block ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  max-height: 520px;
  margin: 16px 0 0;
  padding: 0;
  overflow: auto;
  list-style: none;
}

.sitemap-block li a {
  display: grid;
  gap: 4px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  color: #e2e8f0;
}

.sitemap-block li span {
  color: var(--muted);
  font-size: 12px;
}

.site-footer {
  margin-top: 80px;
  border-top: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(2, 6, 23, 0.94), rgba(15, 23, 42, 0.94));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 42px;
  padding: 48px 0;
}

.footer-grid p {
  max-width: 460px;
  color: var(--muted);
  line-height: 1.8;
}

.footer-grid h2 {
  margin: 0 0 18px;
  font-size: 18px;
}

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

.footer-links a {
  color: #cbd5e1;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  color: var(--muted);
}

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

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

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

  .hero-content,
  .detail-intro,
  .split-section,
  .detail-content-grid,
  .search-panel,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .filter-bar {
    grid-template-columns: 1fr 1fr;
  }
}

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

  .mobile-toggle {
    display: block;
  }

  .hero {
    min-height: 760px;
  }

  .hero-content {
    min-height: 760px;
    gap: 28px;
    padding-top: 44px;
  }

  .hero-copy h1,
  .compact-hero h1,
  .detail-copy h1 {
    font-size: 38px;
  }

  .hero-arrow {
    display: none;
  }

  .hero-poster,
  .detail-poster {
    max-width: 250px;
    transform: none;
  }

  .search-panel,
  .compact-hero,
  .highlight-section,
  .story-card {
    padding: 22px;
    border-radius: 24px;
  }

  .search-form,
  .big-search-box {
    flex-direction: column;
  }

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

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

  .category-overview-card,
  .ranking-card {
    grid-template-columns: 1fr;
  }

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

  .filter-bar {
    grid-template-columns: 1fr;
  }

  .ranking-row {
    grid-template-columns: 42px 1fr;
  }

  .ranking-row span:nth-child(3),
  .ranking-row strong {
    display: none;
  }

  .sitemap-block ul {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
  }
}
