:root {
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.72);
  --panel-solid: #0f172a;
  --panel-soft: rgba(30, 41, 59, 0.64);
  --line: rgba(148, 163, 184, 0.18);
  --line-strong: rgba(148, 163, 184, 0.32);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --cyan: #22d3ee;
  --cyan-strong: #06b6d4;
  --blue: #60a5fa;
  --orange: #fb923c;
  --green: #34d399;
  --shadow: 0 24px 80px rgba(2, 6, 23, 0.42);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 10%, rgba(34, 211, 238, 0.16), transparent 28rem),
    radial-gradient(circle at 85% 8%, rgba(96, 165, 250, 0.12), transparent 32rem),
    linear-gradient(180deg, #020617 0%, #0f172a 46%, #020617 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.03) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 70%);
  z-index: -1;
}

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

img {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(34, 211, 238, 0.18));
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.94));
  backdrop-filter: blur(16px);
}

.nav-wrap {
  max-width: 1280px;
  height: 68px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #082f49;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 0 26px rgba(34, 211, 238, 0.34);
  font-size: 15px;
}

.brand-text,
.footer-logo span:last-child {
  font-size: 21px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  padding: 10px 12px;
  border-radius: 12px;
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: var(--cyan);
  background: rgba(15, 23, 42, 0.8);
}

.top-search,
.mobile-search {
  position: relative;
}

.top-search input,
.mobile-search input,
.filter-bar input,
.filter-bar select {
  min-width: 240px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.76);
  outline: none;
  padding: 11px 14px;
  transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.top-search input:focus,
.mobile-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: rgba(34, 211, 238, 0.7);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
  background: rgba(15, 23, 42, 0.92);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.74);
  color: #e2e8f0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.mobile-nav {
  display: none;
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 22px 20px;
  border-top: 1px solid var(--line);
}

.mobile-link {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  color: #cbd5e1;
  font-weight: 700;
}

main {
  min-height: 65vh;
}

.hero-carousel {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  border-bottom: 1px solid var(--line);
}

.hero-stage {
  position: relative;
  min-height: 620px;
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.08);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(2, 6, 23, 0.7) 40%, rgba(2, 6, 23, 0.22) 100%),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.18) 46%, rgba(2, 6, 23, 0.58) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  min-height: 620px;
  margin: 0 auto;
  padding: 108px 22px 92px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.kicker {
  margin: 0 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-content h1,
.hero-content h2,
.page-hero h1,
.detail-info h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero-content h2 {
  margin-top: 14px;
}

.hero-content p:not(.kicker),
.page-hero p:not(.kicker),
.detail-desc {
  max-width: 760px;
  margin: 22px 0 0;
  color: #cbd5e1;
  font-size: clamp(16px, 2vw, 21px);
  line-height: 1.8;
}

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

.hero-meta {
  margin-top: 24px;
}

.hero-meta span,
.detail-meta span,
.rank-meta span,
.card-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  padding: 5px 10px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.64);
  font-size: 12px;
  font-weight: 700;
}

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

.btn-primary,
.btn-ghost,
.text-link,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 14px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, border 0.2s ease, color 0.2s ease;
}

.btn-primary {
  color: #052e3b;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 18px 36px rgba(34, 211, 238, 0.2);
}

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

.btn-primary:hover,
.btn-ghost:hover,
.text-link:hover,
.section-more:hover {
  transform: translateY(-2px);
}

.btn-ghost:hover {
  border-color: rgba(34, 211, 238, 0.5);
  color: var(--cyan);
}

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

.hero-dot {
  width: 38px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(226, 232, 240, 0.3);
  transition: width 0.2s ease, background 0.2s ease;
}

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

.section-block,
.page-hero,
.detail-top {
  max-width: 1280px;
  margin: 0 auto;
  padding: 58px 22px;
}

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

.section-heading > div {
  display: flex;
  align-items: center;
  gap: 13px;
}

.section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.18);
}

.section-heading h2,
.article-content h2,
.category-card h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.03em;
}

.section-more,
.text-link {
  min-height: 38px;
  padding: 0;
  color: var(--cyan);
}

.movie-grid {
  display: grid;
  gap: 22px;
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.54));
  box-shadow: 0 16px 50px rgba(2, 6, 23, 0.24);
  transition: transform 0.25s ease, border 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.42);
  box-shadow: 0 22px 70px rgba(2, 6, 23, 0.34);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #0f172a;
}

.movie-card:not(.compact) .poster-link {
  aspect-ratio: 16 / 10;
}

.poster-link img,
.category-tile img,
.category-card-media img,
.rank-cover img,
.detail-poster img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.movie-card:hover .poster-link img,
.category-tile:hover img,
.category-card:hover .category-card-media img,
.rank-item:hover .rank-cover img {
  transform: scale(1.06);
  filter: saturate(1.1);
}

