:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.78);
  --panel-solid: #111827;
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --cyan: #22d3ee;
  --cyan-deep: #0891b2;
  --pink: #fb7185;
  --amber: #f59e0b;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 5%, rgba(34, 211, 238, 0.18), transparent 32rem),
    radial-gradient(circle at 85% 0%, rgba(251, 113, 133, 0.14), transparent 28rem),
    linear-gradient(180deg, #020617 0%, #08111f 42%, #020617 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "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;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

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

.header-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  height: 72px;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--cyan), #2563eb 50%, #7c3aed);
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(34, 211, 238, 0.28);
}

.brand-text {
  display: grid;
  gap: 0;
}

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

.brand-text small {
  color: var(--muted);
  font-size: 12px;
}

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

.nav-link,
.dropdown-button {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted-strong);
  cursor: pointer;
  transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.dropdown-button:hover {
  color: #ffffff;
  background: rgba(34, 211, 238, 0.12);
}

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(128px, 1fr));
  gap: 6px;
  width: 320px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.96);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel,
.nav-dropdown:focus-within .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-panel a {
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--muted-strong);
}

.dropdown-panel a:hover {
  background: rgba(34, 211, 238, 0.12);
  color: #ffffff;
}

.site-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-search input,
.catalog-tools input,
.catalog-tools select {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.86);
  color: var(--text);
  outline: none;
  transition: 0.2s ease;
}

.site-search input {
  width: 240px;
  padding: 11px 16px;
}

.site-search input:focus,
.catalog-tools input:focus,
.catalog-tools select:focus {
  border-color: rgba(34, 211, 238, 0.8);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
}

.site-search button,
.primary-button,
.ghost-button,
.section-more,
.panel-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  transition: 0.2s ease;
}

.site-search button,
.primary-button {
  background: linear-gradient(135deg, var(--cyan), #2563eb);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 16px 34px rgba(34, 211, 238, 0.18);
}

.site-search button:hover,
.primary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 44px rgba(34, 211, 238, 0.28);
}

.ghost-button,
.section-more,
.panel-link {
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.62);
  color: var(--muted-strong);
}

.ghost-button:hover,
.section-more:hover,
.panel-link:hover {
  border-color: rgba(34, 211, 238, 0.55);
  color: #ffffff;
  background: rgba(34, 211, 238, 0.12);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.72);
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: #ffffff;
}

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

.mobile-panel a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted-strong);
}

.hero-slider {
  position: relative;
  min-height: 82vh;
  overflow: hidden;
  background: #020617;
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.46;
  transform: scale(1.03);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 28%, rgba(34, 211, 238, 0.18), transparent 24rem),
    linear-gradient(90deg, rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 0.72) 46%, rgba(2, 6, 23, 0.28)),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.18) 40%, rgba(2, 6, 23, 0.35) 100%);
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: end;
  gap: 54px;
  min-height: 82vh;
  padding-top: 110px;
  padding-bottom: 84px;
}

.hero-copy {
  max-width: 780px;
}

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

.eyebrow span,
.eyebrow a,
.section-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.11);
  color: var(--cyan);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(44px, 7vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.06em;
  text-shadow: 0 18px 60px rgba(0, 0, 0, 0.5);
}

.hero-copy p {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--muted-strong);
  font-size: clamp(17px, 2vw, 22px);
}

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

.hero-poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

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

.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.25), rgba(124, 58, 237, 0.24));
}

.hero-nav {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.58);
  color: #ffffff;
  font-size: 34px;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

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

.hero-dots button.active {
  background: var(--cyan);
}

.quick-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  margin-top: -36px;
  position: relative;
  z-index: 6;
}

.large-search,
.hot-entry {
  min-height: 96px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.large-search {
  padding: 22px;
}

.large-search input {
  flex: 1;
  width: 100%;
  min-height: 54px;
  font-size: 16px;
}

.large-search button {
  min-height: 54px;
  padding: 0 28px;
}

.hot-entry {
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 22px;
}

.hot-entry span {
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hot-entry strong {
  color: #ffffff;
  font-size: 18px;
}

.page-section {
  padding: 72px 0 0;
}

.section-heading,
.category-overview-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 26px;
}

.section-heading h2,
.category-overview-head h2,
.ranking-title h2,
.detail-article h2,
.fact-card h2,
.side-link-card h2 {
  margin: 12px 0 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.section-heading p,
.category-overview-head p {
  margin: 12px 0 0;
  color: var(--muted);
}

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

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

.movie-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.58);
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.16);
  transition: 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.35);
  box-shadow: 0 24px 65px rgba(0, 0, 0, 0.32);
}

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(34, 211, 238, 0.22), transparent 14rem),
    linear-gradient(135deg, #111827, #172554);
}

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

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

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

