:root {
  --brand: #0891b2;
  --brand-dark: #0e7490;
  --brand-blue: #2563eb;
  --ink: #111827;
  --muted: #6b7280;
  --soft: #f8fafc;
  --line: #e5e7eb;
  --card: #ffffff;
  --night: #0f172a;
  --shadow: 0 18px 48px rgba(15, 23, 42, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: #ffffff;
  line-height: 1.65;
}

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

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

button,
input {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.86);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}

.nav-wrap {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--brand-blue));
  box-shadow: 0 12px 22px rgba(8, 145, 178, 0.28);
}

.brand-text {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, var(--brand), var(--brand-blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link,
.mobile-link {
  color: #475569;
  font-weight: 700;
  border-radius: 12px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

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

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: var(--brand);
  background: #ecfeff;
}

.header-search {
  position: relative;
  width: 240px;
}

.header-search input {
  width: 100%;
  height: 40px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 0 42px 0 16px;
  outline: none;
  color: #334155;
  background: #ffffff;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(8, 145, 178, 0.13);
}

.header-search button {
  position: absolute;
  top: 4px;
  right: 5px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  cursor: pointer;
  background: linear-gradient(135deg, var(--brand), var(--brand-blue));
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #f1f5f9;
  cursor: pointer;
  padding: 10px;
}

.menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #334155;
  border-radius: 99px;
}

.mobile-menu {
  display: none;
  border-top: 1px solid #e2e8f0;
  padding: 16px;
  background: #ffffff;
}

.mobile-menu.open {
  display: block;
}

.mobile-search {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.mobile-search input {
  min-width: 0;
  flex: 1;
  height: 42px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 0 15px;
  outline: none;
}

.mobile-search button,
.primary-button,
.secondary-button,
.filter-button {
  border: 0;
  cursor: pointer;
  font-weight: 800;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.mobile-search button,
.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--brand-blue));
  box-shadow: 0 16px 32px rgba(8, 145, 178, 0.25);
}

.mobile-search button {
  padding: 0 18px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
}

.secondary-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(10px);
}

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

.mobile-link {
  display: block;
  padding: 10px 12px;
  margin: 2px 0;
}

.hero {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  color: #ffffff;
  background: #020617;
}

.hero-slider {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.7s ease, transform 1.2s ease;
}

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

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

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(2, 6, 23, 0.68) 42%, rgba(2, 6, 23, 0.18) 100%), linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.08));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 610px;
  margin: 0 auto;
  display: grid;
  align-items: end;
  padding: 84px 0 74px;
}

.hero-copy {
  width: min(680px, 100%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  background: rgba(8, 145, 178, 0.9);
  box-shadow: 0 14px 34px rgba(8, 145, 178, 0.35);
}

.hero h1 {
  margin: 18px 0 18px;
  font-size: clamp(42px, 7vw, 74px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero-copy p {
  width: min(600px, 100%);
  margin: 0 0 28px;
  color: #e2e8f0;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

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

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

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

.hero-arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  transform: translateY(-50%);
}

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

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

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

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

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

.section-band {
  width: min(1180px, calc(100% - 32px));
  margin: 72px auto 0;
  padding: 44px;
  border-radius: 34px;
  background: linear-gradient(135deg, #ecfeff, #eff6ff);
}

.section-dark {
  width: min(1180px, calc(100% - 32px));
  margin: 72px auto 0;
  padding: 44px;
  border-radius: 34px;
  color: #ffffff;
  background: radial-gradient(circle at top left, rgba(8, 145, 178, 0.45), transparent 35%), #0f172a;
}

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

.section-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.04em;
  line-height: 1.12;
}

.section-kicker {
  display: block;
  margin-bottom: 7px;
  color: var(--brand);
  font-size: 14px;
  font-weight: 900;
}

.section-desc {
  margin: 9px 0 0;
  color: var(--muted);
}

.section-dark .section-desc,
.section-dark .section-kicker {
  color: #bae6fd;
}

.view-more {
  color: var(--brand);
  font-weight: 900;
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.05), 0 15px 35px rgba(15, 23, 42, 0.1);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.poster-link {
  display: block;
}

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #164e63);
}

.poster-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

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

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

.movie-title {
  margin: 8px 0 8px;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.movie-desc {
  min-height: 3.2em;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.tag-row span,
.info-chip,
.category-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #0e7490;
  font-size: 12px;
  font-weight: 800;
  background: #ecfeff;
}

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

.movie-card.compact .movie-card-body {
  padding: 14px;
}

.movie-card.compact .movie-title {
  font-size: 17px;
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, #f97316, #ef4444);
  box-shadow: 0 14px 28px rgba(239, 68, 68, 0.28);
}

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

.category-card {
  min-height: 190px;
  padding: 26px;
  border-radius: 28px;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.92), rgba(37, 99, 235, 0.92));
  box-shadow: 0 18px 42px rgba(8, 145, 178, 0.22);
}

.category-card:nth-child(2n) {
  background: linear-gradient(135deg, #0f172a, #155e75);
}

.category-card h2,
.category-card h3 {
  margin: 0 0 10px;
  font-size: 26px;
}

.category-card p {
  margin: 0 0 22px;
  color: #e0f2fe;
}

.category-card span {
  font-weight: 900;
}

.page-hero {
  color: #ffffff;
  background: radial-gradient(circle at top left, rgba(8, 145, 178, 0.5), transparent 34%), linear-gradient(135deg, #020617, #0f172a 58%, #164e63);
}

.page-hero-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 70px 0 76px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 20px;
  color: #bae6fd;
  font-size: 14px;
  font-weight: 800;
}

.breadcrumb a:hover {
  color: #ffffff;
}

.page-hero h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.06em;
}

.page-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  color: #e2e8f0;
  font-size: 18px;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
}