.poster-shade,
.tile-shade,
.category-card-media span {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(2, 6, 23, 0.88) 100%);
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #052e3b;
  font-weight: 900;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 10px 26px rgba(34, 211, 238, 0.28);
}

.card-body {
  padding: 16px;
}

.card-meta {
  gap: 6px;
  margin-bottom: 11px;
}

.card-meta span {
  min-height: 24px;
  font-size: 11px;
  padding: 4px 8px;
}

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

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

.movie-card h3 a:hover,
.rank-main h3 a:hover,
.category-card h2 a:hover {
  color: var(--cyan);
}

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

.movie-card.compact p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 13px;
}

.tag-row span {
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.09);
  border: 1px solid rgba(34, 211, 238, 0.14);
  font-size: 12px;
  font-weight: 700;
}

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel-solid);
  box-shadow: var(--shadow);
}

.category-tile img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
}

.category-tile strong,
.category-tile em {
  position: relative;
  z-index: 2;
  display: block;
  margin: 0 18px;
}

.category-tile strong {
  margin-top: 102px;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.category-tile em {
  margin-top: 9px;
  color: #cbd5e1;
  font-size: 13px;
  font-style: normal;
  line-height: 1.6;
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 84px 44px 1fr;
  gap: 14px;
  align-items: center;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.72);
  transition: transform 0.2s ease, border 0.2s ease;
}

.rank-item:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 211, 238, 0.36);
}

.rank-cover {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  background: #0f172a;
}

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

.rank-main h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.rank-main p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 28px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.64);
}

.filter-bar input {
  flex: 1 1 260px;
}

.filter-bar select {
  min-width: 150px;
}

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

.page-hero {
  padding-top: 78px;
  padding-bottom: 44px;
}

.simple-hero,
.category-hero {
  position: relative;
}

.simple-hero::after,
.category-hero::after,
.detail-top::after {
  content: "";
  display: block;
  margin-top: 38px;
  height: 1px;
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.5), transparent);
}

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

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

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

.category-card {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 16px;
  background: rgba(15, 23, 42, 0.72);
}

.category-card-media {
  position: relative;
  overflow: hidden;
  min-height: 180px;
  border-radius: 20px;
  background: #0f172a;
}

.category-card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

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

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.category-samples a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 9px;
  color: #cbd5e1;
  font-size: 12px;
}

.category-samples a:hover {
  color: var(--cyan);
  border-color: rgba(34, 211, 238, 0.35);
}

.detail-top {
  padding-top: 54px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 42px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: #0f172a;
  box-shadow: var(--shadow);
}

.detail-meta {
  margin-top: 22px;
}

.detail-tags {
  margin-top: 20px;
}

.player-section {
  padding-top: 36px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: var(--radius-xl);
  background: #000;
  box-shadow: 0 26px 100px rgba(2, 6, 23, 0.48);
}

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

.player-start-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: white;
  cursor: pointer;
  background:
    radial-gradient(circle at 50% 48%, rgba(34, 211, 238, 0.18), transparent 16rem),
    linear-gradient(180deg, rgba(2, 6, 23, 0.35), rgba(2, 6, 23, 0.8));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-circle {
  width: 78px;
  height: 78px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #052e3b;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 18px 45px rgba(34, 211, 238, 0.32);
  font-size: 28px;
  padding-left: 4px;
}

.player-start-layer strong {
  font-size: 18px;
  letter-spacing: 0.08em;
}

.article-content {
  max-width: 980px;
}

.article-content h2 {
  margin: 0 0 18px;
}

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

.article-content p {
  margin: 0;
  color: #cbd5e1;
  font-size: 17px;
  line-height: 2;
}

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

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 50px 22px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
}

.footer-brand p,
.footer-col a {
  color: var(--muted);
}

.footer-brand p {
  max-width: 520px;
  line-height: 1.8;
}

.footer-col h3 {
  margin: 0 0 16px;
  font-size: 16px;
}

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

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

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 22px 34px;
  color: var(--muted-2);
  font-size: 13px;
}

@media (max-width: 1180px) {
  .top-search {
    display: none;
  }

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

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

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

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

  .menu-toggle {
    display: flex;
  }

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

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

  .hero-carousel,
  .hero-stage,
  .hero-content {
    min-height: 560px;
  }

  .hero-content {
    padding-top: 86px;
  }

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

  .detail-grid {
    grid-template-columns: 1fr;
  }

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

  .footer-inner {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 560px) {
  .nav-wrap,
  .mobile-nav,
  .section-block,
  .page-hero,
  .detail-top {
    padding-left: 16px;
    padding-right: 16px;
  }

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

  .hero-carousel,
  .hero-stage,
  .hero-content {
    min-height: 620px;
  }

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

  .hero-actions,
  .filter-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .btn-primary,
  .btn-ghost,
  .filter-bar input,
  .filter-bar select {
    width: 100%;
  }

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

  .rank-item {
    grid-template-columns: 72px 36px 1fr;
    gap: 10px;
  }

  .rank-main p {
    display: none;
  }

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