:root {
  --night-990: #030406;
  --night-950: #07090f;
  --night-920: #0c1019;
  --night-900: #111827;
  --night-850: #151b2a;
  --night-800: #1f2937;
  --night-700: #374151;
  --gold-300: #fde68a;
  --gold-400: #facc15;
  --gold-500: #eab308;
  --gold-600: #ca8a04;
  --text-main: #f9fafb;
  --text-soft: #d1d5db;
  --text-muted: #9ca3af;
  --line: rgba(250, 204, 21, 0.18);
  --shadow-glow: 0 0 32px rgba(234, 179, 8, 0.18);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(250, 204, 21, 0.11), transparent 32rem),
    radial-gradient(circle at top right, rgba(202, 138, 4, 0.08), transparent 28rem),
    linear-gradient(180deg, var(--night-990), var(--night-950) 38%, #050608);
  color: var(--text-main);
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 6, 10, 0.86);
  backdrop-filter: blur(18px);
}

.header-inner {
  max-width: 1440px;
  margin: 0 auto;
  min-height: 72px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.brand-mark,
.footer-brand span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(234, 179, 8, 0.12);
  color: var(--gold-400);
  box-shadow: inset 0 0 0 1px rgba(250, 204, 21, 0.18);
}

.brand-name,
.footer-brand {
  font-size: 1.24rem;
  background: linear-gradient(90deg, var(--gold-300), var(--gold-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  padding: 10px 13px;
  border-radius: 999px;
  color: var(--text-soft);
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--gold-300);
  background: rgba(234, 179, 8, 0.10);
}

.header-search,
.mobile-search,
.hero-search-panel form,
.catalog-search-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-search input,
.mobile-search input,
.hero-search-panel input,
.catalog-search-box input {
  width: 220px;
  border: 1px solid rgba(250, 204, 21, 0.18);
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--text-main);
  background: rgba(17, 24, 39, 0.86);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.hero-search-panel input:focus,
.catalog-search-box input:focus {
  border-color: rgba(250, 204, 21, 0.72);
  box-shadow: 0 0 0 4px rgba(234, 179, 8, 0.10);
}

.header-search button,
.mobile-search button,
.hero-search-panel button,
.btn.primary,
.filter-button.is-active {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  color: #101318;
  background: linear-gradient(135deg, var(--gold-300), var(--gold-600));
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(234, 179, 8, 0.22);
}

.mobile-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--gold-300);
  background: rgba(17, 24, 39, 0.88);
  cursor: pointer;
}

.mobile-panel {
  display: none;
  border-top: 1px solid rgba(250, 204, 21, 0.12);
  padding: 18px 24px 24px;
  background: rgba(7, 9, 15, 0.97);
}

.mobile-panel.is-open {
  display: block;
}

.mobile-panel nav,
.mobile-categories {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

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

.mobile-categories a {
  padding: 10px 12px;
  border: 1px solid rgba(250, 204, 21, 0.12);
  border-radius: 14px;
  color: var(--text-soft);
  background: rgba(17, 24, 39, 0.62);
}

main {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 28px;
}

.hero-section {
  position: relative;
  padding: 34px 0 24px;
}

.hero-title-layer {
  position: absolute;
  z-index: 5;
  left: 56px;
  top: 78px;
  max-width: 560px;
  pointer-events: none;
}

.hero-title-layer h1 {
  margin: 0 0 12px;
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
  text-shadow: 0 12px 40px rgba(0, 0, 0, 0.72);
}

.hero-title-layer p {
  margin: 0;
  max-width: 460px;
  color: var(--text-soft);
}

.hero-stage {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  border: 1px solid rgba(250, 204, 21, 0.18);
  border-radius: var(--radius-lg);
  background: var(--night-900);
  box-shadow: var(--shadow-glow), 0 24px 80px rgba(0, 0, 0, 0.38);
}

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

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

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

.hero-mask {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 4, 6, 0.94) 0%, rgba(3, 4, 6, 0.72) 42%, rgba(3, 4, 6, 0.20) 100%),
    linear-gradient(0deg, rgba(3, 4, 6, 0.96), transparent 48%);
}

.hero-content {
  position: absolute;
  z-index: 4;
  left: 56px;
  bottom: 64px;
  max-width: 620px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--gold-300);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-content h2,
.page-hero h1,
.detail-title-block h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 5vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.hero-content p,
.page-hero p,
.detail-title-block p {
  color: var(--text-soft);
  font-size: 1.04rem;
  max-width: 680px;
}

.hero-tags,
.detail-tags,
.tag-row,
.filter-row,
.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.hero-tags span,
.detail-tags span,
.tag-row span {
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--gold-300);
  background: rgba(250, 204, 21, 0.10);
  border: 1px solid rgba(250, 204, 21, 0.16);
  font-size: 0.78rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 800;
}

