:root {
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.78);
  --panel-strong: rgba(15, 23, 42, 0.95);
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --cyan: #22d3ee;
  --cyan-deep: #0891b2;
  --amber: #facc15;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.45);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: radial-gradient(circle at top left, rgba(8, 145, 178, 0.22), transparent 34rem), var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #001018;
  background: linear-gradient(135deg, var(--cyan), #a78bfa);
  box-shadow: 0 0 26px rgba(34, 211, 238, 0.38);
  font-size: 15px;
}

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

.brand-text strong {
  font-size: 20px;
  letter-spacing: 0.03em;
}

.brand-text small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--soft);
  font-size: 15px;
}

.desktop-nav a,
.mobile-nav a {
  transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--cyan);
}

.menu-toggle {
  display: none;
  color: var(--text);
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 11px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 12px 0 18px;
  border-top: 1px solid var(--line);
}

.mobile-nav a {
  display: block;
  padding: 10px 0;
  color: var(--soft);
}

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

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  background-size: cover;
  background-position: center;
  transition: opacity 0.7s ease, visibility 0.7s ease, transform 1.2s ease;
  transform: scale(1.04);
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.95) 0%, rgba(2, 6, 23, 0.65) 42%, rgba(2, 6, 23, 0.22) 100%), linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.22) 44%, rgba(2, 6, 23, 0.08) 100%);
}

.hero-content {
  position: relative;
  height: 78vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 110px;
}

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

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

.hero-tags a,
.hero-tags span,
.detail-meta span,
.detail-meta a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  color: var(--soft);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.hero-tags a,
.detail-meta a {
  color: white;
  background: rgba(8, 145, 178, 0.75);
}

.hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.95;
  letter-spacing: -0.05em;
  text-shadow: 0 16px 50px rgba(0, 0, 0, 0.55);
}

.hero-line {
  margin: 0 0 14px;
  color: #e2e8f0;
  font-size: clamp(19px, 2.2vw, 26px);
  line-height: 1.5;
}

.hero-summary {
  margin: 0 0 28px;
  color: var(--muted);
  max-width: 680px;
  line-height: 1.8;
}

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

.btn-primary,
.btn-secondary,
.hero-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 13px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-secondary {
  color: white;
  background: rgba(15, 23, 42, 0.72);
  border-color: var(--line);
  backdrop-filter: blur(12px);
}

.btn-primary:hover,
.btn-secondary:hover,
.hero-search button:hover {
  transform: translateY(-2px);
}

.hero-controls {
  position: absolute;
  right: max(24px, calc((100vw - 1180px) / 2));
  bottom: 78px;
  display: flex;
  gap: 10px;
  z-index: 5;
}

.hero-controls button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: white;
  font-size: 28px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

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

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

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

.hero-search {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  width: min(650px, calc(100% - 32px));
  display: flex;
  gap: 10px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px);
  z-index: 6;
}

.hero-search input,
.page-tools input,
.page-tools select {
  width: 100%;
  min-height: 44px;
  color: var(--text);
  background: rgba(2, 6, 23, 0.68);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 14px;
  outline: none;
}

.hero-search input:focus,
.page-tools input:focus,
.page-tools select:focus {
  border-color: rgba(34, 211, 238, 0.65);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12);
}

.hero-category-pills {
  position: absolute;
  top: 92px;
  right: max(24px, calc((100vw - 1180px) / 2));
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 6;
}

.hero-category-pills a {
  padding: 8px 13px;
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.section-block {
  padding: 70px 0;
}

.section-dark {
  background: rgba(15, 23, 42, 0.32);
  border-block: 1px solid var(--line);
}

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

.section-heading h2,
.page-hero h1,
.detail-info h1,
.ranking-hero h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-heading a {
  color: var(--cyan);
  font-weight: 700;
}

.section-kicker {
  display: inline-block;
  margin-bottom: 9px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.featured-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 380px);
  gap: 22px;
  overflow-x: auto;
  padding-bottom: 14px;
  scrollbar-width: thin;
}

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

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

.category-movie-grid {
  padding-bottom: 78px;
}

.movie-card.is-hidden {
  display: none;
}

.movie-card-link,
.wide-card-link,
.category-card a {
  display: block;
  height: 100%;
}

.movie-poster {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(8, 145, 178, 0.24));
  box-shadow: var(--shadow);
}

.movie-poster img,
.wide-thumb img,
.category-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.36s ease, filter 0.36s ease;
}

.movie-card:hover img,
.wide-card:hover img,
.category-card:hover img {
  transform: scale(1.08);
  filter: saturate(1.1);
}

.poster-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent 52%);
}

.year-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 999px;
  color: white;
  font-size: 12px;
  font-weight: 800;
  background: rgba(15, 23, 42, 0.86);
  backdrop-filter: blur(8px);
}

