:root {
  --bg: #020617;
  --bg-soft: #0f172a;
  --card: rgba(15, 23, 42, 0.78);
  --card-strong: rgba(15, 23, 42, 0.94);
  --line: rgba(148, 163, 184, 0.18);
  --text: #e5edf8;
  --muted: #94a3b8;
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --orange: #f97316;
  --radius: 22px;
  --shadow: 0 28px 80px rgba(2, 6, 23, 0.48);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.18), transparent 32rem),
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.16), transparent 30rem),
    linear-gradient(180deg, #020617 0%, #0f172a 45%, #020617 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: -1;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

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

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

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 16px;
  color: #03131d;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 12px 30px rgba(34, 211, 238, 0.25);
}

.brand-text,
.footer-brand {
  font-size: 20px;
  background: linear-gradient(90deg, #67e8f9, #60a5fa, #f97316);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-link {
  padding: 8px 12px;
  border-radius: 999px;
  color: #cbd5e1;
  font-size: 14px;
  transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: white;
  background: rgba(34, 211, 238, 0.14);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
}

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

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  position: relative;
}

.hero-bg,
.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) brightness(0.52);
}

.hero-overlay,
.detail-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.75) 46%, rgba(2, 6, 23, 0.35) 100%),
    radial-gradient(circle at 68% 30%, rgba(34, 211, 238, 0.28), transparent 32rem);
}

.hero-content {
  position: relative;
  z-index: 1;
  min-height: 72vh;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 44px;
  align-items: center;
  padding: 72px 0 96px;
}

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

.eyebrow,
.section-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 6px 12px;
  color: #a5f3fc;
  border: 1px solid rgba(34, 211, 238, 0.32);
  border-radius: 999px;
  background: rgba(8, 47, 73, 0.42);
  font-size: 13px;
  font-weight: 800;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0 0 20px;
  font-size: clamp(40px, 7vw, 86px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.hero-copy p,
.page-hero p,
.detail-line {
  margin: 0;
  max-width: 720px;
  color: #cbd5e1;
  font-size: 18px;
}

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

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

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: 0.2s ease;
}

.btn-primary {
  color: #03131d;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 18px 42px rgba(34, 211, 238, 0.24);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 54px rgba(34, 211, 238, 0.32);
}

.btn-ghost {
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
}

.btn-ghost:hover {
  border-color: rgba(34, 211, 238, 0.55);
  background: rgba(34, 211, 238, 0.14);
}

.block-btn {
  width: 100%;
}

.hero-poster {
  position: relative;
  justify-self: end;
  width: min(390px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 32px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.74);
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

.hero-poster::before {
  content: "";
  position: absolute;
  inset: 16px -20px -20px 20px;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.42), rgba(59, 130, 246, 0.28));
  filter: blur(28px);
  z-index: -1;
}

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

.hero-poster span {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 12px 16px;
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(12px);
  font-weight: 900;
}

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

.hero-dot {
  width: 34px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
}

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

.section-pad {
  padding: 78px 0;
}

.compact-top {
  padding-top: 30px;
}

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

.section-head.flush {
  margin-bottom: 20px;
}

.section-head h2,
.search-panel h2,
.article-content h2,
.watch-panel h2 {
  margin: 0;
  font-size: clamp(24px, 4vw, 38px);
  line-height: 1.1;
}

.section-link {
  color: #67e8f9;
  font-weight: 800;
}

.search-panel {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 24px;
  align-items: center;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.86), rgba(8, 47, 73, 0.56));
  box-shadow: var(--shadow);
}

.search-box {
  display: flex;
  gap: 10px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.search-box input {
  flex: 1;
  min-width: 0;
  padding: 0 16px;
  color: white;
  border: 0;
  outline: 0;
  background: transparent;
}

.search-box button,
.filter-row button {
  border: 0;
  border-radius: 999px;
  color: white;
  background: rgba(34, 211, 238, 0.16);
  padding: 10px 16px;
  font-weight: 800;
}

.page-search {
  max-width: 720px;
  margin-top: 24px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.filter-row button.active,
.filter-row button:hover {
  color: #03131d;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
}

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

.category-tile,
.category-card {
  display: grid;
  min-height: 132px;
  align-content: space-between;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(15, 23, 42, 0.88), rgba(30, 41, 59, 0.58)),
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.18), transparent 60%);
  transition: 0.2s ease;
}

.category-card {
  min-height: 180px;
}

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

.category-tile span,
.category-card span {
  color: white;
  font-size: 20px;
  font-weight: 900;
}

.category-tile strong,
.category-card strong {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.category-card em {
  width: fit-content;
  color: #67e8f9;
  font-style: normal;
  font-weight: 800;
}

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

.split-layout.reverse {
  grid-template-columns: 420px minmax(0, 1fr);
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 18px 44px rgba(2, 6, 23, 0.24);
  transition: 0.2s ease;
}

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

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

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 36%, rgba(2, 6, 23, 0.8));
}

.poster-year,
.poster-play {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
}

