* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #020617;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at 20% 0%, rgba(34, 211, 238, 0.16), transparent 32rem),
    radial-gradient(circle at 80% 18%, rgba(59, 130, 246, 0.12), transparent 30rem),
    #020617;
  color: #e2e8f0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(30, 41, 59, 0.95);
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(16px);
}

.top-nav {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(6, 182, 212, 0.28);
}

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

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

.nav-link,
.mobile-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #cbd5e1;
  font-size: 15px;
  font-weight: 650;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.nav-link {
  padding: 10px 16px;
}

.nav-link:hover,
.mobile-link:hover,
.nav-link.active,
.mobile-link.active {
  background: rgba(6, 182, 212, 0.14);
  color: #22d3ee;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.9);
  color: #e2e8f0;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: #e2e8f0;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(51, 65, 85, 0.8);
}

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

.mobile-link {
  padding: 13px 16px;
  justify-content: flex-start;
}

.hero-slider {
  padding: 18px 0 0;
}

.hero-stage {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  height: min(70vh, 680px);
  min-height: 480px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 32px;
  background: #0f172a;
  box-shadow: 0 32px 90px rgba(2, 6, 23, 0.55);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.9s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-image,
.hero-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image img {
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 6s ease;
}

.hero-slide.is-active .hero-image img {
  transform: scale(1.08);
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(2, 6, 23, 0.72) 42%, rgba(2, 6, 23, 0.28) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.72) 0%, transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  max-width: 760px;
  height: 100%;
  padding: clamp(28px, 6vw, 72px);
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.hero-pills span,
.tag-line span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 11px;
  background: rgba(15, 23, 42, 0.68);
  border: 1px solid rgba(148, 163, 184, 0.16);
  color: #bae6fd;
  font-size: 13px;
  font-style: normal;
}

.hero-pills.inline {
  margin-bottom: 14px;
}

.hero-content h1,
.hero-content h2 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: clamp(34px, 6.4vw, 72px);
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.hero-content p {
  max-width: 700px;
  margin: 0;
  color: #cbd5e1;
  font-size: clamp(16px, 2vw, 20px);
}

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

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 14px;
  font-weight: 750;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.primary-btn {
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  color: #ffffff;
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.28);
}

.ghost-btn {
  background: rgba(15, 23, 42, 0.65);
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.primary-btn:hover,
.ghost-btn:hover,
.movie-card:hover,
.movie-row:hover,
.category-tile:hover,
.category-panel:hover {
  transform: translateY(-3px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.55);
  color: #ffffff;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(10px);
  transition: background 0.25s ease;
}

.hero-arrow:hover {
  background: rgba(8, 145, 178, 0.72);
}

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

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

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

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

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

.page-main {
  padding-top: 42px;
  padding-bottom: 54px;
}

.section-block {
  margin-top: 54px;
}

.glass-block,
.article-card,
.side-panel,
.filter-panel,
.page-hero,
.detail-hero {
  border: 1px solid rgba(51, 65, 85, 0.72);
  background: rgba(15, 23, 42, 0.62);
  box-shadow: 0 22px 60px rgba(2, 6, 23, 0.28);
  backdrop-filter: blur(12px);
}

.glass-block {
  padding: clamp(22px, 4vw, 42px);
  border-radius: 30px;
}

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

.section-kicker {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  border-radius: 12px;
  background: rgba(6, 182, 212, 0.16);
  color: #22d3ee;
  font-weight: 900;
}

.section-heading h2 {
  margin: 0;
  color: #f8fafc;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.03em;
}

.section-heading p {
  max-width: 650px;
  margin: 6px 0 0;
  color: #94a3b8;
}

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

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

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

.movie-card {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(51, 65, 85, 0.7);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.76);
  box-shadow: 0 16px 42px rgba(2, 6, 23, 0.24);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.movie-card:hover {
  border-color: rgba(34, 211, 238, 0.45);
  background: rgba(30, 41, 59, 0.86);
}

.card-cover {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(8, 47, 73, 0.65), rgba(15, 23, 42, 0.94));
}

.card-cover img,
.detail-poster img,
.row-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.movie-card:hover .card-cover img,
.movie-row:hover .row-cover img {
  transform: scale(1.08);
}

.cover-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(2, 6, 23, 0.72) 100%);
}

.card-type,
.rank-badge {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  min-height: 26px;
  padding: 0 10px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 750;
  background: rgba(6, 182, 212, 0.88);
}

.card-type {
  right: 10px;
  top: 10px;
}

.rank-badge {
  left: 10px;
  top: 10px;
  background: rgba(239, 68, 68, 0.9);
}

.play-float {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.9);
  color: #ffffff;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.85);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.card-content {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.card-content strong,
.row-body strong {
  color: #f8fafc;
  font-size: 16px;
  line-height: 1.35;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-content em,
.row-body em {
  color: #94a3b8;
  font-size: 13px;
  font-style: normal;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta,
.row-meta {
  color: #67e8f9;
  font-size: 12px;
  font-weight: 700;
}

.tag-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-line span {
  padding: 4px 8px;
  font-size: 12px;
  color: #cbd5e1;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 34px;
  align-items: start;
}

.ranking-list,
.compact-list {
  display: grid;
  gap: 14px;
}

.movie-row {
  display: grid;
  grid-template-columns: 142px minmax(0, 1fr);
  gap: 16px;
  overflow: hidden;
  border: 1px solid rgba(51, 65, 85, 0.68);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.7);
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.movie-row:hover {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(34, 211, 238, 0.38);
}

.row-cover {
  position: relative;
  display: block;
  min-height: 96px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0f172a;
}

.row-body {
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 12px 14px 12px 0;
}

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

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

.category-tile,
.category-panel {
  display: grid;
  gap: 10px;
  min-height: 188px;
  padding: 22px;
  border: 1px solid rgba(51, 65, 85, 0.72);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(6, 182, 212, 0.12), transparent 42%),
    rgba(15, 23, 42, 0.7);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.category-tile:hover,
.category-panel:hover {
  border-color: rgba(34, 211, 238, 0.42);
  background:
    linear-gradient(135deg, rgba(6, 182, 212, 0.2), transparent 48%),
    rgba(15, 23, 42, 0.88);
}

.category-tile strong,
.category-panel strong {
  color: #f8fafc;
  font-size: 21px;
}

.category-tile em,
.category-panel em {
  color: #94a3b8;
  font-style: normal;
  font-size: 14px;
}

.category-samples,
.category-panel > span {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-self: end;
}

.category-samples span,
.category-panel > span span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.85);
  color: #cbd5e1;
  font-size: 12px;
}

