:root {
  --bg: #050815;
  --panel: rgba(15, 23, 42, 0.78);
  --panel-strong: rgba(15, 23, 42, 0.94);
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --cyan: #22d3ee;
  --cyan-strong: #0891b2;
  --violet: #8b5cf6;
  --amber: #fbbf24;
  --danger: #fb7185;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 0%, rgba(34, 211, 238, 0.16), transparent 34rem),
    radial-gradient(circle at 86% 6%, rgba(139, 92, 246, 0.18), transparent 36rem),
    linear-gradient(180deg, #07111f 0%, var(--bg) 42%, #030712 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

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

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

.header-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 74px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.logo-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 14px;
  color: #04111d;
  background: linear-gradient(135deg, var(--cyan), #67e8f9 42%, var(--violet));
  box-shadow: 0 12px 30px rgba(34, 211, 238, 0.28);
}

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

.nav-link {
  padding: 10px 13px;
  color: var(--muted-strong);
  border-radius: 999px;
  font-size: 14px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: white;
  background: rgba(34, 211, 238, 0.12);
  transform: translateY(-1px);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  width: min(360px, 32vw);
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
}

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

.header-search input::placeholder,
.filter-bar input::placeholder {
  color: #64748b;
}

.header-search button,
.primary-button,
.secondary-button,
.filter-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search button,
.primary-button,
.filter-button {
  color: #031826;
  font-weight: 800;
  background: linear-gradient(135deg, var(--cyan), #67e8f9);
  box-shadow: 0 14px 32px rgba(34, 211, 238, 0.24);
}

.header-search button {
  min-height: 36px;
  padding: 0 15px;
  border-radius: 999px;
}

.mobile-menu-button {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  color: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.82);
}

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

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

.mobile-nav a {
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--muted-strong);
  background: rgba(148, 163, 184, 0.08);
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.015);
  pointer-events: none;
  transition: opacity 0.7s ease, transform 1s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

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

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(2, 6, 23, 0.72) 44%, rgba(2, 6, 23, 0.28) 100%),
    linear-gradient(0deg, #050815 0%, rgba(5, 8, 21, 0.16) 48%, rgba(5, 8, 21, 0.4) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 340px;
  gap: 52px;
  align-items: center;
  min-height: 620px;
  padding: 86px 0 72px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 18px;
  padding: 7px 12px;
  border: 1px solid rgba(34, 211, 238, 0.24);
  border-radius: 999px;
  color: #a5f3fc;
  background: rgba(8, 145, 178, 0.12);
  font-size: 14px;
  font-weight: 800;
}

.hero-copy h1,
.page-hero h1,
.detail-title h1 {
  margin: 0;
  font-weight: 950;
  letter-spacing: -0.05em;
  line-height: 1.02;
}

.hero-copy h1 {
  max-width: 720px;
  font-size: clamp(42px, 8vw, 82px);
}

.hero-copy p {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--muted-strong);
  font-size: 18px;
}

.hero-tags,
.tag-row,
.detail-tags,
.meta-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

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

.hero-tags span,
.tag-row span,
.detail-tags span,
.meta-pill-row span {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(15, 23, 42, 0.64);
  font-size: 12px;
  font-weight: 700;
}

.hero-tags span,
.detail-tags span,
.meta-pill-row span {
  padding: 7px 11px;
}

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

.primary-button,
.secondary-button {
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
}

.secondary-button {
  color: white;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.66);
  box-shadow: none;
}

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

.hero-poster {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

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

.hero-poster span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 8px 13px;
  border-radius: 999px;
  color: #051622;
  background: #67e8f9;
  font-size: 13px;
  font-weight: 900;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translateX(-50%);
}

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

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

.main-content {
  padding: 52px 0 78px;
}

.content-section + .content-section {
  margin-top: 64px;
}

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

.section-heading h2,
.page-heading-row h2,
.site-footer h2 {
  margin: 0;
  color: white;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.section-heading p,
.page-heading-row p {
  max-width: 690px;
  margin: 8px 0 0;
  color: var(--muted);
}

.section-more,
.card-category,
.breadcrumb a {
  color: #67e8f9;
  font-weight: 800;
}

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

.movie-grid.is-dense {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.86), rgba(15, 23, 42, 0.58));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  border-color: rgba(34, 211, 238, 0.38);
  box-shadow: 0 24px 70px rgba(8, 145, 178, 0.18);
  transform: translateY(-6px);
}

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

.poster-link img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.movie-card:hover .poster-link img {
  transform: scale(1.08);
  filter: brightness(0.78);
}

.poster-badge,
.poster-play {
  position: absolute;
  z-index: 2;
}

.poster-badge {
  top: 12px;
  left: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #111827;
  background: var(--amber);
  font-size: 12px;
  font-weight: 900;
}

.poster-play {
  display: grid;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 50%;
  color: #04111d;
  background: rgba(103, 232, 249, 0.92);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.42);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.card-body {
  padding: 15px;
}

