:root {
  --bg: #020617;
  --panel: #0f172a;
  --panel-soft: #1e293b;
  --line: rgba(148, 163, 184, 0.16);
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --ocean: #0ea5e9;
  --ocean-deep: #0284c7;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top left, rgba(14, 165, 233, 0.14), transparent 32rem), var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 22px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.brand-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--ocean), var(--ocean-deep));
  box-shadow: 0 12px 25px rgba(14, 165, 233, 0.3);
}

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

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

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

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

.nav-link,
.mobile-link {
  display: inline-flex;
  align-items: center;
  border-radius: 12px;
  color: var(--soft);
  transition: 0.2s ease;
}

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

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: #ffffff;
  background: rgba(14, 165, 233, 0.16);
}

.global-search {
  position: relative;
  display: flex;
  width: min(320px, 28vw);
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: visible;
  background: rgba(2, 6, 23, 0.45);
}

.global-search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  padding: 0 12px;
}

.global-search button,
.search-panel button {
  border: 0;
  color: #ffffff;
  background: var(--ocean-deep);
  padding: 0 16px;
  border-radius: 12px;
}

.search-suggest {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 70;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.search-suggest a {
  display: flex;
  gap: 10px;
  padding: 10px;
  border-bottom: 1px solid var(--line);
}

.search-suggest a:last-child {
  border-bottom: 0;
}

.search-suggest img {
  width: 60px;
  height: 38px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--panel-soft);
}

.search-suggest strong {
  display: block;
  font-size: 13px;
  color: #ffffff;
}

.search-suggest small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.menu-toggle {
  display: none;
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  width: 42px;
  height: 42px;
}

.mobile-panel {
  border-top: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.98);
}

.mobile-panel-inner {
  display: grid;
  gap: 8px;
  padding: 14px 0 18px;
}

.mobile-link {
  padding: 12px 14px;
}

.mobile-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 8px;
}

.mobile-cats a {
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.06);
  font-size: 13px;
}

.hero-carousel {
  position: relative;
  height: clamp(520px, 62vh, 720px);
  min-height: 500px;
  overflow: hidden;
  background: #000000;
}

.hero-track,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.5s ease, transform 1.2s ease;
  pointer-events: none;
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(2, 6, 23, 0.58), rgba(2, 6, 23, 0.1));
}

.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 680px;
  animation: fadeIn 0.5s ease both;
}

.pill {
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 8px 14px;
  color: #ffffff;
  background: var(--ocean-deep);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}

.hero-copy h1,
.page-title h1 {
  margin: 18px 0 14px;
  color: #ffffff;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero-copy h1 {
  font-size: clamp(40px, 7vw, 72px);
}

.hero-copy p {
  max-width: 620px;
  color: var(--soft);
  font-size: clamp(17px, 2vw, 21px);
}

.hero-meta,
.meta-row,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 800;
  transition: 0.2s ease;
}

.btn-primary {
  color: #ffffff;
  background: var(--ocean);
  box-shadow: 0 14px 30px rgba(14, 165, 233, 0.28);
}

.btn-primary:hover {
  background: var(--ocean-deep);
  transform: translateY(-2px);
}

.btn-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  transform: translateY(-50%);
  font-size: 34px;
  line-height: 1;
  transition: 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.22);
}

.hero-prev {
  left: 20px;
}

.hero-next {
  right: 20px;
}

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

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

.hero-dot.is-active {
  width: 34px;
  background: #ffffff;
}

.page-section {
  margin-top: 64px;
}

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

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

.section-head h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
}

.section-more,
.text-link {
  color: var(--ocean);
  font-weight: 700;
}

.grid {
  display: grid;
  gap: 18px;
}

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

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

.movie-card,
.movie-row,
.category-card,
.side-card,
.detail-panel,
.filter-panel,
.search-panel {
  background: rgba(30, 41, 59, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.movie-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.movie-card:hover {
  background: rgba(30, 41, 59, 0.95);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--panel-soft);
}

.poster-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.2s ease;
}

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

.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(14, 165, 233, 0.88);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
  transform: translate(-50%, -50%) scale(0.92);
  opacity: 0;
  transition: 0.2s ease;
}

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

.type-badge,
.rank-num {
  position: absolute;
  padding: 5px 8px;
  border-radius: 8px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.type-badge {
  top: 10px;
  right: 10px;
  background: rgba(15, 23, 42, 0.82);
}

.rank-num {
  top: 10px;
  left: 10px;
  min-width: 34px;
  text-align: center;
  background: var(--ocean-deep);
}

.card-body {
  padding: 14px;
}

.card-body h3,
.row-content h3 {
  margin: 0;
  color: #ffffff;
  font-size: 16px;
  line-height: 1.35;
}

.card-body h3 a:hover,
.row-content h3 a:hover,
.detail-side h2 {
  color: var(--ocean);
}

.card-body p,
.row-content p,
.page-title p,
.category-card p,
.site-footer p,
.detail-panel p {
  color: var(--soft);
}

.card-body p {
  min-height: 48px;
  margin: 10px 0 12px;
  font-size: 14px;
}

.meta-row {
  justify-content: space-between;
  font-size: 13px;
}

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

.tag-row span {
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--soft);
  background: rgba(15, 23, 42, 0.8);
  font-size: 12px;
}

