:root {
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.82);
  --panel-soft: rgba(30, 41, 59, 0.72);
  --line: rgba(34, 211, 238, 0.18);
  --line-strong: rgba(34, 211, 238, 0.36);
  --text: #e5f7ff;
  --muted: #94a3b8;
  --cyan: #22d3ee;
  --cyan-deep: #0891b2;
  --blue: #38bdf8;
  --shadow: 0 22px 70px rgba(8, 145, 178, 0.18);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.14), transparent 30rem),
    radial-gradient(circle at 80% 10%, rgba(59, 130, 246, 0.12), transparent 26rem),
    linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(34, 211, 238, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), transparent 78%);
  z-index: -1;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.nav-shell {
  max-width: 1280px;
  height: 76px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #021018;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 0 36px rgba(34, 211, 238, 0.42);
  font-weight: 900;
}

.brand-text {
  display: grid;
  line-height: 1.1;
}

.brand-name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: linear-gradient(90deg, #67e8f9, #38bdf8, #a5f3fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-subtitle {
  margin-top: 4px;
  color: rgba(125, 211, 252, 0.78);
  font-size: 12px;
}

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

.nav-link,
.mobile-link {
  color: #cbd5e1;
  border: 1px solid transparent;
  transition: 0.25s ease;
}

.nav-link {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: #a5f3fc;
  border-color: var(--line);
  background: rgba(8, 145, 178, 0.16);
  box-shadow: 0 12px 30px rgba(8, 145, 178, 0.12);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.92);
  color: var(--cyan);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 2px;
  background: var(--cyan);
}

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

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

.mobile-link {
  display: block;
  padding: 13px 14px;
  border-radius: 14px;
}

main {
  overflow: hidden;
}

.hero-wrap {
  position: relative;
  min-height: 650px;
  border-bottom: 1px solid var(--line);
  background: #020617;
}

.hero-slide {
  display: none;
  min-height: 650px;
  padding: 92px max(24px, calc((100vw - 1280px) / 2 + 24px)) 72px;
  background-size: cover;
  background-position: center;
  align-items: center;
  gap: 48px;
}

.hero-slide.is-active {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.58fr);
  animation: fadeIn 0.5s ease both;
}

.hero-content {
  max-width: 760px;
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 16px;
  color: #67e8f9;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-content h1,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  line-height: 1.05;
  font-size: clamp(42px, 7vw, 82px);
  font-weight: 900;
  letter-spacing: -0.05em;
  text-shadow: 0 20px 60px rgba(0, 0, 0, 0.42);
}

.hero-desc,
.page-hero p,
.detail-intro {
  max-width: 760px;
  margin: 22px 0 0;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.85;
}

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

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #a5f3fc;
  background: rgba(8, 145, 178, 0.16);
  font-size: 12px;
}

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

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 16px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.primary-button {
  color: #041014;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 18px 45px rgba(34, 211, 238, 0.25);
}

.ghost-button {
  color: #bae6fd;
  border: 1px solid var(--line-strong);
  background: rgba(15, 23, 42, 0.64);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 50px rgba(34, 211, 238, 0.22);
}

.hero-poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  max-width: 360px;
  width: 100%;
  justify-self: end;
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(14, 116, 144, 0.35), rgba(15, 23, 42, 0.9));
  box-shadow: var(--shadow);
}

.hero-poster::before {
  content: "";
  position: absolute;
  inset: -35%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.22), transparent 62%);
  animation: pulseGlow 5s ease-in-out infinite;
}

.hero-poster img,
.poster-link img,
.detail-cover img,
.ranking-row img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

img.cover-hidden {
  visibility: hidden;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(14px);
}

.hero-controls button {
  border: 0;
  color: #a5f3fc;
  background: transparent;
  cursor: pointer;
}

.hero-controls > button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(8, 145, 178, 0.18);
  font-size: 24px;
  line-height: 1;
}

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

.hero-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.6) !important;
}

.hero-dot.is-active {
  width: 28px;
  border-radius: 999px;
  background: var(--cyan) !important;
}

.content-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 24px;
}

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

.section-heading p {
  margin: 0 0 8px;
  color: #67e8f9;
  font-size: 13px;
  letter-spacing: 0.12em;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
}

.section-more {
  color: #a5f3fc;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 15px;
  background: rgba(15, 23, 42, 0.62);
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 14px;
  margin-bottom: 34px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.56);
}

.search-box span {
  color: var(--cyan);
  font-size: 22px;
}

.search-box input,
.filter-panel select {
  width: 100%;
  min-height: 48px;
  color: var(--text);
  border: 1px solid rgba(148, 163, 184, 0.16);
  outline: none;
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.56);
}

.search-box input {
  min-height: auto;
  border: 0;
  background: transparent;
}

.filter-panel select {
  padding: 0 14px;
}

.movie-grid,
.mini-grid,
.category-grid,
.category-overview-grid {
  display: grid;
  gap: 22px;
}

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

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

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

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

.movie-card,
.category-card,
.category-overview-card,
.info-panel,
.detail-article,
.player-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.62));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}

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

.movie-card:hover,
.category-card:hover,
.category-overview-card:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(14, 116, 144, 0.25), rgba(15, 23, 42, 0.9));
}

.poster-link img {
  transition: transform 0.35s ease, opacity 0.35s ease;
}

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

.poster-glow {
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  z-index: 1;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.88), transparent);
}

.poster-year {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #ecfeff;
  background: rgba(2, 6, 23, 0.66);
  backdrop-filter: blur(10px);
  font-size: 12px;
}

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

.movie-meta-line {
  color: #67e8f9;
  font-size: 12px;
  margin-bottom: 8px;
}