.poster-year {
  top: 10px;
  left: 10px;
  color: #03131d;
  background: linear-gradient(135deg, #67e8f9, #60a5fa);
}

.poster-play {
  right: 10px;
  bottom: 10px;
  color: white;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(12px);
}

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

.movie-meta-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}

.movie-meta-line a {
  color: #67e8f9;
  font-weight: 800;
}

.movie-card h3 {
  margin: 8px 0 8px;
  color: white;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card p {
  display: -webkit-box;
  margin: 0 0 12px;
  min-height: 46px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: #b6c3d4;
  font-size: 14px;
}

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

.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #c4f1ff;
  background: rgba(34, 211, 238, 0.12);
  font-size: 12px;
  font-weight: 800;
}

.rank-panel {
  position: sticky;
  top: 96px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--card-strong);
  box-shadow: var(--shadow);
}

.rank-panel.full {
  position: static;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 40px 54px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  transition: 0.2s ease;
}

.rank-item:hover {
  border-color: rgba(34, 211, 238, 0.45);
  background: rgba(34, 211, 238, 0.08);
}

.rank-no {
  color: #67e8f9;
  font-size: 18px;
  font-weight: 1000;
}

.rank-item.top .rank-no {
  color: #fb923c;
}

.rank-item img {
  width: 54px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
}

.rank-info {
  min-width: 0;
}

.rank-info strong,
.rank-info em {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-info strong {
  color: white;
}

.rank-info em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.rank-heat {
  color: #fbbf24;
  font-size: 12px;
  font-weight: 900;
}

.page-main {
  padding-bottom: 20px;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 66px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 20% 15%, rgba(34, 211, 238, 0.18), transparent 28rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(2, 6, 23, 0.95));
}

.page-hero.slim {
  padding-bottom: 50px;
}

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

.breadcrumb a {
  color: #67e8f9;
}

.detail-hero {
  min-height: 640px;
  padding-bottom: 82px;
}

.detail-hero-inner {
  position: relative;
  z-index: 1;
}

.detail-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 42px;
  align-items: end;
}

.detail-poster {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

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

.detail-poster span {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 12px;
  border-radius: 16px;
  text-align: center;
  font-weight: 900;
  background: rgba(2, 6, 23, 0.74);
  backdrop-filter: blur(14px);
}

.detail-copy h1 {
  font-size: clamp(36px, 5vw, 64px);
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0;
}

.meta-grid div {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.72);
}

.meta-grid dt {
  color: var(--muted);
  font-size: 12px;
}

.meta-grid dd {
  margin: 4px 0 0;
  color: white;
  font-weight: 900;
}

.detail-tags {
  margin-bottom: 28px;
}

.player-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}

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

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

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  color: white;
  border: 0;
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.25), rgba(2, 6, 23, 0.86)),
    radial-gradient(circle at center, rgba(34, 211, 238, 0.22), transparent 42%);
}

.player-card.is-playing .player-cover {
  opacity: 0;
  pointer-events: none;
}

.play-circle {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  color: #03131d;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 20px 48px rgba(34, 211, 238, 0.28);
  font-size: 26px;
}

.player-cover strong {
  max-width: 80%;
  text-align: center;
  font-size: clamp(22px, 4vw, 38px);
}

.player-cover em {
  color: #cbd5e1;
  font-style: normal;
}

.watch-panel,
.article-content {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--card-strong);
  box-shadow: var(--shadow);
}

.watch-panel p,
.article-content p {
  color: #cbd5e1;
}

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

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

.site-footer {
  margin-top: 70px;
  padding: 48px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(2, 6, 23, 0.76);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 28px;
}

.footer-grid p {
  max-width: 420px;
  color: var(--muted);
}

.footer-grid h3 {
  margin: 0 0 12px;
}

.footer-links {
  display: grid;
  gap: 8px;
  color: #cbd5e1;
}

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

[data-card].is-hidden {
  display: none;
}

@media (max-width: 1080px) {
  .hero-content,
  .split-layout,
  .split-layout.reverse,
  .player-layout {
    grid-template-columns: 1fr;
  }

  .rank-panel {
    position: static;
  }

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

@media (max-width: 820px) {
  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 78px;
    display: none;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(2, 6, 23, 0.96);
    box-shadow: var(--shadow);
  }

  .main-nav.open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .hero-poster {
    justify-self: start;
    width: min(280px, 88vw);
  }

  .search-panel,
  .detail-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    width: min(280px, 84vw);
  }

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

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

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

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

  .hero-shell,
  .hero-content {
    min-height: 78vh;
  }

  .hero-copy h1,
  .page-hero h1,
  .detail-copy h1 {
    font-size: 34px;
  }

  .hero-copy p,
  .page-hero p,
  .detail-line {
    font-size: 15px;
  }

  .section-pad {
    padding: 50px 0;
  }

  .section-head {
    display: grid;
  }

  .search-box {
    border-radius: 22px;
    flex-direction: column;
  }

  .search-box input {
    min-height: 42px;
  }

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

  .rank-item {
    grid-template-columns: 34px 46px minmax(0, 1fr);
  }

  .rank-heat {
    display: none;
  }

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