.poster-play {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.95);
  color: #001018;
  font-size: 13px;
  font-weight: 800;
  opacity: 0;
  transform: translateY(8px);
  transition: 0.2s ease;
}

.movie-card:hover .poster-play {
  opacity: 1;
  transform: translateY(0);
}

.movie-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px;
}

.movie-meta-line {
  display: flex;
  gap: 10px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
}

.movie-card h3 {
  margin: 10px 0 0;
  font-size: 18px;
  line-height: 1.3;
}

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

.movie-card p {
  display: -webkit-box;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
}

.tag-row span {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  padding: 0 9px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  color: var(--muted-strong);
  font-size: 12px;
  background: rgba(148, 163, 184, 0.08);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  align-items: start;
  gap: 34px;
}

.ranking-panel,
.fact-card,
.side-link-card,
.category-overview-block {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.62);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
}

.ranking-panel {
  position: sticky;
  top: 92px;
  padding: 22px;
}

.ranking-title span {
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.rank-list {
  display: grid;
  gap: 12px;
}

.small-rank-list {
  margin-top: 22px;
}

.rank-row {
  display: grid;
  grid-template-columns: 52px 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.34);
  transition: 0.2s ease;
}

.rank-row:hover {
  border-color: rgba(34, 211, 238, 0.36);
  background: rgba(34, 211, 238, 0.08);
}

.rank-number {
  color: var(--cyan);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.rank-thumb {
  width: 58px;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.22), rgba(124, 58, 237, 0.22));
}

.rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-info {
  min-width: 0;
}

.rank-info strong,
.rank-info small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-info small {
  color: var(--muted);
  font-size: 13px;
}

.rank-action {
  color: var(--cyan);
  font-size: 14px;
  font-weight: 800;
}

.panel-link {
  width: 100%;
  margin-top: 18px;
}

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

.category-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.58);
  transition: 0.2s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.32);
}

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

.category-collage img {
  aspect-ratio: 2 / 3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.22), rgba(124, 58, 237, 0.22));
}

.category-card strong {
  font-size: 18px;
}

.category-card em {
  min-height: 44px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.sub-hero,
.category-hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 70px;
  background:
    radial-gradient(circle at 15% 20%, rgba(34, 211, 238, 0.20), transparent 26rem),
    radial-gradient(circle at 80% 10%, rgba(251, 113, 133, 0.15), transparent 24rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.82), rgba(2, 6, 23, 0.98));
  border-bottom: 1px solid var(--line);
}

.sub-hero h1,
.category-hero h1 {
  margin: 14px 0 0;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.sub-hero p,
.category-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted-strong);
  font-size: 18px;
}

.category-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px;
  align-items: center;
  gap: 42px;
}

.category-hero-collage {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  transform: rotate(-2deg);
}

.category-hero-collage img {
  aspect-ratio: 2 / 3;
  width: 100%;
  object-fit: cover;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.22), rgba(124, 58, 237, 0.22));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.25);
}

.category-hero-collage img:nth-child(even) {
  transform: translateY(24px);
}

.category-overview {
  display: grid;
  gap: 30px;
}

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

.catalog-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.62);
}

.catalog-search-wrap {
  flex: 1;
}

.catalog-tools input {
  width: 100%;
  min-height: 48px;
  padding: 0 18px;
}

.catalog-selects {
  display: flex;
  gap: 10px;
}

.catalog-tools select {
  min-height: 48px;
  padding: 0 38px 0 16px;
}

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

.full-rank-list {
  gap: 10px;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  border-bottom: 1px solid var(--line);
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  opacity: 0.32;
  filter: blur(3px);
  transform: scale(1.04);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 76% 22%, rgba(34, 211, 238, 0.18), transparent 26rem),
    linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 0.72) 58%, rgba(2, 6, 23, 0.92)),
    linear-gradient(0deg, #020617, rgba(2, 6, 23, 0.24));
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  align-items: end;
  gap: 44px;
  min-height: 620px;
  padding-top: 110px;
  padding-bottom: 72px;
}