.year-badge {
  top: 10px;
  right: 10px;
}

.rank-badge {
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, var(--amber), #f97316);
  color: #1c1200;
}

.play-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  transform: translate(-50%, -50%) scale(0.82);
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #001018;
  background: rgba(34, 211, 238, 0.94);
  opacity: 0;
  transition: opacity 0.24s ease, transform 0.24s ease;
}

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

.movie-card-body {
  padding: 13px 2px 0;
}

.movie-card h3,
.wide-card h3 {
  margin: 0 0 7px;
  color: white;
  font-size: 17px;
  line-height: 1.35;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.movie-card p,
.wide-card p,
.category-card p,
.page-hero p,
.review-panel p,
.detail-info p,
.ranking-hero p {
  color: var(--muted);
  line-height: 1.75;
}

.movie-card p {
  margin: 0 0 10px;
  font-size: 14px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-meta-line {
  justify-content: space-between;
  color: var(--soft);
  font-size: 13px;
}

.movie-meta-line span:last-child {
  color: var(--amber);
  font-weight: 800;
}

.wide-card {
  height: 100%;
}

.wide-card-link {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.wide-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 14px;
  margin-bottom: 14px;
  background: rgba(30, 41, 59, 0.85);
}

.wide-thumb span {
  position: absolute;
  left: 14px;
  bottom: 14px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #001018;
  background: var(--cyan);
  border-radius: 999px;
}

.wide-kicker {
  margin-bottom: 8px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
}

.wide-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.wide-tags span,
.detail-tags a {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--soft);
  background: rgba(30, 41, 59, 0.78);
  border: 1px solid var(--line);
  font-size: 12px;
}

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

.page-shell {
  padding-bottom: 70px;
}

.page-hero {
  padding: 74px 0 34px;
}

.compact-hero {
  max-width: 900px;
}

.page-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 12px;
  margin-top: 24px;
}

.multi-tools {
  grid-template-columns: minmax(0, 1fr) 190px 160px;
}

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

.category-card {
  border-radius: 24px;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.category-thumbs {
  height: 190px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: rgba(30, 41, 59, 0.9);
  overflow: hidden;
}

.category-card-body {
  padding: 22px;
}

.category-card-body span {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.category-card-body h2 {
  margin: 8px 0 8px;
  font-size: 26px;
}

.ranking-hero {
  position: relative;
  min-height: 430px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: end;
}

.ranking-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 0.35)), linear-gradient(0deg, #020617, transparent 55%);
}

.ranking-hero-content {
  position: relative;
  padding: 0 0 58px;
  max-width: 760px;
}

.detail-wrap {
  padding-top: 34px;
  padding-bottom: 78px;
}

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

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

.player-panel,
.detail-info,
.review-panel,
.related-panel {
  margin-bottom: 26px;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.player-box video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  color: white;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.38));
  border: 0;
  cursor: pointer;
  text-align: center;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.big-play {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #001018;
  background: var(--cyan);
  box-shadow: 0 0 44px rgba(34, 211, 238, 0.35);
  font-size: 30px;
}

.player-cover strong {
  font-size: clamp(24px, 4vw, 42px);
}

.player-cover small {
  color: var(--soft);
}

.player-message {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: white;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 18px;
  text-align: center;
}

.detail-info,
.review-panel {
  padding: 28px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.detail-info h2 {
  margin: 10px 0 20px;
  color: var(--cyan);
  font-size: 22px;
  font-weight: 700;
}

.detail-info h3,
.review-panel h2 {
  margin: 24px 0 12px;
  font-size: 22px;
}

.detail-meta {
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.lead-text {
  color: #e2e8f0 !important;
  font-size: 18px;
}

.related-panel {
  padding-top: 18px;
}

.empty-tip {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 60px;
  padding: 28px;
  border-radius: 18px;
  text-align: center;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--line);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.76);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 30px;
  padding: 44px 0;
}

.footer-logo {
  margin-bottom: 12px;
  font-size: 22px;
  font-weight: 900;
}

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

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

.site-footer ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: 8px;
}

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

.footer-bottom {
  padding: 18px 16px;
  text-align: center;
  color: #64748b;
  border-top: 1px solid var(--line);
}

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

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

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

  .hero-category-pills {
    display: none;
  }

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

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

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

  .brand-text small {
    display: none;
  }

  .hero,
  .hero-content {
    min-height: 700px;
    height: 700px;
  }

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

  .hero-controls {
    right: 16px;
    bottom: 112px;
  }

  .hero-dots {
    bottom: 126px;
  }

  .hero-search {
    flex-direction: column;
  }

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

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

  .featured-row {
    grid-auto-columns: minmax(260px, 82vw);
  }

  .page-tools,
  .multi-tools {
    grid-template-columns: 1fr;
  }

  .detail-info,
  .review-panel {
    padding: 20px;
  }
}