.filter-input {
  width: 100%;
  height: 46px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 0 18px;
  outline: none;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.filter-button {
  padding: 10px 15px;
  color: #0f172a;
  background: #f1f5f9;
}

.filter-button.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--brand-blue));
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 34px;
  align-items: start;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #020617;
  box-shadow: 0 28px 60px rgba(2, 6, 23, 0.35);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  cursor: pointer;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.2));
}

.player-overlay.hidden {
  display: none;
}

.play-icon {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 34px;
  text-indent: 5px;
  background: linear-gradient(135deg, var(--brand), var(--brand-blue));
  box-shadow: 0 24px 50px rgba(8, 145, 178, 0.36);
}

.detail-card {
  padding: 26px;
  border-radius: 30px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.detail-card img {
  width: 100%;
  border-radius: 22px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: #0f172a;
}

.info-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.info-chip {
  justify-content: space-between;
  gap: 16px;
  padding: 9px 12px;
}

.article-body {
  display: grid;
  gap: 18px;
  margin-top: 30px;
}

.article-block {
  padding: 26px;
  border: 1px solid #e2e8f0;
  border-radius: 26px;
  background: #ffffff;
}

.article-block h2 {
  margin: 0 0 12px;
  font-size: 26px;
}

.article-block p {
  margin: 0;
  color: #475569;
}

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

.site-footer {
  margin-top: 84px;
  padding: 48px 0;
  color: #cbd5e1;
  background: #020617;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  gap: 20px;
}

.site-footer strong {
  color: #ffffff;
  font-size: 22px;
}

.site-footer p {
  max-width: 680px;
  margin: 8px 0 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.site-footer a:hover {
  color: #ffffff;
}

.copyright {
  font-size: 13px;
  color: #94a3b8;
}

.empty-state {
  padding: 34px;
  border-radius: 24px;
  color: #475569;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

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

  .menu-button {
    display: block;
    margin-left: auto;
  }

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

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

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

@media (max-width: 760px) {
  .hero,
  .hero-content {
    min-height: 560px;
  }

  .hero-content {
    padding: 72px 0 66px;
  }

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

  .hero-arrow {
    display: none;
  }

  .section,
  .section-band,
  .section-dark {
    padding-top: 46px;
  }

  .section-band,
  .section-dark {
    padding: 28px 18px;
    border-radius: 26px;
  }

  .section-head {
    display: block;
  }

  .movie-grid,
  .related-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

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

  .movie-title {
    font-size: 17px;
  }

  .filter-panel {
    grid-template-columns: 1fr;
  }

  .page-hero-inner {
    padding: 48px 0 56px;
  }
}

@media (max-width: 460px) {
  .movie-grid,
  .related-strip {
    grid-template-columns: 1fr;
  }

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

  .primary-button,
  .secondary-button {
    width: 100%;
  }
}
