
:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --cyan-600: #0891b2;
  --cyan-500: #06b6d4;
  --cyan-400: #22d3ee;
  --blue-600: #2563eb;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
  --soft-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--slate-900);
  background: var(--slate-50);
}

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

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

button,
input,
select {
  font: inherit;
}

[hidden] {
  display: none !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  color: var(--white);
  background: rgba(15, 23, 42, 0.96);
  box-shadow: 0 12px 30px rgba(2, 6, 23, 0.18);
  backdrop-filter: blur(18px);
}

.site-header-inner {
  max-width: 1280px;
  height: 64px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--cyan-400), var(--blue-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.brand-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--white);
  background: linear-gradient(135deg, var(--cyan-500), var(--blue-600));
  box-shadow: 0 12px 24px rgba(6, 182, 212, 0.28);
  font-size: 14px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 15px;
}

.nav-link {
  color: #cbd5e1;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--cyan-400);
}

.mobile-nav-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.mobile-nav-button span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--white);
}

.mobile-nav {
  display: none;
  padding: 12px 24px 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  background: var(--slate-900);
}

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

.mobile-nav a {
  padding: 10px 12px;
  border-radius: 12px;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.04);
}

.hero {
  position: relative;
  height: 600px;
  min-height: 520px;
  overflow: hidden;
  background: var(--slate-950);
}

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

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

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

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

.hero-content {
  position: absolute;
  top: 50%;
  left: max(24px, calc((100vw - 1280px) / 2 + 24px));
  max-width: 680px;
  transform: translateY(-50%);
  color: var(--white);
}

.hero-kickers,
.hero-tags,
.detail-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-kickers span,
.hero-kickers a,
.hero-tags span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  backdrop-filter: blur(10px);
}

.hero-kickers span:first-child {
  background: var(--cyan-500);
}

.hero h1 {
  margin: 18px 0 16px;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 620px;
  margin: 0 0 26px;
  color: #e2e8f0;
  font-size: 20px;
  line-height: 1.75;
}

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

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 28px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-button {
  color: var(--white);
  background: var(--cyan-500);
  box-shadow: 0 18px 35px rgba(6, 182, 212, 0.35);
}

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

.ghost-button {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.hero-control {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-50%);
  font-size: 34px;
  line-height: 1;
  backdrop-filter: blur(12px);
  transition: background 0.2s ease;
}

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

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

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

.hero-dots button.is-active {
  width: 34px;
  background: var(--white);
}

.home-search {
  max-width: 1120px;
  margin: -34px auto 0;
  padding: 0 24px;
  position: relative;
  z-index: 5;
}

.home-search-box {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.home-search-box span {
  padding: 0 12px;
  font-weight: 800;
  color: var(--slate-900);
}

.home-search-box input,
.search-box input,
.filter-controls select {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  outline: 0;
  background: var(--slate-50);
  color: var(--slate-900);
}

.home-search-box input {
  height: 46px;
  padding: 0 16px;
}

.home-search-box button {
  height: 46px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--cyan-500), var(--blue-600));
  font-weight: 800;
}

.section-block {
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 24px;
}

.white-block {
  margin-top: 16px;
  border-radius: 28px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

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

.section-title span {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--cyan-600);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
  color: var(--slate-900);
}

.section-title a {
  color: var(--cyan-600);
  font-weight: 800;
  white-space: nowrap;
}

.compact-title {
  margin-bottom: 24px;
}

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

.small-grid {
  gap: 20px;
}

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

.movie-card {
  min-width: 0;
  border-radius: 20px;
  background: var(--white);
  overflow: hidden;
  box-shadow: var(--soft-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-card-link {
  display: block;
  height: 100%;
}

.movie-poster {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--slate-900);
}

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

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

.poster-gradient {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.68), rgba(2, 6, 23, 0.08));
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster-gradient {
  opacity: 1;
}

.play-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--cyan-500);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--white);
  background: rgba(15, 23, 42, 0.84);
  font-weight: 900;
  backdrop-filter: blur(10px);
}

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

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--slate-500);
  font-size: 12px;
}