.movie-card h3 {
  min-height: 52px;
  margin: 0;
  color: #f8fafc;
  font-size: 18px;
  line-height: 1.42;
}

.movie-card h3 a:hover {
  color: #67e8f9;
}

.movie-card p {
  min-height: 66px;
  margin: 10px 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.58;
}

.tag-row {
  min-height: 30px;
}

.category-card,
.category-main-link {
  display: block;
}

.category-card {
  padding: 22px;
  min-height: 180px;
  transition: 0.25s ease;
}

.category-card span,
.category-main-link span {
  color: rgba(34, 211, 238, 0.42);
  font-size: 40px;
  font-weight: 900;
}

.category-card h3,
.category-main-link h2 {
  margin: 10px 0 8px;
  font-size: 22px;
}

.category-card p,
.category-main-link p,
.category-picks a span {
  color: var(--muted);
  line-height: 1.7;
}

.split-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 34px;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 54px 54px minmax(0, 1fr) auto 52px;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.74);
  transition: 0.25s ease;
}

.ranking-row.large {
  grid-template-columns: 64px 64px minmax(0, 1fr) minmax(220px, auto) 60px;
}

.ranking-row:hover {
  transform: translateX(4px);
  border-color: var(--line-strong);
  background: rgba(8, 145, 178, 0.16);
}

.rank-no {
  color: var(--cyan);
  font-size: 20px;
  font-weight: 900;
}

.ranking-row img {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.9);
}

.ranking-row.large img {
  width: 64px;
  height: 64px;
}

.rank-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}

.rank-meta {
  color: var(--muted);
  font-size: 13px;
}

.ranking-row strong {
  color: #fef08a;
  text-align: right;
}

.page-hero,
.detail-hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 78px 24px 38px;
}

.simple-hero,
.category-hero {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.simple-hero h1,
.category-hero h1 {
  font-size: clamp(42px, 6vw, 72px);
}

.category-overview-card {
  padding: 24px;
  transition: 0.25s ease;
}

.category-picks {
  display: grid;
  gap: 9px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.category-picks a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #e0f2fe;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(260px, 380px) minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.detail-cover {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(14, 116, 144, 0.24), rgba(15, 23, 42, 0.9));
  box-shadow: var(--shadow);
}

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

.breadcrumb a {
  color: #a5f3fc;
}

.large-tags {
  margin-top: 22px;
}

.player-card {
  overflow: hidden;
}

.video-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #041014;
  background: radial-gradient(circle at center, rgba(2, 6, 23, 0.12), rgba(2, 6, 23, 0.42));
  cursor: pointer;
}

.play-overlay span {
  width: 84px;
  height: 84px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 5px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 22px 70px rgba(34, 211, 238, 0.32);
  font-size: 34px;
}

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

.player-meta {
  padding: 22px 24px;
}

.player-meta h2,
.detail-article h2,
.info-panel h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.player-meta p,
.detail-article p,
.info-panel {
  color: #cbd5e1;
  line-height: 1.85;
}

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

.detail-article,
.info-panel {
  padding: 28px;
}

.detail-article h2 + p {
  margin-top: 0;
}

.info-list {
  display: grid;
  gap: 12px;
}

.info-list div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.info-list span {
  color: var(--muted);
}

.info-list strong {
  color: #ecfeff;
  font-weight: 700;
}

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

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.8fr 1fr;
  gap: 32px;
}

.footer-brand {
  margin-bottom: 12px;
  color: #67e8f9;
  font-size: 24px;
  font-weight: 900;
}

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

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

.site-footer a {
  display: block;
  margin: 7px 0;
}

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

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 24px 34px;
  color: rgba(148, 163, 184, 0.78);
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  font-size: 13px;
}

.is-filtered-out {
  display: none !important;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    transform: scale(0.96);
    opacity: 0.72;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

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

  .menu-toggle {
    display: block;
  }

  .hero-slide.is-active,
  .detail-hero,
  .detail-layout,
  .split-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    justify-self: start;
    max-width: 260px;
  }

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

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

  .ranking-row.large {
    grid-template-columns: 54px 54px minmax(0, 1fr) 58px;
  }

  .ranking-row.large .rank-meta {
    display: none;
  }
}

@media (max-width: 760px) {
  .nav-shell {
    height: 68px;
    padding: 0 16px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-name {
    font-size: 18px;
  }

  .brand-subtitle {
    display: none;
  }

  .hero-wrap,
  .hero-slide {
    min-height: 610px;
  }

  .hero-slide {
    padding: 72px 18px 86px;
  }

  .hero-slide.is-active {
    gap: 28px;
  }

  .hero-content h1,
  .page-hero h1,
  .detail-info h1 {
    font-size: 40px;
  }

  .hero-desc,
  .page-hero p,
  .detail-intro {
    font-size: 16px;
  }

  .content-section,
  .page-hero,
  .detail-hero {
    padding-left: 16px;
    padding-right: 16px;
  }

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

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

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

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

  .movie-card h3 {
    min-height: 44px;
    font-size: 16px;
  }

  .movie-card p {
    min-height: 56px;
    font-size: 13px;
  }

  .ranking-row,
  .ranking-row.large {
    grid-template-columns: 44px 48px minmax(0, 1fr) 44px;
    gap: 10px;
  }

  .ranking-row .rank-meta {
    display: none;
  }

  .ranking-row img,
  .ranking-row.large img {
    width: 48px;
    height: 48px;
  }

  .detail-cover {
    max-width: 280px;
  }

  .play-overlay span {
    width: 66px;
    height: 66px;
    font-size: 27px;
  }
}

@media (max-width: 460px) {
  .movie-grid,
  .mini-grid,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }
}