.movie-rail {
  display: flex;
  gap: 16px;
  padding-bottom: 8px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
}

.rail-item {
  flex: 0 0 250px;
  scroll-snap-align: start;
}

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

.category-tile {
  min-height: 160px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.2), rgba(30, 41, 59, 0.72));
  transition: 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(14, 165, 233, 0.48);
}

.category-tile span {
  display: block;
  color: #ffffff;
  font-size: 20px;
  font-weight: 900;
}

.category-tile p {
  margin: 14px 0 0;
  color: var(--soft);
  font-size: 14px;
}

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

.movie-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 14px;
  padding: 10px;
  transition: 0.2s ease;
}

.movie-row:hover {
  background: rgba(30, 41, 59, 0.96);
}

.row-poster {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  background: var(--panel-soft);
}

.row-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.row-poster span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.28);
  opacity: 0;
  transition: 0.2s ease;
}

.movie-row:hover .row-poster span {
  opacity: 1;
}

.row-content {
  align-self: center;
  min-width: 0;
}

.row-content p {
  margin: 8px 0;
  font-size: 14px;
}

.inner-page {
  padding: 36px 0 72px;
}

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

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

.breadcrumb span::before,
.breadcrumb a + a::before {
  content: "/";
  margin-right: 8px;
  color: #475569;
}

.page-title {
  margin-top: 28px;
  max-width: 820px;
}

.page-title h1 {
  font-size: clamp(36px, 5vw, 58px);
}

.page-title p {
  font-size: 18px;
}

.category-list {
  display: grid;
  gap: 22px;
  margin-top: 42px;
}

.category-card {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  padding: 26px;
}

.category-card h2 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 28px;
}

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

.category-samples a {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  background: var(--panel-soft);
}

.category-samples img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-samples span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 10px 8px;
  color: #ffffff;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
  font-size: 13px;
}

.filter-panel {
  margin-top: 34px;
  padding: 24px;
}

.filter-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 14px;
  margin-bottom: 24px;
}

.filter-grid label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.filter-grid input,
.filter-grid select,
.search-panel input {
  width: 100%;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: 0;
  color: var(--text);
  background: rgba(2, 6, 23, 0.45);
  padding: 0 14px;
}

.filter-grid select option {
  color: #0f172a;
}

.search-panel {
  display: flex;
  gap: 12px;
  margin-top: 34px;
  padding: 18px;
}

.search-panel input {
  flex: 1;
}

.search-panel button {
  min-width: 100px;
}

.empty-state {
  margin: 18px 0;
  color: var(--muted);
  text-align: center;
}

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

.detail-main {
  min-width: 0;
}

.player-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #000000;
  box-shadow: var(--shadow);
}

.movie-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.play-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.36);
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-layer span {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.9);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.36);
  font-size: 32px;
}

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

.detail-panel {
  margin-top: 22px;
  padding: 28px;
}

.detail-title h1 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.12;
}

.detail-meta {
  gap: 12px;
}

.detail-tags {
  margin: 18px 0 4px;
}

.detail-panel section {
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px solid var(--line);
}

.detail-panel h2,
.side-card h2,
.site-footer h2 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 22px;
}

.detail-panel p {
  margin: 0;
  font-size: 16px;
}

.review-box {
  padding: 20px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.74);
}

.detail-side {
  min-width: 0;
}

.side-card {
  position: sticky;
  top: 92px;
  padding: 20px;
}

.compact-rows .movie-row {
  grid-template-columns: 94px 1fr;
}

.compact-rows .row-content p {
  display: none;
}

.site-footer {
  margin-top: 70px;
  padding: 44px 0;
  border-top: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.6);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 32px;
}

.footer-brand {
  margin-bottom: 16px;
}

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

.site-footer li a {
  color: var(--muted);
}

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

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

@media (max-width: 1100px) {
  .grid-compact {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

  .side-card {
    position: static;
  }
}

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

  .menu-toggle {
    display: inline-grid;
    place-items: center;
    margin-left: auto;
  }

  .hero-arrow {
    display: none;
  }

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

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

  .category-card {
    gap: 18px;
  }
}

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

  .nav-wrap {
    height: 64px;
  }

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

  .hero-carousel {
    height: 560px;
  }

  .hero-copy p {
    font-size: 16px;
  }

  .hero-actions {
    display: grid;
  }

  .page-section {
    margin-top: 42px;
  }

  .panel-section,
  .detail-panel,
  .filter-panel {
    padding: 18px;
    border-radius: 20px;
  }

  .grid-large,
  .grid-compact,
  .category-grid,
  .footer-grid,
  .category-card,
  .category-samples,
  .filter-grid {
    grid-template-columns: 1fr;
  }

  .movie-row,
  .compact-rows .movie-row {
    grid-template-columns: 116px 1fr;
  }

  .row-content p {
    display: none;
  }

  .search-panel {
    display: grid;
  }

  .play-layer span {
    width: 66px;
    height: 66px;
    font-size: 26px;
  }
}