.movie-meta-line span:first-child {
  color: #0e7490;
  font-weight: 800;
}

.movie-card h3 {
  margin: 0 0 10px;
  color: var(--slate-900);
  font-size: 18px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.movie-card:hover h3 {
  color: var(--cyan-600);
}

.movie-card p {
  margin: 0 0 14px;
  color: var(--slate-600);
  font-size: 14px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-row,
.detail-tag-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row span,
.detail-tag-links a {
  padding: 5px 9px;
  border-radius: 10px;
  color: #0e7490;
  background: #cffafe;
  font-size: 12px;
  font-weight: 800;
}

.movie-card-compact {
  border-radius: 14px;
  box-shadow: none;
  background: rgba(255, 255, 255, 0.08);
}

.movie-card-compact .movie-card-link {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 10px;
}

.movie-card-compact .movie-poster {
  border-radius: 12px;
}

.movie-card-compact .movie-card-body {
  padding: 0;
}

.movie-card-compact h3 {
  font-size: 15px;
  color: var(--slate-900);
}

.movie-card-compact p,
.movie-card-compact .tag-row {
  display: none;
}

.ranking-panel .movie-card-compact {
  background: var(--white);
  margin-bottom: 12px;
}

.movie-card-wide .movie-card-link {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
}

.movie-card-wide .movie-poster {
  height: 100%;
  aspect-ratio: auto;
}

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

.category-tile {
  min-height: 220px;
  padding: 24px;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  background: linear-gradient(180deg, var(--white), #f8fafc);
  box-shadow: var(--soft-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
  border-color: #67e8f9;
  box-shadow: var(--shadow);
}

.category-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  color: var(--white);
  background: linear-gradient(135deg, var(--cyan-500), var(--blue-600));
}

.category-tile h2 {
  margin: 18px 0 10px;
  font-size: 22px;
}

.category-tile p {
  margin: 0;
  color: var(--slate-600);
  line-height: 1.7;
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.category-samples span {
  max-width: 100%;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--slate-600);
  background: #e2e8f0;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
}

.ranking-panel {
  align-self: start;
  position: sticky;
  top: 86px;
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--cyan-500), var(--blue-600));
  box-shadow: var(--shadow);
}

.ranking-panel h2 {
  margin: 0 0 18px;
  color: var(--white);
  font-size: 26px;
}

.page-hero {
  color: var(--white);
  background: radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.35), transparent 32%), linear-gradient(135deg, var(--slate-950), var(--slate-800));
}

.page-hero > div {
  max-width: 1280px;
  margin: 0 auto;
  padding: 86px 24px 96px;
}

.page-hero span {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--cyan-100, #cffafe);
  background: rgba(255, 255, 255, 0.12);
  font-weight: 800;
}

.page-hero h1 {
  max-width: 780px;
  margin: 0 0 18px;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.08;
}

.page-hero p {
  max-width: 720px;
  margin: 0;
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.8;
}

.category-preview-list {
  display: grid;
  gap: 48px;
}

.filter-panel {
  max-width: 1280px;
  margin: -44px auto 0;
  padding: 24px;
  position: relative;
  z-index: 4;
}

.filter-heading,
.filter-controls,
.chip-row {
  background: var(--white);
}

.filter-heading {
  padding: 24px 24px 0;
  border-radius: 24px 24px 0 0;
  box-shadow: var(--soft-shadow);
}

.filter-heading h2 {
  margin: 0 0 8px;
  font-size: 28px;
}

.filter-heading p {
  margin: 0;
  color: var(--slate-600);
}

.filter-controls {
  display: grid;
  grid-template-columns: minmax(220px, 1.8fr) repeat(3, minmax(150px, 1fr));
  gap: 14px;
  padding: 20px 24px 14px;
  box-shadow: var(--soft-shadow);
}

.filter-controls label,
.search-box {
  display: grid;
  gap: 8px;
  color: var(--slate-600);
  font-size: 13px;
  font-weight: 800;
}

