* {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.72);
  --panel-strong: rgba(15, 23, 42, 0.94);
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --brand: #10b981;
  --brand-bright: #34d399;
  --amber: #f59e0b;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
  --radius: 22px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: radial-gradient(circle at 20% 0%, rgba(16, 185, 129, 0.16), transparent 28%), linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 80;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.48), transparent);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(2, 6, 23, 0.92);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.brand-text {
  font-size: clamp(20px, 2.3vw, 28px);
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #052e16;
  background: linear-gradient(135deg, var(--brand-bright), var(--brand));
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.34);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.nav-link,
.mobile-link {
  color: var(--muted-strong);
  font-size: 15px;
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

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

.nav-link:hover {
  transform: translateY(-1px);
}

.nav-search,
.mobile-search,
.large-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-search input,
.mobile-search input,
.large-search input {
  width: 210px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--text);
  background: rgba(15, 23, 42, 0.76);
  outline: none;
}

.nav-search input:focus,
.mobile-search input:focus,
.large-search input:focus {
  border-color: rgba(52, 211, 153, 0.7);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.14);
}

.nav-search button,
.mobile-search button,
.large-search button {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  color: white;
  background: var(--brand);
  cursor: pointer;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.7);
  cursor: pointer;
}

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

.mobile-panel {
  display: none;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.96);
}

.mobile-panel.is-open {
  display: grid;
  gap: 14px;
}

.page-shell {
  min-height: 80vh;
}

.hero {
  position: relative;
  height: min(86vh, 860px);
  min-height: 620px;
  overflow: hidden;
  background: #020617;
}

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

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(2, 6, 23, 0.62), rgba(2, 6, 23, 0.05)), linear-gradient(0deg, #020617 0%, transparent 32%);
}

.hero-content {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: max(24px, calc((100% - 1200px) / 2));
  width: min(680px, calc(100% - 48px));
  transform: translateY(-44%);
}

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

.hero-tags span,
.detail-tags span,
.card-tags span {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(52, 211, 153, 0.28);
  border-radius: 999px;
  padding: 5px 10px;
  color: #a7f3d0;
  background: rgba(16, 185, 129, 0.14);
  backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 700;
}

.hero h1 {
  margin: 18px 0 16px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.96;
  letter-spacing: -0.07em;
}

.hero p {
  max-width: 640px;
  margin: 0 0 24px;
  color: var(--muted-strong);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.7;
}

.hero-meta,
.detail-meta,
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
}

.hero-meta span,
.detail-meta span,
.card-meta span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 11px;
  background: rgba(15, 23, 42, 0.58);
}

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

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

.primary-btn {
  color: white;
  background: linear-gradient(135deg, var(--brand-bright), var(--brand));
  box-shadow: 0 14px 34px rgba(16, 185, 129, 0.34);
}

.ghost-btn {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(14px);
}

.primary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-2px) scale(1.02);
}

.hero-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: white;
  background: rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(12px);
  cursor: pointer;
  font-size: 36px;
  line-height: 1;
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

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

.hero-dot.is-active {
  width: 34px;
  background: var(--brand-bright);
}