.btn.ghost {
  border: 1px solid rgba(250, 204, 21, 0.26);
  color: var(--gold-300);
  background: rgba(17, 24, 39, 0.68);
}

.hero-dots {
  position: absolute;
  z-index: 6;
  right: 34px;
  bottom: 34px;
  display: flex;
  gap: 10px;
}

.hero-dots button {
  width: 34px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  cursor: pointer;
}

.hero-dots button.is-active {
  background: var(--gold-400);
}

.hero-search-panel {
  position: relative;
  z-index: 8;
  margin: -44px auto 0;
  width: min(920px, calc(100% - 48px));
  padding: 18px;
  border: 1px solid rgba(250, 204, 21, 0.18);
  border-radius: 24px;
  background: rgba(12, 16, 25, 0.88);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.36);
}

.hero-search-panel form {
  width: 100%;
}

.hero-search-panel input {
  flex: 1;
  width: auto;
}

.quick-links {
  margin-top: 12px;
}

.quick-links a {
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.05);
}

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

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

.section-heading span {
  display: block;
  color: var(--gold-400);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 4px 0 0;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  letter-spacing: -0.04em;
}

.section-heading a,
.text-link {
  color: var(--gold-300);
  font-weight: 800;
}

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

.category-card {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border: 1px solid rgba(250, 204, 21, 0.14);
  border-radius: 24px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  isolation: isolate;
  background: var(--night-900);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover,
.movie-card:hover,
.category-overview-card:hover {
  transform: translateY(-4px);
  border-color: rgba(250, 204, 21, 0.46);
  box-shadow: var(--shadow-glow);
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  opacity: 0.58;
  transition: transform 0.55s ease;
}

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

.category-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(3, 4, 6, 0.96), rgba(3, 4, 6, 0.32));
}

.category-card strong {
  font-size: 1.35rem;
  margin-bottom: 6px;
}

.category-card em {
  color: var(--text-soft);
  font-style: normal;
  font-size: 0.92rem;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(250, 204, 21, 0.12);
  border-radius: 20px;
  background: rgba(17, 24, 39, 0.72);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.movie-card.is-hidden {
  display: none;
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--night-800);
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(3, 4, 6, 0.74), transparent 48%);
}

.poster-badge,
.rank-num {
  position: absolute;
  z-index: 2;
  top: 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
}

.poster-badge {
  right: 12px;
  padding: 5px 9px;
  color: #101318;
  background: var(--gold-400);
}

.rank-num {
  left: 12px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--gold-300);
  background: rgba(3, 4, 6, 0.82);
  border: 1px solid rgba(250, 204, 21, 0.24);
}

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

.movie-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: 0.76rem;
}

.movie-card-meta a {
  color: var(--gold-300);
}

.movie-card h2 {
  margin: 0 0 8px;
  font-size: 1rem;
  line-height: 1.35;
}

.movie-card h2 a:hover {
  color: var(--gold-300);
}

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

.tag-row {
  gap: 6px;
}

.tag-row span {
  padding: 4px 8px;
  font-size: 0.72rem;
}

.page-shell {
  padding-top: 34px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 10px 0 22px;
}

.breadcrumb a {
  color: var(--gold-300);
}

.page-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(250, 204, 21, 0.14);
  border-radius: var(--radius-lg);
  padding: 56px;
  background:
    linear-gradient(135deg, rgba(250, 204, 21, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(17, 24, 39, 0.92), rgba(7, 9, 15, 0.96));
}

.page-hero.small {
  padding: 46px;
}

.category-page-hero::after,
.page-hero::after {
  content: "";
  position: absolute;
  right: -8%;
  top: -34%;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(250, 204, 21, 0.08);
  filter: blur(2px);
}

.catalog-tools {
  margin-top: 34px;
}

.catalog-search-box.large input,
.catalog-search-box input {
  width: 100%;
  min-height: 54px;
  border-radius: 18px;
}

.filter-row {
  margin: 18px 0 26px;
}

.filter-button {
  border: 1px solid rgba(250, 204, 21, 0.16);
  border-radius: 999px;
  padding: 9px 14px;
  color: var(--text-soft);
  background: rgba(17, 24, 39, 0.72);
  cursor: pointer;
}

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

.category-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 34px;
}

.category-overview-card {
  overflow: hidden;
  border: 1px solid rgba(250, 204, 21, 0.12);
  border-radius: 24px;
  background: rgba(17, 24, 39, 0.78);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.category-preview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-height: 190px;
}

.category-preview a {
  overflow: hidden;
}

.category-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.category-overview-card:hover .category-preview img {
  transform: scale(1.08);
}

.category-overview-body {
  padding: 24px;
}

.category-overview-body span {
  color: var(--gold-400);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.category-overview-body h2 {
  margin: 8px 0 10px;
  font-size: 1.55rem;
}

.category-overview-body p {
  margin: 0 0 14px;
  color: var(--text-soft);
}

.detail-shell {
  max-width: 1320px;
}

.detail-top {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(520px, 1.25fr);
  gap: 28px;
  align-items: end;
}

.detail-title-block {
  padding: 34px;
  border: 1px solid rgba(250, 204, 21, 0.14);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(250, 204, 21, 0.10), transparent 36%),
    rgba(17, 24, 39, 0.72);
}

