:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --red-700: #b91c1c;
  --red-600: #dc2626;
  --red-500: #ef4444;
  --orange-600: #ea580c;
  --orange-500: #f97316;
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --purple-700: #7e22ce;
  --purple-600: #9333ea;
  --yellow-300: #fde047;
  --white: #ffffff;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
  --shadow-strong: 0 30px 70px rgba(15, 23, 42, 0.24);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--slate-900);
  background: linear-gradient(135deg, #fff7ed 0%, #f8fafc 38%, #eef2ff 100%);
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.nav-shell {
  display: flex;
  align-items: center;
  gap: 24px;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  font-weight: 800;
  color: var(--slate-900);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: white;
  background: linear-gradient(180deg, var(--red-600), var(--orange-500));
  box-shadow: 0 12px 28px rgba(220, 38, 38, 0.28);
}

.brand-text {
  font-size: 20px;
  letter-spacing: 0.02em;
}

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

.nav-link,
.nav-chip,
.mobile-link,
.mobile-sub-link {
  transition: all 0.22s ease;
}

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--slate-600);
  font-weight: 700;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--red-600);
  background: #fff1f2;
}

.nav-search {
  position: relative;
  width: min(280px, 26vw);
}

.nav-search input {
  width: 100%;
  height: 42px;
  padding: 0 42px 0 16px;
  border: 1px solid var(--slate-200);
  border-radius: 999px;
  color: var(--slate-800);
  background: white;
  outline: none;
  transition: all 0.22s ease;
}

.nav-search input:focus {
  border-color: var(--red-500);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}

.nav-search button {
  position: absolute;
  top: 50%;
  right: 8px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  color: var(--slate-500);
  background: transparent;
  transform: translateY(-50%);
}

.nav-search button:hover {
  color: white;
  background: var(--red-600);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: var(--slate-800);
  background: var(--slate-100);
}

.nav-subbar {
  border-top: 1px solid rgba(226, 232, 240, 0.75);
}

.nav-subbar-inner {
  display: flex;
  gap: 10px;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 9px 0 12px;
  overflow-x: auto;
}

.nav-chip {
  min-width: max-content;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--slate-600);
  background: var(--slate-50);
  font-size: 14px;
  font-weight: 700;
}

.nav-chip:hover {
  color: white;
  background: linear-gradient(90deg, var(--red-600), var(--orange-500));
}

.mobile-menu {
  display: none;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

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

.mobile-link,
.mobile-sub-link {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--slate-700);
  font-weight: 700;
}

.mobile-link:hover,
.mobile-sub-link:hover {
  color: var(--red-600);
  background: #fff1f2;
}

.mobile-sub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  padding-top: 6px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  color: white;
  background: linear-gradient(120deg, #7f1d1d 0%, #9a3412 46%, #450a0a 100%);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.26;
  background-image: radial-gradient(circle at 20% 20%, rgba(253, 224, 71, 0.35), transparent 26%), radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.18), transparent 26%), linear-gradient(135deg, rgba(255, 255, 255, 0.06) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.06) 50%, rgba(255, 255, 255, 0.06) 75%, transparent 75%, transparent);
  background-size: auto, auto, 64px 64px;
  animation: softPulse 7s ease-in-out infinite;
}

@keyframes softPulse {
  50% {
    opacity: 0.14;
  }
}

.hero-shell {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(1280px, calc(100% - 32px));
  min-height: 680px;
  margin: 0 auto;
  padding: 72px 0 44px;
}

.hero-slider {
  position: relative;
  min-height: 440px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: 56px;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: var(--yellow-300);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, #fef08a, #ffffff 45%, #fde68a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy p {
  max-width: 760px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.85;
}

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

.hero-tags {
  margin-top: 24px;
}