.category-strip,
.content-section,
.rank-preview,
.ranking-list,
.article-panel,
.detail-layout,
.sitemap-list {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.category-strip {
  padding: 44px 0 12px;
}

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

.category-card {
  position: relative;
  min-height: 170px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-card::after {
  content: "";
  position: absolute;
  right: -36px;
  bottom: -36px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.category-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.3);
}

.category-blue {
  background: linear-gradient(135deg, #2563eb, #1e3a8a);
}

.category-emerald {
  background: linear-gradient(135deg, #059669, #065f46);
}

.category-amber {
  background: linear-gradient(135deg, #d97706, #92400e);
}

.category-purple {
  background: linear-gradient(135deg, #7c3aed, #4c1d95);
}

.category-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.86);
}

.category-card strong {
  display: block;
  margin: 18px 0 8px;
  font-size: 26px;
}

.category-card small {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
}

.content-section,
.rank-preview {
  padding: 56px 0;
}

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

.section-kicker,
.eyebrow {
  color: var(--brand-bright);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-title-row h2,
.compact-hero h1,
.detail-info h1 {
  margin: 6px 0 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.more-link {
  color: var(--brand-bright);
  font-weight: 800;
}

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

.movie-card,
.ranking-card,
.side-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.movie-card {
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(52, 211, 153, 0.45);
  box-shadow: 0 26px 66px rgba(0, 0, 0, 0.34);
}

.poster-link,
.ranking-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0f172a;
}

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

.movie-card:hover img,
.ranking-card:hover img {
  transform: scale(1.09);
  filter: brightness(0.78);
}

.play-badge {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: white;
  background: rgba(16, 185, 129, 0.92);
  transform: translate(-50%, -50%) scale(0.76);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.year-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  border-radius: 999px;
  padding: 5px 10px;
  color: white;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 800;
}

.card-body {
  padding: 18px;
}

.card-body h3,
.ranking-card h2 {
  margin: 12px 0 8px;
  font-size: 20px;
  line-height: 1.25;
}

.card-body h3 a:hover,
.ranking-card h2 a:hover,
.sitemap-group a:hover {
  color: var(--brand-bright);
}

.card-body p,
.ranking-card p,
.compact-hero p,
.article-panel p,
.lead-text,
.site-footer p {
  color: var(--muted-strong);
  line-height: 1.75;
}

.card-body p {
  min-height: 52px;
  margin: 0 0 14px;
  font-size: 14px;
}

.card-meta {
  gap: 7px;
  font-size: 12px;
}

.card-meta span {
  padding: 5px 8px;
}

.rank-preview {
  margin-bottom: 44px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(15, 23, 42, 0.45);
}

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

.rank-row {
  display: grid;
  grid-template-columns: 58px 1fr minmax(240px, 1.3fr) 72px;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  background: rgba(2, 6, 23, 0.34);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.rank-row:hover {
  border-color: rgba(52, 211, 153, 0.42);
  transform: translateX(4px);
}

.rank-num,
.rank-score {
  color: var(--brand-bright);
  font-weight: 900;
}

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

.rank-desc {
  color: var(--muted);
  font-size: 14px;
}

.inner-page {
  padding-top: 94px;
}

.page-hero,
.detail-hero {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.compact-hero {
  display: grid;
  gap: 24px;
  align-items: center;
  min-height: 300px;
  padding: 58px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: radial-gradient(circle at 18% 18%, rgba(16, 185, 129, 0.22), transparent 34%), linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(2, 6, 23, 0.78));
  box-shadow: var(--shadow);
}

.large-search input {
  width: min(520px, 100%);
  border-radius: 18px;
  padding: 14px 18px;
}

.large-search button {
  border-radius: 18px;
  padding: 14px 22px;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 34px;
}

.pagination a,
.pagination strong,
.pagination span {
  min-width: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 13px;
  text-align: center;
  background: rgba(15, 23, 42, 0.72);
}

.pagination strong {
  color: white;
  background: var(--brand);
}

.ranking-list {
  display: grid;
  gap: 18px;
  padding: 46px 0 70px;
}

.ranking-card {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  padding: 16px;
}

.ranking-cover {
  border-radius: 16px;
}

.ranking-cover span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  border-radius: 12px;
  padding: 8px 11px;
  color: #052e16;
  background: var(--brand-bright);
  font-weight: 900;
}

.detail-page {
  padding-top: 94px;
}

.detail-hero {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 34px;
  align-items: end;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(2, 6, 23, 0.78));
  box-shadow: var(--shadow);
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  aspect-ratio: 16 / 10;
  background: #0f172a;
}

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

.detail-info h1 {
  font-size: clamp(38px, 6vw, 72px);
}

.lead-text {
  max-width: 820px;
  font-size: 19px;
}

.player-section {
  width: min(1200px, calc(100% - 32px));
  margin: 34px auto 0;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(52, 211, 153, 0.22);
  border-radius: 30px;
  aspect-ratio: 16 / 9;
  background: #020617;
  box-shadow: 0 28px 74px rgba(0, 0, 0, 0.42);
}

.video-shell video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.video-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  color: white;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.18), rgba(2, 6, 23, 0.64));
  cursor: pointer;
}

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

.video-play-icon {
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: white;
  background: var(--brand);
  box-shadow: 0 0 0 12px rgba(16, 185, 129, 0.16), 0 18px 44px rgba(16, 185, 129, 0.34);
  font-size: 30px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  padding: 36px 0 18px;
}

.article-panel,
.side-panel {
  padding: 30px;
}

.article-panel h2,
.side-panel h2 {
  margin: 0 0 16px;
  font-size: 26px;
}

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

.side-panel dl {
  margin: 0;
  display: grid;
  gap: 14px;
}

.side-panel dt {
  color: var(--muted);
  font-size: 13px;
}

.side-panel dd {
  margin: -8px 0 0;
  color: var(--text);
  font-weight: 800;
}

.search-status {
  margin-bottom: 22px;
  color: var(--muted-strong);
}

.sitemap-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding: 46px 0 70px;
}

.sitemap-group {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  background: rgba(15, 23, 42, 0.58);
}

.sitemap-group h2 {
  margin: 0 0 16px;
}

.sitemap-group ul {
  display: grid;
  gap: 10px;
  max-height: 540px;
  margin: 0;
  padding: 0 8px 0 0;
  overflow: auto;
  list-style: none;
}

.sitemap-group li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  padding-bottom: 8px;
  color: var(--muted-strong);
}

.sitemap-group span {
  color: var(--muted);
}

.site-footer {
  margin-top: 42px;
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.82);
}

.footer-grid {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 32px;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 28px;
}

.footer-brand {
  margin-bottom: 14px;
  font-size: 20px;
}

.site-footer h3 {
  margin: 0 0 14px;
}

.site-footer ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.site-footer a:hover {
  color: var(--brand-bright);
}

.footer-bottom {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 30px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

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

  .menu-toggle {
    display: block;
  }

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

  .detail-hero,
  .detail-layout,
  .ranking-card {
    grid-template-columns: 1fr;
  }

  .detail-poster,
  .ranking-cover {
    max-width: 520px;
  }
}

@media (max-width: 720px) {
  .nav-wrap {
    width: min(100% - 24px, 1200px);
  }

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

  .hero {
    min-height: 640px;
  }

  .hero-content {
    left: 20px;
    width: calc(100% - 40px);
  }

  .hero-arrow {
    display: none;
  }

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

  .rank-row {
    grid-template-columns: 46px 1fr 58px;
  }

  .rank-desc {
    display: none;
  }

  .compact-hero,
  .detail-hero,
  .article-panel,
  .side-panel,
  .rank-preview {
    padding: 24px;
    border-radius: 24px;
  }

  .detail-page,
  .inner-page {
    padding-top: 82px;
  }

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

  .mobile-search {
    align-items: stretch;
  }

  .mobile-search input {
    width: 100%;
  }
}
