:root {
  --bg: #06111f;
  --bg-soft: #0b1d2f;
  --panel: rgba(13, 31, 51, 0.78);
  --panel-solid: #0e2237;
  --text: #ecfeff;
  --muted: #9bd5dd;
  --line: rgba(148, 222, 232, 0.16);
  --cyan: #22d3ee;
  --teal: #14b8a6;
  --amber: #fbbf24;
  --rose: #fb7185;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 5%, rgba(34, 211, 238, 0.22), transparent 30%),
    radial-gradient(circle at 85% 15%, rgba(20, 184, 166, 0.22), transparent 28%),
    linear-gradient(180deg, #06111f 0%, #071a2c 44%, #07101b 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, rgba(17, 94, 89, 0.96), rgba(22, 78, 99, 0.96), rgba(15, 23, 42, 0.96));
  border-bottom: 1px solid rgba(148, 222, 232, 0.16);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
}

.top-nav {
  max-width: 1480px;
  margin: 0 auto;
  height: 72px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  box-shadow: 0 12px 34px rgba(34, 211, 238, 0.32);
}

.brand-name {
  font-size: 21px;
  background: linear-gradient(90deg, #cffafe, #5eead4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link,
.mobile-link,
.quick-cats a,
.footer-links a {
  color: rgba(236, 254, 255, 0.86);
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active,
.quick-cats a:hover,
.footer-links a:hover {
  color: #67e8f9;
}

.nav-search,
.mobile-search,
.wide-search {
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(165, 243, 252, 0.24);
  border-radius: 999px;
  background: rgba(8, 20, 35, 0.56);
}

.nav-search input,
.mobile-search input,
.wide-search input {
  width: 220px;
  padding: 11px 16px;
  color: var(--text);
  border: 0;
  outline: 0;
  background: transparent;
}

.nav-search input::placeholder,
.mobile-search input::placeholder,
.wide-search input::placeholder {
  color: rgba(207, 250, 254, 0.62);
}

.nav-search button,
.mobile-search button,
.wide-search button,
.primary-btn,
.ghost-btn,
.filter-reset {
  border: 0;
  cursor: pointer;
  white-space: nowrap;
}

.nav-search button,
.mobile-search button,
.wide-search button,
.primary-btn {
  color: #042f2e;
  font-weight: 800;
  background: linear-gradient(135deg, #67e8f9, #2dd4bf);
  box-shadow: 0 14px 36px rgba(45, 212, 191, 0.26);
}

.nav-search button,
.mobile-search button {
  padding: 11px 18px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.mobile-menu {
  display: none;
  padding: 0 24px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu.open {
  display: grid;
  gap: 12px;
}

.quick-cats {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 28px 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
}

.hero-slider {
  position: relative;
  height: 70vh;
  min-height: 560px;
  margin: 28px auto 0;
  max-width: 1480px;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow);
  isolation: isolate;
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.6), rgba(15, 23, 42, 0.95));
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.9s ease, transform 1.4s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

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

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 36%, rgba(34, 211, 238, 0.16), transparent 34%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.9), rgba(2, 6, 23, 0.34) 48%, rgba(2, 6, 23, 0.2)),
    linear-gradient(90deg, rgba(2, 6, 23, 0.86), rgba(2, 6, 23, 0.18));
}

.hero-content {
  position: absolute;
  left: clamp(28px, 6vw, 86px);
  bottom: clamp(38px, 7vw, 92px);
  width: min(760px, calc(100% - 56px));
}

.hero-tags,
.hero-mini-tags,
.tag-row,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-tags span,
.hero-mini-tags span,
.tag-row span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 11px;
  color: #cffafe;
  font-size: 13px;
  border: 1px solid rgba(165, 243, 252, 0.2);
  border-radius: 999px;
  background: rgba(8, 47, 73, 0.62);
}

.hero-content h1 {
  margin: 16px 0 14px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-content p {
  max-width: 680px;
  margin: 0 0 26px;
  color: rgba(236, 254, 255, 0.86);
  font-size: clamp(16px, 1.6vw, 20px);
}

.hero-actions,
.section-head,
.footer-inner,
.page-hero,
.detail-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ghost-btn {
  color: #cffafe;
  border: 1px solid rgba(165, 243, 252, 0.28);
  background: rgba(8, 47, 73, 0.46);
}

.primary-btn:hover,
.ghost-btn:hover,
.filter-reset:hover,
.movie-card:hover {
  transform: translateY(-3px);
}

.hero-mini-tags {
  margin-top: 20px;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 38px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(2, 6, 23, 0.35);
  transform: translateY(-50%);
  backdrop-filter: blur(12px);
}

.hero-arrow.prev {
  left: 24px;
}

.hero-arrow.next {
  right: 24px;
}

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

.hero-dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.44);
}