.player-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(250, 204, 21, 0.18);
  border-radius: var(--radius-lg);
  background: #000;
  box-shadow: var(--shadow-glow), 0 24px 80px rgba(0, 0, 0, 0.44);
}

.player-card video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
  background:
    radial-gradient(circle at center, rgba(250, 204, 21, 0.16), transparent 35%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.30));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-button {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border: 0;
  border-radius: 50%;
  color: #101318;
  background: linear-gradient(135deg, var(--gold-300), var(--gold-600));
  cursor: pointer;
  box-shadow: 0 0 0 12px rgba(250, 204, 21, 0.10), 0 18px 46px rgba(234, 179, 8, 0.28);
}

.play-button span {
  transform: translateX(3px);
  font-size: 2.1rem;
}

.player-overlay strong {
  font-size: 1.3rem;
}

.player-overlay em {
  color: var(--gold-300);
  font-style: normal;
  font-weight: 800;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 28px;
  margin-top: 34px;
}

.detail-poster-card,
.detail-article {
  border: 1px solid rgba(250, 204, 21, 0.12);
  border-radius: 24px;
  background: rgba(17, 24, 39, 0.72);
}

.detail-poster-card {
  overflow: hidden;
}

.detail-poster-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.detail-poster-card ul {
  list-style: none;
  margin: 0;
  padding: 18px;
}

.detail-poster-card li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.detail-poster-card li:last-child {
  border-bottom: 0;
}

.detail-poster-card span {
  color: var(--text-muted);
}

.detail-poster-card strong {
  color: var(--text-main);
}

.detail-article {
  padding: 28px;
}

.detail-article h2 {
  margin: 0 0 12px;
  color: var(--gold-300);
  font-size: 1.35rem;
}

.detail-article p {
  margin: 0 0 26px;
  color: var(--text-soft);
  font-size: 1.02rem;
}

.related-section {
  margin-top: 52px;
}

.empty-state {
  display: none;
  margin: 28px 0 0;
  padding: 22px;
  border: 1px solid rgba(250, 204, 21, 0.14);
  border-radius: 18px;
  color: var(--text-soft);
  background: rgba(17, 24, 39, 0.68);
  text-align: center;
}

.empty-state.is-visible {
  display: block;
}

.site-footer {
  margin-top: 90px;
  border-top: 1px solid rgba(250, 204, 21, 0.12);
  background: rgba(3, 4, 6, 0.72);
}

.footer-grid {
  max-width: 1440px;
  margin: 0 auto;
  padding: 42px 28px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 32px;
}

.footer-grid p {
  max-width: 420px;
  color: var(--text-muted);
}

.footer-grid h2 {
  margin: 0 0 14px;
  font-size: 1rem;
  color: var(--gold-300);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--gold-300);
}

.footer-bottom {
  max-width: 1440px;
  margin: 0 auto;
  padding: 20px 28px 34px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

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

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

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

  .mobile-toggle {
    display: inline-grid;
    place-items: center;
  }

  .hero-stage {
    min-height: 560px;
  }

  .hero-title-layer,
  .hero-content {
    left: 28px;
    right: 28px;
  }

  .hero-title-layer {
    top: 58px;
  }

  .category-overview-grid,
  .footer-grid,
  .detail-content-grid {
    grid-template-columns: 1fr;
  }

  .detail-poster-card {
    max-width: 360px;
  }
}

@media (max-width: 720px) {
  main,
  .header-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .header-inner {
    min-height: 64px;
  }

  .brand-name {
    font-size: 1.02rem;
  }

  .hero-section {
    padding-top: 18px;
  }

  .hero-title-layer {
    position: relative;
    inset: auto;
    margin-bottom: 18px;
    pointer-events: auto;
  }

  .hero-stage {
    min-height: 540px;
    border-radius: 22px;
  }

  .hero-mask {
    background: linear-gradient(0deg, rgba(3, 4, 6, 0.96), rgba(3, 4, 6, 0.24));
  }

  .hero-content {
    left: 20px;
    right: 20px;
    bottom: 42px;
  }

  .hero-search-panel {
    width: calc(100% - 8px);
    margin-top: 16px;
  }

  .hero-search-panel form,
  .mobile-search {
    display: grid;
  }

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

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

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-hero,
  .page-hero.small,
  .detail-title-block,
  .detail-article {
    padding: 24px;
    border-radius: 22px;
  }

  .detail-top {
    gap: 18px;
  }

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

  .footer-links,
  .mobile-categories {
    grid-template-columns: 1fr;
  }
}

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

  .poster-link {
    aspect-ratio: 16 / 11;
  }
}