.hero-tags span,
.detail-meta span,
.detail-tags a {
  display: inline-flex;
  padding: 8px 13px;
  border-radius: 999px;
  color: white;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  font-size: 14px;
  font-weight: 700;
}

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

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

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: white;
  background: linear-gradient(90deg, var(--red-600), var(--orange-500));
  box-shadow: 0 16px 34px rgba(220, 38, 38, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 22px 44px rgba(220, 38, 38, 0.34);
}

.btn-ghost {
  color: white;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.24);
}

.btn-link {
  color: #fde68a;
  background: transparent;
}

.btn.slim {
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
}

.hero-visual {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-strong);
  transform: rotate(1deg);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.5s ease;
}

.hero-visual:hover img {
  transform: scale(1.08);
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 32%, rgba(2, 6, 23, 0.68));
}

.hero-play,
.play-mini,
.player-button {
  display: grid;
  place-items: center;
}

.hero-play {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 2;
  width: 76px;
  height: 76px;
  border-radius: 999px;
  color: white;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(14px);
  font-size: 28px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.26);
}

.hero-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 16px;
}

.hero-arrow,
.hero-dot {
  border: 0;
  color: white;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.hero-arrow {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font-size: 24px;
}

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

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border-radius: 999px;
  opacity: 0.56;
}

.hero-dot.is-active {
  width: 34px;
  opacity: 1;
  background: var(--yellow-300);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 32px;
}

.hero-stats a {
  display: block;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  text-align: center;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  transition: transform 0.25s ease, background 0.25s ease;
}

.hero-stats a:hover {
  transform: translateY(-4px) scale(1.02);
  background: rgba(255, 255, 255, 0.18);
}

.hero-stats strong {
  display: block;
  color: var(--yellow-300);
  font-size: 30px;
  line-height: 1;
}

.hero-stats span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
}

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

.soft-section,
.rank-section {
  width: 100%;
  max-width: none;
  padding-left: max(16px, calc((100% - 1280px) / 2));
  padding-right: max(16px, calc((100% - 1280px) / 2));
}

.soft-section {
  background: linear-gradient(90deg, rgba(254, 242, 242, 0.72), rgba(255, 247, 237, 0.72));
}

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

.section-heading h2 {
  margin: 0;
  color: var(--slate-900);
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section-heading p {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--slate-600);
  line-height: 1.75;
}

.section-more {
  min-width: max-content;
  color: var(--red-600);
  font-weight: 800;
}

.grid {
  display: grid;
}

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

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: var(--radius-xl);
  background: white;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.movie-card:hover {
  border-color: rgba(239, 68, 68, 0.28);
  box-shadow: var(--shadow);
  transform: translateY(-8px);
}

.movie-poster {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #e2e8f0, #fee2e2);
}

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

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(2, 6, 23, 0.72));
  opacity: 0.92;
}

.play-mini {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  color: white;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(12px);
  transition: background 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-mini {
  background: var(--red-600);
  transform: scale(1.08);
}

.rank-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 7px 10px;
  border-radius: 999px;
  color: white;
  background: linear-gradient(90deg, var(--red-600), var(--orange-500));
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(220, 38, 38, 0.25);
}

.movie-body {
  padding: 18px;
}

.movie-meta-line {
  justify-content: space-between;
  margin-bottom: 10px;
  color: var(--slate-500);
  font-size: 13px;
  font-weight: 700;
}

.meta-pill {
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--red-600);
  background: #fff1f2;
}

.movie-body h3 {
  margin: 0 0 10px;
  color: var(--slate-900);
  font-size: 19px;
  line-height: 1.35;
}

.movie-body h3 a:hover {
  color: var(--red-600);
}

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

.tag-row {
  gap: 7px;
}

.tag-row span {
  max-width: 100%;
  padding: 5px 8px;
  overflow: hidden;
  border-radius: 999px;
  color: var(--slate-600);
  background: var(--slate-100);
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  border-radius: var(--radius-xl);
  color: white;
  background: var(--slate-900);
  box-shadow: var(--shadow);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.category-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-strong);
}

.category-card img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.1), rgba(2, 6, 23, 0.86));
}