.hero-dot.active {
  width: 34px;
  border-radius: 999px;
  background: #67e8f9;
}

.search-block,
.section-wrap,
.page-hero,
.breadcrumb,
.detail-content,
.related-wrap {
  max-width: 1480px;
  margin: 28px auto 0;
  padding: 0 28px;
}

.search-block {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 520px);
  gap: 24px;
  align-items: center;
  padding-top: 32px;
  padding-bottom: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(13, 31, 51, 0.62);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

.search-block h2,
.section-head h2,
.page-hero h1,
.detail-info h1,
.detail-block h2 {
  margin: 0;
  letter-spacing: -0.03em;
}

.search-block h2,
.section-head h2,
.page-hero h1 {
  font-size: clamp(28px, 4vw, 46px);
}

.search-block p,
.page-hero p,
.detail-lead,
.detail-block p,
.card-desc,
.category-tile p,
.meta-line {
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 8px;
  color: #67e8f9;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.wide-search input {
  flex: 1;
  width: auto;
  min-width: 0;
  padding: 15px 20px;
}

.wide-search button {
  padding: 15px 22px;
}

.section-wrap {
  padding-top: 42px;
}

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

.text-link {
  color: #67e8f9;
  font-weight: 700;
}

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

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

.category-tile {
  min-height: 230px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(13, 31, 51, 0.88), rgba(8, 47, 73, 0.58));
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
  border-color: rgba(103, 232, 249, 0.42);
}

.category-covers {
  height: 116px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.38);
}

.category-covers img {
  width: 100%;
  height: 116px;
  object-fit: cover;
}

.category-tile h2 {
  margin: 16px 0 6px;
  font-size: 22px;
}

.movie-grid,
.feature-list,
.rank-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(13, 31, 51, 0.78);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.22);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  border-color: rgba(103, 232, 249, 0.34);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.3);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(20, 184, 166, 0.2), rgba(2, 6, 23, 0.64));
}

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

.movie-card:hover .poster-link img {
  transform: scale(1.06);
  filter: saturate(1.12) contrast(1.05);
}

.score-badge,
.rank-mark {
  position: absolute;
  top: 12px;
  z-index: 2;
  min-width: 44px;
  padding: 5px 10px;
  font-size: 13px;
  font-weight: 900;
  border-radius: 999px;
}

.score-badge {
  right: 12px;
  color: #422006;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
}

.rank-mark {
  left: 12px;
  color: #042f2e;
  background: linear-gradient(135deg, #67e8f9, #2dd4bf);
}

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

.card-body h3 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.35;
}

.meta-line,
.card-desc {
  margin: 0 0 10px;
  font-size: 13px;
}

.tag-row span {
  font-size: 12px;
  min-height: 24px;
  padding: 3px 9px;
}

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

.page-hero {
  min-height: 260px;
  padding-top: 46px;
  padding-bottom: 46px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(circle at 80% 20%, rgba(34, 211, 238, 0.22), transparent 34%),
    linear-gradient(135deg, rgba(15, 118, 110, 0.64), rgba(15, 23, 42, 0.92));
  box-shadow: var(--shadow);
}

.page-hero p {
  max-width: 720px;
  margin: 12px 0 0;
  font-size: 18px;
}

.filter-wrap {
  padding-top: 30px;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 170px 150px 170px auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 24px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(13, 31, 51, 0.72);
}

.filter-panel label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.filter-panel input,
.filter-panel select {
  min-height: 44px;
  padding: 0 12px;
  color: var(--text);
  border: 1px solid rgba(165, 243, 252, 0.18);
  border-radius: 12px;
  outline: 0;
  background: rgba(2, 6, 23, 0.42);
}

.filter-reset {
  min-height: 44px;
  padding: 0 18px;
  color: #cffafe;
  border: 1px solid rgba(165, 243, 252, 0.24);
  border-radius: 12px;
  background: rgba(8, 47, 73, 0.68);
}