.page-hero {
  border-radius: 28px;
  padding: clamp(28px, 5vw, 52px);
  background:
    linear-gradient(135deg, rgba(6, 182, 212, 0.16), rgba(37, 99, 235, 0.06)),
    rgba(15, 23, 42, 0.72);
}

.page-hero.compact {
  padding: clamp(24px, 4vw, 42px);
}

.page-hero span {
  display: inline-flex;
  margin-bottom: 12px;
  color: #22d3ee;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-hero h1 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 820px;
  margin: 0;
  color: #cbd5e1;
  font-size: 17px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: #94a3b8;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #22d3ee;
}

.detail-hero {
  overflow: hidden;
  border-radius: 30px;
}

.player-card {
  background: #000000;
}

.player-shell {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.movie-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 0;
  background:
    radial-gradient(circle, rgba(6, 182, 212, 0.2), transparent 28%),
    rgba(2, 6, 23, 0.3);
  cursor: pointer;
}

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

.play-ring {
  width: clamp(72px, 10vw, 108px);
  height: clamp(72px, 10vw, 108px);
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  color: #ffffff;
  font-size: 40px;
  box-shadow: 0 24px 70px rgba(6, 182, 212, 0.35);
}

.detail-info {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
  padding: clamp(22px, 4vw, 36px);
}

.detail-poster {
  overflow: hidden;
  border-radius: 22px;
  aspect-ratio: 2 / 3;
  background: #0f172a;
  box-shadow: 0 18px 46px rgba(2, 6, 23, 0.38);
}

.detail-copy h1 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: clamp(30px, 4.8vw, 50px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.detail-copy p {
  margin: 0 0 20px;
  color: #cbd5e1;
  font-size: 17px;
}

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

.meta-table div {
  padding: 12px 14px;
  border: 1px solid rgba(51, 65, 85, 0.72);
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.32);
}

.meta-table dt {
  color: #94a3b8;
  font-size: 12px;
}

.meta-table dd {
  margin: 4px 0 0;
  color: #e2e8f0;
  font-weight: 750;
}

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

.article-card,
.side-panel {
  border-radius: 26px;
  padding: clamp(22px, 4vw, 34px);
}

.article-card h2,
.side-panel h2 {
  margin: 0 0 14px;
  color: #f8fafc;
  font-size: 24px;
}

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

.article-card p {
  margin: 0;
  color: #cbd5e1;
  font-size: 16px;
  line-height: 1.92;
}

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

.filter-panel {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 14px;
  margin-top: 32px;
  padding: 18px;
  border-radius: 24px;
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 750;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(51, 65, 85, 0.95);
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.52);
  color: #e2e8f0;
  outline: 0;
  padding: 0 14px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: #06b6d4;
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.12);
}

.is-hidden {
  display: none !important;
}

.site-footer {
  margin-top: 56px;
  border-top: 1px solid rgba(30, 41, 59, 0.92);
  background: rgba(2, 6, 23, 0.74);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: start;
}

.footer-inner p {
  max-width: 620px;
  margin: 12px 0 0;
  color: #94a3b8;
}

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

.footer-links a {
  color: #cbd5e1;
  font-weight: 650;
}

.footer-links a:hover {
  color: #22d3ee;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  color: #64748b;
  font-size: 14px;
  border-top: 1px solid rgba(30, 41, 59, 0.72);
}

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

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

  .split-layout,
  .detail-layout,
  .filter-panel {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero-stage {
    width: calc(100% - 24px);
    min-height: 560px;
    height: 74vh;
    border-radius: 24px;
  }

  .hero-gradient {
    background:
      linear-gradient(0deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.68) 56%, rgba(2, 6, 23, 0.22) 100%);
  }

  .hero-content {
    justify-content: flex-end;
    padding: 28px 22px 72px;
  }

  .hero-arrow {
    top: auto;
    bottom: 18px;
    width: 42px;
    height: 42px;
    font-size: 28px;
    transform: none;
  }

  .hero-prev {
    left: 18px;
  }

  .hero-next {
    right: 18px;
  }

  .movie-grid,
  .featured-grid,
  .catalog-grid,
  .category-grid,
  .category-grid.wide,
  .side-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .movie-row {
    grid-template-columns: 110px minmax(0, 1fr);
  }

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

  .detail-poster {
    width: min(220px, 70vw);
  }

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

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

@media (max-width: 480px) {
  .top-nav,
  .content-wrap,
  .footer-inner,
  .footer-bottom,
  .mobile-nav {
    width: calc(100% - 20px);
  }

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

  .hero-actions {
    display: grid;
  }

  .movie-grid,
  .featured-grid,
  .catalog-grid,
  .category-grid,
  .category-grid.wide,
  .side-grid {
    grid-template-columns: 1fr;
  }

  .card-cover {
    aspect-ratio: 16 / 10;
  }

  .movie-row {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .row-body {
    padding-right: 10px;
  }
}