.search-box input,
.filter-controls select {
  height: 44px;
  padding: 0 12px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 24px 24px;
  border-radius: 0 0 24px 24px;
  box-shadow: var(--soft-shadow);
}

.chip-row button {
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--slate-700);
  background: var(--slate-100);
  font-weight: 800;
}

.chip-row button[aria-pressed="true"] {
  color: var(--white);
  background: var(--cyan-500);
}

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

.detail-hero {
  position: relative;
  height: 470px;
  overflow: hidden;
  background: var(--slate-950);
}

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

.detail-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(15, 23, 42, 0.64), rgba(15, 23, 42, 0.18));
}

.detail-hero-content {
  position: absolute;
  left: max(24px, calc((100vw - 1280px) / 2 + 24px));
  bottom: 58px;
  max-width: 780px;
  color: var(--white);
}

.breadcrumb {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  color: #cbd5e1;
  font-size: 14px;
}

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

.detail-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
}

.detail-hero p {
  margin: 0 0 22px;
  color: #e2e8f0;
  font-size: 18px;
  line-height: 1.8;
}

.detail-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 42px 24px 80px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
}

.player-section,
.content-panel,
.side-card {
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.player-section {
  padding: 18px;
}

.player-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 18px;
  background: var(--slate-950);
}

.player-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: var(--white);
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.76), rgba(2, 6, 23, 0.18));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-ring {
  width: 86px;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--cyan-500);
  box-shadow: 0 20px 45px rgba(6, 182, 212, 0.38);
  font-size: 30px;
}

.content-panel {
  margin-top: 24px;
  padding: 28px;
}

.content-panel h2,
.side-card h2 {
  margin: 0 0 16px;
  color: var(--slate-900);
  font-size: 24px;
}

.content-panel p {
  margin: 0;
  color: var(--slate-700);
  font-size: 17px;
  line-height: 1.95;
}

.detail-side {
  display: grid;
  align-content: start;
  gap: 24px;
}

.side-card {
  padding: 24px;
}

.side-card dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.side-card dl div {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
}

.side-card dt {
  color: var(--slate-500);
}

.side-card dd {
  margin: 0;
  color: var(--slate-900);
  font-weight: 800;
}

.related-list .movie-card-compact {
  margin-bottom: 12px;
  background: var(--slate-50);
}

.detail-tag-links a {
  font-size: 14px;
}

.site-footer {
  color: #cbd5e1;
  background: var(--slate-900);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 36px;
}

.footer-brand p {
  max-width: 460px;
  margin: 18px 0 0;
  color: #94a3b8;
  line-height: 1.8;
}

.footer-logo {
  font-size: 20px;
}

.footer-links h2 {
  margin: 0 0 18px;
  color: var(--white);
  font-size: 18px;
}

.footer-links div {
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: #94a3b8;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 24px 30px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  color: #94a3b8;
  font-size: 14px;
  text-align: center;
}

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

  .mobile-nav-button {
    display: inline-flex;
  }

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

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

  .ranking-panel {
    position: static;
  }

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

@media (max-width: 760px) {
  .site-header-inner {
    height: 60px;
    padding: 0 16px;
  }

  .brand {
    font-size: 18px;
  }

  .brand-icon {
    width: 30px;
    height: 30px;
  }

  .hero {
    height: 640px;
  }

  .hero-content {
    left: 18px;
    right: 18px;
    max-width: none;
  }

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

  .hero-control {
    display: none;
  }

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

  .section-block {
    padding: 52px 18px;
  }

  .section-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

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

  .movie-card-wide .movie-card-link,
  .movie-card-compact .movie-card-link {
    grid-template-columns: 118px minmax(0, 1fr);
  }

  .movie-card-wide .movie-poster {
    aspect-ratio: 16 / 10;
  }

  .page-hero > div {
    padding: 64px 18px 82px;
  }

  .filter-panel {
    padding: 18px;
  }

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

  .detail-hero {
    height: 540px;
  }

  .detail-hero-content {
    left: 18px;
    right: 18px;
    bottom: 40px;
  }

  .detail-wrap {
    padding: 28px 18px 58px;
  }

  .side-card dl div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

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