.empty-state {
  display: none;
  margin: 20px 0;
  padding: 28px;
  color: var(--muted);
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(13, 31, 51, 0.62);
}

.empty-state.show {
  display: block;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: #67e8f9;
}

.detail-hero {
  max-width: 1480px;
  margin: 24px auto 0;
  padding: 34px 28px;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(circle at 88% 10%, rgba(34, 211, 238, 0.16), transparent 38%),
    linear-gradient(135deg, rgba(13, 31, 51, 0.96), rgba(8, 47, 73, 0.54));
  box-shadow: var(--shadow);
}

.detail-cover {
  width: min(310px, 28vw);
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 22px;
  background: rgba(2, 6, 23, 0.5);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.detail-cover img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
}

.detail-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.detail-info h1 {
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.08;
}

.detail-lead {
  max-width: 860px;
  margin: 16px 0 20px;
  font-size: 20px;
}

.detail-meta {
  margin-bottom: 16px;
}

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

.player-section {
  max-width: 1180px;
  margin: 30px auto 0;
  padding: 0 28px;
}

.cinema-player {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(165, 243, 252, 0.2);
  border-radius: 28px;
  background: #000;
  box-shadow: var(--shadow);
}

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

.play-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  color: #fff;
  cursor: pointer;
  text-align: center;
  background:
    radial-gradient(circle, rgba(34, 211, 238, 0.18), transparent 34%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.7), rgba(2, 6, 23, 0.34));
}

.play-layer.hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.26s ease;
}

.play-button {
  width: 84px;
  height: 84px;
  color: #042f2e;
  font-size: 32px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #67e8f9, #2dd4bf);
  box-shadow: 0 18px 50px rgba(34, 211, 238, 0.34);
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  max-width: 1180px;
}

.detail-block {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(13, 31, 51, 0.72);
}

.detail-block h2 {
  margin-bottom: 12px;
  font-size: 26px;
}

.detail-block p {
  margin: 0;
  font-size: 17px;
}

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

.site-footer {
  margin-top: 64px;
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.42);
}

.footer-inner {
  max-width: 1480px;
  margin: 0 auto;
  padding: 28px;
}

.footer-brand {
  color: #67e8f9;
  font-size: 20px;
  font-weight: 800;
}

.footer-links {
  display: flex;
  gap: 20px;
}

@media (max-width: 1180px) {
  .category-grid,
  .movie-grid,
  .rank-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

@media (max-width: 900px) {
  .top-nav {
    padding: 0 18px;
    gap: 14px;
  }

  .nav-center,
  .nav-search,
  .quick-cats {
    display: none;
  }

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

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

  .hero-slider {
    height: 62vh;
    min-height: 520px;
    margin: 16px 16px 0;
    border-radius: 22px;
  }

  .hero-arrow {
    display: none;
  }

  .hero-content {
    left: 22px;
    bottom: 58px;
    width: calc(100% - 44px);
  }

  .search-block,
  .section-wrap,
  .page-hero,
  .breadcrumb,
  .detail-content,
  .related-wrap {
    margin-top: 20px;
    padding-left: 18px;
    padding-right: 18px;
  }

  .search-block {
    grid-template-columns: 1fr;
  }

  .category-grid,
  .category-grid.large,
  .movie-grid,
  .feature-list,
  .rank-strip,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .page-hero,
  .detail-hero,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .detail-hero {
    margin-left: 18px;
    margin-right: 18px;
    padding: 20px;
  }

  .detail-cover {
    width: 100%;
  }

  .detail-cover img {
    min-height: 0;
    max-height: 520px;
  }

  .player-section {
    padding-left: 18px;
    padding-right: 18px;
  }
}

@media (max-width: 560px) {
  .hero-slider {
    height: 68vh;
    min-height: 560px;
  }

  .hero-content h1 {
    font-size: 36px;
  }

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

  .wide-search,
  .nav-search,
  .mobile-search {
    border-radius: 18px;
    flex-direction: column;
    align-items: stretch;
  }

  .wide-search input,
  .wide-search button,
  .mobile-search input,
  .mobile-search button {
    width: 100%;
  }

  .filter-panel,
  .category-grid,
  .category-grid.large,
  .movie-grid,
  .feature-list,
  .rank-strip,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .play-button {
    width: 68px;
    height: 68px;
  }
}