.detail-poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.22), rgba(124, 58, 237, 0.22));
  box-shadow: var(--shadow);
}

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

.detail-poster span {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: grid;
  place-items: center;
  min-height: 46px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.94);
  color: #001018;
  font-weight: 900;
}

.detail-copy h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.detail-one-line {
  max-width: 860px;
  margin: 24px 0 0;
  color: var(--muted-strong);
  font-size: 20px;
}

.detail-tags {
  margin-top: 20px;
  padding-top: 0;
}

.detail-actions {
  display: flex;
  gap: 14px;
  margin-top: 28px;
}

.player-section {
  padding-top: 52px;
}

.movie-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 30%, rgba(34, 211, 238, 0.16), transparent 24rem),
    #000000;
  box-shadow: var(--shadow);
}

.video-element {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  gap: 10px;
  border: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.12), rgba(2, 6, 23, 0.76));
  color: #ffffff;
  cursor: pointer;
  transition: 0.2s ease;
}

.player-overlay:hover {
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.10), rgba(2, 6, 23, 0.72));
}

.play-circle {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.94);
  color: #001018;
  font-size: 28px;
  box-shadow: 0 18px 55px rgba(34, 211, 238, 0.28);
}

.player-overlay strong {
  font-size: 18px;
}

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

.player-message {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 4;
  min-height: 24px;
  color: var(--muted-strong);
  font-size: 14px;
  pointer-events: none;
}

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

.detail-article {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.54);
}

.detail-article p {
  color: var(--muted-strong);
  font-size: 17px;
}

.review-kicker {
  margin-top: 26px;
}

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

.fact-card,
.side-link-card {
  padding: 22px;
}

.fact-card h2,
.side-link-card h2 {
  font-size: 24px;
}

.fact-card div {
  display: grid;
  gap: 3px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.fact-card div:last-child {
  border-bottom: 0;
}

.fact-card span {
  color: var(--muted);
  font-size: 13px;
}

.fact-card strong {
  color: #ffffff;
}

.side-link-card p {
  color: var(--muted);
}

.side-link-card a {
  color: var(--cyan);
  font-weight: 800;
}

.site-footer {
  margin-top: 88px;
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.78);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 34px;
  padding: 42px 0;
}

.footer-brand {
  margin-bottom: 16px;
}

.site-footer p {
  max-width: 540px;
  color: var(--muted);
}

.site-footer h3 {
  margin: 0 0 12px;
}

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

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

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

.footer-bottom {
  padding: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
}

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

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

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

  .hero-content,
  .category-hero-inner,
  .split-section,
  .detail-main-grid {
    grid-template-columns: 1fr;
  }

  .hero-poster,
  .category-hero-collage {
    display: none;
  }

  .ranking-panel {
    position: static;
  }
}

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

  .mobile-toggle {
    display: block;
    margin-left: auto;
  }

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

  .hero-slider,
  .hero-content {
    min-height: 74vh;
  }

  .hero-content {
    padding-top: 92px;
    padding-bottom: 80px;
  }

  .quick-panel,
  .footer-grid,
  .detail-hero-inner {
    grid-template-columns: 1fr;
  }

  .large-search {
    flex-direction: column;
    align-items: stretch;
  }

  .section-heading,
  .category-overview-head,
  .catalog-tools {
    align-items: stretch;
    flex-direction: column;
  }

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

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

  .catalog-selects {
    flex-direction: column;
  }

  .rank-row {
    grid-template-columns: 42px 52px minmax(0, 1fr);
  }

  .rank-action {
    display: none;
  }

  .detail-poster {
    width: min(260px, 80vw);
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 24px, var(--container));
  }

  .brand-text small {
    display: none;
  }

  .hero-nav {
    display: none;
  }

  .hero-copy h1,
  .detail-copy h1,
  .sub-hero h1,
  .category-hero h1 {
    letter-spacing: -0.04em;
  }

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

  .detail-article,
  .fact-card,
  .side-link-card,
  .category-overview-block,
  .ranking-panel {
    padding: 18px;
  }
}