.category-card strong,
.category-card em {
  position: absolute;
  left: 20px;
  right: 20px;
  z-index: 2;
}

.category-card strong {
  bottom: 68px;
  font-size: 24px;
}

.category-card em {
  bottom: 24px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-style: normal;
  line-height: 1.55;
}

.channel-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
}

.channel-block {
  padding: 26px;
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.08);
}

.channel-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.channel-block-head h3 {
  margin: 0;
  font-size: 24px;
}

.channel-block-head a {
  color: var(--red-600);
  font-weight: 800;
}

.page-hero {
  position: relative;
  overflow: hidden;
  color: white;
  background: linear-gradient(120deg, var(--slate-950), #1e1b4b 45%, #7f1d1d 100%);
}

.channel-hero {
  background: linear-gradient(120deg, #172554, #581c87 48%, #7f1d1d 100%);
}

.rank-hero {
  background: linear-gradient(120deg, #450a0a, #7f1d1d 45%, #9a3412 100%);
}

.search-hero {
  background: linear-gradient(120deg, #0f172a, #1e3a8a 46%, #7e22ce 100%);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image: radial-gradient(circle at 25% 20%, rgba(253, 224, 71, 0.36), transparent 24%), radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.22), transparent 24%);
}

.page-hero-inner {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 76px 0;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.page-hero p:last-child {
  max-width: 780px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 19px;
  line-height: 1.8;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
  font-weight: 700;
}

.breadcrumb a:hover {
  color: white;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 28px;
  background: white;
  box-shadow: 0 15px 42px rgba(15, 23, 42, 0.08);
}

.category-collage {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--slate-200);
}

.category-collage img {
  width: 100%;
  height: 100%;
  min-height: 128px;
  object-fit: cover;
}

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

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

.category-overview-body h2 a:hover {
  color: var(--red-600);
}

.category-overview-body p {
  margin: 0 0 16px;
  color: var(--slate-600);
  line-height: 1.72;
}

.category-samples {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}

.category-samples a {
  display: block;
  overflow: hidden;
  color: var(--slate-700);
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-samples a:hover {
  color: var(--red-600);
}

.filter-panel {
  position: sticky;
  top: 115px;
  z-index: 12;
  display: grid;
  gap: 16px;
  margin-bottom: 30px;
  padding: 18px;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.search-panel {
  top: 102px;
}

.filter-input {
  width: 100%;
  height: 50px;
  padding: 0 18px;
  border: 1px solid var(--slate-200);
  border-radius: 16px;
  outline: none;
  color: var(--slate-800);
  background: white;
}

.filter-input:focus {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.filter-groups {
  display: grid;
  gap: 10px;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-button {
  min-height: 36px;
  padding: 0 13px;
  border: 0;
  border-radius: 999px;
  color: var(--slate-700);
  background: var(--slate-100);
  font-size: 14px;
  font-weight: 800;
  transition: all 0.22s ease;
}

.filter-button:hover,
.filter-button.is-active {
  color: white;
  background: linear-gradient(90deg, var(--blue-600), var(--purple-600));
}

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

.detail-page {
  background: linear-gradient(135deg, #f8fafc, #fff7ed 52%, #eef2ff);
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: white;
  background: var(--slate-950);
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.34;
  filter: blur(8px);
  transform: scale(1.05);
}

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

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(2, 6, 23, 0.96), rgba(69, 10, 10, 0.78));
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0 64px;
}

.detail-hero-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 38px;
  align-items: center;
}

.detail-cover {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  box-shadow: var(--shadow-strong);
}

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

.detail-info h1 {
  margin: 0;
  font-size: clamp(40px, 5vw, 66px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.detail-info .lead {
  max-width: 850px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 20px;
  line-height: 1.85;
}

.detail-meta {
  margin-top: 22px;
}

.detail-tags {
  margin-top: 18px;
}

.detail-tags a:hover {
  background: rgba(255, 255, 255, 0.24);
}

.detail-info .btn {
  margin-top: 30px;
}

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

.player-card {
  overflow: hidden;
  border-radius: 30px;
  background: #000;
  box-shadow: var(--shadow-strong);
}

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

.movie-player {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.player-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 0;
  color: white;
  background: radial-gradient(circle at center, rgba(15, 23, 42, 0.32), rgba(2, 6, 23, 0.78));
}

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

.player-layer strong {
  max-width: min(720px, 80%);
  overflow: hidden;
  font-size: clamp(20px, 3vw, 34px);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-button {
  width: 90px;
  height: 90px;
  border-radius: 999px;
  color: white;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
  font-size: 34px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
  transition: transform 0.25s ease, background 0.25s ease;
}

.player-layer:hover .player-button {
  background: var(--red-600);
  transform: scale(1.08);
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  margin-top: 34px;
}

.story-card {
  padding: 30px;
  border: 1px solid rgba(226, 232, 240, 0.88);
  border-radius: 26px;
  background: white;
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.08);
}

.story-card h2 {
  margin: 0 0 18px;
  font-size: 28px;
}

.story-card p {
  margin: 0 0 14px;
  color: var(--slate-700);
  font-size: 17px;
  line-height: 1.88;
}

.story-card p:last-child {
  margin-bottom: 0;
}

.accent-card {
  background: linear-gradient(135deg, #ffffff, #eff6ff);
  border-left: 5px solid var(--blue-600);
}

.related-section {
  padding-top: 56px;
}

.site-footer {
  color: white;
  background: linear-gradient(135deg, var(--slate-950), #172554 54%, #450a0a);
}

.footer-shell {
  display: grid;
  grid-template-columns: 1.5fr 0.7fr 1.1fr;
  gap: 34px;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0;
}

.footer-brand p {
  max-width: 580px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.8;
}

.footer-brand-line {
  color: white;
}

.footer-links {
  display: grid;
  gap: 12px;
  align-content: start;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.74);
  font-weight: 700;
}

.footer-links a:hover {
  color: white;
}

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

.footer-bottom {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.56);
  font-size: 14px;
}

@media (max-width: 1180px) {
  .cards-grid,
  .small-grid,
  .rank-page-grid,
  .catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .overview-grid,
  .channel-layout,
  .story-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .nav-center,
  .nav-search,
  .nav-subbar {
    display: none;
  }

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

  .hero,
  .hero-shell {
    min-height: auto;
  }

  .hero-shell {
    padding: 48px 0 36px;
  }

  .hero-slider {
    min-height: 720px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 30px;
    align-content: start;
  }

  .hero-visual,
  .hero-visual img {
    min-height: 360px;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .featured-grid,
  .cards-grid,
  .small-grid,
  .rank-page-grid,
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .detail-cover {
    max-width: 320px;
  }

  .filter-panel {
    position: relative;
    top: auto;
  }
}

@media (max-width: 620px) {
  .brand-text {
    font-size: 18px;
  }

  .hero-slider {
    min-height: 760px;
  }

  .hero h1,
  .detail-info h1,
  .page-hero h1 {
    font-size: 38px;
  }

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

  .hero-stats,
  .featured-grid,
  .cards-grid,
  .small-grid,
  .rank-page-grid,
  .catalog-grid,
  .category-grid,
  .footer-cats {
    grid-template-columns: 1fr;
  }

  .content-section,
  .page-hero-inner,
  .detail-hero-inner,
  .detail-content,
  .footer-shell,
  .footer-bottom,
  .nav-shell,
  .mobile-menu {
    width: min(100% - 24px, 1280px);
  }

  .content-section {
    padding: 48px 0;
  }

  .soft-section,
  .rank-section {
    padding-left: 12px;
    padding-right: 12px;
  }

  .movie-card-compact .movie-poster {
    aspect-ratio: 3 / 4;
  }

  .story-card {
    padding: 22px;
  }
}