.card-title {
  display: block;
  overflow: hidden;
  color: white;
  font-size: 17px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-title:hover {
  color: #67e8f9;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.card-body p {
  display: -webkit-box;
  min-height: 3.1em;
  margin: 11px 0 12px;
  overflow: hidden;
  color: #cbd5e1;
  font-size: 13px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row span {
  padding: 4px 8px;
}

.card-category {
  display: inline-flex;
  margin-top: 12px;
  font-size: 13px;
}

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

.category-card {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #0f172a;
  box-shadow: var(--shadow);
}

.category-card img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.category-card:hover img {
  opacity: 0.62;
  transform: scale(1.08);
}

.category-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.92));
}

.category-card-content {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 230px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}

.category-card h2,
.category-card h3 {
  margin: 0;
  font-size: 25px;
  font-weight: 950;
}

.category-card p {
  margin: 9px 0 0;
  color: #cbd5e1;
}

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

.page-hero h1 {
  max-width: 900px;
  font-size: clamp(34px, 5vw, 58px);
}

.page-hero p {
  max-width: 780px;
  margin: 18px 0 0;
  color: var(--muted-strong);
  font-size: 18px;
}

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

.filter-bar input,
.filter-bar select {
  min-height: 44px;
  min-width: 220px;
  flex: 1;
  color: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: 0;
  background: rgba(2, 6, 23, 0.55);
  padding: 0 15px;
}

.filter-button {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 56px 92px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.76);
}

.rank-number {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 16px;
  color: #04111d;
  background: linear-gradient(135deg, var(--amber), #fde68a);
  font-weight: 950;
}

.rank-poster img {
  aspect-ratio: 2 / 3;
  border-radius: 14px;
  object-fit: cover;
}

.rank-info h2,
.rank-info h3 {
  margin: 0;
  overflow: hidden;
  font-size: 18px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-info p {
  display: -webkit-box;
  margin: 6px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.rank-score {
  display: grid;
  gap: 2px;
  justify-items: end;
  color: #fef3c7;
  font-weight: 900;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0 20px;
  color: var(--muted);
  font-size: 14px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) 340px;
  gap: 28px;
  align-items: start;
}

.player-panel,
.detail-side,
.detail-section {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.76);
  box-shadow: var(--shadow);
}

.player-panel {
  overflow: hidden;
}

.video-shell {
  position: relative;
  background: #000;
}

.video-shell video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: white;
  background:
    radial-gradient(circle at center, rgba(34, 211, 238, 0.22), transparent 24rem),
    rgba(2, 6, 23, 0.36);
  cursor: pointer;
}

.play-overlay.is-hidden {
  display: none;
}

.play-overlay span {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border-radius: 50%;
  color: #04111d;
  background: linear-gradient(135deg, var(--cyan), #67e8f9);
  box-shadow: 0 22px 60px rgba(34, 211, 238, 0.28);
  font-size: 30px;
  transform: translateX(4px);
}

.player-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  color: var(--muted-strong);
}

.player-status {
  color: #a5f3fc;
  font-weight: 800;
}

.detail-side {
  overflow: hidden;
}

.detail-side img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.detail-side-body {
  padding: 18px;
}

.detail-title {
  margin: 28px 0;
}

.detail-title h1 {
  font-size: clamp(32px, 5vw, 56px);
}

.detail-title p {
  max-width: 900px;
  margin: 16px 0 0;
  color: var(--muted-strong);
  font-size: 18px;
}

.detail-section {
  margin-top: 28px;
  padding: 26px;
}

.detail-section h2 {
  margin: 0 0 14px;
  font-size: 24px;
  font-weight: 950;
}

.detail-section p {
  margin: 0;
  color: #dbeafe;
}

.detail-section p + p {
  margin-top: 14px;
}

.search-empty {
  display: none;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  color: var(--muted-strong);
  background: rgba(15, 23, 42, 0.74);
  text-align: center;
}

.search-empty.is-visible {
  display: block;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.72);
  padding: 46px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.7fr;
  gap: 28px;
}

.footer-logo {
  margin-bottom: 14px;
}

.site-footer p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
}

.site-footer h2 {
  margin-bottom: 12px;
  font-size: 16px;
}

.site-footer a:not(.site-logo) {
  display: block;
  margin: 7px 0;
  color: var(--muted-strong);
}

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

.footer-bottom {
  margin-top: 32px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

@media (max-width: 1100px) {
  .movie-grid,
  .movie-grid.is-dense {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .hero-poster,
  .detail-side {
    max-width: 360px;
  }
}

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

  .mobile-menu-button {
    display: inline-grid;
    place-items: center;
  }

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

  .hero-content {
    gap: 28px;
    padding: 56px 0 74px;
  }

  .hero-poster {
    max-width: 240px;
    transform: none;
  }

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

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

  .rank-score {
    grid-column: 3;
    justify-items: start;
  }
}

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

  .header-inner {
    min-height: 66px;
  }

  .site-logo {
    font-size: 18px;
  }

  .logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 12px;
  }

  .hero-copy h1 {
    font-size: 38px;
  }

  .hero-copy p,
  .page-hero p,
  .detail-title p {
    font-size: 16px;
  }

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

  .card-body {
    padding: 12px;
  }

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

  .rank-item {
    grid-template-columns: 38px 66px minmax(0, 1fr);
    gap: 10px;
  }

  .rank-number {
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }

  .filter-bar input,
  .filter-bar select,
  .filter-button {
    min-width: 100%;
  }

  .detail-section {
    padding: 20px;
  }
}
